:root {
  color-scheme: dark;
  --bg: #060608;
  --bg-2: #0a0b11;
  --panel: rgba(15, 16, 27, 0.82);
  --panel-strong: rgba(18, 19, 35, 0.94);
  --line: rgba(255, 255, 255, 0.09);
  --text: #f8f5ff;
  --muted: #b7b1ca;
  --purple: #7c3aed;
  --purple-2: #a855f7;
  --shadow: 0 34px 95px rgba(0, 0, 0, 0.45);
  --r-lg: 26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(950px 560px at 15% -15%, rgba(124, 58, 237, 0.25), transparent 58%),
    radial-gradient(780px 480px at 88% 8%, rgba(168, 85, 247, 0.17), transparent 60%),
    linear-gradient(165deg, var(--bg), var(--bg-2));
  position: relative;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
::selection { background: rgba(124, 58, 237, 0.42); }

.site-noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 150px 150px;
  opacity: 0.04;
}
.orb { position: fixed; border-radius: 50%; filter: blur(80px); opacity: 0.36; z-index: 0; }
.orb-one { width: 420px; height: 420px; left: -140px; top: -130px; background: #6d28d9; }
.orb-two { width: 420px; height: 420px; right: -150px; top: 250px; background: #7c3aed; }

.section-wrap { width: min(1120px, calc(100vw - 48px)); margin: 0 auto; }
.section-heading h2 { margin: 0; font: 800 40px/1.12 Manrope, sans-serif; }
.section-heading p { color: var(--muted); max-width: 740px; }

header, footer { position: relative; z-index: 2; }
.site-header {
  width: min(1120px, calc(100vw - 40px)); margin: 22px auto 0; padding: 16px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(18, 18, 32, 0.45);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
.brand { font: 800 18px Manrope, sans-serif; display: inline-flex; align-items: center; gap: 8px; }
.brand-dot { width: 12px; height: 12px; border-radius: 999px; background: linear-gradient(135deg, #fff, var(--purple)); }
.brand strong { font-weight: 900; }
.brand span { color: var(--purple-2); }
nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
nav a { color: #c8c2dc; font-size: 14px; }
nav a:hover { color: #fff; }

.btn {
  border: 1px solid var(--line);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}
.btn:hover { transform: translateY(-1px); }
.btn-small { padding: 8px 12px; }
.btn-outline { border-color: rgba(255,255,255,.17); }
.btn-ghost { background: transparent; }
.btn-primary { background: linear-gradient(135deg, var(--purple), var(--purple-2)); border-color: transparent; box-shadow: 0 12px 30px rgba(124, 58, 237, .36); }
.btn-success { background: linear-gradient(135deg, #16a34a, #059669); color: #f8fdf9; }
.btn-full { width: 100%; text-align: center; }

.hero { margin-top: 38px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; z-index: 2; position: relative; }
h1, h2, h3 { margin: 0; }
h1 { font: 800 55px/1.07 Manrope, sans-serif; letter-spacing: -0.03em; }
h1 span { background: linear-gradient(120deg, #f0e7ff, #a78bfa, #7c3aed); -webkit-background-clip: text; color: transparent; }
h1 + p { color: var(--muted); max-width: 520px; font-size: 16px; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-copy .eyebrow, .section-heading .eyebrow { display: inline-block; margin-bottom: 14px; font-size: 11px; letter-spacing: .12em; color: #d8cff6; text-transform: uppercase; font-weight: 800; }
.trust-row { margin-top: 22px; color: var(--muted); display: grid; gap: 7px; }
.trust-row b { color: #d8cff6; margin-right: 8px; }

.hero-visual { perspective: 900px; }
.window { border-radius: 28px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow); transform: rotateY(-4deg) rotateX(4deg); animation: floaty 6s ease-in-out infinite alternate; }
.window-top { padding: 14px 18px; display: flex; gap: 8px; align-items: center; border-bottom: 1px solid var(--line); color: #dbd4ee; }
.window-top span { width: 9px; height: 9px; border-radius: 50%; background: #444; }
.window-top span:nth-child(1) { background: #ef4444; } .window-top span:nth-child(2) { background: #f59e0b; } .window-top span:nth-child(3) { background: #22c55e; }
.window-top em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--muted); }
.window-body { display: grid; grid-template-columns: 90px 1fr; }
.window-body aside { padding: 16px 12px; border-right: 1px solid var(--line); display: grid; gap: 12px; }
.mini-logo { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, var(--purple), var(--purple-2)); color: #fff; font-weight: 800; }
.mini-nav { width: 100%; height: 28px; border-radius: 7px; background: rgba(255,255,255,0.05); }
.mini-nav.active { background: linear-gradient(135deg, rgba(124,58,237,.7), rgba(168,85,247,.45)); }
.mock-content { padding: 16px; }
.mock-head { display: flex; justify-content: space-between; align-items: center; }
.mock-head h3 { margin: 0; font-size: 15px; }
.mock-head small { color: var(--muted); }
.mock-head button { border: 0; color: #d6cdf4; background: rgba(124,58,237,.23); padding: 8px 11px; border-radius: 10px; }
.mock-stats { margin-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock-stats > div { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: rgba(255,255,255,.03); }
.mock-stats strong { font: 800 19px Manrope, sans-serif; }
.mock-stats small { color: var(--muted); }
.mock-grid { margin-top: 14px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 10px; }
.chart { border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.chart small { color: var(--muted); font-size: 12px; }
.chart-line { height: 88px; display: flex; align-items: flex-end; gap: 5px; }
.chart-line i { width: 9%; border-radius: 8px 8px 0 0; background: linear-gradient(180deg, rgba(168,85,247,0.95), rgba(124,58,237,.15)); }
.chart-line i:nth-child(1) { height: 24px; } .chart-line i:nth-child(2) { height: 54px; } .chart-line i:nth-child(3) { height: 45px; } .chart-line i:nth-child(4) { height: 75px; } .chart-line i:nth-child(5) { height: 30px; } .chart-line i:nth-child(6) { height: 68px; } .chart-line i:nth-child(7) { height: 82px; }
.logs { border: 1px solid var(--line); border-radius: 12px; padding: 8px; font-size: 12px; }
.logs p { margin: 9px 0; color: #c9c0da; }

.signal-bar { width: min(1120px, calc(100vw - 48px)); margin: 28px auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.signal-bar > div { background: var(--panel); border: 1px solid var(--line); padding: 16px 14px; border-radius: 16px; font-weight: 700; color: #e8e0ff; }

.feature-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature-card, .screen-card, .step, .download-card, .faq-item, .changelog-item, .download-section, .contact-section, .step { border: 1px solid var(--line); border-radius: 18px; background: var(--panel); padding: 22px; backdrop-filter: blur(16px); }
.feature-card h3, .screen-card figcaption, .step h3 { font: 800 24px/1.2 Manrope, sans-serif; }
.feature-wide { grid-column: span 2; }
.feature-card p, .step p { color: var(--muted); line-height: 1.5; }
.feature-no { display: inline-block; margin-bottom: 6px; font-weight: 800; color: #d8cbff; }
.log-preview p { margin: 8px 0; font-size: 12px; color: #d3cae9; }
.log-green { color: #4ade80; margin-right: 6px; font-weight: 700; }
.log-purple { color: #c4b5fd; margin-right: 6px; font-weight: 700; }
.log-yellow { color: #f59e0b; margin-right: 6px; font-weight: 700; }
.task-stack { margin-top: 12px; display: grid; gap: 10px; }
.task-stack span { color: #d8d2eb; border-left: 3px solid rgba(124,58,237,.9); padding-left: 10px; font-size: 14px; }

.screen-section { margin: 52px 0; }
.screens-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.screen-card figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }
.screen-art { height: 210px; border-radius: 14px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.dashboard-art { background: linear-gradient(155deg, rgba(14, 15, 24, .98), rgba(36, 37, 57, .75)); }
.logs-art { background: #0b0b16; }
.jobs-art { background: linear-gradient(120deg, rgba(124,58,237, .25), rgba(12, 13, 25, .95)); }
.screen-pill { position: absolute; top: 12px; left: 12px; font-size: 11px; color: #efe7ff; border: 1px solid var(--line); padding: 5px 8px; border-radius: 999px; }
.screen-bars { display: flex; align-items: flex-end; gap: 8px; height: 50%; width: 80%; }
.screen-bars i { width: 18%; border-radius: 8px 8px 0 0; background: linear-gradient(180deg, #a855f7, #7c3aed); }
.screen-bars i:nth-child(1){height: 38%;} .screen-bars i:nth-child(2){height: 68%;} .screen-bars i:nth-child(3){height: 52%;} .screen-bars i:nth-child(4){height: 80%;} .screen-bars i:nth-child(5){height: 60%;}
.screen-console { width: 84%; color: #cdc4ea; font-size: 12px; background: rgba(0,0,0,.45); border-radius: 12px; padding: 14px; border: 1px solid var(--line); }
.screen-console p { margin: 8px 0; }
.job-line { width: 80%; margin: 10px 0; display: flex; align-items: center; gap: 10px; }
.job-line span { width: 9px; height: 9px; border-radius: 50%; background: linear-gradient(135deg, #22c55e, #16a34a); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.step span { display: inline-block; font-size: 28px; color: #d8cbff; font-weight: 800; margin-bottom: 6px; }

.download-section { margin-top: 42px; padding: 28px 0; }
.download-grid { display: grid; grid-template-columns: 1fr 380px; gap: 24px; }
.download-copy p { color: var(--muted); max-width: 540px; }
.release-meta { margin-top: 20px; display: grid; gap: 10px; }
.release-meta div { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding-bottom: 10px; }
.release-meta span { color: var(--muted); }
.sha-row { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: rgba(0,0,0,.24); }
.sha-row code { font-size: 12px; color: #d6cbff; }

.download-card { padding: 18px; }
.download-card-head { display: flex; gap: 12px; align-items: center; }
.download-card-head .lock-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: 18px; color: #c4b5fd; background: rgba(124,58,237,.16); }
form label { display: block; margin: 14px 0; }
form span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 8px; }
input { width: 100%; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--text); padding: 11px 12px; }
.download-status { margin-top: 12px; min-height: 42px; color: var(--muted); font-size: 13px; }

.changelog-list { margin-top: 18px; display: grid; gap: 12px; }
.changelog-item { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.changelog-item h4 { margin: 0 0 8px; }
.changelog-item p { margin: 0; color: var(--muted); }

.faq-list { margin-top: 18px; display: grid; gap: 10px; }
.faq-item { padding: 8px 14px; }
summary { cursor: pointer; font-weight: 700; padding: 10px 2px; outline: none; }
.faq-item p { color: var(--muted); margin: 0 0 8px; }

.contact-section { margin-top: 44px; }
.contact-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.contact-inner h2 { margin-bottom: 8px; }
.contact-inner p { color: var(--muted); }

footer { padding: 48px 0 30px; margin-top: 40px; border-top: 1px solid var(--line); position: relative; z-index: 2; }
.footer-inner { width: min(1120px, calc(100vw - 48px)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer-inner div { display: flex; gap: 16px; }

.hidden { display: none !important; }

@keyframes floaty { from { transform: rotateY(-4deg) rotateX(4deg) translateY(0px); } to { transform: rotateY(-4deg) rotateX(4deg) translateY(-10px); } }

@media (max-width: 1000px) {
  .hero, .download-grid, .feature-grid, .steps, .screens-grid, .signal-bar, .mock-grid, .footer-inner, .contact-inner {
    grid-template-columns: 1fr;
  }
  .hero { margin-top: 20px; }
  h1 { font-size: 40px; }
  .site-header { width: min(1120px, calc(100vw - 24px)); border-radius: 18px; flex-wrap: wrap; }
  nav { width: 100%; justify-content: space-between; order: 3; }
  .feature-wide { grid-column: auto; }
}

@media (max-width: 680px) {
  .section-wrap { width: calc(100vw - 32px); }
  .site-header { padding: 14px; }
  nav { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
  nav a { white-space: nowrap; }
  .signal-bar { grid-template-columns: 1fr; }
  .feature-card, .step { padding: 16px; }
  .release-meta div { flex-direction: column; }
  h1 { font-size: 34px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .hero-visual { overflow: hidden; }
  .window { transform: none; animation: none; border-radius: 20px; }
  .window-body { grid-template-columns: 58px 1fr; }
  .window-body aside { padding: 12px 8px; }
  .mini-logo { width: 36px; height: 36px; }
  .mock-content { padding: 12px; min-width: 0; }
  .mock-head button { display: none; }
  .mock-stats { grid-template-columns: 1fr; }
  .mock-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .download-card-head { align-items: flex-start; }
}

.reveal { animation: revealUp .4s ease both; opacity: .99; }
.delay-1 { animation-delay: .08s; }
.delay-2 { animation-delay: .16s; }
@keyframes revealUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
