:root {
  --bg: #05070d;
  --bg-soft: #0b1020;
  --panel: rgba(10, 15, 30, 0.72);
  --panel-strong: #0b1328;
  --line: rgba(133, 166, 255, 0.18);
  --line-strong: rgba(246, 196, 83, 0.28);
  --text: #e9edf8;
  --muted: #95a4c7;
  --gold: #f6c453;
  --gold-soft: #a97714;
  --blue: #34b9ff;
  --blue-deep: #1e3a8a;
  --success: #43d39e;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 24px;
  --radius-small: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(52, 185, 255, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(246, 196, 83, 0.12), transparent 22%),
    linear-gradient(180deg, #070a12 0%, #05070d 100%);
  line-height: 1.65;
}

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

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

button,
input,
textarea {
  font: inherit;
}

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

.site-shell {
  position: relative;
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(18px);
  background: rgba(5, 7, 13, 0.84);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 88px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(52, 185, 255, 0.22), rgba(246, 196, 83, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.candles {
  position: absolute;
  inset: 8px 10px 8px 10px;
  display: flex;
  align-items: flex-end;
  gap: 0.22rem;
}

.candles i {
  position: relative;
  display: block;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold), #f6b325);
}

.candles i::before,
.candles i::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.75);
}

.candles i:nth-child(1) {
  height: 11px;
}

.candles i:nth-child(1)::before {
  height: 6px;
  top: -4px;
}

.candles i:nth-child(1)::after {
  height: 5px;
  bottom: -3px;
}

.candles i:nth-child(2) {
  height: 18px;
  background: linear-gradient(180deg, var(--blue), #1e78ff);
}

.candles i:nth-child(2)::before {
  height: 8px;
  top: -5px;
}

.candles i:nth-child(2)::after {
  height: 4px;
  bottom: -2px;
}

.candles i:nth-child(3) {
  height: 13px;
}

.candles i:nth-child(3)::before {
  height: 5px;
  top: -4px;
}

.candles i:nth-child(3)::after {
  height: 7px;
  bottom: -5px;
}

.arrow-line {
  position: absolute;
  right: 6px;
  top: 9px;
  width: 18px;
  height: 18px;
  border-top: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
  transform: rotate(18deg);
  filter: drop-shadow(0 0 10px rgba(246, 196, 83, 0.35));
}

.brand-text {
  background: linear-gradient(90deg, #fef2c9 0%, var(--gold) 35%, #7ccfff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  position: relative;
  color: var(--muted);
  font-size: 0.96rem;
  transition: color 0.28s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.5rem;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
  background: linear-gradient(90deg, var(--blue), var(--gold));
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0;
  flex-direction: column;
  gap: 0.35rem;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 1.8rem;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  color: #04101c;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(52, 185, 255, 0.22);
  transition: transform 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(52, 185, 255, 0.2);
  filter: brightness(1.06);
}

.button-outline {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.button-small {
  padding: 0.75rem 1.1rem;
  font-size: 0.9rem;
}

.full-width {
  width: 100%;
}

.hero,
.page-hero {
  position: relative;
}

.hero {
  min-height: calc(100vh - 88px);
  display: flex;
  align-items: center;
}

.hero-home {
  isolation: isolate;
}

.hero-media,
.page-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(5, 10, 20, 0.9) 15%, rgba(5, 10, 20, 0.4) 55%, rgba(5, 10, 20, 0.82) 100%),
    linear-gradient(180deg, rgba(3, 8, 18, 0.1), rgba(3, 8, 18, 0.9)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='900' viewBox='0 0 1600 900'%3E%3Crect fill='%23060b14' width='1600' height='900'/%3E%3Cg opacity='0.22' stroke='%2334b9ff' stroke-width='1'%3E%3Cpath d='M0 770L1600 770'/%3E%3Cpath d='M0 650L1600 650'/%3E%3Cpath d='M0 530L1600 530'/%3E%3Cpath d='M0 410L1600 410'/%3E%3Cpath d='M0 290L1600 290'/%3E%3Cpath d='M200 0L200 900'/%3E%3Cpath d='M400 0L400 900'/%3E%3Cpath d='M600 0L600 900'/%3E%3Cpath d='M800 0L800 900'/%3E%3Cpath d='M1000 0L1000 900'/%3E%3Cpath d='M1200 0L1200 900'/%3E%3Cpath d='M1400 0L1400 900'/%3E%3C/g%3E%3Cg fill='none'%3E%3Cpath stroke='%23f6c453' stroke-width='8' stroke-linecap='round' stroke-linejoin='round' d='M120 660C220 620 300 580 390 540S540 470 620 500S760 520 830 450S975 305 1080 340S1270 370 1370 230'/%3E%3Cpath stroke='%2334b9ff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round' d='M100 710C190 700 280 670 370 645S550 615 640 560S790 495 900 445S1100 320 1250 300S1425 245 1510 180'/%3E%3C/g%3E%3C/svg%3E") center/cover no-repeat;
}

.hero-grid,
.hero-screen,
.hero-wave {
  position: absolute;
  inset: auto;
}

.hero-grid {
  right: 0;
  bottom: 0;
  width: 50vw;
  height: 36vh;
  background: linear-gradient(rgba(52, 185, 255, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(52, 185, 255, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  transform: perspective(500px) rotateX(72deg);
  opacity: 0.55;
}

.hero-screen {
  right: 8%;
  top: 18%;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 185, 255, 0.15), transparent 65%);
  filter: blur(10px);
  animation: pulseGlow 8s ease-in-out infinite;
}

.hero-wave {
  left: 0;
  bottom: 0;
  width: 55%;
  height: 140px;
  background: linear-gradient(90deg, rgba(52, 185, 255, 0.18), rgba(246, 196, 83, 0.1));
  clip-path: polygon(0 90%, 10% 82%, 20% 74%, 30% 68%, 40% 56%, 50% 52%, 60% 36%, 70% 42%, 80% 24%, 90% 19%, 100% 0, 100% 100%, 0 100%);
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 480px);
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  padding: 7rem 0 4rem;
}

.hero-copy h1,
.page-hero h1,
.section-copy h2,
.section-heading h2,
.cta-band h2 {
  margin: 0;
  line-height: 1.08;
}

.hero-copy h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 6vw, 5.5rem);
}

.hero-text,
.page-hero p,
.section-copy p,
.section-heading p,
.cta-band p,
.info-card p,
.service-card p,
.quote-card p,
.pricing-card p,
.founder-panel p,
.contact-card p,
.legal-page p {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-text {
  max-width: 38rem;
  font-size: 1.08rem;
  margin: 1.2rem 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.glass-panel,
.info-card,
.quote-card,
.pricing-card,
.service-card,
.contact-card {
  background: linear-gradient(180deg, rgba(11, 19, 40, 0.82), rgba(7, 12, 24, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
}

.terminal-panel,
.stats-panel,
.performance-panel,
.chart-panel,
.contact-panel {
  padding: 1.5rem;
}

.terminal-head,
.panel-heading,
.stats-heading,
.chart-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.terminal-head span:last-child,
.panel-heading span,
.stats-heading span {
  color: var(--muted);
  font-size: 0.9rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.compact-grid article,
.metric-grid article,
.performance-metrics article {
  padding: 1rem;
  border-radius: var(--radius-small);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.metric-grid strong,
.compact-grid strong,
.performance-metrics strong {
  display: block;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1;
  color: var(--text);
}

.metric-grid span,
.compact-grid span,
.performance-metrics span {
  display: block;
  margin-top: 0.55rem;
  color: var(--muted);
}

.chart-card,
.chart-panel {
  overflow: hidden;
}

.chart-card svg,
.chart-panel svg {
  width: 100%;
  height: auto;
}

.growth-area {
  fill: rgba(52, 185, 255, 0.14);
}

.growth-line {
  fill: none;
  stroke: url(#growth-line);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: drawLine 3s ease forwards 0.4s;
}

.chart-gridline,
.chart-axis {
  fill: none;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 1;
}

.line-managed,
.line-benchmark {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.line-managed {
  stroke: var(--blue);
}

.line-benchmark {
  stroke: var(--gold);
  opacity: 0.88;
}

.section {
  padding: 5.5rem 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
}

.section-heading,
.section-copy {
  max-width: 44rem;
}

.section-heading {
  margin-bottom: 2rem;
}

.intro-grid,
.split-layout,
.contact-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.reverse-layout > :first-child {
  order: 2;
}

.reverse-layout > :last-child {
  order: 1;
}

.feature-stack,
.infra-list,
.risk-list,
.drawdown-bars,
.performance-bars,
.check-list,
.contact-info {
  display: grid;
  gap: 1rem;
}

.stack-item,
.timeline-item,
.infra-list div,
.risk-list div,
.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-small);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.stack-item span,
.timeline-item span,
.infra-list span,
.risk-list span,
.contact-list span {
  color: var(--gold);
  font-size: 0.86rem;
}

.card-grid {
  display: grid;
  gap: 1.5rem;
}

.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-card,
.quote-card,
.service-card,
.pricing-card {
  padding: 1.6rem;
}

.service-card h2,
.pricing-card h2,
.info-card h2,
.info-card h3,
.quote-card strong,
.cta-band h2,
.legal-page h1 {
  margin-top: 0;
}

.check-list {
  margin-top: 1.5rem;
}

.check-list h3,
.pricing-card h2 span,
.quote-card span,
.contact-list a,
.legal-page a {
  color: var(--text);
}

.performance-bars div,
.drawdown-bars div {
  display: grid;
  grid-template-columns: 1fr minmax(120px, 1.5fr) auto;
  gap: 0.9rem;
  align-items: center;
}

.performance-bars i,
.drawdown-bars i {
  display: block;
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.performance-bars i::after,
.drawdown-bars i::after {
  content: "";
  display: block;
  width: var(--bar-width);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  animation: fillBar 1.6s ease forwards;
  transform-origin: left;
}

.text-link {
  display: inline-block;
  margin-top: 1.2rem;
  color: var(--gold);
}

.page-hero {
  padding: 8rem 0 4rem;
}

.small-hero .container {
  position: relative;
  z-index: 1;
}

.small-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  max-width: 16ch;
}

.small-hero p:last-child {
  max-width: 42rem;
}

.pricing-grid .featured {
  border-color: rgba(246, 196, 83, 0.4);
  transform: translateY(-10px);
}

.plan-tag {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  color: var(--gold);
  background: rgba(246, 196, 83, 0.12);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.plan-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.7rem;
  color: var(--muted);
}

.plan-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--blue), var(--gold));
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 19, 40, 0.76);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.comparison-table th {
  color: var(--gold);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.comparison-table td {
  color: var(--muted);
}

.contact-layout {
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 1.2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.55rem;
}

.contact-form span {
  font-size: 0.92rem;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(52, 185, 255, 0.45);
  box-shadow: 0 0 0 4px rgba(52, 185, 255, 0.12);
}

.full-span {
  grid-column: 1 / -1;
}

.contact-card {
  padding: 1.5rem;
}

.contact-list li {
  gap: 0.28rem;
}

.contact-list a {
  color: var(--muted);
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(52, 185, 255, 0.16), rgba(246, 196, 83, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dot {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  margin-right: 0.35rem;
}

.dot-blue {
  background: var(--blue);
}

.dot-gold {
  background: var(--gold);
}

.site-footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

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

.site-footer h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.site-footer li + li {
  margin-top: 0.7rem;
}

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

.footer-brand {
  margin-bottom: 1rem;
}

.legal-page {
  padding: 4rem 0 6rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay {
  transition-delay: 0.12s;
}

.reveal-delay-2 {
  transition-delay: 0.24s;
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

@keyframes fillBar {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-panel {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 1rem;
    left: 1rem;
    display: grid;
    gap: 1rem;
    padding: 1rem;
    border-radius: 24px;
    background: rgba(7, 12, 24, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.28s ease, transform 0.28s ease;
  }

  .nav-panel.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .hero-content,
  .intro-grid,
  .split-layout,
  .contact-layout,
  .three-col,
  .two-col,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .reverse-layout > :first-child,
  .reverse-layout > :last-child {
    order: initial;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy h1 {
    max-width: 10ch;
  }

  .pricing-grid .featured {
    transform: none;
  }

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

@media (max-width: 720px) {
  .navbar {
    min-height: 80px;
  }

  .section {
    padding: 4.2rem 0;
  }

  .hero-content {
    padding-top: 5.5rem;
  }

  .hero-screen,
  .hero-grid,
  .hero-wave {
    display: none;
  }

  .metric-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .performance-bars div,
  .drawdown-bars div {
    grid-template-columns: 1fr;
  }

  .button,
  .button-outline {
    width: 100%;
  }

  .hero-actions {
    width: 100%;
  }
}