/* ══════════════════════════════════════
   NAV
══════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 56px;
  display: flex;
  align-items: center;
  transition: background var(--dur-mid) var(--ease-out),
              border-color var(--dur-mid) var(--ease-out);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(10, 12, 15, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--bg-border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wide);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav__logo-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav__link {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: color var(--dur-fast);
}

.nav__link:hover {
  color: var(--text-primary);
}

.nav__cta {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(61, 126, 255, 0.35);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  transition: background var(--dur-fast), border-color var(--dur-fast);
}

.nav__cta:hover {
  background: var(--accent-dim);
  border-color: rgba(61, 126, 255, 0.6);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-2);
  background: none;
  border: none;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-secondary);
  transition: transform var(--dur-mid) var(--ease-out),
              opacity var(--dur-mid);
}

.nav__hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav__mobile {
  display: none;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  background: rgba(10, 12, 15, 0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--bg-border);
  padding: var(--space-6) var(--gutter) var(--space-8);
  flex-direction: column;
  gap: var(--space-5);
  z-index: 99;
}

.nav__mobile.open {
  display: flex;
}

.nav__mobile-link {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  transition: color var(--dur-fast);
}

.nav__mobile-link:hover {
  color: var(--text-primary);
}

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

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-6);
  opacity: 0;
  animation: fadeUp var(--dur-slow) var(--ease-out) 0.1s forwards;
}

.hero__eyebrow-line {
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--text-muted);
}

.hero__headline {
  font-family: var(--font-body);
  font-size: clamp(2.5rem, 7vw, var(--text-5xl));
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  max-width: 14ch;
  margin-bottom: var(--space-6);
  opacity: 0;
  animation: fadeUp var(--dur-slow) var(--ease-out) 0.2s forwards;
}

.hero__headline em {
  font-style: normal;
  color: var(--accent);
}

.hero__sub {
  font-size: clamp(var(--text-base), 2vw, var(--text-xl));
  color: var(--text-secondary);
  line-height: var(--leading-loose);
  max-width: 46ch;
  margin-bottom: var(--space-10);
  opacity: 0;
  animation: fadeUp var(--dur-slow) var(--ease-out) 0.32s forwards;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  opacity: 0;
  animation: fadeUp var(--dur-slow) var(--ease-out) 0.44s forwards;
}

.hero__canvas-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero__canvas-wrap canvas {
  width: 100%;
  height: 100%;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__platform-note {
  margin-top: var(--space-12);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  opacity: 0;
  animation: fadeUp var(--dur-slow) var(--ease-out) 0.56s forwards;
}

.hero__platform-note::before,
.hero__platform-note::after {
  content: '';
  display: block;
  height: 1px;
  width: 32px;
  background: var(--bg-border-mid);
}

/* ══════════════════════════════════════
   BUTTONS
══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: background var(--dur-fast),
              transform var(--dur-fast),
              box-shadow var(--dur-fast);
  white-space: nowrap;
}

.btn:active { transform: scale(0.98); }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn--primary:hover {
  background: #5590ff;
  box-shadow: 0 0 28px rgba(61, 126, 255, 0.4);
}

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

.btn--ghost:hover {
  border-color: var(--bg-border-mid);
  background: var(--bg-raised);
  color: var(--text-primary);
}

.btn__arrow {
  font-size: var(--text-base);
  transition: transform var(--dur-fast);
}

.btn--primary:hover .btn__arrow,
.btn--ghost:hover .btn__arrow {
  transform: translateX(3px);
}

/* ══════════════════════════════════════
   FEATURE CARDS
══════════════════════════════════════ */
.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: border-color var(--dur-mid), background var(--dur-mid);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, var(--accent-dim) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--dur-slow);
}

.feature-card:hover {
  border-color: var(--bg-border-mid);
  background: var(--bg-raised);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--accent-dim);
  border: 1px solid rgba(61, 126, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  position: relative;
  z-index: 1;
}

.feature-card__icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card__title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  position: relative;
  z-index: 1;
}

.feature-card__body {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-loose);
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════════════
   HOW IT WORKS STEPS
══════════════════════════════════════ */
.step {
  position: relative;
}

.step__number {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  color: var(--accent);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.step__number::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--bg-border-mid), transparent);
}

.step__title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  letter-spacing: var(--tracking-tight);
}

.step__body {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-loose);
}

/* ══════════════════════════════════════
   SECURITY SECTION
══════════════════════════════════════ */
.security-card {
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-8);
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
  transition: border-color var(--dur-mid);
}

.security-card:hover {
  border-color: rgba(34, 201, 122, 0.25);
}

.security-card__check {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.security-card__check svg {
  width: 20px;
  height: 20px;
  stroke: var(--green);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.security-card__title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.security-card__body {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-loose);
}

.security-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--green-dim);
  border: 1px solid rgba(34, 201, 122, 0.2);
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  color: var(--green);
  margin-bottom: var(--space-6);
}

.security-badge__dot {
  width: 5px;
  height: 5px;
  border-radius: var(--radius-full);
  background: var(--green);
  animation: pulse 2s ease-in-out infinite;
}

/* ══════════════════════════════════════
   DOWNLOAD SECTION
══════════════════════════════════════ */
.download-card {
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-8) var(--space-8);
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: border-color var(--dur-mid);
}

.download-card:hover {
  border-color: var(--bg-border-mid);
}

.download-card__os {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.download-card__name {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  letter-spacing: var(--tracking-tight);
}

.download-card__desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-loose);
  margin-bottom: var(--space-6);
}

.download-card__status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  color: var(--accent);
  padding: var(--space-1) var(--space-3);
  background: var(--accent-dim);
  border: 1px solid rgba(61, 126, 255, 0.2);
  border-radius: var(--radius-full);
}

.download-card__status--soon {
  color: var(--text-muted);
  background: var(--bg-raised);
  border-color: var(--bg-border);
}

.waitlist-form {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-10);
  max-width: 440px;
  margin-inline: auto;
}

.waitlist-input {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--bg-border-mid);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--dur-fast);
}

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

.waitlist-input:focus {
  border-color: rgba(61, 126, 255, 0.5);
}

.waitlist-note {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-3);
  font-family: var(--font-display);
  letter-spacing: var(--tracking-normal);
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--bg-border);
  padding: var(--space-12) 0 var(--space-8);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-10);
  align-items: start;
  margin-bottom: var(--space-10);
}

.footer__brand {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wide);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.footer__tagline {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-loose);
  max-width: 30ch;
}

.footer__links {
  display: flex;
  gap: var(--space-8);
}

.footer__link-group h4 {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.footer__link-group ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__link-group a {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: color var(--dur-fast);
}

.footer__link-group a:hover {
  color: var(--text-primary);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-6);
  border-top: 1px solid var(--bg-border);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-normal);
  color: var(--text-muted);
}

/* ══════════════════════════════════════
   SCROLL REVEAL
══════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}

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

/* ══════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 680px) {
  .footer__inner {
    grid-template-columns: 1fr;
  }

  .footer__links {
    gap: var(--space-6);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
  }

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

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }
}
