:root {
  --bg: #0a0a0d;
  --bg-alt: #101014;
  --surface: #131318;
  --border: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --text-dim: #a9adb6;
  --accent: #88bbee;
  --accent-soft: rgba(136, 187, 238, 0.28);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Nav */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 13, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

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

.nav__logo {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: lowercase;
}

.nav__links {
  display: flex;
  gap: 32px;
}

.nav__links a {
  font-size: 14px;
  color: var(--text-dim);
  transition: color 0.2s ease;
}

.nav__links a:hover {
  color: var(--text);
}

/* Layout helpers */

.section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 120px 32px;
}

.section__inner--narrow {
  max-width: 720px;
  text-align: center;
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.eyebrow--center {
  text-align: center;
}

h1, h2, h3 {
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 0;
}

/* Hero */

.hero {
  padding-top: 96px;
  position: relative;
  overflow: hidden;
}

.hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 96px 32px 140px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero__copy h1 {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.05;
  margin-bottom: 24px;
}

.hero__sub {
  color: var(--text-dim);
  font-size: 18px;
  max-width: 500px;
  margin: 0 0 36px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn--primary {
  background: var(--accent);
  color: #0a0a0d;
  box-shadow: 0 0 0 0 var(--accent-soft);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-soft);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.waitlist-form {
  display: none;
  gap: 12px;
  margin-top: 20px;
  max-width: 420px;
}

.waitlist-form.is-open {
  display: flex;
}

.waitlist-form input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 14px 20px;
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease;
}

.waitlist-form input::placeholder {
  color: var(--text-dim);
}

.waitlist-form input:focus {
  border-color: var(--accent);
}

.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.device {
  position: relative;
  width: 260px;
  height: 340px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #1c1c22 0%, #101014 55%, #0a0a0d 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: float 6s ease-in-out infinite;
  overflow: hidden;
}

.device__sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.1) 0%, transparent 35%);
}

.device__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 120px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid var(--accent-soft);
  box-shadow: 0 0 40px 6px var(--accent-soft);
}

.device__ring::after {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  border: 1px solid rgba(136, 187, 238, 0.5);
}

.device-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  filter: blur(10px);
  border-radius: 50%;
  animation: pulse 5s ease-in-out infinite;
}

.device-glow--ring {
  width: 300px;
  height: 300px;
  animation-delay: 1s;
  opacity: 0.6;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.06); }
}

/* Shared section headings */

.problem h2, .how-it-works h2 {
  text-align: center;
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 64px;
}

/* Problem */

.problem {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.problem-card {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 26px;
}

.problem-card__icon {
  width: 30px;
  height: 30px;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.problem-card h3 {
  font-size: 17px;
  margin-bottom: 10px;
}

.problem-card p {
  color: var(--text-dim);
  font-size: 14.5px;
  margin: 0;
}

/* Solution */

.solution__copy {
  color: var(--text-dim);
  font-size: 18px;
  margin-top: 20px;
}

/* How it works */

.how-it-works {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  text-align: center;
  padding: 0 12px;
}

.step__number {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.step h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.step p {
  color: var(--text-dim);
  font-size: 14.5px;
  margin: 0;
}

/* Footer */

.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer__tagline {
  color: var(--text-dim);
  font-size: 13px;
  margin: 0;
}

.footer__links {
  display: flex;
  gap: 28px;
}

.footer__links a {
  color: var(--text-dim);
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer__links a:hover {
  color: var(--accent);
}

.footer__copy {
  color: var(--text-dim);
  font-size: 13px;
  margin: 0;
  width: 100%;
  text-align: center;
  order: 3;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* Reveal-on-scroll */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Toast */

.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--surface);
  border: 1px solid var(--accent-soft);
  color: var(--text);
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 200;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Responsive */

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 64px;
  }

  .hero__sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .waitlist-form {
    margin-left: auto;
    margin-right: auto;
  }

  .waitlist-form.is-open {
    flex-direction: column;
  }

  .problem-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .nav__links {
    display: none;
  }
}

@media (max-width: 560px) {
  .problem-grid {
    grid-template-columns: 1fr;
  }

  .section__inner {
    padding: 80px 24px;
  }

  .footer__inner {
    justify-content: center;
    text-align: center;
  }
}
