:root {
  --bg: #080a10;
  --bg-2: #0d111d;
  --panel: rgba(18, 24, 39, 0.72);
  --panel-strong: rgba(25, 32, 49, 0.94);
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(125, 211, 252, 0.36);
  --text: #f8fafc;
  --muted: #9aa7ba;
  --dim: #667085;
  --cyan: #40e8ff;
  --blue: #4f8cff;
  --indigo: #8b5cf6;
  --green: #6ee7b7;
  --orange: #ff7043;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.46);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 20% 12%, rgba(64, 232, 255, 0.13), transparent 30rem),
    radial-gradient(circle at 78% 4%, rgba(79, 140, 255, 0.18), transparent 33rem),
    radial-gradient(circle at 50% 100%, rgba(139, 92, 246, 0.13), transparent 38rem),
    linear-gradient(180deg, #070910 0%, #0b0d14 44%, #080a10 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
  z-index: -5;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.13;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: fixed;
  width: 520px;
  height: 520px;
  pointer-events: none;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(64, 232, 255, 0.12), transparent 62%);
  transform: translate(-50%, -50%);
  z-index: -2;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.orb {
  position: fixed;
  z-index: -3;
  border-radius: 999px;
  filter: blur(42px);
  opacity: 0.45;
  animation: floatOrb 12s ease-in-out infinite alternate;
}

.orb-cyan {
  top: 18%;
  left: 4%;
  width: 16rem;
  height: 16rem;
  background: rgba(64, 232, 255, 0.24);
}

.orb-blue {
  right: 10%;
  top: 10%;
  width: 22rem;
  height: 22rem;
  background: rgba(79, 140, 255, 0.24);
  animation-delay: -4s;
}

.orb-indigo {
  right: 20%;
  bottom: 4%;
  width: 18rem;
  height: 18rem;
  background: rgba(139, 92, 246, 0.2);
  animation-delay: -7s;
}

@keyframes floatOrb {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(44px, -28px, 0) scale(1.12); }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  padding: 0.75rem 0;
  backdrop-filter: blur(18px);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.22), transparent);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  color: white;
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 12px 22px rgba(64, 232, 255, 0.18));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 0.55rem 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.nav-links a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  color: white;
  transform: translateY(-1px);
}

.nav-download,
.primary-btn,
.secondary-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav-download {
  padding: 0 1rem;
  color: #06111f;
  background: linear-gradient(135deg, var(--cyan), #8be9ff 42%, #ffffff);
  box-shadow: 0 0 38px rgba(64, 232, 255, 0.22);
}

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

.hero {
  padding: 5.8rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 3.4rem;
  align-items: center;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  color: #a8f6ff;
  background: rgba(64, 232, 255, 0.08);
  border: 1px solid rgba(64, 232, 255, 0.2);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(110, 231, 183, 0.7);
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(110, 231, 183, 0); }
  100% { box-shadow: 0 0 0 0 rgba(110, 231, 183, 0); }
}

.hero h1 {
  max-width: 720px;
  margin-top: 1.15rem;
  font-size: clamp(3.8rem, 9vw, 7.7rem);
  line-height: 0.86;
  letter-spacing: -0.055em;
  font-weight: 900;
}

.hero h1 span {
  display: block;
  color: transparent;
  background: linear-gradient(110deg, var(--cyan), #ffffff 38%, var(--blue) 72%, var(--indigo));
  background-clip: text;
  -webkit-background-clip: text;
  filter: drop-shadow(0 0 32px rgba(64, 232, 255, 0.16));
}

.hero-copy p,
.section-heading p,
.workflow-copy p,
.download-card p {
  max-width: 650px;
  color: var(--muted);
  margin-top: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.9rem;
}

.hero-actions.center {
  justify-content: center;
}

.primary-btn {
  min-height: 52px;
  padding: 0 1.25rem 0 1.35rem;
  color: #06111f;
  background: linear-gradient(135deg, var(--cyan), #eafcff);
  box-shadow: 0 16px 54px rgba(64, 232, 255, 0.22);
}

.primary-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.secondary-btn {
  min-height: 52px;
  padding: 0 1.25rem;
  color: #dce8f6;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.primary-btn:hover,
.secondary-btn:hover,
.nav-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 64px rgba(64, 232, 255, 0.26);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.trust-row span {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 999px;
  padding: 0.45rem 0.65rem;
  font-size: 0.78rem;
}

.hero-visual {
  perspective: 1200px;
}

.agent-window {
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.23);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(13, 17, 29, 0.98), rgba(9, 12, 20, 0.94));
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.04) inset, 0 0 88px rgba(64, 232, 255, 0.12);
  transform-style: preserve-3d;
}

.agent-window::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.08), transparent 42%);
  transform: translateX(-120%);
  animation: shimmer 6s ease-in-out infinite;
}

@keyframes shimmer {
  35%, 100% { transform: translateX(120%); }
}

.window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 46px;
  padding: 0 1rem;
  color: #b9c6d8;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(255, 255, 255, 0.025);
}

.traffic {
  display: flex;
  gap: 0.45rem;
}

.traffic span,
.window-icons i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #334155;
}

.traffic span:nth-child(1) { background: #ff5f56; }
.traffic span:nth-child(2) { background: #ffbd2e; }
.traffic span:nth-child(3) { background: #27c93f; }

.window-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.window-title img {
  width: 18px;
  height: 18px;
}

.window-icons {
  display: flex;
  gap: 0.5rem;
}

.agent-body {
  display: grid;
  grid-template-columns: 185px 1fr;
  min-height: 440px;
}

.mock-sidebar {
  padding: 1rem 0.75rem;
  background: rgba(3, 7, 18, 0.5);
  border-right: 1px solid rgba(148, 163, 184, 0.12);
}

.mini-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.mini-brand img {
  width: 32px;
  height: 32px;
}

.mini-brand small {
  display: block;
  margin-top: 0.12rem;
  color: var(--dim);
  font-size: 0.7rem;
}

.side-pill {
  display: block;
  padding: 0.65rem 0.7rem;
  color: var(--muted);
  border-radius: 10px;
  font-size: 0.8rem;
}

.side-pill.active {
  color: white;
  background: rgba(255, 255, 255, 0.07);
}

.mock-chat {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
}

.chat-title {
  color: white;
  font-size: 1.3rem;
  font-weight: 800;
  text-align: center;
  margin: 0.2rem 0 0.6rem;
}

.user-card,
.terminal-card,
.composer {
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(255, 255, 255, 0.045);
  border-radius: 14px;
  padding: 1rem;
}

.user-card {
  color: #f8fafc;
  font-weight: 650;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  align-self: center;
  color: #caefff;
  background: rgba(64, 232, 255, 0.07);
  border: 1px solid rgba(64, 232, 255, 0.18);
  border-radius: 999px;
  padding: 0.7rem 0.9rem;
  font-size: 0.82rem;
}

.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(125, 211, 252, 0.25);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

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

.terminal-card {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
  line-height: 1.8;
  background: rgba(0, 0, 0, 0.2);
}

.green { color: var(--green); }
.cyan { color: var(--cyan); }
.blue { color: #93c5fd; }
.white { color: white; }

.composer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  color: var(--dim);
}

.composer button {
  width: 36px;
  height: 36px;
  color: #06111f;
  background: white;
  border: 0;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 900;
}

.logo-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  width: min(980px, calc(100% - 32px));
  margin: 0 auto 4rem;
}

.logo-strip span {
  color: var(--muted);
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.65rem 0.9rem;
  font-size: 0.85rem;
}

.features-section,
.workflow-section,
.command-section {
  padding: 4.5rem 0;
}

.section-heading {
  display: grid;
  justify-items: center;
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-heading h2,
.workflow-copy h2,
.download-card h2 {
  max-width: 850px;
  margin-top: 1rem;
  font-size: clamp(2.4rem, 5vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 900;
}

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

.feature-card,
.command-card,
.workflow-panel,
.download-card,
.settings-card {
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.026));
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
}

.feature-card,
.command-card {
  min-height: 240px;
  border-radius: 20px;
  padding: 1.2rem;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.feature-card:hover,
.command-card:hover {
  transform: translateY(-8px);
  border-color: rgba(64, 232, 255, 0.38);
  background: linear-gradient(180deg, rgba(64, 232, 255, 0.085), rgba(255, 255, 255, 0.03));
}

.icon-ring {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--cyan);
  border: 1px solid rgba(64, 232, 255, 0.28);
  border-radius: 14px;
  background: rgba(64, 232, 255, 0.06);
  font-size: 0.82rem;
  font-weight: 900;
}

.feature-card h3,
.command-card p {
  margin-top: 1.1rem;
  color: white;
  font-size: 1.2rem;
}

.feature-card p,
.command-card code,
.timeline-item p,
.download-card small {
  display: block;
  margin-top: 0.7rem;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.92rem;
}

.workflow-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1.2fr);
  gap: 2.4rem;
  border-radius: 28px;
  padding: 2rem;
  overflow: hidden;
  position: relative;
}

.workflow-panel::before {
  content: "";
  position: absolute;
  inset: auto -10% -45% 30%;
  height: 75%;
  background: radial-gradient(circle, rgba(64, 232, 255, 0.12), transparent 62%);
}

.timeline {
  display: grid;
  gap: 0.8rem;
  position: relative;
}

.timeline-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: 0.9rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.28);
}

.timeline-item span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #06111f;
  background: linear-gradient(135deg, var(--cyan), #ffffff);
  border-radius: 14px;
  font-weight: 900;
}

.timeline-item strong {
  color: white;
}

.command-label {
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.command-card code {
  color: #a8f6ff;
  background: rgba(64, 232, 255, 0.06);
  border: 1px solid rgba(64, 232, 255, 0.12);
  border-radius: 12px;
  padding: 0.8rem;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.download-section {
  width: min(1050px, calc(100% - 32px));
  margin: 3rem auto 0;
  padding: 4rem 0 5rem;
}

.download-card {
  display: grid;
  justify-items: center;
  text-align: center;
  border-radius: 32px;
  padding: 3rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.download-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    radial-gradient(circle at 30% 0%, rgba(64, 232, 255, 0.16), transparent 34rem),
    radial-gradient(circle at 80% 100%, rgba(139, 92, 246, 0.14), transparent 34rem);
  pointer-events: none;
}

.download-card > * {
  position: relative;
}

.download-card img {
  width: 76px;
  height: 76px;
  margin-bottom: 1rem;
  object-fit: contain;
  filter: drop-shadow(0 20px 34px rgba(64, 232, 255, 0.18));
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 1.4rem 0 2rem;
  color: var(--muted);
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.site-footer .brand img {
  width: 30px;
  height: 30px;
}

.site-footer p,
.footer-links {
  font-size: 0.86rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a:hover {
  color: white;
}

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

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

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

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

  .hero {
    padding-top: 4.2rem;
  }

  .hero-grid,
  .workflow-panel {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: clamp(3.6rem, 14vw, 6rem);
  }

  .agent-body {
    grid-template-columns: 1fr;
  }

  .mock-sidebar {
    display: none;
  }

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

@media (max-width: 640px) {
  .site-header {
    width: min(100% - 20px, 1180px);
    min-height: 64px;
  }

  .brand span {
    font-size: 0.95rem;
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

  .nav-download {
    min-height: 38px;
    padding: 0 0.75rem;
    font-size: 0.78rem;
  }

  .section-shell,
  .download-section,
  .site-footer {
    width: min(100% - 20px, 1180px);
  }

  .hero {
    padding-top: 3rem;
  }

  .hero h1 {
    letter-spacing: -0.05em;
  }

  .hero-copy p,
  .section-heading p,
  .workflow-copy p,
  .download-card p {
    font-size: 0.96rem;
  }

  .primary-btn,
  .secondary-btn {
    width: 100%;
  }

  .agent-window {
    border-radius: 18px;
  }

  .mock-chat {
    padding: 0.85rem;
  }

  .window-title {
    font-size: 0.62rem;
  }

  .window-icons {
    display: none;
  }

  .feature-card,
  .command-card,
  .workflow-panel,
  .download-card {
    border-radius: 20px;
  }

  .workflow-panel {
    padding: 1rem;
  }

  .timeline-item {
    grid-template-columns: 40px 1fr;
    padding: 0.85rem;
  }

  .timeline-item span {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 0.78rem;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
  }
}

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