:root{
  /* Main colors */
  --bg:#ffffff;
  --card:#ffffff;
  --text:#1f2937;      /* near-black */
  --muted:#6b7280;     /* gray text */
  --line:#e5e7eb;      /* borders */

  --accent:#FF6A00;    /* main accent */
  --accent-strong:#e85f00;
  --accent-soft:#ffe7d6;

  --ok:#16a34a;
  --ok-soft:#dcfce7;

  --warn:#f59e0b;
  --warn-soft:#fef3c7;

  --danger:#dc2626;
  --danger-soft:#fee2e2;

  --radius:16px;
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background:var(--bg);
  color:var(--text);
}

.container{max-width:980px;margin:0 auto;padding:0 18px}

/* Header */
.site-header{
  position:sticky; top:0; z-index:10;
  background:#ffffff;
  border-bottom:1px solid var(--line);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:64px;
}

.brand{
  font-weight:800;
  letter-spacing:.2px;
}

.nav a{
  color:var(--muted);
  text-decoration:none;
  margin-left:10px;
  padding:8px 10px;
  border-radius:10px;
}

.nav a[aria-current="page"], .nav a:hover{
  color:var(--text);
  background:rgba(0,0,0,.04);
}

/* Layout */
.hero{padding:28px 0 48px}

h1{
  font-size: clamp(28px, 3vw, 40px);
  margin:16px 0 8px;
  letter-spacing:-0.2px;
}

h2,h3{letter-spacing:-0.15px}

.lead{
  color:var(--muted);
  font-size:1.05rem;
  line-height:1.55;
  margin:0 0 18px;
}

/* Cards */
.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:0 6px 18px rgba(0,0,0,.06);
}

.card-title{
  margin:0 0 10px;
  font-size:1.25rem;
}

.grid-2{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
  margin-top:14px;
}
@media (min-width: 820px){
  .grid-2{grid-template-columns:1fr 1fr;}
}

/* Form */
.form{display:grid;gap:10px}

label{
  font-size:.92rem;
  color:var(--muted);
}

input{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#ffffff;
  color:var(--text);
  outline:none;
}

input:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 3px rgba(255,106,0,.15);
}

.hint{
  margin:0;
  color:var(--muted);
  font-size:.9rem;
  line-height:1.45;
}

code{
  color:var(--text);
  background:rgba(0,0,0,.04);
  padding:2px 6px;
  border-radius:8px;
  border:1px solid rgba(0,0,0,.06);
}

.checkbox{
  display:flex;
  gap:10px;
  align-items:flex-start;
  color:var(--muted);
  font-size:.95rem;
}
.checkbox input{width:auto;margin-top:3px}

/* Buttons */
.actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:6px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#ffffff;
  color:var(--text);
  cursor:pointer;
  text-decoration:none;
  user-select:none;
}

.btn:hover{
  background:rgba(0,0,0,.03);
}

.btn.primary{
  border-color:var(--accent);
  background:var(--accent);
  color:#ffffff;
}

.btn.primary:hover{
  background:var(--accent-strong);
  border-color:var(--accent-strong);
}

.btn.small{
  padding:6px 10px;
  border-radius:10px;
  font-size:.9rem;
}

/* Alerts */
.alert{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(220,38,38,.25);
  background:var(--danger-soft);
  color:var(--text);
}

/* Steps */
.steps{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:14px;
}

.step{
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  color:var(--muted);
  background:rgba(0,0,0,.02);
}

.step span{
  width:22px;height:22px;border-radius:999px;
  display:inline-flex;align-items:center;justify-content:center;
  border:1px solid var(--line);
  font-size:.85rem;
  background:#fff;
}

.step.active{
  color:var(--accent);
  border-color:rgba(255,106,0,.55);
  background:var(--accent-soft);
}

.step.active span{
  border-color:rgba(255,106,0,.55);
}

.step.done{
  color:var(--text);
  border-color:rgba(22,163,74,.35);
  background:var(--ok-soft);
}

.step.done span{
  border-color:rgba(22,163,74,.35);
}

/* Dividers */
.divider{
  height:1px;
  background:var(--line);
  margin:14px 0;
}

/* Tabs */
.tabs{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 12px}

.tab{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#ffffff;
  color:var(--muted);
  cursor:pointer;
}

.tab:hover{background:rgba(0,0,0,.03)}

.tab.active{
  color:var(--accent);
  border-color:rgba(255,106,0,.55);
  background:var(--accent-soft);
}

/* Panels / Codeboxes */
.panel{margin-top:8px}

.codebox{
  border:1px solid var(--line);
  border-radius:14px;
  background:#ffffff;
  overflow:hidden;
  margin:10px 0;
}

.codehead{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:10px 12px;
  border-bottom:1px solid var(--line);
  color:var(--muted);
  font-size:.9rem;
  background:rgba(0,0,0,.02);
}

pre{
  margin:0;
  padding:12px;
  overflow:auto;
  background:#ffffff;
}

pre code{
  color:var(--text);
  background:transparent;
  border:none;
  padding:0;
}

.row-between{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}

.mono{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Status box */
.status{
  margin-top:12px;
  padding:12px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(0,0,0,.02);
  white-space:pre-line;
}

.status.ok{
  border-color:rgba(22,163,74,.30);
  background:var(--ok-soft);
}

.status.warn{
  border-color:rgba(245,158,11,.35);
  background:var(--warn-soft);
}

.status.bad{
  border-color:rgba(220,38,38,.25);
  background:var(--danger-soft);
}

/* Lists & footer */
.list{
    margin:8px 0 0 0;
    color:var(--muted);
    line-height:1.6
}

.footer{
  margin-top:18px;
  color:var(--muted);
  text-align:center;
}

/* Summary */
.summary{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
  margin-top:10px;
}
@media (min-width:720px){
  .summary{grid-template-columns:1fr 1fr;}
}

.label{
  color:var(--muted);
  font-size:.9rem;
  margin-bottom:6px;
}

/* Callouts */
.callouts{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
  margin:14px 0;
}
@media (min-width: 820px){
  .callouts{grid-template-columns:1fr 1fr;}
}

.callout{
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:14px 16px;
  background:rgba(255,106,0,.06);
}

.callout-title{
  font-weight:700;
  margin-bottom:6px;
}

.callout p{
  margin:0;
  color:var(--muted);
  line-height:1.5;
}
