/* ============================================================
   Kwikmail — landing page
   Implemented from the Claude Design source (Kwikmail.dc.html).
   Palette: navy #0a1826 · gold #f2b632 · cream #f2ede1
   Type:   Spectral (display) · Work Sans (body)
   ============================================================ */

:root {
  --navy-900: #07141f;
  --navy-800: #0a1826;
  --navy-700: #0d2138;
  --navy-600: #0f2740;
  --navy-500: #16334d;
  --gold:     #f2b632;
  --gold-lt:  #f7cf6b;
  --cream:    #f2ede1;
  --cream-hi: #f7f2e5;
  --title:    #f7f2e5;
  --text:     #c7d4e0;
  --text-dim: #b9c6d4;
  --text-mut: #a9b8c8;
  --steel:    #8fa4b8;
}

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

body {
  margin: 0;
  background: var(--navy-800);
  color: var(--cream);
  font-family: 'Work Sans', system-ui, sans-serif;
  overflow-x: hidden;
  position: relative;
  line-height: 1.5;
}

::selection { background: var(--gold); color: var(--navy-800); }

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

.serif { font-family: 'Spectral', Georgia, serif; }

/* ---- shared bits -------------------------------------------------------- */

.eyebrow {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 16px;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.3px;
  border-radius: 2px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn-primary { background: var(--gold); color: var(--navy-800); text-color: #000; }
.btn-primary:hover { background: var(--gold-lt); }
.btn-ghost {
  border: 1px solid rgba(199, 212, 224, 0.35);
  color: var(--cream);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---- navigation --------------------------------------------------------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 5vw;
  background: linear-gradient(to bottom, rgba(10, 24, 38, 0.9), rgba(10, 24, 38, 0));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand img {
  width: 36px; height: 36px; border-radius: 50%;
  filter: drop-shadow(0 0 8px rgba(74, 144, 194, 0.4));
}
.nav-brand span {
  font-weight: 600; font-size: 20px; letter-spacing: 0.3px; color: #f7e6b8;
}
.nav-links {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
}
.nav-links a {
  color: var(--text); text-decoration: none;
  font-size: 14px; letter-spacing: 0.3px;
  transition: color 0.2s ease;
}
.nav-links a:not(.btn):hover { color: var(--gold); }
.nav-links .btn { padding: 10px 20px; font-size: 14px; }

/* ---- hero --------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 6vw 100px;
  background: var(--navy-800);
  overflow: hidden;
}

/* Full-bleed hero backdrop + gradient scrims for legibility */
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: url('assets/hero-bg.svg');
  background-size: cover;
  background-position: 55% 45%;
  opacity: 0.85;
  transform-origin: center;
  animation: driftY 9s ease-in-out infinite;
}
.hero-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-scrim-radial {
  background: radial-gradient(ellipse at 50% 38%,
    rgba(10, 24, 38, 0.35) 0%, rgba(10, 24, 38, 0.82) 55%, var(--navy-800) 100%);
}
.hero-scrim-linear {
  background: linear-gradient(to bottom,
    rgba(10, 24, 38, 0.55) 0%, rgba(10, 24, 38, 0.1) 30%,
    rgba(10, 24, 38, 0.35) 65%, var(--navy-800) 100%);
}

/* Hero foreground content sits above the backdrop */
.hero > .badge,
.hero > h1,
.hero > .lede,
.hero > .hero-actions { position: relative; z-index: 3; }

.starfield { position: absolute; inset: 0; z-index: 2; pointer-events: none; }

.star {
  position: absolute;
  border-radius: 50%;
  background: var(--gold-lt);
  pointer-events: none;
  animation: twinkle var(--dur, 3.5s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.comet {
  position: absolute; top: 0; left: 0;
  width: 6px; height: 6px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 40px 8px rgba(247, 207, 107, 0.8),
             -60px 0 30px 4px rgba(247, 207, 107, 0.4);
  animation: comet 6s ease-in infinite;
  animation-delay: 1.2s;
  pointer-events: none;
  z-index: 2;
}

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(242, 182, 50, 0.35);
  background: rgba(10, 24, 38, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 7px 16px; border-radius: 999px;
  margin-bottom: 28px;
  animation: fadeUp 0.8s ease both;
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.badge span:last-child {
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: #e3c98a;
}

.hero h1 {
  font-weight: 700;
  font-size: clamp(40px, 6.4vw, 88px);
  line-height: 1.04;
  margin: 0 0 22px;
  max-width: 16ch;
  color: var(--title);
  text-shadow: 0 4px 28px rgba(10, 24, 38, 0.9);
  animation: fadeUp 0.9s ease 0.1s both;
}
.hero h1 .accent { color: var(--gold); font-style: italic; }

.hero .lede {
  font-size: 19px; line-height: 1.6; color: #e3ecf4;
  max-width: 52ch; margin: 0 0 40px;
  text-shadow: 0 2px 16px rgba(10, 24, 38, 0.9);
  animation: fadeUp 0.9s ease 0.2s both;
}

.hero-actions {
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: center;
  animation: fadeUp 0.9s ease 0.3s both;
}
.hero-actions .btn { padding: 16px 34px; font-size: 16px; }
.hero-actions .btn-ghost {
  font-weight: 500;
  border-color: rgba(199, 212, 224, 0.5);
  background: rgba(10, 24, 38, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ---- kwiknet / vederatie ------------------------------------------------ */

.vederatie {
  position: relative;
  padding: 140px 6vw;
  background: var(--navy-700);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.vederatie h2 {
  font-weight: 600;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
  margin: 0 0 24px;
  color: var(--title);
}
.vederatie p {
  font-size: 17px; line-height: 1.75; color: var(--text-dim);
  margin: 0 0 20px; max-width: 52ch;
}
.vederatie p:last-child { margin-bottom: 0; }

.seal {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  height: 340px;
}
.seal .ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(242, 182, 50, 0.25);
}
.seal .ring.r1 { width: 280px; height: 280px; }
.seal .ring.r2 { width: 280px; height: 280px; animation: pulseRing 3.2s ease-out infinite; }
.seal .ring.r3 { width: 200px; height: 200px; border-color: rgba(242, 182, 50, 0.4); }
.seal .core {
  position: relative;
  width: 150px; height: 150px; border-radius: 50%;
  background: var(--navy-800);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 60px rgba(242, 182, 50, 0.15);
}
.seal .core img { width: 130px; height: 130px; border-radius: 50%; }

/* ---- features ----------------------------------------------------------- */

.features { padding: 120px 6vw; background: var(--navy-800); }
.section-head { text-align: center; margin-bottom: 70px; }
.section-head h2 {
  font-weight: 600; font-size: clamp(28px, 3.6vw, 42px);
  margin: 0; color: var(--title);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
}
.card {
  background: var(--navy-600);
  border: 1px solid rgba(242, 182, 50, 0.12);
  padding: 38px 32px;
  border-radius: 4px;
}
.card .icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(242, 182, 50, 0.12);
  border: 1px solid rgba(242, 182, 50, 0.4);
  margin-bottom: 24px;
  display: flex; align-items: center; justify-content: center;
}
.card .icon svg { width: 22px; height: 22px; }
.card h3 {
  font-weight: 600; font-size: 21px; margin: 0 0 12px; color: var(--title);
}
.card p { font-size: 15px; line-height: 1.7; color: var(--text-mut); margin: 0; }

/* ---- how it works ------------------------------------------------------- */

.how { padding: 130px 6vw; background: var(--navy-700); }
.how .section-head { margin-bottom: 80px; }
.how .section-head h2 { margin-bottom: 18px; }
.how .section-head p { color: var(--text-dim); font-size: 17px; max-width: 50ch; margin: 0 auto; }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  max-width: 1100px;
  margin: 0 auto;
}
.step { padding: 0 28px; text-align: center; }
.step .num {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--navy-800);
  border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  font-family: 'Spectral', serif; font-size: 24px; font-weight: 600; color: var(--gold);
}
.step h3 {
  font-weight: 600; font-size: 19px; margin: 0 0 10px; color: var(--title);
}
.step p { font-size: 14.5px; line-height: 1.7; color: var(--text-mut); margin: 0; }

.how .footnote {
  text-align: center; color: #7791a6; font-size: 13px;
  font-style: italic; margin-top: 60px;
}

/* ---- quote -------------------------------------------------------------- */

.quote { padding: 140px 6vw; background: var(--navy-800); text-align: center; }
.quote .inner { max-width: 760px; margin: 0 auto; }
.quote .mark {
  font-family: 'Spectral', serif; font-size: 48px; color: var(--gold);
  line-height: 0; margin-bottom: 12px;
}
.quote blockquote {
  font-family: 'Spectral', serif; font-style: italic; font-weight: 400;
  font-size: clamp(22px, 3vw, 32px); line-height: 1.5;
  color: var(--cream); margin: 0 0 28px;
}
.quote .cite {
  font-size: 14px; letter-spacing: 1px; text-transform: uppercase; color: var(--steel);
}

/* ---- final cta ---------------------------------------------------------- */

.cta {
  position: relative;
  padding: 150px 6vw;
  background: radial-gradient(ellipse at 50% 60%, var(--navy-500) 0%, var(--navy-800) 70%);
  text-align: center;
  overflow: hidden;
}
.cta .star { opacity: 0.4; }
.cta h2 {
  font-weight: 700; font-size: clamp(30px, 4.6vw, 54px);
  margin: 0 0 22px; color: var(--title); position: relative;
}
.cta p {
  color: var(--text); font-size: 17px; max-width: 44ch;
  margin: 0 auto 36px; position: relative;
}
.cta .btn { position: relative; padding: 18px 44px; font-size: 17px; }

/* ---- footer ------------------------------------------------------------- */

.footer {
  padding: 56px 6vw;
  background: var(--navy-900);
  border-top: 1px solid rgba(242, 182, 50, 0.12);
}
.footer .row {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 24px; max-width: 1180px; margin: 0 auto;
}
.footer .brand { display: flex; align-items: center; gap: 10px; }
.footer .brand img { width: 24px; height: 24px; border-radius: 50%; opacity: 0.9; }
.footer .brand span { font-family: 'Spectral', serif; font-size: 15px; color: var(--text); }
.footer .links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer .links a {
  color: var(--steel); text-decoration: none; font-size: 13px;
  transition: color 0.2s ease;
}
.footer .links a:hover { color: var(--gold); }
.footer .copy { color: #5c7284; font-size: 12px; }

/* ---- responsive --------------------------------------------------------- */

@media (max-width: 860px) {
  .vederatie { grid-template-columns: 1fr; gap: 48px; }
  .seal { height: 300px; }
  .nav-links { gap: 18px; }
  .nav-links a:not(.btn) { display: none; }
}

/* ---- motion ------------------------------------------------------------- */

@keyframes twinkle { 0%, 100% { opacity: 0.15; } 50% { opacity: 0.9; } }
@keyframes comet {
  0%   { transform: translate(-30vw, -20vh) rotate(24deg); opacity: 0; }
  8%   { opacity: 1; }
  25%  { opacity: 0; }
  100% { transform: translate(60vw, 40vh) rotate(24deg); opacity: 0; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulseRing {
  0%   { transform: scale(0.9); opacity: 0.5; }
  100% { transform: scale(1.5); opacity: 0; }
}
@keyframes driftY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-18px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
