:root {
  --bg: #0a0d13;
  --surface: #10151d;
  --surface-2: #151b25;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f0f3f7;
  --muted: #8b96a5;
  --accent: #ffcc00;
  --accent-2: #ff9f1a;
  --navy: #2a56d6;
  --accent-ink: #1a1400;
  --ok: #3fd07a;
  --warn: #ffb020;
  --bad: #ff5a52;
  --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; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--accent-ink); }
.dim { color: var(--muted); }
.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(10, 13, 19, 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; letter-spacing: -0.01em; }
.brand img { transition: transform 0.6s var(--ease); }
.brand:hover img { transform: rotate(-12deg) scale(1.08); }
.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: var(--accent-ink); font-weight: 700; }
.nav .nav-cta:hover { color: var(--accent-ink); }

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: var(--accent-ink);
  box-shadow: 0 10px 40px -10px rgba(255, 204, 0, 0.6);
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.6) 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 a:hover b { color: var(--accent); }
.foot b { color: var(--text); transition: color 0.2s; }

@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; }
}
