:root {
  --bg: #0d0b0a;
  --panel: rgba(255, 255, 255, 0.07);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --text: #f6f3ef;
  --muted: rgba(246, 243, 239, 0.64);
  --line: rgba(255, 255, 255, 0.14);
  --orange: #ff6b00;
  --rose: #ff2e5b;
  --cyan: #2dd4bf;
  --green: #8bd450;
  --ink: #16110f;
  --page-gutter: clamp(20px, 3vw, 58px);
  --page-max: 1620px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(
      circle at 15% 10%,
      rgba(255, 107, 0, 0.2),
      transparent 32rem
    ),
    radial-gradient(
      circle at 82% 18%,
      rgba(45, 212, 191, 0.14),
      transparent 28rem
    ),
    radial-gradient(
      circle at 65% 88%,
      rgba(255, 46, 91, 0.14),
      transparent 30rem
    ),
    var(--bg);
  color: var(--text);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input {
  font: inherit;
}

#field,
.cursor-light {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

#field {
  z-index: -2;
  opacity: 0.75;
}

.cursor-light {
  z-index: -1;
  background: radial-gradient(
    circle at var(--x, 50%) var(--y, 20%),
    rgba(255, 255, 255, 0.08),
    transparent 24rem
  );
}

.topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: grid;
  width: 100%;
  grid-template-columns: auto 1fr auto auto;
  gap: 24px;
  align-items: center;
  padding: 14px var(--page-gutter);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: rgba(13, 11, 10, 0.72);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(26px) saturate(150%);
}

.brand,
.nav-download,
.button,
.menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand {
  gap: 10px;
  font-size: 0.96rem;
  font-weight: 920;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--rose));
  color: white;
  box-shadow: 0 12px 30px rgba(255, 107, 0, 0.34);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.nav-links a {
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 760;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.nav-download {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--text);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 860;
}

.menu-button {
  display: none;
  width: 38px;
  height: 38px;
  gap: 4px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
}

.menu-button span {
  width: 15px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
}

.hero {
  position: relative;
  display: grid;
  width: min(var(--page-max), calc(100% - (var(--page-gutter) * 2)));
  min-height: 100vh;
  margin: 0 auto;
  padding: 118px 0 70px;
  grid-template-columns: minmax(0, 0.94fr) minmax(560px, 1.06fr);
  gap: clamp(30px, 4vw, 70px);
  align-items: center;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 18px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(246, 243, 239, 0.8);
  font-size: 0.74rem;
  font-weight: 860;
  text-transform: uppercase;
}

.eyebrow.dark {
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
}

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

h1 {
  max-width: 760px;
  font-size: clamp(4rem, 8vw, 8.6rem);
  line-height: 0.86;
  letter-spacing: 0;
}

h2 {
  max-width: 820px;
  font-size: clamp(2.4rem, 5.6vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.lead {
  max-width: 590px;
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.72;
}

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

.button {
  min-height: 54px;
  gap: 10px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 860;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
}

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

.button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.button.primary {
  background: linear-gradient(135deg, var(--orange), var(--rose));
  color: white;
  box-shadow: 0 22px 48px rgba(255, 87, 26, 0.34);
}

.button.subtle {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.button.full {
  width: 100%;
}

.product-stage {
  perspective: 1200px;
}

.app-window {
  position: relative;
  display: grid;
  min-height: 610px;
  grid-template-columns: 62px minmax(220px, 0.62fr) minmax(280px, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.12),
      rgba(255, 255, 255, 0.03)
    ),
    rgba(17, 14, 12, 0.74);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 40px 110px rgba(0, 0, 0, 0.46);
  transform-style: preserve-3d;
}

.app-window::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      110deg,
      transparent 0 38%,
      rgba(255, 255, 255, 0.16) 48%,
      transparent 58%
    ),
    radial-gradient(
      circle at 78% 8%,
      rgba(45, 212, 191, 0.16),
      transparent 22rem
    );
  opacity: 0.8;
  content: "";
  animation: glassSweep 7s ease-in-out infinite;
  pointer-events: none;
}

.window-sidebar,
.chat-pane,
.report-pane {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.window-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding-top: 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.side-dot {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.09);
}

.side-dot.active {
  background: linear-gradient(135deg, var(--orange), var(--rose));
}

.chat-pane {
  padding: 24px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.pane-title,
.report-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px var(--green);
}

.message {
  margin-top: 18px;
  padding: 14px;
  border-radius: 16px;
  font-size: 0.82rem;
  line-height: 1.55;
}

.message.user {
  margin-left: 28px;
  background: rgba(255, 255, 255, 0.09);
}

.message.ai {
  display: grid;
  gap: 7px;
  margin-right: 18px;
  border: 1px solid rgba(255, 107, 0, 0.24);
  background: rgba(255, 107, 0, 0.1);
  color: rgba(255, 210, 174, 0.92);
  font-family: "SFMono-Regular", Consolas, monospace;
}

.sql-progress {
  height: 6px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.sql-progress span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), var(--cyan));
  animation: progressRun 2.4s ease-in-out infinite;
}

.report-pane {
  padding: 24px;
}

.report-header strong,
.report-header span {
  display: block;
}

.report-header strong {
  margin-top: 4px;
  color: var(--text);
  font-size: 1rem;
}

.report-header button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 760;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.metric-card,
.chart-card,
.feature-card,
.timeline article,
.security-panel,
.download-section,
.download-card {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.075);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(24px);
}

.metric-card {
  container-type: inline-size;
  display: flex;
  min-width: 0;
  min-height: 132px;
  flex-direction: column;
  overflow: hidden;
  padding: 18px;
}

.metric-card span,
.chart-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
}

.metric-card strong {
  display: block;
  max-width: 100%;
  margin-top: 14px;
  overflow: hidden;
  font-size: clamp(1.65rem, 22cqw, 2.72rem);
  line-height: 0.95;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-card i {
  display: block;
  height: 6px;
  width: 100%;
  margin-top: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--rose));
}

.metric-card.green i {
  background: linear-gradient(90deg, var(--green), var(--cyan));
}

.chart-card {
  min-height: 214px;
  padding: 18px;
}

.chart-card.wide {
  grid-column: span 2;
}

.chart-title {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
}

.bars {
  display: flex;
  height: 154px;
  align-items: end;
  gap: 10px;
  padding-top: 22px;
}

.bars span {
  flex: 1;
  height: var(--h);
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, var(--cyan), var(--orange));
  animation: barPulse 2.8s ease-in-out infinite;
}

.bars span:nth-child(2n) {
  animation-delay: 0.22s;
}

.donut {
  width: 124px;
  height: 124px;
  margin: 12px auto 18px;
  border-radius: 50%;
  background: conic-gradient(
    var(--orange) 0 40%,
    var(--cyan) 40% 68%,
    var(--green) 68% 82%,
    rgba(255, 255, 255, 0.12) 82%
  );
  mask: radial-gradient(circle, transparent 0 42%, #000 43%);
  animation: spinSlow 9s linear infinite;
}

.ticker {
  overflow: hidden;
  border-block: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 28px;
  padding: 16px 0;
  animation: marquee 26s linear infinite;
}

.ticker span {
  color: rgba(246, 243, 239, 0.74);
  font-size: 0.82rem;
  font-weight: 860;
  text-transform: uppercase;
}

.section,
.download-section,
.footer {
  width: min(var(--page-max), calc(100% - (var(--page-gutter) * 2)));
  margin: 0 auto;
}

.section {
  padding: 112px 0;
}

.section-head {
  display: flex;
  max-width: 980px;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 36px;
}

.section-head .eyebrow {
  margin-bottom: 0;
}

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

.feature-card,
.timeline article {
  padding: 24px;
}

.feature-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.feature-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: white;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.feature-icon.orange {
  background: linear-gradient(135deg, var(--orange), var(--rose));
}

.feature-icon.cyan {
  background: linear-gradient(135deg, var(--cyan), #60a5fa);
}

.feature-icon.green {
  background: linear-gradient(135deg, var(--green), var(--cyan));
}

.feature-card h3,
.timeline h3 {
  margin-top: 22px;
  font-size: 1.18rem;
}

.feature-card p,
.timeline p,
.security-panel p,
.download-section p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.7;
}

.flow {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1fr);
  gap: 30px;
  align-items: start;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline span {
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 920;
}

.security-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.48fr);
  gap: 34px;
  padding: clamp(24px, 5vw, 48px);
  background:
    linear-gradient(135deg, rgba(255, 107, 0, 0.14), transparent 44%),
    rgba(255, 255, 255, 0.07);
}

.model-stack {
  display: grid;
  gap: 12px;
}

.model-stack span {
  display: flex;
  min-height: 60px;
  align-items: center;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
  font-weight: 860;
}

.download-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: center;
  margin-bottom: 90px;
  padding: clamp(24px, 5vw, 46px);
}

.download-card {
  padding: 20px;
}

.os-badge {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 760;
}

.download-note {
  display: block;
  margin-top: 12px;
  color: rgba(246, 243, 239, 0.48);
  font-size: 0.78rem;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0 36px;
  color: rgba(246, 243, 239, 0.52);
  font-size: 0.86rem;
}

.footer div,
.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.footer strong {
  color: rgba(246, 243, 239, 0.78);
  font-weight: 920;
}

.footer a {
  font-weight: 760;
}

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

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

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

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes glassSweep {
  0%,
  100% {
    transform: translateX(-30%);
  }
  50% {
    transform: translateX(30%);
  }
}

@keyframes progressRun {
  0%,
  100% {
    transform: translateX(-18%);
  }
  50% {
    transform: translateX(150%);
  }
}

@keyframes barPulse {
  0%,
  100% {
    filter: brightness(0.82);
    transform: scaleY(0.92);
  }
  50% {
    filter: brightness(1.18);
    transform: scaleY(1);
  }
}

@keyframes spinSlow {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: auto 1fr auto;
  }

  .nav-links {
    position: fixed;
    top: 66px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(13, 11, 10, 0.94);
  }

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

  .nav-download {
    display: none;
  }

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

  .hero,
  .flow,
  .security-panel,
  .download-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 122px;
  }

  .app-window {
    grid-template-columns: 52px 1fr;
  }

  .report-pane {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .section,
  .download-section,
  .footer,
  .hero {
    width: min(100% - 28px, 1180px);
  }

  h1 {
    font-size: clamp(3.05rem, 16vw, 4.6rem);
  }

  h2 {
    font-size: clamp(2.15rem, 11vw, 3.4rem);
  }

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

  .app-window {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .window-sidebar {
    display: none;
  }

  .chat-pane {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

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

  .chart-card.wide {
    grid-column: auto;
  }

  .footer,
  .footer div,
  .footer nav {
    align-items: flex-start;
  }

  .footer {
    flex-direction: column;
  }
}

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