:root {
  color-scheme: dark;
  --bg: #080b14;
  --bg-2: #0f172a;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-strong: rgba(15, 23, 42, 0.92);
  --border: rgba(148, 163, 184, 0.22);
  --border-strong: rgba(125, 211, 252, 0.36);
  --text: #f8fafc;
  --muted: #aab5c6;
  --soft: #dbeafe;
  --gradient: linear-gradient(135deg, #8b5cf6 0%, #2563eb 48%, #06b6d4 100%);
  --gradient-soft: linear-gradient(135deg, rgba(139, 92, 246, 0.24), rgba(6, 182, 212, 0.18));
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.38);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --max: 1180px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --glow-one: rgba(99, 102, 241, 0.26);
  --glow-two: rgba(6, 182, 212, 0.18);
  --glow-three: rgba(30, 64, 175, 0.22);
}

html[data-theme="dark"] { color-scheme: dark; }

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f9fc;
  --bg-2: #eef2ff;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: rgba(255, 255, 255, 0.94);
  --border: rgba(99, 102, 241, 0.18);
  --border-strong: rgba(37, 99, 235, 0.34);
  --text: #0f172a;
  --muted: #596579;
  --soft: #334155;
  --gradient-soft: linear-gradient(135deg, rgba(99, 102, 241, 0.14), rgba(6, 182, 212, 0.12));
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  --glow-one: rgba(99, 102, 241, 0.16);
  --glow-two: rgba(6, 182, 212, 0.14);
  --glow-three: rgba(125, 211, 252, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 10%, var(--glow-one), transparent 34%),
    radial-gradient(circle at 82% 4%, var(--glow-two), transparent 32%),
    radial-gradient(circle at 50% 78%, var(--glow-three), transparent 30%),
    var(--bg);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 50;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--text);
  color: #0f172a;
  transition: top 160ms var(--ease);
}

.skip-link:focus { top: 16px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(8, 11, 20, 0.74);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.nav-shell,
.section-wrap,
.footer-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.nav-shell {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.26);
}

.brand-text { font-size: 1.1rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-links a {
  transition: color 160ms var(--ease), transform 160ms var(--ease);
}

.nav-links a:hover { color: var(--text); transform: translateY(-1px); }

.nav-cta {
  color: #fff !important;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--gradient);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.22);
}

.theme-toggle {
  min-height: 38px;
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.68);
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms var(--ease), border-color 160ms var(--ease), background 160ms var(--ease), color 160ms var(--ease);
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
}

.theme-toggle:active { transform: translateY(1px); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.8);
  color: var(--text);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentColor;
}

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

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.92fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #67e8f9;
}

h1,
h2,
h3,
p { margin-top: 0; }

h1 {
  max-width: 780px;
  margin-bottom: 20px;
  font-size: clamp(3rem, 7vw, 5.9rem);
  line-height: 0.9;
  letter-spacing: -0.075em;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.hero-lede,
.section-heading p,
.showcase-card p,
.final-cta-card p {
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-lede { max-width: 660px; margin-bottom: 26px; }

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

.center-actions { justify-content: center; margin-bottom: 0; }

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 170ms var(--ease), box-shadow 170ms var(--ease), border-color 170ms var(--ease), filter 170ms var(--ease);
}

.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn:active { transform: translateY(1px); }

.btn-primary {
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.28);
}

.btn-secondary {
  color: var(--text);
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid var(--border);
}

.btn.full { width: 100%; }

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-proof span,
.showcase-points span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--soft);
  background: rgba(15, 23, 42, 0.58);
  font-size: 0.88rem;
  font-weight: 800;
}

.hero-card,
.feature-card,
.showcase-card,
.pricing-card,
.final-cta-card,
.workflow-steps article {
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-card {
  min-height: 520px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), transparent 34%, rgba(6, 182, 212, 0.18));
  pointer-events: none;
}

.mock-toolbar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.mock-toolbar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(248, 250, 252, 0.24);
}

.mock-toolbar strong {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.84rem;
}

.mock-layout {
  position: relative;
  display: grid;
  grid-template-columns: 82px 1fr;
  min-height: 462px;
}

.mock-sidebar {
  border-right: 1px solid rgba(148, 163, 184, 0.12);
  padding: 20px 16px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.mock-sidebar span {
  height: 38px;
  border-radius: 14px;
  background: rgba(148, 163, 184, 0.12);
}

.mock-sidebar span.active { background: var(--gradient); }

.mock-content {
  padding: 22px;
  display: grid;
  gap: 16px;
}

.mock-frame {
  border: 2px solid rgba(148, 163, 184, 0.16);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.55);
  padding: 18px;
}

.mock-frame.tall { min-height: 245px; }

.mock-title {
  width: 48%;
  height: 16px;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.22);
  margin-bottom: 18px;
}

.mock-title.short { width: 32%; }

.mock-product-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  align-items: center;
}

.mock-product-img {
  height: 92px;
  border-radius: 18px;
  background: var(--gradient-soft);
  border: 1px solid rgba(125, 211, 252, 0.20);
}

.mock-lines { display: grid; gap: 10px; }
.mock-lines span {
  height: 12px;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.18);
}
.mock-lines span:nth-child(2) { width: 74%; }
.mock-lines span:nth-child(3) { width: 52%; }

.mock-swatches {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.mock-swatches i {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(248, 250, 252, 0.62);
  background: var(--gradient);
}
.mock-swatches i:nth-child(2) { background: #111827; }
.mock-swatches i:nth-child(3) { background: #ef4444; }
.mock-swatches i:nth-child(4) { background: #f8fafc; }

.mock-meter {
  height: 13px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
  overflow: hidden;
}
.mock-meter span {
  display: block;
  height: 100%;
  width: 68%;
  background: var(--gradient);
}

.mock-frame.split {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.mock-frame.split div {
  min-height: 76px;
  border-radius: 16px;
  background: rgba(148, 163, 184, 0.12);
}

.section-wrap { padding: 56px 0; }
.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}
.section-heading.compact { max-width: 700px; }
.pricing-heading { text-align: center; margin-inline: auto; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card,
.workflow-steps article,
.pricing-card {
  border-radius: var(--radius-md);
  padding: 24px;
  transition: transform 170ms var(--ease), border-color 170ms var(--ease), box-shadow 170ms var(--ease);
}

.feature-card:hover,
.workflow-steps article:hover,
.pricing-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.feature-icon,
.workflow-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--gradient-soft);
  color: #dbeafe;
  border: 1px solid rgba(125, 211, 252, 0.18);
  font-weight: 900;
}

.feature-card p,
.workflow-steps p,
.pricing-card p,
.pricing-card li { color: var(--muted); }

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.showcase-card,
.final-cta-card {
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 48px);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.70));
}

.showcase-points {
  display: grid;
  gap: 12px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 26px;
  overflow: hidden;
}

.pricing-card.featured-plan {
  border-color: rgba(125, 211, 252, 0.48);
  box-shadow: 0 28px 90px rgba(37, 99, 235, 0.26);
}

.pricing-card.featured-plan::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.16), rgba(6, 182, 212, 0.09));
  pointer-events: none;
}

.pricing-card > * { position: relative; }

.popular-badge {
  width: max-content;
  margin: -6px auto 16px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pricing-card-head { min-height: 170px; }

.pricing-card h3 {
  margin-bottom: 8px;
  font-size: 1.45rem;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 18px;
}

.price-row strong {
  font-size: 3rem;
  line-height: 1;
  letter-spacing: -0.06em;
}

.price-row span { color: var(--muted); font-weight: 800; }

.pricing-card ul {
  list-style: none;
  padding: 20px 0 0;
  margin: 0 0 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  display: grid;
  gap: 10px;
  flex: 1;
}

.pricing-card li {
  position: relative;
  padding-left: 26px;
  font-size: 0.94rem;
}

.pricing-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #67e8f9;
  font-weight: 900;
}

.final-cta-card {
  display: block;
  text-align: center;
}

.final-cta-card h2 { max-width: 820px; margin-inline: auto; }

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  padding: 28px 0;
  background: rgba(8, 11, 20, 0.72);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-weight: 800;
}


/* PHASE_12_5_6A_MARKETING_LIGHT_DARK_THEME_TOGGLE */
html[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.80);
  border-bottom-color: rgba(99, 102, 241, 0.14);
}

html[data-theme="light"] .eyebrow { color: #2563eb; }

html[data-theme="light"] .theme-toggle,
html[data-theme="light"] .nav-toggle,
html[data-theme="light"] .btn-secondary,
html[data-theme="light"] .hero-proof span,
html[data-theme="light"] .showcase-points span {
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  border-color: var(--border);
}

html[data-theme="light"] .hero-card,
html[data-theme="light"] .feature-card,
html[data-theme="light"] .pricing-card,
html[data-theme="light"] .workflow-steps article {
  background: rgba(255, 255, 255, 0.78);
  border-color: var(--border);
}

html[data-theme="light"] .showcase-card,
html[data-theme="light"] .final-cta-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(238, 242, 255, 0.76));
}

html[data-theme="light"] .mock-toolbar,
html[data-theme="light"] .mock-sidebar {
  border-color: rgba(99, 102, 241, 0.12);
}

html[data-theme="light"] .mock-frame {
  background: rgba(255, 255, 255, 0.66);
  border-color: rgba(99, 102, 241, 0.14);
}

html[data-theme="light"] .mock-sidebar span,
html[data-theme="light"] .mock-frame.split div {
  background: rgba(99, 102, 241, 0.10);
}

html[data-theme="light"] .mock-title,
html[data-theme="light"] .mock-lines span {
  background: rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .mock-meter {
  background: rgba(99, 102, 241, 0.12);
}

html[data-theme="light"] .pricing-card.featured-plan {
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.08), rgba(255, 255, 255, 0.88));
}

html[data-theme="light"] .site-footer {
  background: rgba(255, 255, 255, 0.74);
  border-top-color: rgba(99, 102, 241, 0.14);
}

@media (max-width: 760px) {
  .nav-links a, .nav-links .theme-toggle { padding: 11px 12px; }
  .nav-links .theme-toggle { width: 100%; text-align: left; }
  html[data-theme="light"] .nav-links {
    background: rgba(255, 255, 255, 0.96);
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .showcase-card { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .workflow-steps { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 620px; margin: 0 auto; }
  .pricing-card-head { min-height: auto; }
  .hero-card { min-height: 440px; }
}

@media (max-width: 760px) {
  .nav-shell,
  .section-wrap,
  .footer-inner { width: min(100% - 28px, var(--max)); }
  .nav-toggle { display: inline-block; }
  .nav-links {
    position: absolute;
    top: 74px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(8, 11, 20, 0.96);
    box-shadow: var(--shadow);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 11px 12px; }
  .nav-cta { text-align: center; }
  .hero-section { padding-top: 48px; }
  h1 { font-size: clamp(2.6rem, 13vw, 4.2rem); }
  .feature-grid,
  .workflow-steps { grid-template-columns: 1fr; }
  .mock-layout { grid-template-columns: 58px 1fr; }
  .mock-content { padding: 16px; }
  .mock-product-row { grid-template-columns: 1fr; }
  .mock-product-img { height: 130px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { flex-wrap: wrap; }
}

@media (max-width: 520px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .hero-proof span { width: 100%; text-align: center; }
  .hero-card { min-height: 390px; }
  .pricing-card { padding: 22px; }
  .price-row strong { font-size: 2.55rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}
