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

:root {
  --bg: #0a0e1a;
  --surface: #111827;
  --surface2: #1a2235;
  --accent: #4f8ef7;
  --accent2: #7c3aed;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --border: #1e2d45;
  --radius: 14px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── NAV ── */
header {
  background: rgba(10,14,26,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
nav {
  max-width: 1100px; margin: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem;
}
.logo { font-size: 1.4rem; font-weight: 700; letter-spacing: -.5px; }
.logo span { color: var(--accent); }

/* ── BUTTONS ── */
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; padding: .75rem 1.75rem; border-radius: 10px;
  font-weight: 700; font-size: 1rem; text-decoration: none; border: none; cursor: pointer;
  transition: opacity .2s, transform .15s; display: inline-block; white-space: nowrap;
}
.btn-primary:hover { opacity: .88; transform: translateY(-1px); }
.btn-ghost {
  color: var(--accent); text-decoration: none; font-weight: 600;
  padding: .5rem 1.1rem; border-radius: 10px;
  border: 1px solid rgba(79,142,247,.35);
  transition: background .2s; display: inline-block; font-size: .9rem;
}
.btn-ghost:hover { background: rgba(79,142,247,.08); }

/* ── HERO ── */
main.hero {
  flex: 1;
  max-width: 1100px; margin: auto; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 3rem; padding: 5rem 1.5rem 4rem;
}
.hero-content { flex: 1; }
.badge {
  display: inline-block;
  background: rgba(79,142,247,.15); color: var(--accent);
  border: 1px solid rgba(79,142,247,.3);
  padding: .3rem .85rem; border-radius: 999px; font-size: .8rem; font-weight: 600;
  margin-bottom: 1.2rem; letter-spacing: .5px; text-transform: uppercase;
}
.hero-content h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.15; margin-bottom: 1rem; }
.hero-content h1 em { font-style: normal; color: var(--accent); }
.hero-content > p { color: var(--muted); font-size: 1.05rem; max-width: 480px; margin-bottom: 2rem; }

/* ── ENVELOPE VISUAL ── */
.hero-visual {
  flex: 0 0 300px; height: 300px;
  position: relative; display: flex; align-items: center; justify-content: center;
}
.envelope {
  width: 160px; height: 120px; position: relative; z-index: 2;
  animation: float 4s ease-in-out infinite;
}
.envelope-body {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #1a2a4a, #0f1e38);
  border-radius: 6px; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.envelope-flap {
  position: absolute; top: 0; left: 0; right: 0; height: 60px;
  background: linear-gradient(135deg, #1e3560, #152a50);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  border-radius: 6px 6px 0 0; z-index: 3;
}
.lock-icon { font-size: 2.5rem; }
.orbit {
  position: absolute; border-radius: 50%;
  border: 1px dashed rgba(79,142,247,.2);
  animation: spin linear infinite;
}
.orbit-1 { width: 240px; height: 240px; animation-duration: 12s; }
.orbit-2 { width: 300px; height: 300px; animation-duration: 20s; animation-direction: reverse; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ── FOOTER ── */
footer { border-top: 1px solid var(--border); padding: 1.5rem; }
.footer-inner {
  max-width: 1100px; margin: auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.footer-inner p { color: var(--muted); font-size: .85rem; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  main.hero { flex-direction: column; padding: 3rem 1.5rem; }
  .hero-visual { display: none; }
  .signup-form input { width: 100%; }
  .footer-inner { flex-direction: column; }
}
