/* ============================================================
   Bootheo — Beta landing
   Brand: Slate ground + one Bolt-blue accent.
   Space Grotesk (display/body) · JetBrains Mono (numerics).
   Mobile-first — every value below targets 390px, then scales up.
   ============================================================ */

:root {
  /* Slate ground */
  --slate-1000: #050608;
  --slate-950:  #0a0b0d;   /* hero / dark bg */
  --slate-900:  #111316;   /* card on dark */
  --slate-850:  #16181d;
  --slate-800:  #1c1f26;   /* elevated on dark */
  --slate-700:  #252932;
  --slate-600:  #353a47;
  --slate-500:  #5b6271;
  --slate-400:  #7a8294;
  --slate-300:  #9ba3b4;
  --slate-200:  #c2c9d6;
  --slate-100:  #eef0f4;   /* surface-alt, light */
  --slate-50:   #f7f8fa;   /* body light bg */

  /* Bolt — the only accent */
  --bolt-50:  #ecf3ff;
  --bolt-200: #b9d5ff;
  --bolt-400: #5fa3ff;   /* accent on dark */
  --bolt-500: #2a7fff;   /* CTA / primary */
  --bolt-600: #1f63ef;
  --bolt-700: #1d4fd9;   /* accent text on light */

  /* Status (operations) */
  --ready: #10b981;
  --hold:  #f59e0b;
  --stop:  #ef4444;

  /* Derived */
  --border-dark:  rgba(255,255,255,0.08);
  --border-dark2: rgba(255,255,255,0.12);
  --border-light: rgba(13,17,23,0.09);
  --mute-dark:    rgba(247,248,250,0.58);
  --mute-light:   rgba(13,17,23,0.56);

  --font-display: 'Space Grotesk', -apple-system, system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  --maxw: 1120px;
  --gutter: 22px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--slate-50);
  color: var(--slate-950);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

/* ---- Layout primitives ---------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { padding: 72px 0; }
.section--tight { padding: 56px 0; }

.dark  { background: var(--slate-950); color: var(--slate-50); }
.dark .mute { color: var(--mute-dark); }
.light .mute { color: var(--mute-light); }

/* ---- Type ------------------------------------------------ */
.kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate-500);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
}
.dark .kicker { color: var(--mute-dark); }
.kicker .tick {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--bolt-500); flex: 0 0 auto;
}
.dark .kicker .tick { background: var(--bolt-400); }

h1, h2, h3 { margin: 0; font-weight: 600; }

.display {
  font-size: 42px;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.headline {
  font-size: 32px;
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.title {
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.lead {
  font-size: 17px;
  line-height: 1.55;
  color: var(--mute-light);
  max-width: 36ch;
  margin: 18px 0 0;
}
.dark .lead { color: var(--mute-dark); }
.ready-accent { color: var(--bolt-500); }
.dark .ready-accent { color: var(--bolt-400); }

.mono { font-family: var(--font-mono); }

/* ---- Lockup --------------------------------------------- */
.lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.34em;
  font-size: 22px;
  line-height: 1;
}
.lockup .mark { width: 1em; height: 1em; flex: 0 0 auto; }
.lockup .wordmark {
  font-weight: 600;
  letter-spacing: -0.025em;
  font-size: 1em;
}

/* ---- Buttons / inline email form ------------------------ */
.signup {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 440px;
  margin-top: 26px;
}
.signup input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--slate-950);
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 11px;
  padding: 14px 15px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.signup input[type="email"]::placeholder { color: var(--slate-400); }
.signup input[type="email"]:focus {
  border-color: var(--bolt-500);
  box-shadow: 0 0 0 3px rgba(42,127,255,0.16);
}
.dark .signup input[type="email"] {
  background: var(--slate-900);
  border-color: var(--border-dark2);
  color: var(--slate-50);
}
.dark .signup input[type="email"]::placeholder { color: var(--slate-500); }

.btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  border: none;
  border-radius: 11px;
  padding: 14px 18px;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .15s ease, transform .05s ease;
}
.btn--primary {
  background: var(--bolt-500);
  color: #fff;
  box-shadow: 0 10px 30px rgba(42,127,255,0.28);
}
.btn--primary:hover { background: var(--bolt-600); }
.btn--primary:active { transform: translateY(1px); }

.signup-note {
  margin: 14px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--slate-500);
}
.dark .signup-note { color: var(--mute-dark); }

/* Success state (toggled by JS) */
.signup.is-sent { display: none; }
.signup-success {
  display: none;
  align-items: center;
  gap: 11px;
  margin-top: 26px;
  max-width: 440px;
  padding: 15px 17px;
  border-radius: 12px;
  background: rgba(16,185,129,0.10);
  border: 1px solid rgba(16,185,129,0.32);
  color: #0a7a55;
  font-size: 14.5px;
  line-height: 1.4;
}
.dark .signup-success { color: #5fe3ab; background: rgba(16,185,129,0.12); }
.signup-success.is-shown { display: flex; }
.signup-success .badge {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--ready); flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,11,13,0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border-dark);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav .lockup { color: var(--slate-50); font-size: 20px; }
.nav__links { display: none; gap: 26px; align-items: center; }
.nav__links a {
  font-size: 14px;
  color: var(--mute-dark);
  transition: color .15s ease;
}
.nav__links a:hover { color: var(--slate-50); }
.nav__cta {
  font-size: 13px;
  font-weight: 500;
  color: var(--slate-50);
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border-dark2);
  padding: 8px 14px;
  border-radius: 9px;
}

/* ---- Mobile hamburger + dropdown ---- */
.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border-dark2);
  border-radius: 10px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav__bars { position: relative; width: 18px; height: 12px; }
.nav__bars span {
  position: absolute; left: 0; right: 0; height: 2px;
  background: var(--slate-50); border-radius: 2px;
  transition: transform .22s ease, opacity .18s ease, top .22s ease;
}
.nav__bars span:nth-child(1) { top: 0; }
.nav__bars span:nth-child(2) { top: 5px; }
.nav__bars span:nth-child(3) { top: 10px; }
.nav.is-open .nav__bars span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.nav.is-open .nav__bars span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__bars span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

@media (max-width: 959px) {
  .nav__links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 60px; left: 0; right: 0;
    padding: 8px var(--gutter) 22px;
    background: rgba(10,11,13,0.97);
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    border-bottom: 1px solid var(--border-dark);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .nav.is-open .nav__links {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: opacity .2s ease, transform .2s ease, visibility 0s;
  }
  .nav__links a:not(.nav__cta) {
    font-size: 17px;
    padding: 15px 4px;
    border-bottom: 1px solid var(--border-dark);
  }
  .nav__cta {
    margin-top: 16px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: var(--bolt-500);
    border-color: var(--bolt-500);
    padding: 14px;
    border-radius: 12px;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: 56px 0 64px; position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 88% -10%, rgba(95,163,255,0.14), transparent 60%);
  pointer-events: none;
}
.hero__inner { position: relative; }
.hero .display { margin-top: 16px; }
.hero .lead { font-size: 17px; max-width: 40ch; }
.hero__avail {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute-dark);
  display: inline-flex; align-items: center; gap: 9px;
}
.hero__avail .dot { width:6px; height:6px; border-radius:50%; background: var(--bolt-400); }

/* ============================================================
   PROBLEM
   ============================================================ */
.problem .headline { max-width: 16ch; }
.problem__body {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 56ch;
}
.problem__body p { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--mute-light); }
.problem__body p strong { color: var(--slate-950); font-weight: 600; }

/* ============================================================
   FEATURES
   ============================================================ */
.features__head { max-width: 22ch; }
.features__grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.feature {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 22px 22px;
}
.feature__mark { width: 28px; height: 28px; margin-bottom: 16px; }
.feature h3 { font-size: 18px; letter-spacing: -0.02em; }
.feature p { margin: 8px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--mute-light); }
.features__foot {
  margin-top: 28px;
  font-size: 15.5px;
  color: var(--mute-light);
  max-width: 50ch;
}
.features__foot em { font-style: normal; color: var(--slate-950); font-weight: 500; }

/* ============================================================
   FOOTER
   ============================================================ */
.foot { background: var(--slate-1000); color: var(--slate-300); padding: 48px 0 40px; }
.foot__top {
  display: flex; flex-direction: column; gap: 22px;
  padding-bottom: 28px; border-bottom: 1px solid var(--border-dark);
}
.foot .lockup { color: var(--slate-50); font-size: 19px; }
.foot__meta { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.foot__meta a:hover { color: var(--slate-50); }
.foot__bottom {
  margin-top: 24px;
  display: flex; flex-wrap: wrap; gap: 14px 22px;
  align-items: center; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.06em;
  color: var(--slate-500);
}
.foot__bottom .links { display: flex; gap: 20px; }
.foot__bottom .links a:hover { color: var(--slate-200); }

/* ============================================================
   RESPONSIVE  — scale up from the 390px baseline
   ============================================================ */
@media (min-width: 600px) {
  :root { --gutter: 32px; }
  .display { font-size: 56px; }
  .headline { font-size: 38px; }
  .features__grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  .section { padding: 104px 0; }
  .section--tight { padding: 80px 0; }
  .display { font-size: 70px; }
  .headline { font-size: 46px; }
  .title { font-size: 23px; }
  .nav__links { display: flex; }
  .nav__toggle { display: none; }
  .hero { padding: 84px 0 96px; }
  .hero .display { max-width: 14ch; }
  .features__grid { gap: 18px; }
  .feature { padding: 28px 26px; }
  .foot__top { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}
