/* =====================================================================
   Reset, page chrome (nav/hero/trustbar/footer), section scaffolding,
   modal shell, form, and scroll-reveal. Component-specific styling
   (buttons, cards, the privacy flow diagram, etc.) lives in components.css.
   ===================================================================== */

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

html { scroll-behavior: smooth; background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--sans);
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; color: inherit; }

/* ===== CONTAINER ===== */
.container {
  max-width: var(--max);
  margin: auto;
  padding: 0 48px;
}

/* ===== TOPLINE ===== */
.topline {
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--purple), var(--cyan), var(--green), var(--purple), transparent);
  background-size: 200% 100%;
  animation: shimmerLine 3s linear infinite;
}

@keyframes shimmerLine {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== NAV ===== */
.nav {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 100;
}

.brand img {
  display: block;
  width: 140px;
  height: auto;
  transition: transform .3s;
}

.brand:hover img {
  transform: scale(1.05);
}

.navlinks {
  display: flex;
  gap: 30px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.navlinks a {
  position: relative;
  transition: color .3s;
  white-space: nowrap;
}

.navlinks a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  transition: width .3s;
}

.navlinks a:not(.nav-cta):hover::after { width: 100%; }
.navlinks a:hover { color: var(--white); }

.menu {
  display: none;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 18px;
  transition: all .3s;
  z-index: 300;
  position: relative;
}

.menu:hover {
  background: rgba(139,69,255,.2);
  border-color: var(--purple);
}

/* ===== HERO ===== */
.hero {
  padding: 100px 0 100px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 64px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--purple-2);
  margin-bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  animation: expandLine 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes expandLine {
  0%, 100% { width: 28px; }
  50% { width: 45px; }
}

.hero h1 {
  font-size: clamp(44px, 5.5vw, 80px);
  line-height: 1.0;
  letter-spacing: -.06em;
  margin: 0 0 24px;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #fff 25%, #ad68ff 50%, var(--cyan) 75%, #fff 100%);
  background-size: 200% 100%;
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  animation: gradientShift 5s linear infinite;
}

@keyframes gradientShift {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.hero-copy {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  max-width: 540px;
  margin: 0 0 32px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp .8s .3s forwards;
}

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

.hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp .8s .5s forwards;
}

.micro-proof {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 30px;
  color: var(--muted-2);
  font: 10px var(--mono);
  text-transform: uppercase;
  letter-spacing: .06em;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp .8s .7s forwards;
}

.micro-proof span {
  display: flex;
  align-items: center;
  gap: 7px;
  transition: color .3s;
}

.micro-proof span:hover { color: var(--white); }

.micro-proof span::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulseDot 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* ===== TRUSTBAR ===== */
.trustbar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 32px 0;
}

.trustbar div {
  padding: 0 28px;
  border-right: 1px solid var(--line);
  transition: transform .3s;
}

.trustbar div:hover { transform: translateY(-3px); }
.trustbar div:first-child { padding-left: 0; }
.trustbar div:last-child { border: 0; }

.trustbar strong {
  font-size: 30px;
  letter-spacing: -.05em;
  display: block;
  background: linear-gradient(135deg, var(--white), var(--purple-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.trustbar span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 6px;
}

/* ===== SECTIONS ===== */
.section {
  padding: 120px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.kicker {
  color: var(--purple-2);
  font: 10px var(--mono);
  letter-spacing: .15em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.kicker::before {
  content: '';
  width: 18px; height: 1px;
  background: var(--purple);
  flex-shrink: 0;
}

.section h2 {
  font-size: clamp(30px, 4.5vw, 54px);
  line-height: 1.07;
  letter-spacing: -.05em;
  margin: 18px 0;
}

.section-head p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  margin: 0;
}

/* ===== DARK BAND ===== */
.dark-band {
  background: linear-gradient(105deg, #0c0814, #0b0b10 55%, #0b1012);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  color: var(--muted-2);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer img {
  width: 120px;
  opacity: .85;
  transition: opacity .3s;
}

.footer img:hover { opacity: 1; }

/* ===== MODAL ===== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,.88);
  backdrop-filter: blur(16px);
  padding: 20px;
  place-items: center;
  overflow-y: auto;
}

.modal.show { display: grid; }

.modal-card {
  width: min(520px, 100%);
  background: linear-gradient(145deg, #13111c, #0d0b14);
  border: 1px solid rgba(194,140,255,.25);
  border-radius: 20px;
  padding: 36px;
  box-shadow: var(--shadow);
  animation: modalIn .35s cubic-bezier(.4,0,.2,1);
  margin: auto;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(.96) translateY(16px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.modal h2 { font-size: 26px; letter-spacing: -.04em; margin: 10px 0; }
.modal p { color: var(--muted); font-size: 14px; line-height: 1.65; }

.close {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  font-size: 18px;
  color: #aaa;
  width: 34px; height: 34px;
  min-width: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s;
}

.close:hover {
  background: rgba(255,80,80,.15);
  border-color: rgba(255,80,80,.4);
  color: #ff6464;
}

/* ===== FORM ===== */
.form { display: grid; gap: 12px; margin-top: 24px; }

.form label {
  font: 10px var(--mono);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.form input, .form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.4);
  color: white;
  border-radius: 10px;
  padding: 13px 15px;
  outline: none;
  transition: all .3s;
  -webkit-appearance: none;
  appearance: none;
  font-size: 14px;
}

.form input:focus, .form textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 16px rgba(139,69,255,.18);
}

.form textarea { resize: vertical; min-height: 80px; }

.success { display: none; text-align: center; padding: 28px 0; }
.success.show { display: block; }
.success strong { display: block; color: var(--green); font-size: 18px; margin-bottom: 10px; }
.form.hidden { display: none; }

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: all .75s cubic-bezier(.4,0,.2,1);
}

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

/* ===== MOBILE NAV OVERLAY ===== */
.navlinks.mobile-open {
  display: flex !important;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  padding: 100px 32px 48px;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  background: rgba(2, 2, 4, 0.99);
  border: none;
  border-radius: 0;
  z-index: 200;
  font-size: 16px;
  overflow-y: auto;
}

.navlinks.mobile-open a:not(.nav-cta) {
  font-size: 22px;
  font-weight: 600;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  width: 100%;
  color: var(--white);
}

.navlinks.mobile-open .nav-cta {
  margin-top: 28px;
  padding: 16px 24px;
  width: 100%;
  text-align: center;
  font-size: 16px;
}
