:root {
  --bg: #0a0b0f;
  --bg-elev: #12141c;
  --bg-card: rgba(255, 255, 255, 0.03);
  --ink: #f4f5f7;
  --muted: #9aa3b5;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #3dffa8;
  --accent-dim: rgba(61, 255, 168, 0.14);
  --accent-2: #7aa2ff;
  --glow: rgba(61, 255, 168, 0.35);
  --radius: 18px;
  --max: 1140px;
  --font: "Manrope", system-ui, sans-serif;
  --display: "Bricolage Grotesque", "Manrope", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

html.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

html.js .reveal.visible {
  opacity: 1;
  transform: none;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 500px at var(--mx, 20%) var(--my, 10%), rgba(61, 255, 168, 0.08), transparent 55%),
    radial-gradient(700px 420px at 85% 15%, rgba(122, 162, 255, 0.1), transparent 50%),
    linear-gradient(180deg, #0a0b0f 0%, #0d1018 50%, #0a0b0f 100%);
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  z-index: 100;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px var(--glow);
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

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

a:hover {
  color: #9affd0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px) saturate(1.2);
  background: rgba(10, 11, 15, 0.72);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
}

.brand small {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.1rem;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, var(--accent) 0%, transparent 55%),
    linear-gradient(225deg, var(--accent-2) 0%, #1a1d28 60%);
  box-shadow: 0 0 24px var(--glow);
  position: relative;
  overflow: hidden;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 6px;
  transform: rotate(12deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font: inherit;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.72rem 1.25rem;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}

.btn-primary {
  background: var(--accent);
  color: #06140f;
  box-shadow: 0 0 0 0 var(--glow);
}

.btn-primary:hover {
  color: #06140f;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--glow);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  color: var(--ink);
  border-color: rgba(61, 255, 168, 0.4);
  background: var(--accent-dim);
}

.hero {
  position: relative;
  padding: clamp(4rem, 12vh, 7rem) 0 4rem;
  min-height: min(88vh, 820px);
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--glow);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.55; }
}

h1, h2, h3 {
  font-family: var(--display);
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0 0 0.85rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 700;
  max-width: 12ch;
}

.hero h1 .line {
  display: block;
  overflow: hidden;
}

.hero h1 .line span {
  display: inline-block;
  animation: rise 0.9s var(--ease) both;
}

.hero h1 .line:nth-child(2) span { animation-delay: 0.12s; }
.hero h1 .line:nth-child(3) span { animation-delay: 0.22s; }

@keyframes rise {
  from { transform: translateY(110%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 38rem;
  margin: 0 0 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-stage {
  position: relative;
  aspect-ratio: 1;
  border-radius: 28px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

.stage-rail {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}

.stage-rail-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 11, 15, 0.55);
  backdrop-filter: blur(10px);
  color: var(--muted);
  border-radius: 16px;
  padding: 0.7rem 0.4rem 0.55rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: border-color 0.35s ease, color 0.35s ease, background 0.35s ease, transform 0.35s var(--ease), box-shadow 0.35s ease;
}

.stage-rail-btn .stage-icon {
  width: 2.6rem;
  height: 2.6rem;
  color: inherit;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.45s var(--ease), color 0.35s ease, background 0.35s ease, box-shadow 0.45s ease, border-color 0.35s ease;
}

.stage-rail-btn .stage-icon svg {
  width: 1.45rem;
  height: 1.45rem;
}

.stage-rail-btn.is-active {
  color: var(--ink);
  border-color: rgba(61, 255, 168, 0.45);
  background: rgba(61, 255, 168, 0.1);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25), 0 0 24px rgba(61, 255, 168, 0.18);
  transform: translateY(-2px);
}

.stage-rail-btn.is-active .stage-icon {
  color: var(--accent);
  background: var(--accent-dim);
  border-color: rgba(61, 255, 168, 0.35);
  box-shadow: 0 0 22px rgba(61, 255, 168, 0.35);
  animation: icon-pop 0.55s var(--ease);
}

.stage-rail-btn:hover {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.22);
}

.stage-stack {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  top: 38%;
  perspective: 900px;
  z-index: 2;
}

.stage-card {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 14, 20, 0.78);
  backdrop-filter: blur(12px);
  padding: 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transform: translateY(28px) scale(0.94) rotateX(8deg);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), border-color 0.4s ease;
  pointer-events: none;
}

.stage-card.active {
  opacity: 1;
  transform: translateY(0) scale(1) rotateX(0deg);
  border-color: rgba(61, 255, 168, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 0 40px rgba(61, 255, 168, 0.08);
}

.stage-card .stage-index {
  position: absolute;
  top: 1rem;
  right: 1.15rem;
  font-family: var(--display);
  font-size: 2.4rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.08);
  letter-spacing: -0.06em;
}

.stage-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

.stage-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 28ch;
}

@keyframes icon-pop {
  0% { transform: scale(0.72); }
  60% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

.section {
  padding: 4.5rem 0;
  position: relative;
  z-index: 2;
}

.section-head {
  margin-bottom: 2rem;
  max-width: 36rem;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
}

.section-head p {
  color: var(--muted);
  margin: 0;
}

.cards {
  display: grid;
  gap: 1rem;
}

.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.two { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.35s var(--ease), border-color 0.35s ease, background 0.35s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(500px 180px at var(--cx, 50%) var(--cy, 0%), rgba(61, 255, 168, 0.12), transparent 55%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(61, 255, 168, 0.28);
  background: rgba(255, 255, 255, 0.045);
}

.card:hover::before { opacity: 1; }

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.card h3 {
  font-size: 1.25rem;
}

.card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.96rem;
}

.quote {
  margin: 0;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-card);
}

.stars {
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
}

.quote p {
  margin: 0 0 1rem;
  font-size: 1.02rem;
}

.quote cite {
  color: var(--muted);
  font-style: normal;
  font-size: 0.88rem;
}

.page-hero {
  padding: 4rem 0 1rem;
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 1.5rem;
}

.pricing-card li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.94rem;
}

.pricing-card li::before {
  content: "✓ ";
  color: var(--accent);
  font-weight: 700;
}

.price {
  font-family: var(--display);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 0.4rem 0 0.8rem;
}

.price span {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0;
}

.pricing-card.featured {
  border-color: rgba(61, 255, 168, 0.35);
  box-shadow: 0 0 40px rgba(61, 255, 168, 0.08);
}

.prose {
  max-width: 42rem;
  color: var(--muted);
}

.prose h2 {
  color: var(--ink);
  margin-top: 2rem;
  font-size: 1.35rem;
}

.prose ul {
  padding-left: 1.1rem;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.75rem;
  margin: 1rem auto 4rem;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(61, 255, 168, 0.08), rgba(122, 162, 255, 0.08)),
    var(--bg-elev);
  position: relative;
  z-index: 2;
}

.cta-band h2 {
  margin-bottom: 0.35rem;
  font-size: 1.6rem;
}

.cta-band p {
  margin: 0;
  color: var(--muted);
}

.contact-box {
  display: grid;
  gap: 0.85rem;
}

.contact-box input,
.contact-box textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  padding: 0.85rem 1rem;
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-box input:focus,
.contact-box textarea:focus {
  border-color: rgba(61, 255, 168, 0.45);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.contact-box textarea {
  min-height: 120px;
  resize: vertical;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 2rem;
  position: relative;
  z-index: 2;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer h3 {
  color: var(--ink);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin: 0.35rem 0;
}

.site-footer a {
  color: var(--muted);
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
}

@media (max-width: 900px) {
  .hero-grid,
  .cards.three,
  .cards.two,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .menu-toggle { display: inline-flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: rgba(10, 11, 15, 0.96);
    border-bottom: 1px solid var(--line);
  }

  .nav-links.open { display: flex; }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal,
  .hero h1 .line span,
  .eyebrow::before {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .stage-card { opacity: 1; transform: none; }
  .stage-rail-btn.is-active .stage-icon {
    animation: none !important;
    transform: none !important;
  }
}
