/* ============================================================
   w.lgbt — landing page
   Identity: inspired by the rainbow / Progress Pride flags
   (NOT a reproduction). Cool charcoal-violet base + a pink→violet
   brand gradient, with the brand "W" / wordmark set in Museo 900.
   Two themes: Dark (default) + Light.
   ============================================================ */

/* ---------- Brand typeface: Museo ----------
   Museo ships every weight under the SAME family name ("Museo"),
   so we register each face here and pin its weight explicitly. */
@font-face {
  font-family: "Museo";
  src: url("fonts/Museo900-Regular.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Museo";
  src: url("fonts/Museo700-Regular.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --radius:    18px;
  --radius-sm: 12px;
  --maxw:      1120px;
  --ease:      cubic-bezier(.2, .7, .2, 1);

  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-brand:   "Museo", "Newsreader", Georgia, serif;

  --on-accent: #FFFFFF;
  --brand-gradient: linear-gradient(120deg, var(--grad-1), var(--grad-2));
}

/* ---------- Dark (default) ---------- */
[data-theme="dark"] {
  --bg:        #0D0A12;
  --bg-2:      #14101C;
  --surface:   #1A1426;
  --surface-2: #241C33;
  --border:    #352B47;
  --text:      #F7F3FF;
  --text-dim:  #B5ABC9;
  --accent:    #A33BD6;
  --grad-1:    #FF5FB0;
  --grad-2:    #9B30D9;
  --hero-glow: radial-gradient(60% 60% at 50% 0%, rgba(155, 48, 217, .22), transparent 70%);
  --card-shadow: 0 18px 40px -20px rgba(0, 0, 0, .6);
}

/* ---------- Light ---------- */
[data-theme="light"] {
  --bg:        #FFFFFF;
  --bg-2:      #EFE7F8;
  --surface:   #FBF6FE;
  --surface-2: #F3EDFA;
  --border:    #E7DEF2;
  --text:      #17101F;
  --text-dim:  #6A6080;
  --accent:    #750787;
  --grad-1:    #C2185B;
  --grad-2:    #750787;
  --hero-glow: radial-gradient(60% 60% at 50% 0%, rgba(117, 7, 135, .10), transparent 70%);
  --card-shadow: 0 18px 40px -22px rgba(80, 20, 110, .25);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .4s var(--ease), color .4s var(--ease);
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Pride strip (brand accent, not a flag) ---------- */
.pride-strip { height: 6px; width: 100%; background: var(--brand-gradient); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 13px 26px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s var(--ease), filter .2s, box-shadow .2s, border-color .2s, color .2s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary {
  background: var(--brand-gradient); color: var(--on-accent);
  box-shadow: 0 8px 22px -8px color-mix(in srgb, var(--grad-2) 70%, transparent);
}
.btn-primary:hover { filter: brightness(1.08) saturate(1.05); box-shadow: 0 12px 30px -8px color-mix(in srgb, var(--grad-2) 80%, transparent); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 16px;
  max-width: var(--maxw); margin: 0 auto; padding: 16px 24px;
  width: 100%;
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand { display: inline-flex; align-items: center; margin-right: auto; }
.brand-text { font-family: var(--font-brand); font-weight: 900; font-size: 23px; letter-spacing: -.01em; }
.brand-dot { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav > a {
  padding: 9px 14px; border-radius: 999px; font-weight: 500; font-size: 15px;
  color: var(--text-dim); transition: color .2s, background .2s;
}
.nav > a:hover { color: var(--text); background: var(--surface); }
.nav .nav-cta {
  color: var(--on-accent); font-weight: 600; background: var(--accent);
  padding: 9px 18px;
}
.nav .nav-cta:hover { background: var(--accent); filter: brightness(1.12); color: var(--on-accent); }

.theme-toggle {
  width: 40px; height: 40px; flex: none; border-radius: 999px;
  border: 1.5px solid var(--border); background: var(--surface); cursor: pointer;
  display: grid; place-items: center; transition: border-color .2s, background .2s;
}
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle-icon {
  width: 18px; height: 18px; border-radius: 999px;
  background: var(--brand-gradient); box-shadow: inset -5px -5px 0 0 var(--surface);
  transition: all .35s var(--ease);
}
[data-theme="light"] .theme-toggle-icon { box-shadow: none; }

/* ---------- Layout helpers ---------- */
.section-head { max-width: 660px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 12px; font-weight: 600; }
.section-head p { color: var(--text-dim); font-size: 18px; }

section { padding: 88px 24px; }
section > :not(.hero-inner):not(.hero-glow) { max-width: var(--maxw); margin-inline: auto; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 96px 24px 80px; overflow: hidden; }
.hero-glow { position: absolute; inset: 0; background: var(--hero-glow); pointer-events: none; }
.hero-inner { position: relative; max-width: 800px; margin: 0 auto; text-align: center; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .18em;
  font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 20px;
  padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px;
}
.hero-title {
  font-size: clamp(44px, 8vw, 84px); font-weight: 600; margin-bottom: 22px;
  background: var(--brand-gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: clamp(17px, 2.4vw, 21px); color: var(--text-dim); max-width: 640px; margin: 0 auto 34px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-trust { margin-top: 22px; font-size: 13px; color: var(--text-dim); }

/* ---------- App grid ---------- */
.app-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px;
}
.app-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column;
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
}
.app-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--card-shadow); }
.app-card--soon { opacity: .94; }
.app-icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 26px; margin-bottom: 18px;
}
.app-icon--wer  { background: var(--brand-gradient); color: var(--on-accent); font-family: var(--font-brand); font-weight: 900; }
.app-icon--maps { background: var(--surface-2); color: var(--accent); }
.app-icon--soon { background: var(--surface-2); color: var(--text-dim); font-size: 30px; }
.app-card h3 { font-size: 23px; margin-bottom: 4px; font-weight: 600; }
.app-title--brand { font-family: var(--font-brand); font-weight: 900; letter-spacing: -.01em; }
.app-tag { text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 600; color: var(--accent); margin-bottom: 14px; }
.app-desc { color: var(--text-dim); font-size: 15px; flex: 1; }
.app-links { margin-top: 20px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600;
  padding: 8px 14px; border-radius: 999px;
}
.badge-live { background: var(--accent); color: var(--on-accent); }
.badge-live:hover { filter: brightness(1.12); }
.badge-soon { background: var(--surface-2); color: var(--text-dim); border: 1px solid var(--border); }
a.badge-soon:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Why ---------- */
.why { background: var(--bg-2); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.why-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 28px; text-align: center;
}
.why-ico {
  width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 16px;
  display: grid; place-items: center; font-size: 26px;
  background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent);
}
.why-item h3 { font-size: 21px; margin-bottom: 8px; font-weight: 600; }
.why-item p { color: var(--text-dim); font-size: 15px; }

/* ---------- Waitlist ---------- */
.waitlist-card {
  max-width: 620px; margin: 0 auto; text-align: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 48px 32px;
  background-image: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%);
}
.waitlist-card h2 { font-size: clamp(26px, 4vw, 36px); margin-bottom: 10px; font-weight: 600; }
.waitlist-card > p { color: var(--text-dim); font-size: 17px; margin-bottom: 28px; }
.waitlist-form { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.waitlist-form input {
  flex: 1 1 260px; min-width: 0; padding: 14px 18px; font-size: 15px; font-family: inherit;
  border-radius: 999px; border: 1.5px solid var(--border); background: var(--bg);
  color: var(--text); transition: border-color .2s;
}
.waitlist-form input::placeholder { color: var(--text-dim); }
.waitlist-form input:focus { outline: none; border-color: var(--accent); }
.waitlist-form .btn { flex: 0 0 auto; }
.form-msg { flex-basis: 100%; min-height: 20px; margin-top: 6px; font-size: 14px; font-weight: 500; }
.form-msg.ok { color: var(--accent); }
.form-msg.err { color: #E0457B; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 56px 24px 40px; background: var(--bg-2); }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; display: flex; gap: 24px;
  justify-content: space-between; align-items: flex-start; flex-wrap: wrap;
}
.footer-brand .brand-text { font-size: 22px; }
.footer-brand p { color: var(--text-dim); font-size: 14px; margin-top: 6px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--text-dim); font-size: 15px; transition: color .2s; }
.footer-links a:hover { color: var(--accent); }
.footer-legal { max-width: var(--maxw); margin: 32px auto 0; color: var(--text-dim); font-size: 13px; text-align: center; }

/* ---------- Focus visibility ---------- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

@media (max-width: 640px) {
  .nav > a:not(.nav-cta) { display: none; }
  section { padding: 64px 20px; }
}
