/* ==========================================================================
   Quizerist promotional website
   Shared stylesheet for every page.
   Palette drawn from the app theme: deep navy backdrop, azure brand action,
   warm gold headings, cream body text, cyan and amber accents.
   ========================================================================== */

:root {
  /* Core palette */
  --bg-top: #060a14;
  --bg-bottom: #122b43;
  --bg-bloom: #0099cc;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-elevated: rgba(255, 255, 255, 0.07);
  --stroke: rgba(255, 255, 255, 0.1);
  --stroke-strong: rgba(255, 255, 255, 0.16);

  --accent: #00bcff;
  --accent-deep: #0091cc;
  --cyan: #22d3ee;
  --gold: #f5c542;
  --gold-bright: #ffd95e;
  --amber: #f5a524;
  --emerald: #10b981;
  --magenta: #ec4899;

  --text-primary: #f5f7fb;
  --text-cream: #fcea9b;
  --text-secondary: rgba(245, 247, 251, 0.7);
  --text-tertiary: rgba(245, 247, 251, 0.48);

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;

  /* Metrics */
  --radius-lg: 24px;
  --radius: 18px;
  --radius-sm: 12px;
  --max-width: 1160px;
  --nav-height: 72px;

  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 14px 40px rgba(0, 188, 255, 0.28);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--bg-top);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Layered backdrop: vertical gradient plus a soft azure bloom top left. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(160deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(
      720px 540px at 12% -5%,
      rgba(0, 153, 204, 0.32),
      transparent 60%
    ),
    radial-gradient(
      640px 480px at 100% 0%,
      rgba(245, 165, 36, 0.12),
      transparent 55%
    );
  pointer-events: none;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--cyan);
}

h1,
h2,
h3,
h4 {
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ----- Layout helpers ----- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section--tight {
  padding: 64px 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  color: var(--text-primary);
  margin-bottom: 18px;
}

.section-lead {
  font-size: 1.12rem;
  color: var(--text-secondary);
  max-width: 640px;
}

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

.section-head--center {
  text-align: center;
}

.section-head--center .section-lead {
  margin-left: auto;
  margin-right: auto;
}

.text-gold {
  color: var(--text-cream);
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease,
    border-color 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #06121c;
  box-shadow: var(--shadow-glow);
}

.btn--primary:hover {
  color: #06121c;
  box-shadow: 0 18px 48px rgba(0, 188, 255, 0.42);
}

.btn--ghost {
  background: var(--surface-elevated);
  color: var(--text-primary);
  border-color: var(--stroke-strong);
}

.btn--ghost:hover {
  color: var(--text-primary);
  border-color: var(--accent);
}

.btn--block {
  width: 100%;
}

/* App Store badge button */
.appstore-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0b1622, #060a14);
  border: 1px solid var(--stroke-strong);
  color: var(--text-primary);
  transition: transform 0.18s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.appstore-btn:hover {
  transform: translateY(-2px);
  color: var(--text-primary);
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.appstore-btn svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  fill: var(--text-primary);
}

.appstore-btn .appstore-btn__small {
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  display: block;
  line-height: 1.2;
}

.appstore-btn .appstore-btn__large {
  font-size: 1.15rem;
  font-weight: 700;
  display: block;
  line-height: 1.2;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(6, 10, 20, 0.72);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--stroke);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.nav-brand span {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text-primary);
  background: var(--surface);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-cta .btn {
  padding: 11px 20px;
  font-size: 0.94rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: 88px 0 72px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-logo {
  width: min(340px, 80%);
  margin-bottom: 26px;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: var(--text-primary);
  margin-bottom: 20px;
}

.hero-title .text-gold {
  display: inline;
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 28px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  color: var(--text-tertiary);
  font-size: 0.92rem;
  font-weight: 600;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-meta span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
}

/* Hero visual: phone with floating icon */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-phone {
  width: min(300px, 78%);
  border-radius: 42px;
  box-shadow: var(--shadow-soft);
}

.hero-icon-badge {
  position: absolute;
  top: -10px;
  left: 4%;
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--stroke-strong);
  animation: float 6s ease-in-out infinite;
}

.hero-chip {
  position: absolute;
  bottom: 38px;
  right: 2%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(10, 18, 28, 0.85);
  border: 1px solid var(--stroke-strong);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
  animation: float 5s ease-in-out infinite 0.6s;
}

.hero-chip .hero-chip__icon {
  font-size: 1.3rem;
}

.hero-chip strong {
  display: block;
  font-size: 1rem;
  color: var(--text-primary);
}

.hero-chip small {
  color: var(--text-tertiary);
  font-size: 0.78rem;
}

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

/* ==========================================================================
   Logo / brand strip
   ========================================================================== */
.brand-strip {
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
  background: var(--surface);
}

.brand-strip .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 24px 40px;
  padding-top: 36px;
  padding-bottom: 36px;
  text-align: center;
}

.brand-stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-cream);
  letter-spacing: -0.02em;
}

.brand-stat span {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* ==========================================================================
   Feature grid
   ========================================================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--stroke-strong);
  background: var(--surface-elevated);
}

.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  background: rgba(0, 188, 255, 0.12);
  border: 1px solid rgba(0, 188, 255, 0.24);
}

.card__icon--gold {
  background: rgba(245, 197, 66, 0.12);
  border-color: rgba(245, 197, 66, 0.26);
}
.card__icon--cyan {
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.26);
}
.card__icon--emerald {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.26);
}
.card__icon--magenta {
  background: rgba(236, 72, 153, 0.12);
  border-color: rgba(236, 72, 153, 0.26);
}
.card__icon--amber {
  background: rgba(245, 165, 36, 0.12);
  border-color: rgba(245, 165, 36, 0.26);
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.card p {
  color: var(--text-secondary);
  font-size: 0.98rem;
}

/* ==========================================================================
   What is Quizerist split
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split--reverse .split__media {
  order: 2;
}

.split__media {
  display: flex;
  justify-content: center;
}

.split__media img {
  width: min(280px, 72%);
  border-radius: 38px;
  box-shadow: var(--shadow-soft);
}

.split__body h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  margin-bottom: 18px;
  color: var(--text-primary);
}

.split__body p {
  color: var(--text-secondary);
  font-size: 1.08rem;
  margin-bottom: 18px;
}

.check-list {
  list-style: none;
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-secondary);
}

.check-list li::before {
  content: "✓";
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--emerald);
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* ==========================================================================
   Screenshot gallery
   ========================================================================== */
.gallery {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 8px 4px 28px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.gallery::-webkit-scrollbar {
  height: 8px;
}
.gallery::-webkit-scrollbar-track {
  background: var(--surface);
  border-radius: 8px;
}
.gallery::-webkit-scrollbar-thumb {
  background: var(--stroke-strong);
  border-radius: 8px;
}

.shot {
  scroll-snap-align: center;
  flex: 0 0 auto;
  width: 244px;
  text-align: center;
}

.shot img {
  width: 100%;
  border-radius: 32px;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease;
}

.shot:hover img {
  transform: translateY(-6px);
}

.shot figcaption {
  margin-top: 16px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* ==========================================================================
   macOS showcase
   ========================================================================== */
.mac-window {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: #0b1018;
  box-shadow: var(--shadow-soft);
}

.mac-window__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid var(--stroke);
}

.mac-window__bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mac-window__bar span:nth-child(1) {
  background: #ff5f57;
}
.mac-window__bar span:nth-child(2) {
  background: #febc2e;
}
.mac-window__bar span:nth-child(3) {
  background: #28c840;
}

.mac-window__title {
  margin-left: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-tertiary);
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  background: none !important;
}

.mac-window img {
  width: 100%;
  display: block;
}

.mac-feature {
  max-width: 940px;
  margin: 0 auto 28px;
  transition: transform 0.25s ease;
}

.mac-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  max-width: 940px;
  margin: 0 auto;
}

.mac-grid .mac-card {
  text-align: center;
}

.mac-grid .mac-window {
  transition: transform 0.25s ease, border-color 0.2s ease;
}

.mac-grid .mac-card:hover .mac-window {
  transform: translateY(-6px);
  border-color: var(--stroke-strong);
}

.mac-grid figcaption {
  margin-top: 14px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ==========================================================================
   Competitive / educational banner
   ========================================================================== */
.versus {
  background: linear-gradient(
    135deg,
    rgba(0, 188, 255, 0.1),
    rgba(245, 197, 66, 0.08)
  );
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 56px;
}

.versus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.versus h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--text-cream);
}

.versus p {
  color: var(--text-secondary);
}

.versus-divider {
  width: 1px;
  background: var(--stroke);
}

/* ==========================================================================
   Final call to action
   ========================================================================== */
.cta-band {
  text-align: center;
}

.cta-band .cta-inner {
  background: linear-gradient(
    150deg,
    rgba(0, 188, 255, 0.16),
    rgba(18, 43, 67, 0.7)
  );
  border: 1px solid var(--stroke-strong);
  border-radius: var(--radius-lg);
  padding: 72px 32px;
  box-shadow: var(--shadow-soft);
}

.cta-band img {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  margin: 0 auto 22px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
}

.cta-band h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 16px;
  color: var(--text-primary);
}

.cta-band p {
  color: var(--text-secondary);
  font-size: 1.12rem;
  max-width: 560px;
  margin: 0 auto 32px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   Page header (interior pages)
   ========================================================================== */
.page-header {
  padding: 72px 0 40px;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 16px;
  color: var(--text-primary);
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1.12rem;
  max-width: 620px;
  margin: 0 auto;
}

/* ==========================================================================
   Legal / prose pages
   ========================================================================== */
.prose {
  max-width: 820px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.prose-meta {
  color: var(--text-tertiary);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--stroke);
}

.prose h2 {
  font-size: 1.45rem;
  margin: 40px 0 14px;
  color: var(--text-cream);
}

.prose h3 {
  font-size: 1.12rem;
  margin: 26px 0 10px;
  color: var(--text-primary);
}

.prose p,
.prose li {
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.prose ul,
.prose ol {
  margin: 0 0 18px 22px;
}

.prose li {
  margin-bottom: 8px;
}

.prose strong {
  color: var(--text-primary);
}

.toc {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 40px;
}

.toc h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-tertiary);
  margin: 0 0 14px;
}

.toc ol {
  margin: 0 0 0 18px;
  columns: 2;
  gap: 24px;
}

.toc li {
  margin-bottom: 8px;
}

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}

.contact-aside h2 {
  font-size: 1.6rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.contact-aside p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.contact-points {
  list-style: none;
  display: grid;
  gap: 18px;
}

.contact-points li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-points .contact-points__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: rgba(0, 188, 255, 0.12);
  border: 1px solid rgba(0, 188, 255, 0.24);
}

.contact-points strong {
  display: block;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.contact-points span {
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field {
  margin-bottom: 22px;
}

.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.field .req {
  color: var(--accent);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-primary);
  background: rgba(6, 10, 20, 0.6);
  border: 1px solid var(--stroke-strong);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  resize: vertical;
  min-height: 140px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-tertiary);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 188, 255, 0.18);
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2300bcff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}

.field--error input,
.field--error select,
.field--error textarea {
  border-color: var(--magenta);
}

.field__hint {
  display: none;
  margin-top: 7px;
  font-size: 0.84rem;
  color: var(--magenta);
}

.field--error .field__hint {
  display: block;
}

.checkbox-field {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 26px;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.checkbox-field input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.form-note {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--text-tertiary);
  text-align: center;
}

/* ==========================================================================
   Roadmap page
   ========================================================================== */
.roadmap-intro {
  max-width: 760px;
  margin: 0 auto 64px;
  text-align: center;
}

.roadmap-intro p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.timeline {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--accent),
    rgba(0, 188, 255, 0.1)
  );
}

.phase {
  position: relative;
  padding-left: 76px;
  margin-bottom: 44px;
}

.phase__dot {
  position: absolute;
  left: 14px;
  top: 4px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  background: var(--bg-bottom);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 5px rgba(0, 188, 255, 0.12);
}

.phase__card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 26px 28px;
}

.phase__card:hover {
  border-color: var(--stroke-strong);
}

.phase__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.phase__tag--now {
  color: var(--emerald);
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.phase__tag--next {
  color: var(--accent);
  background: rgba(0, 188, 255, 0.14);
  border: 1px solid rgba(0, 188, 255, 0.3);
}

.phase__tag--later {
  color: var(--gold);
  background: rgba(245, 197, 66, 0.14);
  border: 1px solid rgba(245, 197, 66, 0.3);
}

.phase__tag--vision {
  color: var(--magenta);
  background: rgba(236, 72, 153, 0.14);
  border: 1px solid rgba(236, 72, 153, 0.3);
}

.phase__card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.phase__card ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.phase__card li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  color: var(--text-secondary);
}

.phase__card li::before {
  content: "";
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.pledge {
  max-width: 760px;
  margin: 64px auto 0;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
}

.pledge h2 {
  font-size: 1.5rem;
  margin-bottom: 14px;
  color: var(--text-cream);
}

.pledge p {
  color: var(--text-secondary);
}

/* ----- Release cadence callout + phased release list ----- */
.cadence {
  max-width: 940px;
  margin: 0 auto 56px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: linear-gradient(
    135deg,
    rgba(0, 188, 255, 0.1),
    rgba(34, 211, 238, 0.05)
  );
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 24px 28px;
}

.cadence__icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: rgba(0, 188, 255, 0.14);
  border: 1px solid rgba(0, 188, 255, 0.28);
}

.cadence h2 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.cadence p {
  color: var(--text-secondary);
  font-size: 0.98rem;
}

.roadmap-phases {
  display: grid;
  gap: 28px;
  max-width: 940px;
  margin: 0 auto;
}

.phase-block {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.phase-block__head {
  padding: 30px 32px 24px;
  border-bottom: 1px solid var(--stroke);
}

.phase-block__index {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 14px 0 6px;
}

.phase-block__head h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  margin-bottom: 10px;
  color: var(--text-primary);
}

.phase-block__head p {
  color: var(--text-secondary);
  max-width: 660px;
}

/* Expand / collapse all control row */
.roadmap-controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  max-width: 940px;
  margin: 0 auto 18px;
}

.roadmap-controls__btn {
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.roadmap-controls__btn:hover {
  color: var(--text-primary);
  border-color: var(--accent);
  background: var(--surface-elevated);
}

.release-list {
  padding: 8px 32px 26px;
}

/* Each release is a native <details> so it folds without scripting. */
.release {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.release:first-child {
  border-top: none;
}

.release__summary {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

/* Hide the default disclosure triangle in every engine. */
.release__summary::-webkit-details-marker {
  display: none;
}
.release__summary::marker {
  content: "";
}

.release__summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

.release__version {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Inter", monospace;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: rgba(0, 188, 255, 0.1);
  border: 1px solid rgba(0, 188, 255, 0.24);
  border-radius: 999px;
  padding: 4px 0;
  width: 100%;
}

.release__head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.release__title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: color 0.2s ease;
}

.release__teaser {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.release__summary:hover .release__title {
  color: var(--accent);
}

.release__chevron {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  transition: transform 0.25s ease, color 0.2s ease;
}

.release__chevron::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.release[open] .release__chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.release__detail {
  padding: 2px 32px 20px 106px;
}

.release__detail p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0 0 10px;
}

.release__detail p:last-child {
  margin-bottom: 0;
}

@media (max-width: 560px) {
  .cadence {
    flex-direction: column;
    gap: 12px;
  }
  .phase-block__head {
    padding: 24px 22px 20px;
  }
  .release-list {
    padding: 6px 22px 20px;
  }
  .release__summary {
    grid-template-columns: 64px 1fr auto;
    gap: 12px;
  }
  .release__detail {
    padding: 2px 0 18px 76px;
  }
}

/* ==========================================================================
   Thank you page
   ========================================================================== */
.thanks {
  min-height: calc(100vh - var(--nav-height) - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 0;
}

.thanks-card {
  max-width: 560px;
}

.thanks-badge {
  width: 96px;
  height: 96px;
  margin: 0 auto 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.34);
  animation: pop 0.5s ease;
}

@keyframes pop {
  0% {
    transform: scale(0.4);
    opacity: 0;
  }
  70% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.thanks-card h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin-bottom: 16px;
  color: var(--text-primary);
}

.thanks-card p {
  color: var(--text-secondary);
  font-size: 1.12rem;
  margin-bottom: 32px;
}

.thanks-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   Under construction page
   ========================================================================== */
.construction {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}

.construction__inner {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.construction__art {
  position: relative;
  margin-bottom: 28px;
}

/* Soft brand glow behind the icon. */
.construction__art::before {
  content: "";
  position: absolute;
  inset: -46px;
  z-index: -1;
  background: radial-gradient(
    circle,
    rgba(0, 188, 255, 0.34),
    transparent 68%
  );
  filter: blur(8px);
}

.construction__icon {
  width: 108px;
  height: 108px;
  border-radius: 26px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
  animation: float 6s ease-in-out infinite;
}

.construction__logo {
  width: min(340px, 84%);
  margin-bottom: 22px;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
}

.construction h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  margin-bottom: 16px;
  color: var(--text-primary);
}

.construction p {
  color: var(--text-secondary);
  font-size: 1.12rem;
  margin: 0;
}

/* Elegant indeterminate loading bar. */
.construction__bar {
  position: relative;
  width: 240px;
  height: 8px;
  margin-top: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.construction__bar::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 42%;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent),
    var(--cyan),
    transparent
  );
  animation: loadingSlide 1.9s ease-in-out infinite;
}

@keyframes loadingSlide {
  0% {
    transform: translateX(-130%);
  }
  100% {
    transform: translateX(270%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .construction__icon {
    animation: none;
  }
  .construction__bar::after {
    animation: none;
    transform: translateX(70%);
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--stroke);
  background: rgba(6, 10, 20, 0.55);
  padding: 56px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}

.footer-brand span {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text-primary);
}

.footer-col p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

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

.footer-col a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
}

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

.footer-bottom {
  border-top: 1px solid var(--stroke);
  padding-top: 24px;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.9rem;
}

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-icon-badge,
  .hero-chip,
  .thanks-badge {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-logo {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions,
  .hero-meta {
    justify-content: center;
  }
  .hero-visual {
    order: -1;
  }
  .split,
  .versus-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .split--reverse .split__media {
    order: 0;
  }
  .versus-divider {
    display: none;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .nav-links,
  .nav-cta .btn {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .site-nav.is-open {
    height: auto;
  }
  .site-nav.is-open .nav-links {
    display: flex;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 24px 24px;
    background: rgba(6, 10, 20, 0.96);
    border-bottom: 1px solid var(--stroke);
    backdrop-filter: blur(18px);
  }
  .site-nav.is-open .nav-links a {
    padding: 13px 14px;
    font-size: 1.05rem;
  }
  .section {
    padding: 72px 0;
  }
  .versus {
    padding: 36px 24px;
  }
  .cta-band .cta-inner {
    padding: 48px 24px;
  }
  .form-card {
    padding: 26px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .toc ol {
    columns: 1;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 460px) {
  .container {
    padding: 0 18px;
  }
  .hero-icon-badge {
    width: 72px;
    height: 72px;
  }
  .brand-strip .container {
    gap: 20px;
  }
  .brand-stat {
    flex: 1 1 40%;
  }
}
