:root {
  --bg: #070a0a;
  --surface: #0e1314;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef0f4;
  --muted: #8d94a1;
  --accent: #2dd4bf;
  --accent-2: #a3e635;
  --live: #3fd07a;
  --radius: 18px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #031512; }
.accent-text { background: linear-gradient(92deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.grain {
  position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px max(24px, calc((100vw - var(--maxw)) / 2));
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, padding 0.3s;
}
.top.scrolled { padding-top: 10px; padding-bottom: 10px; background: rgba(7, 10, 10, 0.75); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-color: var(--border); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.brand-icon { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; align-items: end; width: 30px; height: 30px; padding: 7px; border-radius: 8px; background: linear-gradient(160deg, #1f3b38, #121c1c); }
.brand-icon i { border-radius: 1px; background: var(--accent); }
.brand-icon i:nth-child(1) { height: 45%; }
.brand-icon i:nth-child(2) { height: 100%; }
.brand-icon i:nth-child(3) { height: 70%; opacity: 0.6; }
.nav { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.nav a { color: var(--muted); transition: color 0.2s; }
.nav a:hover { color: var(--text); }
.nav .nav-cta { padding: 8px 16px; border-radius: 999px; background: var(--accent); color: #031512; font-weight: 700; }

main, .foot { position: relative; z-index: 1; }
.section, .foot { max-width: var(--maxw); margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; padding: 14px 26px; border: 1px solid var(--border-strong); border-radius: 999px; font-weight: 700; overflow: hidden; transition: border-color 0.2s, transform 0.3s var(--ease); }
.btn span { position: relative; z-index: 1; }
.btn-ghost:hover { border-color: var(--text); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #031512; box-shadow: 0 10px 40px -10px rgba(45, 212, 191, 0.55); }
.btn-primary::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%); transform: translateX(-120%); transition: transform 0.7s var(--ease); }
.btn-primary:hover::before { transform: translateX(120%); }
.btn-xl { padding: 18px 34px; font-size: 18px; }

.reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; filter: none; }

.foot { display: flex; justify-content: space-between; gap: 16px; padding-top: 32px; padding-bottom: 44px; border-top: 1px solid var(--border); font-size: 14px; color: var(--muted); }
.foot b { color: var(--text); transition: color 0.2s; }
.foot a:hover b { color: var(--accent); }

@media (max-width: 760px) {
  .top { padding: 12px 16px; }
  .nav a:not(.nav-cta) { display: none; }
  .section, .foot { padding-left: 16px; padding-right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
}
