/* ===== Notion-inspired system ===== */
:root{
  --background:#FFFFFF;
  --foreground:#37352F;       /* Notion's near-black text */
  --muted:#F7F7F5;            /* Notion's off-white panel bg */
  --muted-fg:#787774;         /* Notion's secondary gray text */
  --border:#E9E9E7;
  --border-strong:#D3D1CB;
  --accent:#2383E2;           /* Notion blue, used sparingly for links/CTAs */
  --accent-hover:#0B6FCC;
  --card-shadow:0 1px 2px rgba(15,15,15,0.06), 0 1px 1px rgba(15,15,15,0.04);
  --radius-sm:6px;
  --radius-md:8px;

  --font-body:-apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --font-mono:"SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  --container:56rem;
}

*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}

body{
  background:var(--background);
  color:var(--foreground);
  font-family:var(--font-body);
  font-size:1rem;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

img{max-width:100%; display:block;}
a{color:inherit;}

.container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 1.5rem;
}
@media(min-width:768px){ .container{ padding:0 2rem; } }

/* ===== Type ===== */
.eyebrow{
  font-size:0.8rem;
  font-weight:600;
  color:var(--muted-fg);
}

h1,h2,h3{ font-family:var(--font-body); font-weight:700; line-height:1.15; letter-spacing:-0.01em; color:var(--foreground); }

/* ===== Rules ===== */
.rule-thick{ border:none; border-top:1px solid var(--border); }
.rule-thin{ border:none; border-top:1px solid var(--border); }
.rule-hairline{ border:none; border-top:1px solid var(--border); }

/* ===== Layout ===== */
.section{ padding:4.5rem 0; }
@media(min-width:768px){ .section{ padding:5.5rem 0; } }

.section.inverted{
  background:var(--muted);
  color:var(--foreground);
}

/* ===== Nav ===== */
.nav{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,0.85);
  backdrop-filter:blur(6px);
  border-bottom:1px solid var(--border);
}
.nav-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:0.9rem 0;
}
.nav-logo{
  font-size:1.05rem;
  font-weight:700;
  letter-spacing:-0.01em;
  text-decoration:none;
  display:flex; align-items:center; gap:0.5rem;
}
.nav-logo::before{
  content:"";
  width:22px; height:22px;
  border-radius:6px;
  background:var(--foreground);
  display:inline-block;
}
.nav-links{
  display:flex; align-items:center; gap:1.75rem;
  font-size:0.9rem;
  font-weight:500;
  color:var(--muted-fg);
}
.nav-links a{ text-decoration:none; }
.nav-links a:not(.btn):hover{ color:var(--foreground); }

/* ===== Buttons ===== */
.btn{
  display:inline-flex; align-items:center; gap:0.5rem;
  font-family:var(--font-body);
  font-size:0.9rem;
  font-weight:600;
  text-decoration:none;
  border-radius:var(--radius-sm);
  cursor:pointer;
  transition:background-color 120ms ease, color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}
.btn-primary{
  background:var(--foreground);
  color:#FFFFFF;
  border:1px solid var(--foreground);
  padding:0.6rem 1.1rem;
}
.btn-primary:hover{ background:#000000; border-color:#000000; }

.btn-outline{
  background:var(--background);
  color:var(--foreground);
  border:1px solid var(--border-strong);
  padding:0.6rem 1.1rem;
  box-shadow:var(--card-shadow);
}
.btn-outline:hover{ background:var(--muted); }

.btn-outline.on-dark{ background:var(--background); color:var(--foreground); border-color:var(--border-strong); }
.btn-outline.on-dark:hover{ background:var(--muted); }

.btn-ghost{
  background:none;
  border:none;
  padding:0;
  color:var(--accent);
  text-decoration:none;
}
.btn-ghost:hover{ color:var(--accent-hover); text-decoration:underline; }

.btn:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:2px;
}

/* ===== Cards ===== */
.card{
  background:var(--background);
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  box-shadow:var(--card-shadow);
  padding:2rem;
}

.feature-card{
  padding:1.75rem;
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  background:var(--background);
  transition:box-shadow 120ms ease, border-color 120ms ease;
}
.feature-card:hover{
  box-shadow:var(--card-shadow);
  border-color:var(--border-strong);
}

.feature-num{
  font-family:var(--font-mono);
  font-size:0.75rem;
  color:var(--muted-fg);
  font-weight:600;
}

/* ===== Footer ===== */
.footer{
  padding:2.5rem 0;
  border-top:1px solid var(--border);
}
.footer-inner{
  display:flex; flex-wrap:wrap; gap:1rem;
  align-items:center; justify-content:space-between;
  font-size:0.85rem;
  color:var(--muted-fg);
}

/* ===== Focus rings ===== */
a:focus-visible, button:focus-visible, input:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:2px;
}

@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior:auto !important; transition:none !important; animation:none !important; }
}
