:root {
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1180px;
}

/* ========================================================= */
/* THEME: LIGHT DEFAULT                                      */
/* ========================================================= */
.site-shell[data-theme="light"] {
  --bg: #f6f7fb;
  --bg-2: #eef1f8;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-2: rgba(255, 255, 255, 0.94);
  --border: rgba(77, 87, 122, 0.12);
  --text: #151826;
  --muted: #5f6780;
  --heading: #0f172a;
  --purple-1: #6d28d9;
  --purple-2: #8b5cf6;
  --purple-3: #a855f7;
  --shadow: 0 24px 60px rgba(65, 72, 105, 0.12);
  --orb-1: rgba(139, 92, 246, 0.18);
  --orb-2: rgba(168, 85, 247, 0.14);
  --soft-section: linear-gradient(180deg, #f8f9fd 0%, #f2f4fb 100%);
  --topbar-bg: rgba(246, 247, 251, 0.82);
  --topbar-border: rgba(77, 87, 122, 0.08);
  --hero-bg:
    radial-gradient(circle at 10% 10%, rgba(139, 92, 246, 0.10), transparent 26%),
    radial-gradient(circle at 90% 0%, rgba(168, 85, 247, 0.08), transparent 24%),
    linear-gradient(180deg, #fafbff 0%, #f3f5fb 48%, #f6f7fb 100%);
  --btn-secondary-bg: rgba(255, 255, 255, 0.75);
  --btn-secondary-text: #1f2937;
  --success-bg: rgba(34, 197, 94, 0.10);
  --success-border: rgba(34, 197, 94, 0.22);
  --success-text: #157347;
  --error-bg: rgba(239, 68, 68, 0.08);
  --error-border: rgba(239, 68, 68, 0.20);
  --error-text: #b42318;
}

/* ========================================================= */
/* THEME: DARK                                               */
/* ========================================================= */
.site-shell[data-theme="dark"] {
  --bg: #070812;
  --bg-2: #0b0d1a;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-2: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.1);
  --text: #f6f7fb;
  --muted: #aeb4c7;
  --heading: #ffffff;
  --purple-1: #6d28d9;
  --purple-2: #8b5cf6;
  --purple-3: #a855f7;
  --shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
  --orb-1: rgba(124, 58, 237, 0.35);
  --orb-2: rgba(168, 85, 247, 0.24);
  --soft-section: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  --topbar-bg: rgba(7, 8, 18, 0.78);
  --topbar-border: rgba(255,255,255,0.05);
  --hero-bg:
    radial-gradient(circle at 10% 10%, rgba(139, 92, 246, 0.15), transparent 26%),
    radial-gradient(circle at 90% 0%, rgba(168, 85, 247, 0.10), transparent 24%),
    linear-gradient(180deg, #06070f 0%, #0b0d18 48%, #070812 100%);
  --btn-secondary-bg: rgba(255, 255, 255, 0.05);
  --btn-secondary-text: #ffffff;
  --success-bg: rgba(34, 197, 94, 0.12);
  --success-border: rgba(34, 197, 94, 0.28);
  --success-text: #d6ffe5;
  --error-bg: rgba(239, 68, 68, 0.12);
  --error-border: rgba(239, 68, 68, 0.28);
  --error-text: #ffdcdc;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Inter', sans-serif; background: #ffffff; color: #111827; }

.site-shell {
  min-height: 100vh;
  background: var(--hero-bg);
  color: var(--text);
  transition: background 0.25s ease, color 0.25s ease;
}

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

.container { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; }
.narrow { max-width: 860px; }
.center { text-align: center; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--topbar-border);
}

.topbar-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; }
.brand-logo { width: 44px; height: 44px; object-fit: contain; }
.brand-name { font-size: 1.05rem; color: var(--heading); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--muted); transition: 0.2s ease; }
.nav a:hover { color: var(--heading); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle,
.menu-button {
  border: 1px solid var(--border);
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
  padding: 10px 14px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 700;
}

.theme-toggle { display: inline-flex; align-items: center; gap: 8px; }
.theme-toggle-icon { width: 18px; display: inline-grid; place-items: center; }
.menu-button { display: none; }
.mobile-nav { display: none; }

.hero { position: relative; padding: 72px 0 56px; overflow: hidden; }
.hero-orb { position: absolute; border-radius: 999px; filter: blur(70px); pointer-events: none; }
.hero-orb-1 { width: 380px; height: 380px; left: -120px; top: 60px; background: var(--orb-1); }
.hero-orb-2 { width: 280px; height: 280px; right: 80px; top: 40px; background: var(--orb-2); }

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 42px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--purple-2);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  max-width: 700px;
  color: var(--heading);
}

.hero-text {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
  max-width: 680px;
  margin: 0 0 12px;
}

.hero-text-strong { color: var(--heading); }

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 16px;
  font-weight: 800;
  transition: 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--purple-2), var(--purple-3));
  color: white;
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.24);
}

.btn-secondary {
  background: var(--btn-secondary-bg);
  border: 1px solid var(--border);
  color: var(--btn-secondary-text);
}

.btn-full { width: 100%; }

.hero-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 26px;
}

.hero-stat {
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.hero-stat strong {
  display: block;
  margin-bottom: 8px;
  font-size: 0.98rem;
  color: var(--heading);
}

.hero-stat span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.hero-visual { position: relative; }

.hero-main-card {
  padding: 18px;
  border-radius: var(--radius-xl);
  background: var(--surface-2);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-main-image {
  border-radius: 22px;
  overflow: hidden;
  background: var(--bg-2);
  aspect-ratio: 1 / 1;
}

.hero-main-image img { width: 100%; height: 100%; object-fit: cover; }

.hero-main-content { padding: 18px 6px 6px; }

.hero-main-pill {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.12);
  color: var(--purple-2);
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.hero-main-content h3 {
  margin: 0 0 10px;
  font-size: 1.45rem;
  color: var(--heading);
}

.hero-main-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.hero-floating-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}

.floating-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  backdrop-filter: blur(10px);
}

.floating-card strong {
  display: block;
  margin-bottom: 5px;
  font-size: 0.96rem;
  color: var(--heading);
}

.floating-card span { display: block; color: var(--muted); font-size: 0.88rem; }

.floating-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}

.floating-purple { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.floating-yellow { background: linear-gradient(135deg, #f59e0b, #facc15); color: #241800; }
.floating-green { background: linear-gradient(135deg, #059669, #34d399); }
.floating-blue { background: linear-gradient(135deg, #2563eb, #60a5fa); }

.section { padding: 88px 0; }

.section-soft,
.section-dark { background: var(--soft-section); }

.section-header { margin-bottom: 34px; }

.section-header h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--heading);
}

.section-header p,
.benefit-card p,
.component-card p,
.example-card p,
.feature-band-copy p,
.footer-text,
.pricing-note {
  color: var(--muted);
  line-height: 1.75;
}

.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.benefit-card,
.component-card,
.example-card,
.price-card,
.signup-card {
  border-radius: 24px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.benefit-card { padding: 24px; }

.benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: rgba(139,92,246,0.12);
  color: var(--purple-2);
  font-weight: 800;
  font-size: 1.1rem;
}

.benefit-card h3,
.component-card h3,
.example-content h3,
.feature-band-copy h2,
.price-plan { color: var(--heading); }

.benefit-card h3 { margin: 0 0 10px; }

.component-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.component-card { padding: 24px; }

.component-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.component-icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(139, 92, 246, 0.12);
  color: var(--purple-2);
  font-size: 1.1rem;
  font-weight: 900;
}

.component-meta {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.component-card h3 { margin: 0 0 10px; }

.example-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.example-card { overflow: hidden; }

.example-image-wrap {
  aspect-ratio: 1.2 / 0.85;
  overflow: hidden;
  background: var(--bg-2);
}

.example-image { width: 100%; height: 100%; object-fit: cover; }

.example-content { padding: 22px; }

.example-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.10);
  color: var(--purple-2);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.feature-band {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 24px;
  align-items: center;
  padding: 26px;
  border-radius: 28px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.feature-band-visual {
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 1.15 / 0.85;
}

.feature-band-visual img { width: 100%; height: 100%; object-fit: cover; }

.signup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
}

.signup-card { padding: 28px; }

.form-label {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 8px;
  color: var(--heading);
}

.form-input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.72);
  color: var(--heading);
  margin-bottom: 18px;
  outline: none;
}

.site-shell[data-theme="dark"] .form-input {
  background: rgba(255,255,255,0.06);
  color: white;
}

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

.form-note {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 14px 0 0;
}

.success-box {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--success-text);
}

.error-box {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  color: var(--error-text);
}

.pricing-group-title {
  margin: 26px 0 18px;
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--heading);
}

.pricing-group-gap { margin-top: 44px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.company-grid { grid-template-columns: repeat(2, 1fr); }

.price-card { position: relative; padding: 28px; }

.price-card ul {
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
  margin: 18px 0 26px;
}

.price-value {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
  color: var(--heading);
}

.price-period { color: var(--muted); margin-top: 8px; }

.price-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 7px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple-2), var(--purple-3));
  color: white;
  font-size: 0.76rem;
  font-weight: 800;
}

.featured { border-color: rgba(139,92,246,0.30); }
.featured-dark { border-color: rgba(139,92,246,0.24); }

.footer {
  padding: 60px 0 22px;
  border-top: 1px solid var(--topbar-border);
  background: rgba(0,0,0,0.02);
}

.site-shell[data-theme="dark"] .footer { background: rgba(0,0,0,0.12); }

.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 26px; }
.footer-brand { margin-bottom: 14px; }

.footer h4 {
  margin-top: 0;
  margin-bottom: 14px;
  color: var(--heading);
}

.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li + li { margin-top: 10px; }
.footer li a { color: var(--muted); }
.footer li a:hover { color: var(--heading); }

.footer-bottom {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--topbar-border);
  color: var(--muted);
  font-size: 0.92rem;
}

/* ========================================================= */
/* CONTENT PAGES (vision, about, privacy, terms, etc.)       */
/* ========================================================= */
.page-shell { min-height: 100vh; background: var(--hero-bg); color: var(--text); }

.page-wrap {
  width: min(1000px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 96px;
}

.page-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 56px 64px;
  backdrop-filter: blur(12px);
}

.page-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.page-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
  font-weight: 700;
  transition: 0.2s ease;
}

.page-back:hover { transform: translateY(-1px); }

.page-hero { max-width: 760px; margin: 0 0 36px; }
.page-hero .eyebrow { margin-bottom: 14px; }

.page-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: var(--heading);
}

.page-muted { color: var(--muted); font-size: 1rem; line-height: 1.8; }
.page-content { max-width: 760px; }

.page-content p,
.page-content li {
  color: var(--muted);
  line-height: 1.9;
  font-size: 1.06rem;
}

.page-content p { margin: 0 0 22px; }

.page-content h2 {
  margin: 42px 0 12px;
  font-size: 1.45rem;
  line-height: 1.2;
  color: var(--heading);
}

.page-content ul { padding-left: 22px; margin: 0 0 22px; }

.page-content strong,
.page-content b { color: var(--heading); }

.page-content a { color: var(--purple-2); }
.page-content a:hover { color: var(--purple-3); }

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

@media (max-width: 1100px) {
  .hero-grid,
  .benefit-grid,
  .component-grid,
  .example-grid,
  .feature-band,
  .signup-grid,
  .pricing-grid,
  .company-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .desktop-nav { display: none; }
  .menu-button { display: inline-flex; }

  .mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 0 16px 16px;
  }

  .hero-grid,
  .hero-stat-row,
  .hero-floating-grid,
  .benefit-grid,
  .component-grid,
  .example-grid,
  .feature-band,
  .signup-grid,
  .pricing-grid,
  .company-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero { padding-top: 48px; }
  .section { padding: 72px 0; }

  .hero h1 { font-size: clamp(2.4rem, 12vw, 4rem); }

  .page-wrap {
    width: min(100%, calc(100% - 20px));
    padding: 26px 0 72px;
  }

  .page-card {
    padding: 28px 20px;
    border-radius: 22px;
  }

  .page-hero h1 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .page-content p,
  .page-content li {
    font-size: 1rem;
    line-height: 1.8;
  }
}
