/* ---------- Design tokens ---------- */
:root {
  --bg: #0f172a;
  --bg-elev: #111c33;
  --surface: #ffffff;
  --surface-soft: #f6f7fb;
  --text: #0f172a;
  --text-muted: #4b5565;
  --text-invert: #f8fafc;
  --primary: #6366f1;
  --primary-700: #4f46e5;
  --accent: #fde68a;
  --border: #e5e7eb;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --max-width: 1100px;
  --space: clamp(1rem, 2vw, 1.5rem);
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary-700); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space);
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.2px;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--accent) 0 35%, var(--primary) 36% 100%);
  box-shadow: 0 4px 12px rgba(99,102,241,0.4);
}
.brand-name { font-size: 1.1rem; }
.nav-links {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 0.5rem;
}
.nav-links a {
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
}
.nav-links a:hover { background: var(--surface-soft); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-size: 1rem;
  line-height: 1;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 16px rgba(99,102,241,0.35);
}
.btn-primary:hover { background: var(--primary-700); }
.btn-secondary {
  background: var(--surface-soft);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary-700);
}
.btn-ghost:hover { background: rgba(99,102,241,0.08); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 90% -10%, rgba(99,102,241,0.18), transparent 60%),
    radial-gradient(900px 400px at -10% 10%, rgba(253,230,138,0.35), transparent 60%),
    linear-gradient(180deg, #ffffff, #f6f7fb);
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 5rem);
}
.hero-inner { text-align: center; max-width: 800px; margin-inline: auto; }
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--primary-700);
  background: rgba(99,102,241,0.1);
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  margin: 0 0 1rem;
}
.hero-title {
  font-size: clamp(2.1rem, 5.2vw, 3.5rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
.accent {
  background: linear-gradient(90deg, var(--primary), #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--text-muted);
  margin: 0 auto 1.75rem;
  max-width: 60ch;
}
.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1rem;
  margin: 0;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-stats > div { text-align: center; }
.hero-stats dt { font-weight: 700; font-size: 1.3rem; color: var(--text); }
.hero-stats dd { margin: 0.15rem 0 0; color: var(--text-muted); font-size: 0.9rem; }

/* ---------- Sections ---------- */
section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-head { text-align: center; margin-bottom: 2rem; }
.section-head h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}
.section-head p { color: var(--text-muted); margin: 0; }

/* ---------- Features ---------- */
.features { background: var(--surface-soft); }
.feature-grid {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
}
.feature-icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  font-size: 1.4rem;
  border-radius: 10px;
  background: rgba(99,102,241,0.1);
  margin-bottom: 0.75rem;
}
.feature-card h3 { margin: 0 0 0.35rem; font-size: 1.1rem; }
.feature-card p { margin: 0; color: var(--text-muted); }

/* ---------- About ---------- */
.about-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (min-width: 760px) {
  .about-inner { grid-template-columns: 1.3fr 1fr; gap: 2rem; }
}
.about h2 { margin-top: 0; font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.about p { color: var(--text-muted); }
.about-card {
  background: linear-gradient(135deg, #eef2ff, #ffffff);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.about-card h3 { margin: 0 0 0.5rem; }
.about-card code {
  background: #0f172a;
  color: #fde68a;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
}
.greet-output {
  margin: 0.75rem 0 0;
  font-weight: 600;
  color: var(--primary-700);
  min-height: 1.4em;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg);
  color: var(--text-invert);
  padding: 1.5rem 0;
  margin-top: 1rem;
}
.site-footer a { color: var(--accent); }
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  text-align: center;
}
@media (min-width: 640px) {
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}
.site-footer p { margin: 0; opacity: 0.9; font-size: 0.95rem; }

/* ---------- Small screens tweak ---------- */
@media (max-width: 480px) {
  .nav-links li:not(:last-child) { display: none; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); font-size: 0.9rem; }
  .hero-stats dt { font-size: 1.05rem; }
}

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