/* ─────────────────────────────────────────────────────────────
   buildbyte.buzz — Coming Soon
   Palette: monochrome glass + lime accent (#A3E635)
   ───────────────────────────────────────────────────────────── */

:root {
  --bg:        #0a0a0b;
  --bg-2:      #0f0f11;
  --fg:        #f4f4f5;
  --fg-dim:    #a1a1aa;
  --fg-mute:   #71717a;
  --line:      rgba(255, 255, 255, 0.08);
  --line-hi:   rgba(255, 255, 255, 0.16);
  --glass:     rgba(255, 255, 255, 0.04);
  --glass-2:   rgba(255, 255, 255, 0.06);
  --glass-br:  rgba(255, 255, 255, 0.12);
  --accent:    #A3E635;
  --accent-2:  #84cc16;
  --accent-glow: rgba(163, 230, 53, 0.35);
  --danger:    #f87171;
  --radius:    18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out:  cubic-bezier(0.22, 1, 0.36, 1);
  --maxw:      1200px;
  --pad:       clamp(20px, 5vw, 80px);
  --font:      'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono:      'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  cursor: none;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: none; border: none; background: none; color: inherit; }
input { font-family: inherit; }

::selection { background: var(--accent); color: #0a0a0b; }

/* Hide native cursor on touch / no-JS fallback */
@media (hover: none) { body, button, a { cursor: auto; } }

/* ── Custom cursor ─────────────────────────────────────────── */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%); border-radius: 50%;
}
.cursor-dot {
  width: 6px; height: 6px; background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  transition: width .25s var(--ease), height .25s var(--ease), background .25s var(--ease);
}
.cursor-ring {
  width: 38px; height: 38px; border: 1px solid var(--glass-br);
  transition: width .3s var(--ease), height .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.cursor-ring.is-hover {
  width: 56px; height: 56px; border-color: var(--accent);
  background: rgba(163, 230, 53, 0.08);
}
.cursor-dot.is-hover { width: 4px; height: 4px; }
@media (hover: none) { .cursor-dot, .cursor-ring { display: none; } }

/* ── Click ripple canvas ───────────────────────────────────── */
#ripple-canvas {
  position: fixed; inset: 0; pointer-events: none; z-index: 9998;
}

/* ── Background grid + glow ────────────────────────────────── */
.bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 90%);
}
.bg-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% -10%, rgba(163, 230, 53, 0.12), transparent 60%),
    radial-gradient(40% 30% at 80% 30%, rgba(163, 230, 53, 0.06), transparent 60%);
}

/* ── Glass primitives ──────────────────────────────────────── */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-br);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-radius: var(--radius);
}
.glass-pill {
  background: var(--glass);
  border: 1px solid var(--glass-br);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-radius: 999px;
}

/* ── Nav ───────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
  max-width: var(--maxw); margin: 0 auto;
}
.nav__brand { display: flex; align-items: center; gap: 10px; }
.nav__logo { display: inline-flex; filter: drop-shadow(0 0 8px var(--accent-glow)); }
.nav__name { font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.nav__name b { color: var(--accent); font-weight: 600; }
.nav__links { display: flex; gap: 28px; }
.nav__links a {
  font-size: 14px; color: var(--fg-dim); transition: color .25s var(--ease);
  position: relative;
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 1px;
  background: var(--accent); transition: width .3s var(--ease);
}
.nav__links a:hover { color: var(--fg); }
.nav__links a:hover::after { width: 100%; }
.nav__cta {
  padding: 9px 18px; font-size: 13px; font-weight: 500; color: var(--fg);
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.nav__cta:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 720px) {
  .nav__links { display: none; }
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: 120px var(--pad) 80px;
  overflow: hidden;
}
#hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
.hero__inner {
  position: relative; z-index: 2;
  text-align: center; max-width: 880px; margin: 0 auto;
}
.hero__badge {
  display: inline-block; padding: 7px 16px; font-size: 12px; font-family: var(--mono);
  color: var(--accent); letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 28px;
}
.hero__title {
  font-size: clamp(40px, 7vw, 88px);
  line-height: 1.02; letter-spacing: -0.03em; font-weight: 600;
  margin-bottom: 24px;
}
.hero__title .accent {
  color: var(--accent);
  text-shadow: 0 0 32px var(--accent-glow);
}
.hero__subtitle {
  font-size: clamp(16px, 1.6vw, 19px); color: var(--fg-dim);
  max-width: 620px; margin: 0 auto 40px; line-height: 1.6;
}
.hero__form {
  display: flex; gap: 10px; padding: 8px; max-width: 500px; margin: 0 auto;
}
.hero__form input {
  flex: 1; padding: 14px 18px; background: transparent; border: none; color: var(--fg);
  font-size: 15px; outline: none;
}
.hero__form input::placeholder { color: var(--fg-mute); }
.btn-primary {
  padding: 14px 22px; background: var(--accent); color: #0a0a0b;
  font-weight: 600; font-size: 14px; border-radius: var(--radius-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  white-space: nowrap;
}
.btn-primary:hover {
  background: #b6f04a; transform: translateY(-1px);
  box-shadow: 0 8px 32px var(--accent-glow);
}
.btn-primary:active { transform: translateY(0); }
.hero__form-msg { margin-top: 14px; font-size: 13px; min-height: 18px; color: var(--fg-dim); }
.hero__form-msg.is-ok { color: var(--accent); }
.hero__form-msg.is-err { color: var(--danger); }
.hero__hint { margin-top: 14px; font-size: 12px; color: var(--fg-mute); }

@media (max-width: 520px) {
  .hero__form { flex-direction: column; padding: 14px; }
  .btn-primary { width: 100%; }
}

.hero__scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1px solid var(--glass-br); border-radius: 14px;
  display: flex; justify-content: center; padding-top: 8px; z-index: 2;
}
.hero__scroll span {
  width: 3px; height: 8px; background: var(--accent); border-radius: 2px;
  animation: scrollDot 1.8s var(--ease) infinite;
}
@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ── Countdown ─────────────────────────────────────────────── */
.countdown { padding: 60px var(--pad); }
.countdown__inner {
  max-width: 720px; margin: 0 auto; padding: 40px 32px; text-align: center;
  transform-style: preserve-3d;
}
.countdown__label {
  font-family: var(--mono); font-size: 12px; color: var(--fg-mute);
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 22px;
}
.countdown__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.countdown__unit { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.countdown__num {
  font-size: clamp(36px, 7vw, 64px); font-weight: 600; line-height: 1;
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
.countdown__unit-label {
  font-size: 11px; color: var(--fg-mute); text-transform: uppercase; letter-spacing: 0.1em;
}

/* ── Section heads ─────────────────────────────────────────── */
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head__kicker {
  font-family: var(--mono); font-size: 12px; color: var(--accent);
  letter-spacing: 0.1em; display: block; margin-bottom: 14px;
}
.section-head__title {
  font-size: clamp(28px, 4vw, 44px); font-weight: 600; letter-spacing: -0.02em;
  line-height: 1.1; margin-bottom: 14px;
}
.section-head__sub { color: var(--fg-dim); font-size: 16px; }

/* ── Features ──────────────────────────────────────────────── */
.features { padding: 80px var(--pad); }
.features__grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px;
}
.card {
  padding: 32px 28px; transform-style: preserve-3d;
  transition: border-color .3s var(--ease), transform .1s ease-out;
}
.card:hover { border-color: var(--accent); }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(163, 230, 53, 0.08); border: 1px solid var(--glass-br);
  color: var(--accent); display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.card__title { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.card__desc { color: var(--fg-dim); font-size: 14px; line-height: 1.6; }

/* ── How it works ──────────────────────────────────────────── */
.how { padding: 80px var(--pad); }
.how__flow {
  max-width: var(--maxw); margin: 0 auto; list-style: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px;
  counter-reset: step;
}
.how__step {
  padding: 36px 30px; position: relative; overflow: hidden;
  transform-style: preserve-3d; transition: border-color .3s var(--ease);
}
.how__step:hover { border-color: var(--accent); }
.how__num {
  font-family: var(--mono); font-size: 13px; color: var(--accent);
  letter-spacing: 0.1em; display: block; margin-bottom: 18px;
}
.how__title { font-size: 22px; font-weight: 600; margin-bottom: 10px; }
.how__desc { color: var(--fg-dim); font-size: 14px; line-height: 1.6; }

/* ── FAQ ───────────────────────────────────────────────────── */
.faq { padding: 80px var(--pad); }
.faq__list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq__item { padding: 4px 24px; transition: border-color .3s var(--ease); }
.faq__item[open] { border-color: var(--accent); }
.faq__item summary {
  list-style: none; padding: 18px 0; font-weight: 500; font-size: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  cursor: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+'; color: var(--accent); font-size: 22px; font-weight: 300;
  transition: transform .3s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 0 22px; color: var(--fg-dim); font-size: 14px; line-height: 1.7; }

/* ── Notify (final CTA) ────────────────────────────────────── */
.notify { padding: 80px var(--pad) 120px; }
.notify__card {
  max-width: 720px; margin: 0 auto; padding: 56px 40px; text-align: center;
  transform-style: preserve-3d; position: relative; overflow: hidden;
}
.notify__card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 50% 0%, rgba(163, 230, 53, 0.08), transparent 70%);
  pointer-events: none;
}
.notify__title { font-size: clamp(26px, 4vw, 38px); font-weight: 600; letter-spacing: -0.02em; margin-bottom: 12px; }
.notify__sub { color: var(--fg-dim); margin-bottom: 32px; }
.notify__sub b { color: var(--accent); font-weight: 500; }
.notify__form {
  display: flex; gap: 10px; max-width: 460px; margin: 0 auto;
  background: rgba(0,0,0,0.3); border: 1px solid var(--glass-br);
  border-radius: var(--radius-sm); padding: 8px;
}
.notify__form input {
  flex: 1; padding: 12px 16px; background: transparent; border: none; color: var(--fg);
  font-size: 14px; outline: none;
}
.notify__form input::placeholder { color: var(--fg-mute); }
@media (max-width: 520px) {
  .notify__form { flex-direction: column; }
  .notify__form .btn-primary { width: 100%; }
  .notify__card { padding: 40px 24px; }
}

/* ── Footer ────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 40px var(--pad); }
.footer__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; justify-content: space-between;
}
.footer__brand { display: flex; align-items: center; gap: 10px; }
.footer__tagline { color: var(--fg-dim); font-size: 13px; flex: 1; min-width: 180px; }
.footer__social { display: flex; gap: 20px; }
.footer__social a {
  font-size: 13px; color: var(--fg-dim); transition: color .25s var(--ease);
  padding: 6px 12px; border: 1px solid var(--glass-br); border-radius: 999px;
}
.footer__social a:hover { color: var(--accent); border-color: var(--accent); }
.footer__copy { font-size: 12px; color: var(--fg-mute); width: 100%; text-align: center; margin-top: 12px; }

/* ── Reveal animations ─────────────────────────────────────── */
[data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero__scroll span { animation: none; }
}
