:root {
  --bg: #0b0f19;
  --bg-2: #121026;
  --panel: rgba(18, 22, 36, 0.65);
  --text: #f8fafc;
  --muted: #94a3b8;
  --quiet: #64748b;
  --line: rgba(167, 139, 250, 0.15);
  --blue: #818cf8;
  --teal: #34d399;
  --violet: #a78bfa;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 82% 8%, rgba(52, 211, 153, 0.06), transparent 30rem),
    radial-gradient(circle at 18% 0%, rgba(167, 139, 250, 0.1), transparent 28rem),
    linear-gradient(180deg, var(--bg), var(--bg-2) 48%, var(--bg));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.62;
  overflow-x: hidden;
}

a { color: inherit; }

.bg-orb {
  position: fixed;
  z-index: -1;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.16;
  pointer-events: none;
}

.bg-orb-a { left: -14rem; top: 10%; background: #6d28d9; }
.bg-orb-b { right: -16rem; bottom: 8%; background: var(--violet); }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 15, 25, 0.75);
  backdrop-filter: blur(20px);
}

.header-inner {
  max-width: 1180px;
  width: calc(100% - 44px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.logo {
  display: block;
  height: 50px;
  width: auto;
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 750;
  letter-spacing: -0.01em;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease, background 0.3s ease;
}

.nav-cta {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.035);
}

.nav-cta:hover {
  transform: translateY(-2px);
  border-color: var(--violet);
  background: rgba(167, 139, 250, 0.12);
}

.button.primary {
  margin-top: 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  box-shadow: 0 18px 70px rgba(4, 120, 87, 0.15);
}

.button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 25px rgba(129, 140, 248, 0.4),
    0 18px 70px rgba(52, 211, 153, 0.25);
}

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

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(420px, 0.97fr);
  gap: 76px;
  align-items: center;
  padding-top: 160px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
}

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

h1, h2, h3 {
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
}

h1 {
  max-width: 760px;
  margin-bottom: 28px;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.065em;
  background: linear-gradient(135deg, #ffffff 40%, #c8adff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  line-height: 1.03;
  letter-spacing: -0.06em;
}

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

.hero-lead {
  color: var(--text);
  font-size: clamp(1.18rem, 2vw, 1.55rem);
}

.hero-copy p:not(.eyebrow),
.section-intro p:not(.eyebrow),
.thesis-point p,
.final-panel p:not(.eyebrow),
.usecase-card p,
.capability-card p,
.loop-copy {
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-visual {
  position: relative;
  min-height: 610px;
  border: 1px solid var(--line);
  border-radius: 38px;
  background:
    radial-gradient(circle at 50% 44%, rgba(137, 221, 255, 0.12), transparent 18rem),
    linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.02));
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-visual:before {
  content: "";
  position: absolute;
  inset: 0;
  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: 42px 42px;
  mask-image: radial-gradient(circle, black, transparent 77%);
}

.visual-label {
  position: absolute;
  left: 26px;
  top: 24px;
  z-index: 2;
  color: var(--quiet);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cycle-svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 610px;
}

.cycle-ring {
  fill: none;
  stroke: rgba(137, 221, 255, 0.22);
  stroke-width: 1.5;
}

.cycle-path {
  fill: none;
  stroke: url(#ringGradient);
  stroke-width: 3;
  stroke-dasharray: 8 15;
  opacity: 0.65;
}

.center-core circle {
  fill: rgba(15, 23, 42, 0.85);
  stroke: rgba(167, 139, 250, 0.35);
}

.center-core text {
  fill: var(--muted);
  font-size: 17px;
  letter-spacing: 0.04em;
}

.center-core .bold {
  fill: var(--text);
  font-size: 22px;
  font-weight: 800;
}

.node-svg rect {
  fill: rgba(15, 23, 42, 0.85);
  stroke: rgba(167, 139, 250, 0.3);
}

.node-title {
  fill: var(--text);
  font-size: 21px;
  font-weight: 800;
}

.node-sub {
  fill: var(--muted);
  font-size: 14px;
}

.thesis {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.thesis-grid {
  display: grid;
  gap: 10px;
}

.thesis-point {
  padding: 12px 0 12px 24px;
  border-left: 1px solid var(--line);
}

.thesis-point span,
.capability-card span {
  display: block;
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 900;
}

.section-intro {
  max-width: 790px;
  margin: 0 auto 54px;
  text-align: center;
}

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

.capability-card,
.flow-card,
.usecase-card,
.trust-item {
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(167, 139, 250, 0.12), transparent 14rem),
    var(--panel);
  backdrop-filter: blur(16px);
  transition: border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
}

.capability-card:hover,
.flow-card:hover,
.trust-item:hover {
  transform: translateY(-4px);
  border-color: rgba(167, 139, 250, 0.45);
  background:
    radial-gradient(circle at top left, rgba(167, 139, 250, 0.25), transparent 16rem),
    var(--panel);
  box-shadow: 0 20px 40px rgba(109, 40, 217, 0.12);
}

.capability-card {
  padding: 26px;
}

.model-flow {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto;
  gap: 16px;
  align-items: center;
}

.flow-card {
  min-height: 120px;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
}

.flow-card span {
  color: var(--text);
  font-weight: 800;
  font-size: 1.05rem;
}

.flow-arrow {
  color: var(--blue);
  font-size: 2rem;
  opacity: 0.75;
}

.flow-arrow.loop {
  color: var(--teal);
}

.loop-copy {
  margin-top: 24px;
  text-align: center;
}

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

.usecase-card {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 26px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.06)),
    radial-gradient(circle at top left, rgba(52, 211, 153, 0.04), transparent 14rem),
    var(--panel);
  transition: border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
}

.usecase-card:hover {
  transform: translateY(-4px);
  border-color: rgba(52, 211, 153, 0.4);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.06)),
    radial-gradient(circle at top left, rgba(52, 211, 153, 0.18), transparent 16rem),
    var(--panel);
  box-shadow: 0 20px 40px rgba(52, 211, 153, 0.08);
}

.trust-row {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.trust-item {
  padding: 22px;
  background: rgba(52, 211, 153, 0.02);
}

.trust-item strong {
  display: block;
  margin-bottom: 8px;
}

.trust-item span {
  color: var(--muted);
}

.final {
  padding-bottom: 64px;
}

.final-panel {
  padding: clamp(36px, 8vw, 86px);
  border: 1px solid var(--line);
  border-radius: 38px;
  background: var(--panel);
  text-align: center;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.final-panel h2,
.final-panel p {
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
}

.final-line {
  color: var(--text) !important;
  font-weight: 800;
  margin-top: 28px;
}

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

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 720ms ease, transform 720ms ease;
}

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

.delay-1 { transition-delay: 120ms; }
.delay-2 { transition-delay: 220ms; }
.delay-3 { transition-delay: 320ms; }

@media (max-width: 1040px) {
  .hero,
  .thesis {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 560px;
  }

  .capability-grid,
  .model-flow {
    grid-template-columns: 1fr;
  }

  .flow-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }

  .trust-row,
  .usecase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .header-inner {
    width: calc(100% - 28px);
    padding: 10px 0;
  }

  .logo { height: 40px; }

  .nav-cta {
    min-height: 40px;
    padding: 0 15px;
  }

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

  .hero {
    padding-top: 136px;
    gap: 52px;
  }

  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.8rem; }

  .hero-visual,
  .cycle-svg {
    min-height: 500px;
  }

  .node-title { font-size: 18px; }
  .node-sub { font-size: 12px; }

  .trust-row,
  .usecase-grid {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
    width: calc(100% - 28px);
  }
}

/* Custom Selection */
::selection {
  background: rgba(167, 139, 250, 0.35);
  color: #ffffff;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0b0f19;
}

::-webkit-scrollbar-thumb {
  background: #251d38;
  border-radius: 99px;
  border: 2px solid #0b0f19;
}

::-webkit-scrollbar-thumb:hover {
  background: #3c2a61;
}

/* Interactive SVG Nodes */
.node-svg, .center-core {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform-box: fill-box;
  transform-origin: center;
  cursor: pointer;
}

.node-svg:hover, .center-core:hover {
  transform: scale(1.04);
}

.node-svg rect, .center-core circle {
  transition: stroke 0.4s ease, fill 0.4s ease;
}

.node-svg:hover rect {
  stroke: rgba(167, 139, 250, 0.7);
  fill: rgba(18, 26, 47, 0.95);
}

.center-core:hover circle {
  stroke: rgba(52, 211, 153, 0.7);
  fill: rgba(18, 26, 47, 0.95);
}
