:root {
  --bg: #07070a;
  --bg-elev: #0e0e12;
  --text: #ece9e6;
  --text-dim: #8a8a95;
  --text-faint: #4a4a52;
  --accent: #e9a84a;
  --accent-glow: #f5b841;
  --border: rgba(236, 233, 230, 0.08);
  --border-strong: rgba(236, 233, 230, 0.16);
  --radius: 22px;
  --max: 1160px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }
html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100%;
  position: relative;
}

::selection { background: var(--accent); color: var(--bg); }

/* -------- Background layers -------- */
.grid-bg,
.aurora,
.noise { position: fixed; inset: 0; pointer-events: none; }

.grid-bg {
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(236, 233, 230, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(236, 233, 230, 0.035) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 25%, #000 30%, transparent 78%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 25%, #000 30%, transparent 78%);
}

.aurora {
  z-index: 0;
  background:
    radial-gradient(620px 420px at 15% 8%, rgba(233, 168, 74, 0.22), transparent 70%),
    radial-gradient(720px 520px at 85% 26%, rgba(80, 120, 233, 0.16), transparent 70%),
    radial-gradient(500px 400px at 50% 95%, rgba(233, 74, 140, 0.12), transparent 70%);
  filter: blur(12px);
  animation: drift 28s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-3%, 2%, 0) scale(1.08); }
}

.noise {
  z-index: 1;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* -------- Nav -------- */
.nav, main, footer { position: relative; z-index: 2; }

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.015em;
  font-size: 16px;
}
.logo-mark { width: 22px; height: 22px; }

.nav nav { display: flex; gap: 28px; }
.nav nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: -0.01em;
  transition: color .2s var(--ease);
}
.nav nav a:hover { color: var(--text); }

/* -------- Layout -------- */
main { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

/* -------- Hero -------- */
.hero {
  padding: 120px 0 180px;
  max-width: 1000px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 36px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-glow);
  box-shadow: 0 0 12px var(--accent-glow);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: .45; transform: scale(.75); }
}

h1 {
  font-family: 'Instrument Serif', 'Times New Roman', serif;
  font-weight: 400;
  font-size: clamp(48px, 8.2vw, 108px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--text);
}
h1 em {
  font-style: italic;
  background: linear-gradient(120deg, var(--accent-glow), #f4d08a);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  padding-right: 0.04em;
}
.headline-line { display: block; }

.sub {
  margin-top: 36px;
  font-size: 19px;
  color: var(--text-dim);
  max-width: 560px;
  line-height: 1.55;
}

.hero-cta {
  margin-top: 44px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 100px;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  box-shadow: 0 0 0 0 rgba(245, 184, 65, 0);
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px -8px rgba(245, 184, 65, 0.4);
}

.kbd-hint {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--text-faint);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.kbd-hint .arrow {
  display: inline-block;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(3px); }
}

/* -------- Sections -------- */
.manifesto, .products {
  padding: 110px 0;
  border-top: 1px solid var(--border);
}

.label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-faint);
  margin-bottom: 48px;
}

.manifesto-body {
  max-width: 820px;
  font-family: 'Instrument Serif', 'Times New Roman', serif;
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1.3;
  color: var(--text);
  letter-spacing: -0.015em;
}
.manifesto-body p { }
.manifesto-body p + p {
  margin-top: 26px;
  color: var(--text-dim);
  font-size: clamp(20px, 2.2vw, 28px);
}

/* -------- Products -------- */
.products { display: flex; flex-direction: column; gap: 20px; }
.products .label { margin-bottom: 32px; }

.product {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  background: rgba(14, 14, 18, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: border-color .35s var(--ease), transform .35s var(--ease), background .35s var(--ease);
}

.product.featured::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px 340px at 92% -10%, rgba(233, 168, 74, 0.14), transparent 60%);
  pointer-events: none;
}

.product:hover { border-color: var(--border-strong); background: rgba(14, 14, 18, 0.72); }
.product.featured:hover { transform: translateY(-2px); }

.product-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--text-faint);
  margin-bottom: 24px;
}
.product-meta .num { letter-spacing: 0.12em; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 10px;
  line-height: 1;
}
.status.live {
  color: var(--accent-glow);
  border-color: rgba(245, 184, 65, 0.35);
}
.live-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent-glow);
  box-shadow: 0 0 8px var(--accent-glow);
}
.status.soon { color: var(--text-dim); }

.product h2 {
  font-family: 'Instrument Serif', 'Times New Roman', serif;
  font-weight: 400;
  font-size: clamp(36px, 5.4vw, 64px);
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: 20px;
}

.product p {
  color: var(--text-dim);
  font-size: 17px;
  max-width: 640px;
  margin-bottom: 32px;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 11px 20px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  transition: all .3s var(--ease);
}
.product-link:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.product-link svg {
  width: 14px; height: 14px;
  transition: transform .3s var(--ease);
}
.product-link:hover svg { transform: translate(2px, -2px); }

.product.placeholder { opacity: 0.55; }
.product.placeholder h2 { color: var(--text-dim); }

/* -------- Footer -------- */
footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 32px 56px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--text-faint);
  gap: 16px;
  flex-wrap: wrap;
}
.foot-left { display: inline-flex; align-items: center; gap: 20px; }
.foot-logo { display: inline-flex; align-items: center; gap: 8px; color: var(--text-dim); }
.foot-logo .logo-mark { width: 18px; height: 18px; }
footer a { color: var(--text-dim); text-decoration: none; transition: color .2s var(--ease); }
footer a:hover { color: var(--text); }

/* -------- Scroll reveal -------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* -------- Mobile -------- */
@media (max-width: 720px) {
  .nav { padding: 20px; }
  .nav nav { gap: 18px; }
  main { padding: 0 20px; }
  .hero { padding: 70px 0 110px; }
  .manifesto, .products { padding: 70px 0; }
  .product { padding: 32px 24px; border-radius: 18px; }
  footer { padding: 36px 20px 40px; flex-direction: column; align-items: flex-start; gap: 12px; }
  .foot-left { flex-direction: column; align-items: flex-start; gap: 6px; }
}

@media (max-width: 420px) {
  .nav nav a:nth-child(2) { display: none; }
}

/* -------- Reduced motion -------- */
@media (prefers-reduced-motion: reduce) {
  .aurora, .eyebrow .dot, .kbd-hint .arrow, .reveal { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
