:root {
  --ink: #0D0D0D;
  --electric-violet: #5B4FFF;
  --volt-green: #C8FF00;
  --deep-slate: #2C2C3E;
  --mist: #F4F4F8;
  --steel: #8888A0;
  --electric-light: #EAE8FF;
  --volt-light: #F4FFD6;
  --white: #FFFFFF;
  --line: #E7E7F1;
  --card: #FFFFFF;
  --shadow: 0 14px 40px rgba(34, 25, 78, 0.08);
  --shadow-strong: 0 28px 80px rgba(34, 25, 78, 0.16);
  --radius: 22px;
  --container: 1180px;
  --page-bg: linear-gradient(180deg, #ffffff 0%, #faf9ff 40%, #ffffff 100%);
}

:root[data-theme="dark"] {
  --ink: #F4F4F8;
  --deep-slate: #E7E7F1;
  --mist: #1B1B28;
  --steel: #B4B4C7;
  --white: #12121B;
  --card: #171724;
  --line: #2B2B3E;
  --page-bg: linear-gradient(180deg, #0f0f18 0%, #151523 40%, #101019 100%);
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
  --shadow-strong: 0 28px 80px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Roboto, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--page-bg);
  line-height: 1.6;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}
.narrow {
  width: min(820px, calc(100% - 2rem));
  margin: 0 auto;
}

h1, h2, h3 {
  margin: 0 0 1rem;
  font-family: 'Space Grotesk', Roboto, Arial, sans-serif;
  line-height: 1.06;
  letter-spacing: -0.04em;
}
h1 { font-size: clamp(2.5rem, 5vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.2rem; }
p { font-size: 1.05rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--white) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(91,79,255,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.brand,
.brand-inline,
.brand-word {
  font-family: Roboto, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.brand { font-size: 1.6rem; }
.brand-inline { font-size: inherit; }
.brand-lvl { color: var(--ink); }
.brand-up { color: var(--electric-violet); }

.brand-stairs {
  width: 36px;
  height: 36px;
}
.brand-stairs rect {
  fill: var(--ink);
  opacity: .25;
  animation: stairStep 1.8s linear infinite;
  transition: fill .2s ease, opacity .2s ease;
}
.brand-stairs rect:nth-child(1) { animation-delay: 0s; }
.brand-stairs rect:nth-child(2) { animation-delay: .6s; }
.brand-stairs rect:nth-child(3) { animation-delay: 1.2s; }

@keyframes stairStep {
  0%, 100% { opacity: .25; transform: translateY(0); fill: var(--ink); filter: none; }
  20% { opacity: 1; transform: translateY(-2px); fill: var(--electric-violet); filter: drop-shadow(0 0 4px var(--electric-violet)); }
  40% { opacity: .25; transform: translateY(0); fill: var(--ink); filter: none; }
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}
.site-nav a {
  color: var(--steel);
  font-weight: 600;
}
.site-nav a:hover { color: var(--electric-violet); }

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

.theme-toggle,
.lang-toggle {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(91,79,255,.16);
  background: var(--card);
  box-shadow: var(--shadow);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: 160ms ease;
}
.theme-toggle:hover,
.lang-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(91,79,255,.28);
  box-shadow: var(--shadow-strong);
}
:root:not([data-theme="dark"]) .theme-toggle__moon { display: none; }
:root[data-theme="dark"] .theme-toggle__sun { display: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border-radius: 999px;
  padding: .9rem 1.2rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: 160ms ease;
  cursor: pointer;
  font: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--volt-green); color: #0D0D0D; }
.btn-secondary {
  background: var(--card);
  border-color: rgba(91,79,255,.22);
  color: var(--electric-violet);
}

/* Sections */
section { padding: 4rem 0; position: relative; }

.section-transition::before {
  content: '';
  display: block;
  height: 1px;
  width: 82%;
  margin: 0 auto 76px;
  background: linear-gradient(to right, transparent, rgba(91,79,255,.12), transparent);
}

main section + section::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, 78%);
  height: 36px;
  background: linear-gradient(180deg, rgba(91,79,255,0.00) 0%, rgba(91,79,255,0.035) 50%, rgba(91,79,255,0.00) 100%);
  border-radius: 999px;
  filter: blur(10px);
  pointer-events: none;
}

:root[data-theme="dark"] .section-transition::before,
:root[data-theme="dark"] main section + section::before {
  background: linear-gradient(180deg, rgba(91,79,255,0.00) 0%, rgba(91,79,255,0.08) 50%, rgba(91,79,255,0.00) 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.eyebrow,
.section-kicker {
  display: inline-block;
  margin: 0 0 .9rem;
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--electric-violet);
}

.section-intro {
  max-width: 720px;
  margin: 0 auto;
  color: var(--steel);
  line-height: 1.7;
}

/* Generic reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s ease, transform .65s ease;
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Title choreography */
.section-header,
.hero-copy {
  --reveal-distance: 18px;
  --reveal-duration: 0.7s;
  --reveal-ease: cubic-bezier(.22, 1, .36, 1);
}

.reveal-kicker,
.reveal-title,
.reveal-intro {
  opacity: 0;
  will-change: opacity, transform, filter;
}

.reveal-kicker {
  transform: translateY(var(--reveal-distance));
  filter: blur(3px);
}

.reveal-title {
  transform: translateY(calc(var(--reveal-distance) + 6px));
  filter: blur(5px);
}

.reveal-intro {
  transform: translateY(calc(var(--reveal-distance) - 4px));
  filter: blur(2px);
}

.reveal-kicker.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition:
    opacity var(--reveal-duration) var(--reveal-ease),
    transform var(--reveal-duration) var(--reveal-ease),
    filter var(--reveal-duration) var(--reveal-ease);
}

.reveal-title.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition:
    opacity 0.82s cubic-bezier(.2, .9, .2, 1),
    transform 0.82s cubic-bezier(.2, .9, .2, 1),
    filter 0.82s cubic-bezier(.2, .9, .2, 1);
}

.reveal-intro.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition:
    opacity 0.78s cubic-bezier(.22, 1, .36, 1),
    transform 0.78s cubic-bezier(.22, 1, .36, 1),
    filter 0.78s cubic-bezier(.22, 1, .36, 1);
}

.reveal-kicker { transition-delay: 0s; }
.reveal-title  { transition-delay: 0.12s; }
.reveal-intro  { transition-delay: 0.24s; }

/* Card system */
.card,
.what-card,
.service-card,
.problem-card,
.process-card,
.compare-before,
.compare-after,
.what-source,
.hero-intake-card,
.module-item {
  background: color-mix(in srgb, var(--card) 96%, white);
  border: 1px solid rgba(91,79,255,.10);
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease, background .24s ease;
}

.card:hover,
.what-card:hover,
.service-card:hover,
.problem-card:hover,
.process-card:hover,
.compare-before:hover,
.compare-after:hover,
.what-source:hover,
.module-item:hover {
  transform: translateY(-4px);
  border-color: rgba(91,79,255,.18);
  box-shadow: var(--shadow-strong);
}

/* Hero */
.hero-section {
  position: relative;
  padding: 3rem 0 4rem;
}
.hero-section::after {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 100%;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 10%, rgba(91,79,255,.08), transparent 26%),
    radial-gradient(circle at 82% 20%, rgba(91,79,255,.06), transparent 24%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2rem;
  align-items: start;
  position: relative;
  z-index: 1;
}
.hero-copy h1 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.04;
  letter-spacing: -.03em;
  margin-bottom: 1rem;
}
.hero-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--steel);
  max-width: 700px;
}
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.4rem;
}
.trust-strip span {
  display: inline-flex;
  align-items: center;
  padding: .65rem 1rem;
  border-radius: 999px;
  background: rgba(91,79,255,.08);
  color: var(--electric-violet);
  font-size: .88rem;
  font-weight: 700;
  border: 1px solid rgba(91,79,255,.1);
}
.hero-intake-card {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  box-shadow: var(--shadow-strong);
  border: 1px solid rgba(91,79,255,.18);
  background:
    radial-gradient(circle at top right, rgba(91,79,255,.08), transparent 35%),
    linear-gradient(180deg, color-mix(in srgb, var(--card) 96%, white) 0%, var(--card) 100%);
}
.hero-intake-card::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(91,79,255,.08), rgba(91,79,255,.02));
  filter: blur(8px);
  z-index: 0;
}
.hero-intake-card > * {
  position: relative;
  z-index: 1;
}

/* Guided intake */
.lge-shell {
  display: flex;
  flex-direction: column;
  height: 640px;
  background: transparent;
}
.lge-header {
  padding: 1.1rem 1.1rem .9rem;
  border-bottom: 1px solid rgba(91,79,255,.08);
  background: linear-gradient(180deg, color-mix(in srgb, var(--card) 96%, white) 0%, var(--card) 100%);
}
.lge-kicker {
  margin: 0 0 .35rem;
  color: var(--electric-violet);
  font-size: .82rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: .05em;
}
.lge-status {
  color: var(--steel);
  font-size: .92rem;
  font-weight: 600;
}
.lge-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  background: color-mix(in srgb, var(--mist) 18%, transparent);
  display: flex;
  flex-direction: column;
  gap: .85rem;
  min-height: 0;
}
.lge-message {
  max-width: 82%;
  padding: .85rem 1rem;
  border-radius: 18px;
  line-height: 1.5;
  box-shadow: var(--shadow);
  border: 1px solid rgba(91,79,255,.08);
}
.lge-bot {
  align-self: flex-start;
  background: var(--card);
  color: var(--ink);
}
.lge-user {
  align-self: flex-end;
  background: color-mix(in srgb, var(--electric-light) 70%, var(--card));
  color: var(--deep-slate);
  border-color: rgba(91,79,255,.16);
}
.lge-input {
  padding: 1rem;
  border-top: 1px solid rgba(91,79,255,.08);
  background: var(--card);
}
.lge-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.lge-btn {
  appearance: none;
  border: 1px solid rgba(91,79,255,.16);
  background: var(--electric-violet);
  color: #fff;
  border-radius: 999px;
  padding: .8rem 1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.lge-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}
.lge-btn-primary {
  background: var(--volt-green);
  border-color: transparent;
  color: #0D0D0D;
}
.lge-form {
  display: flex;
  gap: .75rem;
  align-items: flex-end;
}
.lge-field {
  flex: 1;
  width: 100%;
  padding: .95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(91,79,255,.14);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  min-height: 50px;
}
textarea.lge-field {
  resize: vertical;
  min-height: 120px;
}
.lge-field:focus {
  outline: 2px solid rgba(91,79,255,.18);
  border-color: rgba(91,79,255,.25);
}

/* Problem */
.problem-section {
  background: linear-gradient(180deg, color-mix(in srgb, var(--mist) 35%, transparent) 0%, transparent 100%);
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-bottom: 1.8rem;
}
.problem-card {
  padding: 1.4rem 1.2rem;
  text-align: center;
}
.problem-icon {
  font-size: 1.3rem;
  margin-bottom: .7rem;
}
.problem-card p {
  color: var(--steel);
  line-height: 1.65;
}
.problem-highlight {
  border-color: rgba(91,79,255,.2);
  background: linear-gradient(180deg, rgba(91,79,255,.05), rgba(255,255,255,.95));
}
.problem-truth {
  text-align: center;
  margin: 2rem auto 1.4rem;
  max-width: 720px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
}
.bullet-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.bullet-card {
  padding: 1rem;
  text-align: center;
  font-weight: 700;
  color: var(--ink);
}

/* What */
.what-section { padding-top: .5rem; }
.what-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-bottom: 3rem;
}
.what-card { padding: 1.5rem; }
.what-icon {
  font-size: 1.35rem;
  margin-bottom: .75rem;
}
.what-eyebrow {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--steel);
  margin-bottom: .55rem;
}
.what-card h3 {
  margin-bottom: .6rem;
  font-size: 1.18rem;
}
.what-card p {
  color: var(--steel);
  line-height: 1.7;
}
.what-system {
  text-align: center;
  margin-top: .8rem;
}
.what-source {
  max-width: 620px;
  margin: 0 auto;
  padding: 1.8rem;
}
.what-source h3 { margin-bottom: .55rem; }
.what-source p {
  color: var(--steel);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}
.what-line {
  width: 2px;
  height: 54px;
  margin: 1rem auto 1.2rem;
  background: linear-gradient(to bottom, rgba(91,79,255,.12), rgba(91,79,255,.4));
  position: relative;
  border-radius: 999px;
}
.what-line::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--electric-violet);
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 0 6px rgba(91,79,255,.1);
}
.what-outcomes {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .8rem;
}
.what-outcome {
  padding: .8rem 1rem;
  border-radius: 999px;
  background: rgba(91,79,255,.08);
  border: 1px solid rgba(91,79,255,.12);
  color: var(--electric-violet);
  font-size: .9rem;
  font-weight: 700;
}

/* Process */
.process-section {
  position: relative;
}
.process-section::after {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  top: 58%;
  height: 2px;
  background: linear-gradient(to right, rgba(91,79,255,0), rgba(91,79,255,.18), rgba(91,79,255,0));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .9s ease;
  pointer-events: none;
  z-index: 0;
}
.process-section.is-visible::after {
  transform: scaleX(1);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  position: relative;
  z-index: 1;
}
.process-card {
  padding: 1.3rem 1rem 1.25rem;
  text-align: center;
}
.process-step {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin: 0 auto .8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--electric-violet);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(91,79,255,.22);
}
.process-card h3 {
  font-size: 1rem;
  margin-bottom: .55rem;
}
.process-card p {
  color: var(--steel);
  line-height: 1.65;
  font-size: .94rem;
}

/* Compare */
.compare-section {
  background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--mist) 22%, transparent) 100%);
}
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  margin-top: 2rem;
}
.compare-before,
.compare-after {
  padding: 1.6rem;
}
.compare-before {
  background: linear-gradient(180deg, rgba(249,250,251,.9), #fff);
}
.compare-after {
  border-color: rgba(91,79,255,.18);
  background: linear-gradient(180deg, rgba(91,79,255,.05), #fff);
}
.compare-grid h3 { margin-bottom: .8rem; }
.compare-grid ul {
  padding-left: 1rem;
  margin: 0;
}
.compare-grid li {
  margin-bottom: .7rem;
  color: var(--steel);
  line-height: 1.6;
}
.compare-close {
  max-width: 760px;
  margin: 2rem auto 0;
  text-align: center;
  font-size: 1.02rem;
  line-height: 1.8;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.service-card { padding: 1.5rem; }
.service-card.featured {
  border-color: rgba(91,79,255,.22);
  box-shadow: 0 18px 42px rgba(91,79,255,.1);
  transform: translateY(-4px);
}
.service-card.featured:hover { transform: translateY(-8px); }
.service-tag {
  font-size: .82rem;
  color: var(--electric-violet);
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: .55rem;
}
.service-card h3 { margin-bottom: .6rem; }
.service-card p {
  color: var(--steel);
  line-height: 1.7;
}

/* Entry */
.entry-section {
  background: linear-gradient(180deg, color-mix(in srgb, var(--mist) 35%, transparent) 0%, transparent 100%);
}
.entry-section .section-header { margin-bottom: 2rem; }

.module-accordion {
  display: grid;
  gap: .9rem;
}
.module-item {
  overflow: hidden;
}
.module-item__toggle {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 1.1rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink);
}
.module-item__icon {
  font-size: 1.2rem;
  color: var(--electric-violet);
  transition: transform .2s ease;
}
.module-item.is-open .module-item__icon { transform: rotate(45deg); }
.module-item__content {
  display: none;
  padding: 0 1.2rem 1.2rem;
  color: var(--steel);
  line-height: 1.7;
}
.module-item.is-open .module-item__content { display: block; }

/* Footer */
.site-footer {
  background: var(--card);
  border-top: 1px solid rgba(91,79,255,.08);
  padding-top: 2.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 1rem;
}
.footer-links {
  list-style: none;
  padding-left: 0;
}
.footer-links li + li { margin-top: .45rem; }
.footer-links a { color: var(--steel); }
.footer-links a:hover { color: var(--electric-violet); }
.powered-by a {
  color: var(--electric-violet);
  font-weight: 700;
}

/* Responsive */
@media (max-width: 1100px) {
  .hero-grid,
  .process-grid,
  .services-grid,
  .what-grid {
    grid-template-columns: 1fr 1fr;
  }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .bullet-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-intake-card,
  .lge-shell { height: 560px; }
}

@media (max-width: 980px) {
  .hero-grid,
  .problem-grid,
  .what-grid,
  .process-grid,
  .compare-grid,
  .services-grid,
  .bullet-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .site-nav { display: none; }
  .service-card.featured { transform: none; }
  .what-outcomes {
    flex-direction: column;
    align-items: center;
  }
  .what-outcome {
    width: min(100%, 320px);
    text-align: center;
  }
  .section-transition::before {
    width: 92%;
    margin-bottom: 56px;
  }
}

@media (max-width: 640px) {
  .hero-section { padding-top: 3rem; }
  .header-inner { flex-wrap: wrap; }
  .header-actions,
  .trust-strip,
  .lge-buttons,
  .lge-form {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-intake-card,
  .lge-shell { height: 520px; }
  .lge-message { max-width: 92%; }
}

@media (max-width: 900px) {
  .process-section::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-kicker,
  .reveal-title,
  .reveal-intro,
  .card,
  .what-card,
  .service-card,
  .problem-card,
  .process-card,
  .compare-before,
  .compare-after,
  .what-source,
  .module-item,
  .brand-stairs rect {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
  }
}
