:root {
  color-scheme: dark;
  --bg: #07101f;
  --bg-soft: #0c1930;
  --panel: rgba(15, 31, 56, 0.82);
  --panel-strong: rgba(21, 42, 76, 0.95);
  --text: #ecf4ff;
  --muted: #9eb0c8;
  --line: rgba(150, 180, 220, 0.18);
  --primary: #58f2c2;
  --primary-strong: #18c99a;
  --blue: #80b8ff;
  --gold: #f7c46b;
  --danger: #ff7f8c;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.35);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 12%, rgba(88, 242, 194, 0.16), transparent 34rem),
    radial-gradient(circle at 80% 20%, rgba(128, 184, 255, 0.18), transparent 30rem),
    linear-gradient(135deg, #050a13 0%, var(--bg) 48%, #091a2b 100%);
  font-family: Inter, "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 78%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background: linear-gradient(120deg, transparent, rgba(88, 242, 194, 0.04), transparent);
  animation: ambientSweep 12s ease-in-out infinite;
}

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

button,
input,
select {
  font: inherit;
}

.site-shell {
  overflow: hidden;
}

.topbar {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 20;
  display: flex;
  width: min(1180px, calc(100% - 32px));
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(6, 14, 28, 0.68);
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
  transition: background 0.25s ease, border-color 0.25s ease, top 0.25s ease;
}

.topbar.is-scrolled {
  top: 10px;
  border-color: rgba(88, 242, 194, 0.22);
  background: rgba(5, 12, 24, 0.9);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 16px;
  color: #06131f;
  font-weight: 900;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, var(--primary), var(--blue));
  box-shadow: 0 10px 30px rgba(88, 242, 194, 0.22);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  line-height: 1.1;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #d6e2f2;
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-links a {
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--text);
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 112px 0;
}

.hero {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding-top: 160px;
}

.hero-grid,
.split-section,
.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

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

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4.2vw, 4.2rem);
  line-height: 1.03;
  letter-spacing: -0.055em;
}

h3 {
  font-size: 1.22rem;
  letter-spacing: -0.02em;
}

.hero-lead,
.section-heading p,
.risk-card p,
.contact-panel p {
  color: var(--muted);
  font-size: 1.06rem;
}

.hero-lead {
  max-width: 680px;
}

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

.btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  color: #06131f;
  background: linear-gradient(135deg, var(--primary), #8df5ff);
  box-shadow: 0 18px 45px rgba(88, 242, 194, 0.22);
}

.btn-secondary {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.btn-secondary:hover {
  border-color: rgba(88, 242, 194, 0.42);
}

.hero-metrics {
  display: grid;
  max-width: 660px;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 44px 0 0;
}

.hero-metrics div {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.045);
}

.hero-metrics dt {
  color: var(--primary);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.hero-metrics dd {
  margin: 8px 0 0;
  color: var(--muted);
}

.terminal-card {
  position: relative;
  padding: 18px;
  border: 1px solid rgba(128, 184, 255, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
    rgba(8, 19, 36, 0.92);
  box-shadow: var(--shadow);
}

.terminal-card::before {
  position: absolute;
  inset: -1px;
  z-index: -1;
  content: "";
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(88, 242, 194, 0.55), transparent 42%, rgba(128, 184, 255, 0.45));
  filter: blur(20px);
  opacity: 0.5;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 16px;
  color: var(--muted);
  font-size: 0.82rem;
}

.terminal-header span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--danger);
}

.terminal-header span:nth-child(2) {
  background: var(--gold);
}

.terminal-header span:nth-child(3) {
  background: var(--primary);
}

.terminal-header strong {
  margin-left: auto;
  color: #d9e8ff;
}

.chart-panel {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(10, 27, 51, 0.96), rgba(8, 18, 35, 0.98));
}

.chart-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 52px 52px;
}

.chart-panel svg {
  position: absolute;
  inset: 42px 20px 20px;
  width: calc(100% - 40px);
  height: calc(100% - 62px);
  overflow: visible;
}

.chart-line {
  fill: none;
  stroke: var(--primary);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 760;
  stroke-dashoffset: 760;
  filter: drop-shadow(0 0 14px rgba(88, 242, 194, 0.45));
  animation: drawLine 2s ease 0.45s forwards, pulseLine 4s ease-in-out 2.6s infinite;
}

.chart-area {
  fill: url("#areaGradient");
  opacity: 0;
  animation: fadeUp 1.2s ease 1.25s forwards;
}

.signal-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.signal-list div {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
}

.signal-list p {
  margin: 0;
  color: #dce8f9;
}

.signal-list strong {
  color: var(--primary);
}

.signal-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 0 7px rgba(128, 184, 255, 0.12);
}

.signal-dot.positive {
  background: var(--primary);
  box-shadow: 0 0 0 7px rgba(88, 242, 194, 0.12);
}

.signal-dot.warning {
  background: var(--gold);
  box-shadow: 0 0 0 7px rgba(247, 196, 107, 0.12);
}

.trusted-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #d5e2f3;
  background: rgba(255, 255, 255, 0.045);
}

.trusted-strip span {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 44px;
}

.section-heading.compact {
  margin-bottom: 0;
}

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

.feature-card,
.insight-card,
.strategy-stack article {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.16);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.feature-card::before,
.insight-card::before,
.strategy-stack article::before {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(circle at 20% 10%, rgba(88, 242, 194, 0.18), transparent 24rem);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.feature-card:hover,
.insight-card:hover,
.strategy-stack article:hover {
  border-color: rgba(88, 242, 194, 0.35);
  background: var(--panel-strong);
  transform: translateY(-8px);
}

.feature-card:hover::before,
.insight-card:hover::before,
.strategy-stack article:hover::before {
  opacity: 1;
}

.feature-card > *,
.insight-card > *,
.strategy-stack article > * {
  position: relative;
}

.icon {
  display: inline-grid;
  width: 50px;
  height: 50px;
  margin-bottom: 32px;
  place-items: center;
  border-radius: 16px;
  color: #06131f;
  font-weight: 900;
  background: var(--primary);
}

.feature-card p,
.insight-card p,
.strategy-stack p {
  color: var(--muted);
}

.strategy-stack {
  display: grid;
  gap: 16px;
}

.strategy-stack article {
  min-height: auto;
}

.strategy-stack span,
.insight-card time {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.risk-section {
  width: 100%;
  padding-right: max(16px, calc((100% - 1180px) / 2));
  padding-left: max(16px, calc((100% - 1180px) / 2));
  background:
    linear-gradient(90deg, rgba(88, 242, 194, 0.08), transparent 38%),
    rgba(255, 255, 255, 0.025);
}

.risk-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 44px;
  align-items: center;
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(5, 14, 28, 0.7);
  box-shadow: var(--shadow);
}

.risk-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.risk-list li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
}

.risk-list strong {
  color: var(--primary);
}

.risk-list span {
  color: #c9d8eb;
}

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

.insight-card a {
  color: var(--primary);
  font-weight: 800;
}

.contact-panel {
  padding: 48px;
  border: 1px solid rgba(88, 242, 194, 0.24);
  border-radius: 36px;
  background:
    radial-gradient(circle at 85% 18%, rgba(88, 242, 194, 0.16), transparent 22rem),
    rgba(9, 23, 43, 0.86);
  box-shadow: var(--shadow);
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: #dce8f9;
  font-weight: 700;
}

.contact-form input,
.contact-form select {
  min-height: 50px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  outline: none;
  background: rgba(255, 255, 255, 0.06);
  padding: 0 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form select:focus {
  border-color: rgba(88, 242, 194, 0.62);
  box-shadow: 0 0 0 4px rgba(88, 242, 194, 0.1);
}

.contact-form select option {
  color: #06131f;
}

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

.footer {
  display: flex;
  width: min(1180px, calc(100% - 32px));
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
  padding: 36px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.footer p {
  margin: 0;
}

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

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

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

.delay-2 {
  transition-delay: 0.22s;
}

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

@keyframes pulseLine {
  0%,
  100% {
    filter: drop-shadow(0 0 12px rgba(88, 242, 194, 0.35));
  }
  50% {
    filter: drop-shadow(0 0 24px rgba(88, 242, 194, 0.62));
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ambientSweep {
  0%,
  100% {
    transform: translateX(-20%);
    opacity: 0.4;
  }
  50% {
    transform: translateX(20%);
    opacity: 0.8;
  }
}

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

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(5, 12, 24, 0.96);
  }

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

  .hero-grid,
  .split-section,
  .risk-card,
  .contact-panel {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .topbar {
    top: 10px;
    width: calc(100% - 20px);
    padding: 10px;
  }

  .brand small {
    display: none;
  }

  .section {
    width: calc(100% - 28px);
    padding: 78px 0;
  }

  .hero {
    padding-top: 132px;
  }

  h1 {
    font-size: clamp(2.6rem, 16vw, 4.4rem);
  }

  .hero-metrics,
  .feature-grid,
  .insight-grid {
    grid-template-columns: 1fr;
  }

  .terminal-card,
  .risk-card,
  .contact-panel {
    padding: 20px;
  }

  .chart-panel {
    min-height: 260px;
  }

  .risk-list li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .footer {
    flex-direction: column;
  }
}
