/* FairForge landing — palette from FFColor.swift */

:root {
  --bg-deep: #0b1a2b;
  --bg-mid: #0e2438;
  --bg-surface: #132b44;
  --bg-elevated: #1c3654;
  --primary: #1e3a5f;
  --divider: #2e4a66;
  --accent: #6ec4e8;
  --accent-bright: #b5e4f7;
  --accent-deep: #5bb8de;
  --teal: #4db8a8;
  --ember: #e89a4a;
  --success: #45c486;
  --text-primary: #f7fafc;
  --text-secondary: #a3b6c9;
  --text-on-accent: #0b1a2b;
  --radius: 18px;
  --radius-sm: 14px;
  --max-width: 1120px;
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg-deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Atmosphere ── */

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(165deg, #0a1828 0%, #12304a 48%, #0e2438 100%);
}

.grid-wash {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(rgba(110, 196, 232, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 196, 232, 0.5) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 20%, black 20%, transparent 70%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: drift 18s ease-in-out infinite alternate;
}

.orb--ice {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(110, 196, 232, 0.28) 0%, transparent 70%);
  top: -80px;
  left: -60px;
}

.orb--teal {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(77, 184, 168, 0.18) 0%, transparent 70%);
  top: 40%;
  right: -80px;
  animation-delay: -7s;
}

.orb--ember {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(232, 154, 74, 0.12) 0%, transparent 70%);
  bottom: 10%;
  left: 20%;
  animation-delay: -12s;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(28px, -20px) scale(1.08); }
}

/* ── Layout ── */

.page-wrap {
  position: relative;
  z-index: 1;
}

.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

section {
  padding-block: 5rem;
}

.section-label {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

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

/* ── Nav ── */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(11, 26, 43, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(110, 196, 232, 0.12);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
  position: relative;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  text-decoration: none;
  color: var(--text-primary);
}

.wordmark span {
  color: var(--accent);
}

.wordmark .mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent-deep), var(--teal));
  box-shadow: 0 0 18px rgba(110, 196, 232, 0.45);
  position: relative;
}

.wordmark .mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1.5px solid rgba(11, 26, 43, 0.55);
  border-radius: 3px;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--accent-bright);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(110, 196, 232, 0.35);
  border-radius: 8px;
  color: var(--text-primary);
  padding: 0.4rem 0.65rem;
  cursor: pointer;
  font-size: 1.2rem;
}

/* ── Hero ── */

.hero {
  padding-block: 5rem 4rem;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  border: 1px solid rgba(77, 184, 168, 0.45);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  margin-bottom: 1.5rem;
  background: rgba(77, 184, 168, 0.08);
}

.hero h1 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 6.5vw, 4.1rem);
  line-height: 1.08;
  margin-bottom: 0.5rem;
}

.hero h1 .accent {
  display: block;
  margin-top: 0.35rem;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 28px rgba(110, 196, 232, 0.25));
}

.hero-subtitle {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 1.15rem;
  max-width: 620px;
  margin-inline: auto;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.75rem;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

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

.btn-primary {
  color: var(--text-on-accent);
  background: linear-gradient(135deg, var(--accent-deep), var(--teal));
  box-shadow:
    0 4px 24px rgba(110, 196, 232, 0.28),
    0 0 40px rgba(77, 184, 168, 0.12);
}

.btn-primary:hover {
  box-shadow:
    0 6px 32px rgba(110, 196, 232, 0.4),
    0 0 48px rgba(77, 184, 168, 0.2);
}

.btn-ghost {
  color: var(--text-primary);
  background: transparent;
  border: 1.5px solid rgba(110, 196, 232, 0.4);
}

.btn-ghost:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(110, 196, 232, 0.15);
}

/* ── Stat pills ── */

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.stat-pill {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(19, 43, 68, 0.95), rgba(28, 54, 84, 0.8));
  border: 1px solid rgba(110, 196, 232, 0.22);
  color: var(--text-primary);
  box-shadow: 0 0 24px rgba(110, 196, 232, 0.06);
}

.stat-pill strong {
  color: var(--accent-bright);
}

/* ── Feature cards ── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.feature-card {
  background: linear-gradient(145deg, var(--bg-surface), rgba(28, 54, 84, 0.85));
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid rgba(110, 196, 232, 0.18);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(46, 74, 102, 0.4),
    inset 0 1px 0 rgba(181, 228, 247, 0.06);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(110, 196, 232, 0.4);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.35),
    0 0 28px rgba(110, 196, 232, 0.12);
}

.feature-num {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ember);
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 14px rgba(232, 154, 74, 0.35);
}

.feature-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
  color: var(--accent-bright);
  margin-bottom: 0.65rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ── About ── */

.about-block {
  background: linear-gradient(180deg, rgba(19, 43, 68, 0.45), transparent);
  border-block: 1px solid rgba(110, 196, 232, 0.08);
}

.about-text {
  color: var(--text-secondary);
  max-width: 720px;
}

.about-text p + p {
  margin-top: 1rem;
}

.about-text em {
  color: var(--teal);
  font-style: normal;
  font-weight: 500;
}

/* ── Privacy ── */

.privacy-card {
  background: linear-gradient(145deg, var(--bg-surface), rgba(28, 54, 84, 0.75));
  border-radius: var(--radius);
  padding: 2.5rem;
  border: 1px solid rgba(110, 196, 232, 0.18);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3), 0 0 32px rgba(110, 196, 232, 0.05);
  margin-top: 2rem;
}

.privacy-effective {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--ember);
  margin-bottom: 1.5rem;
}

.privacy-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  color: var(--accent-bright);
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.privacy-card p,
.privacy-card li {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.privacy-card strong {
  color: var(--text-primary);
  font-weight: 600;
}

.privacy-card a {
  color: var(--accent);
  text-decoration: none;
}

.privacy-card a:hover {
  color: var(--accent-bright);
  text-decoration: underline;
}

.privacy-card ul {
  margin: 0.5rem 0 0 1.25rem;
}

.privacy-card li + li {
  margin-top: 0.35rem;
}

/* ── Contact ── */

.contact-note {
  margin-top: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.contact-card {
  background: linear-gradient(145deg, var(--bg-surface), rgba(28, 54, 84, 0.7));
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  border: 1px solid rgba(77, 184, 168, 0.28);
}

.contact-card .label {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.4rem;
}

.contact-card a,
.contact-card span {
  color: var(--accent-bright);
  text-decoration: none;
  word-break: break-all;
  font-weight: 500;
}

.contact-card a:hover {
  text-decoration: underline;
}

/* ── Footer ── */

.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid rgba(110, 196, 232, 0.1);
  text-align: center;
}

.footer-legal {
  color: var(--text-secondary);
  font-size: 0.85rem;
  max-width: 680px;
  margin-inline: auto;
  line-height: 1.6;
}

.footer-copy {
  margin-top: 1rem;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: rgba(163, 182, 201, 0.55);
}

/* ── Responsive ── */

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(11, 26, 43, 0.97);
    border-bottom: 1px solid rgba(110, 196, 232, 0.12);
    padding: 1rem 0;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 1.25rem;
  }

  .privacy-card {
    padding: 1.5rem;
  }

  section {
    padding-block: 3.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orb { animation: none; }
  .btn:hover,
  .feature-card:hover { transform: none; }
}
