/* GDS — Design System
   Brand: Blue / White / Dark Gray. Premium, modern, corporate. */

:root {
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --blue-100: #dbeafe;
  --blue-50:  #eff6ff;

  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50:  #f9fafb;

  --success: #16a34a;
  --danger:  #dc2626;
  --warning: #d97706;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(17,24,39,.06);
  --shadow-md: 0 4px 16px rgba(17,24,39,.08);
  --shadow-lg: 0 12px 32px rgba(17,24,39,.12);

  /* Light theme (default) */
  --bg:        #ffffff;
  --bg-alt:    var(--gray-50);
  --surface:   #ffffff;
  --border:    var(--gray-200);
  --text:      var(--gray-900);
  --text-dim:  var(--gray-600);
  --accent:    var(--blue-600);
  --accent-hover: var(--blue-700);
  --header-bg: rgba(255,255,255,.85);
}

:root[data-theme="dark"] {
  --bg:        var(--gray-900);
  --bg-alt:    #0b1220;
  --surface:   var(--gray-800);
  --border:    #2b3543;
  --text:      #f3f4f6;
  --text-dim:  #9ca3af;
  --accent:    var(--blue-500);
  --accent-hover: var(--blue-400);
  --header-bg: rgba(17,24,39,.85);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        var(--gray-900);
    --bg-alt:    #0b1220;
    --surface:   var(--gray-800);
    --border:    #2b3543;
    --text:      #f3f4f6;
    --text-dim:  #9ca3af;
    --accent:    var(--blue-500);
    --accent-hover: var(--blue-400);
    --header-bg: rgba(17,24,39,.85);
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .25s ease, color .25s ease;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Header / Nav ─────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1180px; margin: 0 auto;
}
.brand {
  display: flex; align-items: center; gap: .6rem;
  font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em;
}
.brand .mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 1rem;
  box-shadow: var(--shadow-sm);
}
.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-links a {
  font-size: .92rem; font-weight: 500; color: var(--text-dim);
  transition: color .15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

.nav-actions { display: flex; align-items: center; gap: .75rem; }

.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .15s ease, transform .15s ease;
}
.theme-toggle:hover { border-color: var(--accent); transform: translateY(-1px); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.nav-toggle {
  display: none; width: 40px; height: 40px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--surface); cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); margin: 4px auto; border-radius: 2px; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1.5rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .92rem; border: 1px solid transparent;
  cursor: pointer; transition: all .18s ease;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; }
.btn-lg { padding: .9rem 2rem; font-size: 1rem; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding: 6rem 0 5rem;
  background: radial-gradient(circle at 15% -10%, var(--blue-50), transparent 55%);
}
:root[data-theme="dark"] .hero { background: radial-gradient(circle at 15% -10%, rgba(37,99,235,.15), transparent 55%); }
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .9rem; border-radius: 999px;
  background: var(--blue-50); color: var(--accent);
  font-size: .8rem; font-weight: 700; letter-spacing: .02em;
  margin-bottom: 1.25rem;
}
:root[data-theme="dark"] .eyebrow { background: rgba(37,99,235,.15); }
.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.2rem); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.12; margin-bottom: 1.25rem;
}
.hero h1 span { color: var(--accent); }
.hero p.lead { font-size: 1.08rem; color: var(--text-dim); max-width: 46ch; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-panel .stat-row { display: flex; justify-content: space-between; padding: .85rem 0; border-bottom: 1px solid var(--border); }
.hero-panel .stat-row:last-child { border-bottom: none; }
.hero-panel .stat-label { color: var(--text-dim); font-size: .85rem; }
.hero-panel .stat-value { font-weight: 700; }
.badge-live { display: inline-flex; align-items: center; gap: .4rem; font-size: .75rem; font-weight: 700; color: var(--success); }
.badge-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(22,163,74,.2); }

/* ── Section ──────────────────────────────────────────────────────────────── */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 3rem; }
.section-head .eyebrow { margin-bottom: 1rem; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: .75rem; }
.section-head p { color: var(--text-dim); }

.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.75rem;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue-400); }
.card .icon-wrap {
  width: 46px; height: 46px; border-radius: var(--radius-sm);
  background: var(--blue-50); color: var(--accent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem;
}
:root[data-theme="dark"] .card .icon-wrap { background: rgba(37,99,235,.15); }
.card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }
.card p { color: var(--text-dim); font-size: .92rem; }
.card ul.check-list { margin-top: 1rem; }
.check-list li { display: flex; align-items: flex-start; gap: .5rem; font-size: .88rem; color: var(--text-dim); padding: .3rem 0; }
.check-list li::before { content: '✓'; color: var(--success); font-weight: 800; }

/* Pricing */
.price-card { text-align: center; position: relative; }
.price-card.featured { border-color: var(--accent); box-shadow: var(--shadow-md); }
.price-card .price-tag { font-size: 2.1rem; font-weight: 800; margin: .75rem 0 .25rem; }
.price-card .price-tag small { font-size: .95rem; font-weight: 500; color: var(--text-dim); }
.price-card .featured-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700;
  padding: .3rem .8rem; border-radius: 999px;
}

/* FAQ */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: .85rem; overflow: hidden; background: var(--surface); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.4rem; cursor: pointer; font-weight: 600; font-size: .95rem;
}
.faq-q .chev { transition: transform .2s ease; color: var(--text-dim); flex-shrink: 0; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-item.open .faq-a { max-height: 240px; }
.faq-a p { padding: 0 1.4rem 1.2rem; color: var(--text-dim); font-size: .9rem; }

/* Forms */
.auth-wrap {
  min-height: calc(100vh - 74px);
  display: flex; align-items: center; justify-content: center;
  padding: 3rem 1.5rem; background: var(--bg-alt);
}
.auth-card {
  width: 100%; max-width: 440px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 2.5rem; box-shadow: var(--shadow-lg);
}
.auth-card h1 { font-size: 1.5rem; font-weight: 800; margin-bottom: .35rem; letter-spacing: -.02em; }
.auth-card p.sub { color: var(--text-dim); font-size: .9rem; margin-bottom: 1.75rem; }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-size: .84rem; font-weight: 600; margin-bottom: .4rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .72rem .9rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg); color: var(--text);
  font-size: .92rem; font-family: inherit; transition: border-color .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field-hint { font-size: .78rem; color: var(--text-dim); margin-top: .35rem; }
.auth-foot { text-align: center; margin-top: 1.5rem; font-size: .88rem; color: var(--text-dim); }
.auth-foot a { color: var(--accent); font-weight: 600; }

.alert { padding: .85rem 1.1rem; border-radius: var(--radius-sm); font-size: .87rem; margin-bottom: 1.25rem; border: 1px solid transparent; }
.alert-success { background: rgba(22,163,74,.1); color: var(--success); border-color: rgba(22,163,74,.25); }
.alert-error   { background: rgba(220,38,38,.1); color: var(--danger); border-color: rgba(220,38,38,.25); }
.alert-info    { background: var(--blue-50); color: var(--accent); border-color: var(--blue-100); }
:root[data-theme="dark"] .alert-info { background: rgba(37,99,235,.12); }

/* Footer */
.site-footer { background: var(--gray-900); color: var(--gray-300); padding: 3.5rem 0 1.75rem; }
.site-footer .brand { color: #fff; margin-bottom: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid #26303f; }
.footer-grid h4 { color: #fff; font-size: .85rem; font-weight: 700; margin-bottom: 1rem; letter-spacing: .03em; text-transform: uppercase; }
.footer-grid ul li { margin-bottom: .6rem; }
.footer-grid ul li a { color: var(--gray-300); font-size: .88rem; transition: color .15s ease; }
.footer-grid ul li a:hover { color: var(--blue-400); }
.footer-grid p { color: var(--gray-500); font-size: .88rem; max-width: 32ch; margin-top: .5rem; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 1.5rem; font-size: .82rem; color: var(--gray-500); flex-wrap: wrap; gap: .75rem; }

/* Simple page header for interior pages */
.page-hero { padding: 3.5rem 0 2.5rem; text-align: center; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.page-hero .eyebrow { margin-bottom: 1rem; }
.page-hero h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: .6rem; }
.page-hero p { color: var(--text-dim); max-width: 52ch; margin: 0 auto; }

.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.3rem; font-weight: 700; margin: 2rem 0 .75rem; }
.prose p { color: var(--text-dim); margin-bottom: 1rem; }

/* Simple placeholder dashboard shell (auth/admin layouts) */
.shell { display: flex; min-height: 100vh; }
.shell-sidebar {
  width: 250px; flex-shrink: 0; background: var(--surface); border-right: 1px solid var(--border);
  padding: 1.5rem 1rem; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.shell-sidebar .brand { padding: .5rem .5rem 1.5rem; }
.shell-sidebar nav a {
  display: flex; align-items: center; gap: .7rem; padding: .65rem .8rem; border-radius: var(--radius-sm);
  font-size: .88rem; font-weight: 500; color: var(--text-dim); margin-bottom: .15rem;
}
.shell-sidebar nav a:hover, .shell-sidebar nav a.active { background: var(--blue-50); color: var(--accent); }
:root[data-theme="dark"] .shell-sidebar nav a:hover, :root[data-theme="dark"] .shell-sidebar nav a.active { background: rgba(37,99,235,.15); }
.shell-main { flex: 1; min-width: 0; }
.shell-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.75rem; border-bottom: 1px solid var(--border); background: var(--surface);
  position: sticky; top: 0; z-index: 10;
}
.shell-content { padding: 1.75rem; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-bottom: 2rem; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.4rem; }
.stat-card .label { font-size: .8rem; color: var(--text-dim); margin-bottom: .5rem; }
.stat-card .value { font-size: 1.5rem; font-weight: 800; }

/* Mobile */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-links { position: fixed; inset: 74px 0 0 0; background: var(--bg); flex-direction: column; align-items: flex-start; padding: 1.5rem; gap: 0; border-top: 1px solid var(--border); transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { width: 100%; padding: .9rem 0; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .stat-cards { grid-template-columns: 1fr; }
  .shell-sidebar { position: fixed; left: -260px; z-index: 200; transition: left .2s ease; }
  .shell-sidebar.open { left: 0; }
}
