:root {
  --bg: #f9fafb;
  --bg-2: #f3f4f6;
  --panel: rgba(255, 255, 255, 0.75);
  --text: #1a1625;
  --muted: #4e485a;
  --quiet: #736b82;
  --line: rgba(115, 107, 130, 0.15);
  --blue: #6d28d9;
  --teal: #047857;
  --violet: #6d28d9;
  --shadow: 0 30px 90px rgba(26, 22, 37, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 82% 8%, rgba(4, 120, 87, 0.04), transparent 30rem),
    radial-gradient(circle at 18% 0%, rgba(109, 40, 217, 0.03), 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.04;
  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(255, 255, 255, 0.80);
  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;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

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

.nav-cta:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.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 {
  box-shadow: 0 22px 80px rgba(4, 120, 87, 0.35);
  transform: translateY(-2px);
}

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

.section-panel {
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 38px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(420px, 0.97fr);
  gap: 76px;
  align-items: center;
  padding-top: 3cm;
  padding-bottom: 36px;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  mix-blend-mode: lighten;
  opacity: 0.85;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

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

h4 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.12rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(2.0rem, 3.8vw, 3.0rem);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

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;
}

.diagram-wrap {
  width: 100%;
  max-width: 440px;
  margin-top: 18px;
  margin-bottom: 0;
}

.diagram-wrap .hero-visual {
  max-width: 100%;
}

.hero-visual {
  position: relative;
  min-height: 0;
  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 .hero-visual {
  max-width: 450px;
  width: 100%;
  height: 320px;
  margin-left: auto;
  margin-right: auto;
}

.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: auto;
  min-height: 0;
}

.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.9);
  stroke: rgba(56, 189, 248, 0.5);
  stroke-width: 2;
}

.center-core text {
  fill: #ffffff;
  font-size: 17px;
  letter-spacing: 0.04em;
}

.center-core .bold {
  fill: #ffffff;
  font-size: 22px;
  font-weight: 800;
}

.node-svg rect {
  fill: rgba(15, 23, 42, 0.8);
  stroke-width: 1.5;
  transition: stroke 0.3s ease, fill 0.3s ease;
}

.node-a rect {
  stroke: rgba(59, 130, 246, 0.45);
  fill: rgba(59, 130, 246, 0.06);
}
.node-a:hover rect {
  stroke: rgba(59, 130, 246, 0.9);
  fill: rgba(59, 130, 246, 0.14);
}

.node-b rect {
  stroke: rgba(6, 182, 212, 0.45);
  fill: rgba(6, 182, 212, 0.06);
}
.node-b:hover rect {
  stroke: rgba(6, 182, 212, 0.9);
  fill: rgba(6, 182, 212, 0.14);
}

.node-c rect {
  stroke: rgba(99, 102, 241, 0.45);
  fill: rgba(99, 102, 241, 0.06);
}
.node-c:hover rect {
  stroke: rgba(99, 102, 241, 0.9);
  fill: rgba(99, 102, 241, 0.14);
}

.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.03);
}

.center-core:hover circle {
  stroke: rgba(0, 240, 255, 0.9);
  fill: rgba(15, 23, 42, 0.95);
}

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

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

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

.thesis-grid {
  display: grid;
  gap: 4px;
  padding-top: 32px;
}

.thesis-point {
  padding: 6px 0 6px 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 28px;
  text-align: center;
}

.capabilities-container {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 32px;
  margin-top: 36px;
  align-items: stretch;
  text-align: left;
}

.capability-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.capability-item {
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.capability-item:hover {
  border-color: rgba(109, 40, 217, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(26, 22, 37, 0.04);
}

.capability-item.active {
  border-color: var(--blue);
  background: rgba(109, 40, 217, 0.04);
  box-shadow: 0 12px 36px rgba(109, 40, 217, 0.06);
}

.capability-item.active h4 {
  color: var(--blue);
}

.capability-item h4 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.capability-item p {
  margin: 0;
  font-size: 0.95rem !important;
  line-height: 1.5;
  color: var(--muted);
}

/* Preview Panel */
.preview-panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #0b0910;
  box-shadow: var(--shadow), 0 20px 50px rgba(13, 11, 20, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 380px;
}

.preview-header {
  background: #110e1a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preview-dots {
  display: flex;
  gap: 6px;
}

.preview-dots .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.preview-dots .dot:nth-child(1) { background: #ef4444; }
.preview-dots .dot:nth-child(2) { background: #f59e0b; }
.preview-dots .dot:nth-child(3) { background: #10b981; }

.preview-tabs {
  display: flex;
  gap: 4px;
}

.preview-tab {
  background: transparent;
  border: none;
  color: var(--quiet);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.preview-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.preview-tab.active {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.09);
}

.preview-body {
  flex: 1;
  padding: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  background: #06040a;
}

.preview-content {
  margin: 0;
  display: none;
  opacity: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.25s ease;
}

.preview-content.active {
  display: block;
  opacity: 1;
}

.preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  display: block;
}

.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);
}

.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: 12px;
}

.usecase-card {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 18px;
  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);
}

.trust-intro {
  text-align: center;
  margin-top: 42px;
  margin-bottom: -4px;
  color: var(--muted);
  font-size: 1.12rem;
}

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

.trust-item {
  padding: 14px;
  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(20px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 38px;
  background: var(--panel);
  text-align: center;
  box-shadow: var(--shadow);
}

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

.final-line {
  color: var(--text) !important;
  font-weight: 400;
  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-layout {
    grid-template-columns: 1fr;
  }

  .thesis-grid {
    padding-top: 0;
  }

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

  .hero .hero-visual {
    margin-left: auto;
    margin-right: auto;
  }

  .capabilities-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .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: 260px;
  }

  .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);
  }
}

/* Waitlist Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(13, 11, 20, 0.55);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-window {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 28px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.3), var(--shadow);
  position: relative;
  transform: translateY(30px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  backdrop-filter: blur(20px);
}

.modal-overlay.active .modal-window {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  border: none;
  background: rgba(26, 22, 37, 0.05);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.modal-close:hover {
  background: rgba(26, 22, 37, 0.1);
  color: var(--text);
  transform: scale(1.05);
}

.modal-content {
  padding: 36px;
  text-align: left;
}

.modal-content h3 {
  margin-bottom: 8px;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--text);
}

.modal-description {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 24px;
  margin-top: 0;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(109, 40, 217, 0.08);
}

.form-submit {
  width: 100%;
  margin-top: 10px !important;
  cursor: pointer;
  font-family: inherit;
  border: none;
}

/* Form Success state */
.form-success {
  text-align: center;
  padding: 24px 0;
}

.success-icon {
  width: 64px;
  height: 64px;
  background: rgba(4, 120, 87, 0.08);
  color: var(--teal);
  font-size: 28px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.form-success h4 {
  margin-bottom: 8px;
  font-size: 1.25rem;
  font-weight: 800;
}

.form-success p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}