:root {
  --bg: #FFFFFF;
  --surface: #F7F9FC;
  --surface-2: #EEF2F8;
  --border: rgba(15, 23, 42, 0.08);
  --text: #0F172A;
  --text-dim: #475569;
  --text-faint: #94A3B8;
  --accent: #1D4ED8;
  --accent-hover: #1E40AF;
  --accent-soft: rgba(29, 78, 216, 0.10);
  --accent-glow: rgba(29, 78, 216, 0.18);
  --success: #059669;
  --error: #DC2626;
  --radius: 10px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.topbar-brand {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.lang-toggle {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}

.lang-toggle button {
  appearance: none;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}

.lang-toggle button.active {
  background: var(--accent);
  color: #fff;
}

.lang-toggle button:not(.active):hover {
  color: var(--text);
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

main > section:not(.site-footer) {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── Hero ────────────────────────────────────────── */

.hero {
  padding: 100px 0 72px;
  text-align: center;
  position: relative;
}

.logo-mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 32px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent) 0%, #1E3A8A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px var(--accent-glow);
}

.logo-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: white;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

h1 {
  font-size: clamp(36px, 7vw, 54px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

.sub {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 auto 42px;
  line-height: 1.55;
}

/* ─── Form ────────────────────────────────────────── */

#waitlist-form {
  max-width: 480px;
  margin: 0 auto;
}

.field {
  display: flex;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 7px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

input[type="email"] {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  outline: none;
  min-width: 0;
}

input[type="email"]::placeholder {
  color: var(--text-faint);
}

#submit-btn {
  background: var(--accent);
  border: none;
  color: white;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 0 22px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.18s, transform 0.18s;
  position: relative;
  white-space: nowrap;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#submit-btn:hover:not(:disabled) {
  background: var(--accent-hover);
}

#submit-btn:active:not(:disabled) {
  transform: scale(0.97);
}

#submit-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: white;
  border-radius: 50%;
  display: none;
  animation: spin 0.7s linear infinite;
}

#submit-btn.loading .btn-label { display: none; }
#submit-btn.loading .btn-spinner { display: inline-block; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-dim);
  text-align: left;
  cursor: pointer;
  line-height: 1.5;
}

.consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

.consent a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 2px;
}

.error-message,
.success-message {
  font-size: 13px;
  margin-top: 14px;
  min-height: 18px;
  text-align: center;
}

.error-message { color: var(--error); }
.success-message { color: var(--success); }

.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;
}

/* ─── Welcome page ────────────────────────────────── */

.welcome-hero {
  padding: 80px 0 56px;
}

.back-home {
  padding: 40px 0 20px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.back-link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--accent);
}

/* ─── Mission & Story ─────────────────────────────── */

.mission,
.story {
  padding: 60px 0;
  border-top: 1px solid var(--border);
}

.mission h2,
.story h2 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-faint);
  text-align: center;
  margin-bottom: 28px;
}

.mission p,
.story p {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 18px;
}

.mission p:last-child,
.story p:last-child {
  margin-bottom: 0;
}

.mission em,
.story em {
  color: var(--text);
  font-style: normal;
  font-weight: 500;
}

.story-media {
  margin: 32px auto;
  max-width: 560px;
}

.story-media img,
.story-media video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.story-media figcaption {
  margin-top: 10px;
  text-align: center;
  font-size: 13px;
  color: var(--text-faint);
  font-style: italic;
}

.story-media figcaption a {
  color: var(--accent);
  text-decoration: none;
  font-style: normal;
}

.story-media figcaption a:hover {
  text-decoration: underline;
}

.story-media a img {
  transition: transform 0.2s, box-shadow 0.2s;
}

.story-media a:hover img {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.10);
}

.story-media.story-video {
  max-width: 280px;
}

.story-media.story-video video {
  border-radius: 18px;
}

.story-sub {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin: 48px auto 18px;
  max-width: 560px;
  letter-spacing: -0.01em;
}

.logo-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 560px;
  margin: 28px auto 8px;
}

.logo-timeline figure {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-timeline img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.logo-timeline figcaption {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-faint);
}

@media (max-width: 560px) {
  .logo-timeline {
    gap: 12px;
  }
  .logo-timeline figcaption {
    font-size: 11px;
  }
}

/* ─── Pillars ─────────────────────────────────────── */

.pillars {
  padding: 60px 0;
  border-top: 1px solid var(--border);
}

.pillars h2 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-faint);
  text-align: center;
  margin-bottom: 32px;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.pillar h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.pillar p {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.55;
}

/* ─── Disclaimer ──────────────────────────────────── */

.disclaimer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.65;
}

.disclaimer a {
  color: var(--accent);
}

/* ─── Privacy note ────────────────────────────────── */

.privacy-note {
  padding: 40px 0 60px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.65;
}

.privacy-note h2 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 18px;
}

.privacy-note p {
  margin-bottom: 14px;
}

.privacy-note a {
  color: var(--text);
}

/* ─── Contact ─────────────────────────────────────── */

.contact {
  padding: 56px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.contact h2 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 20px;
}

.contact p {
  font-size: 15px;
  color: var(--text-dim);
  margin-bottom: 18px;
}

.contact-links {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
}

.contact-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.contact-link svg {
  width: 16px;
  height: 16px;
}

/* ─── Footer ──────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  margin-top: 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  max-width: 280px;
}

.footer-brand .brand-mark {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.18s;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.footer-socials {
  display: flex;
  gap: 14px;
}

.footer-socials a {
  color: var(--text-faint);
  display: inline-flex;
  transition: color 0.18s;
}

.footer-socials a:hover {
  color: var(--accent);
}

.footer-socials svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 640px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-cols {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
}

/* ─── Mobile ──────────────────────────────────────── */

@media (max-width: 560px) {
  .hero {
    padding: 72px 0 56px;
  }

  .field {
    flex-direction: column;
    gap: 8px;
    padding: 8px;
  }

  #submit-btn {
    width: 100%;
    padding: 14px;
  }

  .pillar-grid {
    grid-template-columns: 1fr;
  }
}
