@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300&display=swap');

:root {
  --void:       #050508;
  --deep:       #080b12;
  --surface:    #0c1018;
  --surface-2:  #111822;
  --card:       rgba(255, 255, 255, 0.042);
  --card-hover: rgba(255, 255, 255, 0.068);
  --line:       rgba(255, 255, 255, 0.08);
  --line-2:     rgba(255, 255, 255, 0.13);
  --text:  #e8eef7;
  --muted: #8a96ab;
  --soft:  #535e72;
  --flow:      #00c9b8;
  --flow-2:    #00ffe9;
  --veil:      #6f5cff;
  --veil-2:    #a08aff;
  --dragon:    #c9a84c;
  --dragon-2:  #f0d080;
  --radius: 20px;
  --max: 1080px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Syne', ui-sans-serif, system-ui, sans-serif;
  background: var(--void);
  color: var(--text);
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
  background:
    radial-gradient(ellipse 60% 50% at 15% -10%, rgba(111, 92, 255, 0.13), transparent),
    radial-gradient(ellipse 50% 40% at 85% 20%,  rgba(0, 201, 184, 0.09), transparent),
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(201, 168, 76, 0.06), transparent),
    var(--deep);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background-image:
    linear-gradient(rgba(0, 201, 184, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 201, 184, 0.028) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 75%);
  animation: gridDrift 20s linear infinite;
}

@keyframes gridDrift {
  from { background-position: 0 0; }
  to   { background-position: 52px 52px; }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 8, 0.82);
  backdrop-filter: blur(24px) saturate(1.4);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  letter-spacing: -0.05em;
  font-size: 17px;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  box-shadow: 0 0 24px rgba(0, 201, 184, 0.22);
}

.brand span {
  background: linear-gradient(100deg, var(--text), var(--flow-2) 70%, var(--veil-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 13.5px;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font-weight: 700;
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
}

.btn-primary {
  border: 0;
  color: #020d0c;
  background: linear-gradient(135deg, var(--flow-2), var(--flow) 55%, #009e92);
  box-shadow: 0 0 0 1px rgba(0,201,184,0.25), 0 14px 38px rgba(0, 201, 184, 0.22);
  font-weight: 800;
}

.btn-primary:hover {
  box-shadow: 0 0 0 1px rgba(0,201,184,0.4), 0 18px 48px rgba(0, 201, 184, 0.32);
  transform: translateY(-2px);
}

.hero {
  padding: 90px 0 80px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--flow-2);
  background: rgba(0, 201, 184, 0.08);
  border: 1px solid rgba(0, 201, 184, 0.2);
  font-size: 12px;
  font-weight: 700;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1, h2, h3 { margin: 0; letter-spacing: -0.055em; }

h1 {
  max-width: 720px;
  font-size: clamp(44px, 6.5vw, 80px);
  line-height: 0.95;
  font-weight: 800;
}

h2 { font-size: clamp(30px, 4vw, 52px); line-height: 1; }
h3 { font-size: 19px; }

.gradient-text {
  background: linear-gradient(115deg, #d4f5f2, var(--flow-2), var(--veil-2) 75%, var(--dragon-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy, .section-title p, .card p, .legal-page p, .legal-page li {
  color: var(--muted);
  line-height: 1.7;
}

.hero-copy {
  margin: 22px 0 0;
  max-width: 600px;
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.68;
}

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

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 13px;
  font-family: 'DM Mono', monospace;
}

.preview {
  max-width: 400px;
  margin-left: auto;
  border: 1px solid rgba(0, 201, 184, 0.15);
  border-radius: 38px;
  padding: 14px;
  background: linear-gradient(160deg, rgba(0,201,184,0.07), rgba(111,92,255,0.05) 50%, rgba(255,255,255,0.025));
  box-shadow:
    0 0 0 1px rgba(0,201,184,0.08),
    0 32px 80px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

.preview-screen {
  min-height: 520px;
  padding: 18px;
  border-radius: 30px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(0,201,184,0.1), transparent 40%),
    radial-gradient(ellipse at 80% 100%, rgba(111,92,255,0.07), transparent 40%),
    #070b10;
  border: 1px solid rgba(255,255,255,0.07);
  overflow: hidden;
  position: relative;
}

.preview-screen::before {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--flow), transparent);
  opacity: 0.6;
}

.status {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  color: var(--soft);
  font-size: 11px;
  font-family: 'DM Mono', monospace;
}

.chat-top {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 22px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(0,201,184,0.06);
  border: 1px solid rgba(0,201,184,0.12);
}

.app-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  box-shadow: 0 0 16px rgba(0,201,184,0.3);
}

.chat-top strong { display: block; font-size: 14px; }
.chat-top span {
  display: block;
  margin-top: 2px;
  color: var(--flow);
  font-size: 11px;
  font-family: 'DM Mono', monospace;
}

.messages { display: grid; gap: 10px; }

.msg {
  max-width: 82%;
  padding: 11px 14px;
  border-radius: 18px;
  font-size: 13px;
  line-height: 1.5;
  animation: rise 0.5s ease both;
}

.msg.left {
  background: rgba(255,255,255,0.065);
  border: 1px solid rgba(255,255,255,0.08);
  border-top-left-radius: 6px;
}

.msg.right {
  justify-self: end;
  color: #020d0c;
  background: linear-gradient(135deg, var(--flow-2), var(--flow) 60%, #009e92);
  border-top-right-radius: 6px;
  font-weight: 600;
}

.msg:nth-child(2) { animation-delay: 0.08s; }
.msg:nth-child(3) { animation-delay: 0.16s; }
.msg:nth-child(4) { animation-delay: 0.24s; }

.composer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 10px 12px;
  border-radius: 18px;
  color: var(--soft);
  font-size: 13px;
  border: 1px solid rgba(0,201,184,0.15);
  background: rgba(0,201,184,0.04);
  font-family: 'DM Mono', monospace;
}

.send {
  margin-left: auto;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #020d0c;
  background: linear-gradient(135deg, var(--flow-2), var(--flow));
  font-weight: 900;
  font-size: 14px;
}

.section { padding: 80px 0; }
.section-title { max-width: 700px; margin-bottom: 32px; }
.section-title p { margin: 14px 0 0; font-size: 18px; }

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

.card {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 16px 48px rgba(0,0,0,0.18);
  transition: border-color 0.25s, background 0.25s, transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  border-color: rgba(0,201,184,0.22);
  background: var(--card-hover);
  transform: translateY(-2px);
  box-shadow: 0 22px 60px rgba(0,0,0,0.28), 0 0 40px rgba(0,201,184,0.05);
}

.card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 14px;
  color: var(--flow-2);
  border: 1px solid rgba(0, 201, 184, 0.18);
  background: rgba(0, 201, 184, 0.07);
  font-size: 19px;
}

.card h3 { margin-bottom: 9px; }
.card p  { margin: 0; }

.download-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}

.release {
  padding: 28px;
  border-radius: 26px;
  border: 1px solid rgba(0,201,184,0.18);
  background: linear-gradient(140deg, rgba(0,201,184,0.08), rgba(111,92,255,0.05) 60%, rgba(255,255,255,0.03));
  box-shadow: 0 24px 72px rgba(0,0,0,0.32), inset 0 1px 0 rgba(0,201,184,0.1);
  position: relative;
  overflow: hidden;
}

.release::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--flow) 40%, var(--veil) 70%, transparent);
  opacity: 0.5;
}

.release-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.release h3 { font-size: 28px; }
.release p { margin: 10px 0 0; color: var(--muted); line-height: 1.65; }

.tag {
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--flow-2);
  background: rgba(0,201,184,0.1);
  border: 1px solid rgba(0,201,184,0.22);
  font-size: 12px;
  font-weight: 700;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.03em;
}

.download-list { display: grid; gap: 10px; }

.download-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  transition: border-color 0.2s, background 0.2s;
}

.download-item:hover {
  border-color: rgba(0,201,184,0.2);
  background: rgba(0,201,184,0.04);
}

.download-item span {
  color: var(--muted);
  font-size: 13px;
  font-family: 'DM Mono', monospace;
}

.changelog { display: grid; gap: 10px; }

.change {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  transition: border-color 0.2s;
}

.change:hover { border-color: rgba(0,201,184,0.15); }

.dot {
  width: 10px;
  height: 10px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--flow);
  box-shadow: 0 0 16px rgba(0,201,184,0.6);
}

.change p { margin: 4px 0 0; color: var(--muted); line-height: 1.6; }

.footer {
  padding: 36px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.footer-brand img {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  box-shadow: 0 0 10px rgba(0,201,184,0.2);
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-links a { min-height: 36px; padding: 0 12px; font-size: 13px; }

.footer-tagline {
  font-size: 13px;
  font-family: 'DM Mono', monospace;
  color: var(--soft);
}

.legal-page { padding: 64px 0 90px; }
.legal-shell { max-width: 820px; margin: 0 auto; }

.legal-card {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  border-radius: 28px;
  padding: clamp(22px, 4vw, 44px);
  box-shadow: 0 28px 80px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
}

.legal-card::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--flow) 40%, var(--veil-2) 70%, transparent);
  opacity: 0.4;
}

.legal-card h1 { font-size: clamp(36px, 5.5vw, 62px); }

.legal-card h2 {
  margin-top: 30px;
  margin-bottom: 10px;
  font-size: clamp(20px, 2.5vw, 28px);
  color: var(--flow-2);
  letter-spacing: -0.045em;
}

.legal-card p  { margin: 10px 0; }
.legal-card ul { margin: 10px 0 0; padding-left: 20px; }
.legal-card li { margin: 7px 0; }

.legal-note {
  display: inline-flex;
  margin: 14px 0 20px;
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--flow-2);
  border: 1px solid rgba(0, 201, 184, 0.2);
  background: rgba(0, 201, 184, 0.07);
  font-size: 12px;
  font-weight: 700;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.source-line {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 13px;
  font-family: 'DM Mono', monospace;
}

.source-line a { color: var(--flow-2); }

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

@media (max-width: 900px) {
  .hero-grid, .download-panel, .grid-3 { grid-template-columns: 1fr; }
  .preview { margin: 24px auto 0; }
  .nav-links { display: none; }
}

@media (max-width: 560px) {
  .container { width: min(var(--max), calc(100% - 24px)); }
  .hero { padding: 56px 0 44px; }
  .preview-screen { min-height: 460px; }
  .release-top, .download-item, .footer-inner { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; justify-content: center; }
  .footer-links a { width: auto; }
}
