@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ============================================================
   CSS VARIABLES — DARK (default)
   ============================================================ */
:root {
  --bg-primary:    #0d0d0d;
  --bg-secondary:  #171717;
  --bg-card:       #1c1c1c;
  --bg-input:      #1c1c1c;
  --text-primary:  #f8f8f8;
  --text-secondary:#a1a1aa;
  --text-muted:    #52525b;
  --accent:        #3ECF8E;
  --accent-hover:  #2bba7e;
  --accent-dim:    rgba(62, 207, 142, 0.1);
  --border:        #2e2e2e;
  --border-light:  #222222;
  --badge-bg:      rgba(62, 207, 142, 0.15);
  --shadow:        0 8px 40px rgba(0, 0, 0, 0.7);
  --shadow-sm:     0 2px 12px rgba(0, 0, 0, 0.5);
  --nav-height:    64px;
  --radius:        10px;
  --radius-sm:     6px;
}

/* ============================================================
   CSS VARIABLES — LIGHT
   ============================================================ */
[data-theme="light"] {
  --bg-primary:    #ffffff;
  --bg-secondary:  #f9fafb;
  --bg-card:       #ffffff;
  --bg-input:      #ffffff;
  --text-primary:  #171717;
  --text-secondary:#4b5563;
  --text-muted:    #9ca3af;
  --accent:        #10b981;
  --accent-hover:  #059669;
  --accent-dim:    rgba(16, 185, 129, 0.08);
  --border:        #e5e7eb;
  --border-light:  #f3f4f6;
  --badge-bg:      rgba(16, 185, 129, 0.1);
  --shadow:        0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-sm:     0 2px 8px rgba(0, 0, 0, 0.05);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.25s ease, color 0.25s ease;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
}

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

ul {
  list-style: none;
}

/* ============================================================
   COMING SOON BANNER
   ============================================================ */
.coming-soon-banner {
  width: 100%;
  padding: 9px 16px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(90deg, #052e16, #3ECF8E, #052e16);
  background-size: 300% 100%;
  animation: shimmer 6s linear infinite;
  letter-spacing: 0.01em;
  position: relative;
  z-index: 100;
}

@keyframes shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* ============================================================
   NAV
   ============================================================ */
nav {
  position: sticky;
  top: 0;
  z-index: 90;
  height: var(--nav-height);
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  max-width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #3ECF8E, #2bba7e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  letter-spacing: -0.05em;
  flex-shrink: 0;
}

.nav-logo-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-logo-text span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background 0.2s ease;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: var(--accent-dim);
}

.nav-links a.active {
  color: var(--accent);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.powered-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--accent-dim);
  border: 1px solid rgba(62, 207, 142, 0.25);
  color: var(--accent);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s;
}

.powered-badge:hover {
  background: rgba(62, 207, 142, 0.18);
  color: var(--accent);
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  color: var(--text-secondary);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}

/* ============================================================
   NAV LINK PLAIN
   ============================================================ */
.nav-link-plain {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.nav-link-plain:hover {
  color: var(--text-primary);
  background: var(--accent-dim);
}

/* ============================================================
   MEGA DROPDOWN NAV
   ============================================================ */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
  background: none;
  border: none;
  font-family: inherit;
  white-space: nowrap;
}

.nav-dropdown-trigger:hover,
.nav-dropdown.open .nav-dropdown-trigger {
  color: var(--text-primary);
  background: var(--accent-dim);
}

.nav-dropdown-trigger .chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
  opacity: 0.6;
  flex-shrink: 0;
}

.nav-dropdown.open .nav-dropdown-trigger .chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: none;
  min-width: 560px;
  z-index: 200;
  padding: 8px;
  animation: dropIn 0.15s ease;
}

.nav-dropdown.open .nav-dropdown-menu {
  display: flex;
}

@keyframes dropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Right-align dropdowns that would overflow off-screen */
.nav-dropdown-menu.align-right {
  left: auto;
  right: 0;
}

.dropdown-col {
  padding: 8px;
  flex: 1;
  min-width: 180px;
}

.dropdown-col + .dropdown-col {
  border-left: 1px solid var(--border);
}

.dropdown-col-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 4px 10px 8px;
}

.dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  transition: background 0.12s;
}

.dropdown-item:hover {
  background: var(--accent-dim);
  color: inherit;
}

.dropdown-item-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.dropdown-item-body {}
.dropdown-item-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.dropdown-item-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

.dropdown-link {
  display: block;
  padding: 7px 10px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all 0.12s;
}
.dropdown-link:hover {
  color: var(--accent);
  background: var(--accent-dim);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
  line-height: 1.4;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(62, 207, 142, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent-dim);
  color: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--accent-dim);
  color: var(--text-primary);
  border-color: var(--accent);
}

.btn-lg {
  padding: 13px 28px;
  font-size: 1rem;
  border-radius: var(--radius);
}

/* ============================================================
   CONTAINER
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-sm {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   CARD
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow), 0 0 0 1px var(--accent-dim);
  transform: translateY(-2px);
}

/* ============================================================
   BADGE
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-gray {
  background: var(--border-light);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.badge-green {
  background: var(--badge-bg);
  color: var(--accent);
  border: 1px solid rgba(62, 207, 142, 0.25);
}

[data-theme="light"] .badge-green {
  border-color: rgba(16, 185, 129, 0.25);
}

/* ============================================================
   CODE BLOCK
   ============================================================ */
.code-block {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.85rem;
  line-height: 1.7;
  overflow-x: auto;
  color: var(--text-secondary);
  white-space: pre;
}

.code-block .kw  { color: #3ECF8E; font-weight: 600; }
.code-block .str { color: #a7f3d0; }
.code-block .cm  { color: var(--text-muted); font-style: italic; }
.code-block .ty  { color: #6ee7b7; }
.code-block .num { color: #34d399; }

[data-theme="light"] .code-block .kw  { color: #047857; font-weight: 600; }
[data-theme="light"] .code-block .str { color: #065f46; }
[data-theme="light"] .code-block .cm  { color: #9ca3af; font-style: italic; }
[data-theme="light"] .code-block .ty  { color: #059669; }
[data-theme="light"] .code-block .num { color: #047857; }

/* ============================================================
   SECTION HEADING & SUB
   ============================================================ */
.section-heading {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.2;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-top: 10px;
  line-height: 1.65;
}

/* ============================================================
   GRID
   ============================================================ */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

/* ============================================================
   DIVIDER
   ============================================================ */
.divider {
  height: 1px;
  background: var(--border);
  border: none;
  margin: 60px 0;
}

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header {
  padding: 72px 24px 48px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

.page-header h1 {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-top: 12px;
}

.page-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-top: 12px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 88px 24px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(62, 207, 142, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(62, 207, 142, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(62, 207, 142, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--badge-bg);
  border: 1px solid rgba(62, 207, 142, 0.25);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.03em;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 22px;
}

.hero h1 span {
  color: var(--accent);
  display: block;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

/* ============================================================
   COMING SOON PILL
   ============================================================ */
.coming-soon-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(62, 207, 142, 0.12);
  border: 1px solid rgba(62, 207, 142, 0.2);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.cs-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ECF8E;
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.75); }
}

/* ============================================================
   FEATURE CARD
   ============================================================ */
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow), 0 0 20px rgba(62, 207, 142, 0.08);
  transform: translateY(-3px);
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--accent-dim);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* ============================================================
   WOOLEY SECTION
   ============================================================ */
.wooley-section {
  padding: 72px 24px;
  position: relative;
  overflow: hidden;
}

.wooley-section::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(62, 207, 142, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.wooley-inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 52px;
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.wooley-inner h2 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.wooley-inner p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 600px;
}

/* Chat Bubbles */
.chat-demo {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-bubble {
  max-width: 75%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.55;
}

.chat-bubble.user {
  background: var(--accent-dim);
  border: 1px solid rgba(62, 207, 142, 0.2);
  border-radius: 12px 12px 4px 12px;
  color: var(--text-primary);
  margin-left: auto;
}

.chat-bubble.wooley {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px 12px 12px 4px;
  color: var(--text-secondary);
  margin-right: auto;
}

.chat-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

/* ============================================================
   STAT ROW
   ============================================================ */
.stat-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  overflow: hidden;
}

.stat {
  flex: 1;
  padding: 28px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.stat:last-child {
  border-right: none;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 500;
}

/* ============================================================
   POWERED BADGE (standalone section)
   ============================================================ */
.powered-section {
  padding: 72px 24px;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

.powered-section h2 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.powered-section p {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 28px;
  line-height: 1.65;
}

/* ============================================================
   WAITLIST SECTION
   ============================================================ */
.waitlist-section {
  padding: 72px 24px;
  text-align: center;
}

.waitlist-section h2 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.waitlist-section p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.waitlist-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 480px;
  margin: 0 auto;
}

.waitlist-form input {
  flex: 1;
  min-width: 220px;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.waitlist-form input::placeholder {
  color: var(--text-muted);
}

.waitlist-form input:focus {
  border-color: var(--accent);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 56px 24px 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.6;
  max-width: 260px;
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col ul li a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 18px 0;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--accent);
}

.footer-bottom a:hover {
  color: var(--accent-hover);
}

/* ============================================================
   AUTH PAGE
   ============================================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: var(--bg-primary);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.auth-card h1 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.auth-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* ============================================================
   FORM COMPONENTS
   ============================================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input {
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(62, 207, 142, 0.15);
}

/* ============================================================
   INSTALL TABS
   ============================================================ */
.install-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: -1px;
  flex-wrap: wrap;
}

.install-tab {
  padding: 9px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  cursor: pointer;
  background: none;
  font-family: inherit;
  transition: color 0.2s ease, background 0.2s ease;
}

.install-tab:hover {
  color: var(--text-primary);
  background: var(--accent-dim);
}

.install-tab.active {
  color: var(--accent);
  border-color: var(--border);
  border-bottom-color: var(--bg-card);
  background: var(--bg-card);
}

/* ============================================================
   METHOD TABLE
   ============================================================ */
.method-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.method-table th {
  text-align: left;
  padding: 10px 14px;
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}

.method-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  vertical-align: top;
  line-height: 1.5;
}

.method-table tr:last-child td {
  border-bottom: none;
}

.method-table tr:hover td {
  background: var(--accent-dim);
}

.method-table td:first-child {
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent);
  font-size: 0.82rem;
  white-space: nowrap;
}

/* ============================================================
   SECTION PADDING HELPERS
   ============================================================ */
.section {
  padding: 72px 24px;
}

.section-center {
  text-align: center;
  margin-bottom: 48px;
}

/* ============================================================
   FEATURE DETAIL SECTION
   ============================================================ */
.feature-detail {
  padding: 64px 24px;
  border-top: 1px solid var(--border);
}

.feature-detail-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.feature-detail-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 32px;
}

.feature-detail-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  background: var(--accent-dim);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.feature-detail-title h2 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.feature-detail-title p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ============================================================
   CHECK LIST
   ============================================================ */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.check-list li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ============================================================
   DEVELOPER PAGE SUB-NAV
   ============================================================ */
.dev-subnav {
  position: sticky;
  top: var(--nav-height);
  z-index: 80;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.dev-subnav-inner {
  display: flex;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.dev-subnav a {
  display: block;
  padding: 14px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.dev-subnav a:hover {
  color: var(--text-primary);
  border-bottom-color: var(--border);
}

.dev-subnav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ============================================================
   TRIGGER LIST (Observable)
   ============================================================ */
.trigger-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.trigger-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

.trigger-name {
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent);
  font-size: 0.85rem;
  min-width: 110px;
}

.trigger-desc {
  color: var(--text-secondary);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .wooley-inner {
    padding: 36px 28px;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 600px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .stat-row {
    flex-direction: column;
  }

  .stat {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .stat:last-child {
    border-bottom: none;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero {
    padding: 64px 24px 52px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .wooley-inner {
    padding: 28px 20px;
  }

  .nav-right .powered-badge {
    display: none;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
