:root {
  --bg: #07090f;
  --bg-elevated: #0d111a;
  --bg-soft: #121826;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f3f5f9;
  --muted: #9aa6bc;
  --dim: #6d7a92;
  --brand: #4fd1ff;
  --brand-2: #7c5cff;
  --brand-3: #39e58c;
  --warm: #ff6b4a;
  --radius: 18px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --font-display: "Syne", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(79, 209, 255, 0.12), transparent 60%),
    radial-gradient(900px 500px at 90% 20%, rgba(124, 92, 255, 0.1), transparent 55%),
    radial-gradient(800px 480px at 10% 40%, rgba(57, 229, 140, 0.06), transparent 50%),
    var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

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

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  background: #fff;
  color: #000;
  padding: 10px 14px;
  z-index: 1000;
}

.skip-link:focus {
  left: 12px;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(7, 9, 15, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.nav.scrolled {
  border-bottom-color: var(--line);
  background: rgba(7, 9, 15, 0.9);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4fd1ff, #7c5cff 55%, #39e58c);
  color: #061018;
  font-weight: 700;
  font-size: 0.9rem;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: end;
  padding: 48px 0 64px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 35%, rgba(7, 9, 15, 0.55) 70%, var(--bg) 100%),
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(79, 209, 255, 0.08), transparent);
  pointer-events: none;
  z-index: 1;
}

.hero-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  opacity: 0.55;
}

.hero-visual {
  width: min(1100px, 92vw);
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background:
    linear-gradient(160deg, rgba(18, 24, 38, 0.95), rgba(10, 13, 22, 0.98));
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: perspective(1400px) rotateX(8deg) translateY(40px);
  animation: float-in 1.1s ease both;
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: perspective(1400px) rotateX(12deg) translateY(80px);
  }
  to {
    opacity: 1;
    transform: perspective(1400px) rotateX(8deg) translateY(40px);
  }
}

.ide-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3a4254;
}

.dot:nth-child(1) { background: #ff5f57; }
.dot:nth-child(2) { background: #febc2e; }
.dot:nth-child(3) { background: #28c840; }

.ide-title {
  margin-left: 10px;
  color: var(--dim);
  font-size: 0.78rem;
}

.ide-body {
  display: grid;
  grid-template-columns: 56px 1.1fr 1.4fr;
  min-height: 100%;
}

.ide-rail {
  border-right: 1px solid var(--line);
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.rail-ico {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

.rail-ico.active {
  background: linear-gradient(135deg, #4fd1ff, #7c5cff);
}

.ide-sidebar,
.ide-editor {
  padding: 18px;
  border-right: 1px solid var(--line);
}

.ide-editor {
  border-right: 0;
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 0.82rem;
  color: #c7d0e0;
}

.line {
  display: flex;
  gap: 16px;
  margin-bottom: 8px;
  opacity: 0;
  animation: line-in 0.5s ease forwards;
}

.line:nth-child(1) { animation-delay: 0.3s; }
.line:nth-child(2) { animation-delay: 0.45s; }
.line:nth-child(3) { animation-delay: 0.6s; }
.line:nth-child(4) { animation-delay: 0.75s; }
.line:nth-child(5) { animation-delay: 0.9s; }
.line:nth-child(6) { animation-delay: 1.05s; }
.line:nth-child(7) { animation-delay: 1.2s; }

@keyframes line-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.ln {
  width: 18px;
  color: #4a5568;
  text-align: right;
  flex-shrink: 0;
}

.kw { color: #7c9cff; }
.fn { color: #4fd1ff; }
.str { color: #39e58c; }
.cm { color: #667085; }
.accent { color: #ff9f7a; }

.file-row {
  height: 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  margin-bottom: 10px;
}

.file-row.w60 { width: 60%; }
.file-row.w80 { width: 80%; }
.file-row.w45 { width: 45%; }
.file-row.w70 { width: 70%; }
.file-row.active {
  background: linear-gradient(90deg, rgba(79, 209, 255, 0.35), rgba(124, 92, 255, 0.2));
}

.hero-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  padding-top: clamp(120px, 22vh, 220px);
  animation: rise 0.9s ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.hero-brand img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(79, 209, 255, 0.25);
}

.hero-brand span {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(110deg, #fff 20%, #4fd1ff 45%, #7c5cff 70%, #39e58c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.hero p {
  margin: 0 auto 28px;
  max-width: 560px;
  color: var(--muted);
  font-size: 1.08rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

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

.btn-primary {
  background: #fff;
  color: #0a0d14;
}

.btn-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

/* Sections */
section {
  padding: 96px 0;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.product {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 40%),
    var(--bg-elevated);
  overflow: hidden;
  min-height: 220px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.product:hover {
  border-color: rgba(79, 209, 255, 0.35);
  transform: translateY(-3px);
}

.product::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 209, 255, 0.16), transparent 70%);
  pointer-events: none;
}

.product h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.product p {
  margin: 0;
  color: var(--muted);
  max-width: 42ch;
}

.product .tag {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--dim);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Features */
.feature-rail {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.feature-list {
  display: grid;
  gap: 18px;
}

.feature-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.feature-item:first-child {
  border-top: 1px solid var(--line);
}

.feature-item h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-family: var(--font-display);
}

.feature-item p {
  margin: 0;
  color: var(--muted);
}

.feature-panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--bg-elevated);
  padding: 28px;
  min-height: 360px;
  box-shadow: var(--shadow);
}

.chat-bubble {
  max-width: 90%;
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.chat-bubble.ai {
  background: linear-gradient(135deg, rgba(79, 209, 255, 0.12), rgba(124, 92, 255, 0.1));
  border-color: rgba(79, 209, 255, 0.25);
  color: var(--text);
}

.chat-bubble .label {
  display: block;
  margin-bottom: 6px;
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Audience */
.audience {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.audience article {
  padding: 28px 24px;
  border-top: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
}

.audience h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.audience p {
  margin: 0;
  color: var(--muted);
}

/* Download */
.download-band {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(32px, 5vw, 56px);
  background:
    radial-gradient(600px 280px at 20% 0%, rgba(79, 209, 255, 0.12), transparent 60%),
    radial-gradient(500px 260px at 90% 100%, rgba(124, 92, 255, 0.12), transparent 55%),
    var(--bg-elevated);
  text-align: center;
}

.download-band h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  letter-spacing: -0.03em;
}

.download-band > p {
  margin: 0 auto 32px;
  max-width: 520px;
  color: var(--muted);
}

.os-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  text-align: left;
}

.os-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.28);
}

.os-card h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.os-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.os-card .btn {
  width: 100%;
}

/* FAQ */
.faq {
  max-width: 780px;
  margin: 0 auto;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details p {
  margin: 12px 0 0;
  color: var(--muted);
}

/* Footer */
.footer {
  padding: 56px 0 36px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 40px;
}

.footer h4 {
  margin: 0 0 14px;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

.footer a {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.footer-brand p {
  margin: 12px 0 0;
  color: var(--muted);
  max-width: 34ch;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.88rem;
}

/* Inner pages */
.page-hero {
  padding: 72px 0 40px;
  text-align: center;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.03em;
}

.page-hero p {
  margin: 0 auto;
  max-width: 640px;
  color: var(--muted);
  font-size: 1.08rem;
}

.prose {
  max-width: 760px;
  margin: 0 auto;
  padding-bottom: 80px;
}

.prose h2 {
  margin: 40px 0 12px;
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose ul {
  padding-left: 1.2rem;
}

.prose a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Comparison */
.compare-wrap {
  overflow-x: auto;
  margin: 28px 0 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-elevated);
}

table.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 520px;
}

table.compare th,
table.compare td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

table.compare thead th {
  color: var(--dim);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

table.compare tbody th {
  color: var(--text);
  font-weight: 600;
}

table.compare td {
  color: var(--muted);
}

table.compare .own {
  color: var(--brand);
  font-weight: 600;
}

table.compare tr:last-child th,
table.compare tr:last-child td {
  border-bottom: 0;
}

.note {
  margin-top: 14px;
  padding: 14px 16px;
  border-left: 2px solid var(--line-strong);
  color: var(--dim);
  font-size: 0.88rem;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.compare-card {
  display: block;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.compare-card:hover {
  border-color: rgba(79, 209, 255, 0.35);
  transform: translateY(-3px);
}

.compare-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.compare-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 960px) {
  .compare-grid {
    grid-template-columns: 1fr;
  }
}

/* Motion reduce */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

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

  .nav-links.open {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 20px 20px;
    background: rgba(7, 9, 15, 0.96);
    border-bottom: 1px solid var(--line);
  }

  .nav-links.open a {
    padding: 12px 0;
    width: 100%;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .product-grid,
  .feature-rail,
  .audience,
  .os-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .ide-body {
    grid-template-columns: 48px 1fr;
  }

  .ide-sidebar {
    display: none;
  }

  .hero-visual {
    transform: none;
    opacity: 0.7;
  }

  @keyframes float-in {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 0.7; transform: none; }
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--max), calc(100% - 28px));
  }

  .hero-brand img {
    width: 48px;
    height: 48px;
  }

  section {
    padding: 72px 0;
  }

  .cta-row {
    flex-direction: column;
  }

  .cta-row .btn {
    width: 100%;
  }
}
