/* === Design Tokens — Charte Graphique === */
:root {
  /* NOCTIS (dark) — default */
  --bg:           #0E1240;
  --surface:      #161A4E;
  --surface-2:    #1D2260;
  --surface-card: rgba(22, 26, 78, 0.70);
  --text:         #F5F2EA;
  --text-muted:   rgba(245, 242, 234, 0.60);
  --text-faint:   rgba(245, 242, 234, 0.35);
  --primary-deep: #3617A8;
  --primary:      #7C3AED;
  --bright:       #C4B5FD;
  --line:         rgba(245, 242, 234, 0.14);
  --line-strong:  rgba(245, 242, 234, 0.22);

  /* Semantic */
  --green:  #16A34A;
  --red:    #DC2626;
  --orange: #D97706;

  /* Gradients */
  --gradient:      linear-gradient(135deg, var(--primary-deep), var(--primary));
  --gradient-text: linear-gradient(135deg, var(--bright), var(--primary));

  /* Elevation */
  --elev-0: 0 0 0 1px var(--line);
  --elev-1: 0 1px 2px rgba(14, 18, 64, 0.35);
  --elev-2: 0 8px 24px rgba(14, 18, 64, 0.45);
  --elev-3: 0 24px 60px rgba(14, 18, 64, 0.55);
  --glow:   0 0 32px rgba(124, 58, 237, 0.25);

  /* Surface variants */
  --nav-bg:    rgba(14, 18, 64, 0.80);
  --footer-bg: rgba(14, 18, 64, 0.85);
  --mobile-bg: rgba(14, 18, 64, 0.97);
  --input-bg:  rgba(245, 242, 234, 0.06);
  --hover-bg:  rgba(245, 242, 234, 0.07);

  /* Spacing (4px base) */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-6:  24px;
  --sp-8:  32px;
  --sp-12: 48px;
  --sp-20: 80px;

  /* Radius */
  --r-sm:   4px;
  --r-md:   8px;
  --r-lg:   14px;
  --r-pill: 9999px;

  /* Layout */
  --nav-height: 72px;
  --transition: 0.2s ease;
}

/* === IRIS — Light Mode === */
[data-theme="light"] {
  --bg:           #F7F2E6;
  --surface:      #FFFFFF;
  --surface-2:    #EDE8D6;
  --surface-card: rgba(255, 255, 255, 0.80);
  --text:         #1A1860;
  --text-muted:   rgba(26, 24, 96, 0.60);
  --text-faint:   rgba(26, 24, 96, 0.38);
  --primary-deep: #3617A8;
  --primary:      #5C36CC;
  --bright:       #9B7BFF;
  --line:         rgba(26, 24, 96, 0.12);
  --line-strong:  rgba(26, 24, 96, 0.22);

  --gradient:      linear-gradient(135deg, #3617A8, #5C36CC);
  --gradient-text: linear-gradient(135deg, #5C36CC, #9B7BFF);

  --elev-0: 0 0 0 1px var(--line);
  --elev-1: 0 1px 2px rgba(26, 24, 96, 0.10);
  --elev-2: 0 8px 24px rgba(26, 24, 96, 0.12);
  --elev-3: 0 24px 60px rgba(26, 24, 96, 0.16);
  --glow:   0 0 32px rgba(92, 54, 204, 0.18);

  --nav-bg:    rgba(247, 242, 230, 0.88);
  --footer-bg: rgba(240, 235, 220, 0.92);
  --mobile-bg: rgba(247, 242, 230, 0.98);
  --input-bg:  rgba(26, 24, 96, 0.05);
  --hover-bg:  rgba(26, 24, 96, 0.05);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Red Hat Text', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Epilogue', sans-serif;
}

/* === Animated Background === */
.bg-blobs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  transition: opacity 0.4s ease;
}

.blob-1 {
  width: 700px;
  height: 700px;
  background: var(--primary);
  top: -280px;
  left: -180px;
  opacity: 0.10;
  animation: drift1 22s ease-in-out infinite;
}

.blob-2 {
  width: 550px;
  height: 550px;
  background: var(--primary-deep);
  bottom: -200px;
  right: -160px;
  opacity: 0.13;
  animation: drift2 17s ease-in-out infinite;
}

.blob-3 {
  width: 480px;
  height: 480px;
  background: var(--bright);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.04;
  animation: drift3 26s ease-in-out infinite;
}

[data-theme="light"] .blob-1 { opacity: 0.12; }
[data-theme="light"] .blob-2 { opacity: 0.10; }
[data-theme="light"] .blob-3 { opacity: 0.07; }

@keyframes drift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(70px, 50px) scale(1.06); }
  66%  { transform: translate(-40px, 70px) scale(0.94); }
}

@keyframes drift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(-60px, -40px) scale(1.08); }
  66%  { transform: translate(40px, -60px) scale(0.93); }
}

@keyframes drift3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50%       { transform: translate(-50%, -50%) scale(1.28); }
}

/* === Main Content === */
main {
  position: relative;
  z-index: 1;
  padding-top: var(--nav-height);
}

/* === Navigation === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--nav-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--line);
  z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
}

.logo-picto {
  width: 32px;
  height: 32px;
  display: block;
}

.logo-text {
  font-family: 'Epilogue', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  flex: 1;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-family: 'Red Hat Text', sans-serif;
  font-size: 15px;
  font-weight: 500;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-md);
  transition: all var(--transition);
}

.nav-links a:hover {
  color: var(--text);
  background: var(--hover-bg);
}

.nav-links a.active {
  color: var(--bright);
  background: rgba(124, 58, 237, 0.15);
}

[data-theme="light"] .nav-links a.active {
  background: rgba(92, 54, 204, 0.10);
}

.nav-cta { flex-shrink: 0; }

/* === Theme Toggle === */
.theme-toggle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hover-bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition);
  flex-shrink: 0;
}

.theme-toggle:hover {
  color: var(--text);
  background: var(--surface-card);
  border-color: var(--line-strong);
}

.theme-toggle svg { display: block; }

/* Show sun in dark mode (switch to light), moon in light mode (switch to dark) */
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }

[data-theme="light"] .theme-toggle .icon-sun  { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* === Buttons === */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  background: var(--primary);
  color: var(--text);
  text-decoration: none;
  font-family: 'Red Hat Text', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--r-pill);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--elev-1), var(--glow);
}

[data-theme="light"] .btn-primary { color: #FFFFFF; }

.btn-primary:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
  box-shadow: var(--elev-2), var(--glow);
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  background: transparent;
  color: var(--text);
  text-decoration: none;
  font-family: 'Red Hat Text', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-secondary:hover {
  background: var(--hover-bg);
  border-color: var(--bright);
  transform: translateY(-1px);
}

.btn-secondary:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

/* === Hamburger === */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sp-2);
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* === Mobile Menu === */
.mobile-menu {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--mobile-bg);
  backdrop-filter: blur(24px);
  padding: var(--sp-4) var(--sp-6) var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  border-bottom: 1px solid var(--line);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 99;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  transition: all var(--transition);
}

.mobile-menu a:hover { color: var(--text); background: var(--hover-bg); }
.mobile-menu .btn-primary { margin-top: var(--sp-2); }

/* === Layout Helpers === */
.container {
  max-width: 1200px;
  margin: 0 auto;
}

section { padding: var(--sp-20) var(--sp-6); }

.section-label {
  font-family: 'Red Hat Text', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--bright);
  margin-bottom: var(--sp-3);
}

.section-title {
  font-family: 'Epilogue', sans-serif;
  font-size: clamp(28px, 4.5vw, 42px);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -1px;
  color: var(--text);
  margin-bottom: var(--sp-4);
}

.section-subtitle {
  font-family: 'Red Hat Text', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.65;
  text-align: center;
  margin: 0 auto;
}

/* === Gradient Text === */
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === Hero === */
.hero {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  padding: var(--sp-20) var(--sp-6);
  text-align: center;
}

.hero-content {
  max-width: 820px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: rgba(124, 58, 237, 0.14);
  border: 1px solid rgba(196, 181, 253, 0.28);
  border-radius: var(--r-pill);
  padding: 6px var(--sp-4);
  font-family: 'Red Hat Text', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--bright);
  margin-bottom: var(--sp-8);
}

[data-theme="light"] .hero-badge {
  background: rgba(92, 54, 204, 0.08);
  border-color: rgba(155, 123, 255, 0.30);
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 2.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.45; transform: scale(0.7); }
}

.hero h1 {
  font-family: 'Epilogue', sans-serif;
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2.5px;
  margin-bottom: var(--sp-6);
}

.hero-desc {
  font-family: 'Red Hat Text', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto var(--sp-12);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: var(--sp-3);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--sp-12);
}

/* === Teasers === */
.teasers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  max-width: 540px;
  margin: 0 auto var(--sp-12);
}

.teaser {
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px var(--sp-4);
  text-align: center;
  transition: all 0.25s;
}

.teaser:hover {
  background: var(--surface-2);
  transform: translateY(-4px);
  border-color: rgba(196, 181, 253, 0.30);
  box-shadow: var(--elev-2);
}

[data-theme="light"] .teaser:hover {
  border-color: rgba(92, 54, 204, 0.25);
}

.teaser .icon {
  font-size: 26px;
  margin-bottom: var(--sp-2);
  display: block;
}

.teaser span {
  font-family: 'Red Hat Text', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

/* === Signup Form === */
.signup-form {
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  max-width: 480px;
  margin: 0 auto;
  backdrop-filter: blur(12px);
  text-align: left;
  box-shadow: var(--elev-2);
}

.signup-form > p {
  font-family: 'Red Hat Text', sans-serif;
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
}

.form-row {
  display: flex;
  gap: var(--sp-2);
}

.form-row input {
  flex: 1;
  background: var(--input-bg);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 12px 20px;
  color: var(--text);
  font-family: 'Red Hat Text', sans-serif;
  font-size: 15px;
  outline: none;
  transition: all var(--transition);
  min-width: 0;
}

.form-row input::placeholder { color: var(--text-faint); }

.form-row input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.18);
}

[data-theme="light"] .form-row input:focus {
  box-shadow: 0 0 0 3px rgba(92, 54, 204, 0.15);
}

.error-msg {
  color: #EF4444;
  font-family: 'Red Hat Text', sans-serif;
  font-size: 13px;
  margin-top: var(--sp-2);
  display: none;
}

.error-msg.visible { display: block; }

.success-msg { display: none; text-align: center; animation: fade-in 0.4s ease; }
.success-msg.visible { display: block; }
.success-icon { font-size: 48px; margin-bottom: var(--sp-3); display: block; }

.success-msg h3 {
  font-family: 'Epilogue', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: var(--sp-2);
}

.success-msg p {
  font-family: 'Red Hat Text', sans-serif;
  font-size: 14px;
  color: var(--text-muted);
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* === Page Hero (inner pages) === */
.page-hero {
  padding: var(--sp-20) var(--sp-6) 56px;
  text-align: center;
}

.page-hero-content { max-width: 700px; margin: 0 auto; }

/* === Features Grid === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--sp-6);
  margin-top: var(--sp-12);
}

.feature-card {
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  transition: all 0.25s;
}

.feature-card:hover {
  background: var(--surface-2);
  transform: translateY(-4px);
  box-shadow: var(--elev-2), var(--glow);
  border-color: rgba(196, 181, 253, 0.28);
}

[data-theme="light"] .feature-card:hover {
  border-color: rgba(92, 54, 204, 0.22);
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--gradient);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  box-shadow: 0 6px 18px rgba(54, 23, 168, 0.35);
}

.feature-card h3 {
  font-family: 'Epilogue', sans-serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: var(--sp-2);
}

.feature-card p {
  font-family: 'Red Hat Text', sans-serif;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 15px;
}

/* === FAQ Category Headers === */
.faq-category {
  font-family: 'Red Hat Text', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--bright);
  padding: var(--sp-8) 0 var(--sp-2);
}

.faq-category:first-child { padding-top: 0; }

/* === FAQ === */
.faq-list {
  max-width: 720px;
  margin: var(--sp-12) auto 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.faq-item {
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item.open { border-color: rgba(196, 181, 253, 0.35); }

[data-theme="light"] .faq-item.open { border-color: rgba(92, 54, 204, 0.30); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--sp-6);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  font-family: 'Red Hat Text', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  gap: var(--sp-4);
  transition: background var(--transition);
}

.faq-question:hover { background: var(--hover-bg); }

.faq-chevron {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--bright);
  border-bottom: 2px solid var(--bright);
  transform: rotate(45deg);
  transition: transform 0.3s;
  margin-top: -4px;
}

.faq-item.open .faq-chevron { transform: rotate(-135deg); margin-top: 4px; }

.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }

.faq-answer-inner {
  padding: 0 var(--sp-6) 20px;
  font-family: 'Red Hat Text', sans-serif;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
}

.faq-answer-inner a { color: var(--bright); text-decoration: none; }
.faq-answer-inner a:hover { text-decoration: underline; }

.faq-item.open .faq-answer { max-height: 400px; }

/* === Downloads === */
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-6);
  margin-top: var(--sp-12);
}

.download-card {
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-8) var(--sp-6);
  text-align: center;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.download-card:hover {
  background: var(--surface-2);
  transform: translateY(-4px);
  border-color: rgba(196, 181, 253, 0.28);
  box-shadow: var(--elev-2), var(--glow);
}

[data-theme="light"] .download-card:hover {
  border-color: rgba(92, 54, 204, 0.22);
}

.download-badge {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  background: var(--gradient);
  color: #FFFFFF;
  font-family: 'Red Hat Text', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-pill);
}

.download-icon { font-size: 48px; margin-bottom: var(--sp-4); display: block; }

.download-card h3 {
  font-family: 'Epilogue', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: var(--sp-2);
}

.download-card p {
  font-family: 'Red Hat Text', sans-serif;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

/* === Beta CTA Box === */
.beta-box {
  text-align: center;
  margin: 64px auto 0;
  padding: var(--sp-12) 40px;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  max-width: 600px;
  box-shadow: var(--elev-2);
}

.beta-box h2 {
  font-family: 'Epilogue', sans-serif;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: var(--sp-3);
}

.beta-box p {
  font-family: 'Red Hat Text', sans-serif;
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 15px;
  line-height: 1.7;
}

/* === Legal Pages === */
.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--sp-6) var(--sp-20);
}

.legal-content h2 {
  font-family: 'Epilogue', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 44px 0 var(--sp-4);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.legal-content h3 {
  font-family: 'Epilogue', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--bright);
  margin: var(--sp-6) 0 var(--sp-2);
}

.legal-content p {
  font-family: 'Red Hat Text', sans-serif;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: var(--sp-4);
  font-size: 15px;
}

.legal-content ul {
  font-family: 'Red Hat Text', sans-serif;
  color: var(--text-muted);
  padding-left: var(--sp-6);
  margin-bottom: var(--sp-4);
  line-height: 2;
  font-size: 15px;
}

.legal-content a { color: var(--bright); text-decoration: none; }
.legal-content a:hover { text-decoration: underline; }

.legal-date {
  margin-top: var(--sp-12);
  font-family: 'Red Hat Text', sans-serif;
  font-size: 13px;
  color: var(--text-faint);
}

/* === Footer === */
footer {
  position: relative;
  z-index: 1;
  background: var(--footer-bg);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(24px);
  padding: 56px var(--sp-6) var(--sp-8);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.footer-container { max-width: 1200px; margin: 0 auto; }

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-12);
  margin-bottom: var(--sp-12);
}

.footer-brand p {
  font-family: 'Red Hat Text', sans-serif;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  margin-top: 14px;
  max-width: 280px;
}

.footer-col h4 {
  font-family: 'Red Hat Text', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--sp-4);
}

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

.footer-col a {
  font-family: 'Red Hat Text', sans-serif;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--transition);
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-8);
  border-top: 1px solid var(--line);
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.footer-bottom p {
  font-family: 'Red Hat Text', sans-serif;
  color: var(--text-faint);
  font-size: 13px;
}

.footer-legal { display: flex; gap: var(--sp-6); flex-wrap: wrap; }

.footer-legal a {
  font-family: 'Red Hat Text', sans-serif;
  color: var(--text-faint);
  text-decoration: none;
  font-size: 13px;
  transition: color var(--transition);
}

.footer-legal a:hover { color: var(--text-muted); }

/* === Responsive === */
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-8);
  }

  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  section { padding: 56px 20px; }
  .hero { padding: 60px 20px; }
  .page-hero { padding: 60px 20px 40px; }
  .hero h1 { letter-spacing: -1.5px; }

  .form-row { flex-direction: column; }

  .teasers {
    grid-template-columns: 1fr;
    max-width: 240px;
  }

  .features-grid,
  .downloads-grid { grid-template-columns: 1fr; }

  .footer-main { grid-template-columns: 1fr; gap: var(--sp-6); }
  .footer-bottom { flex-direction: column; text-align: center; }

  .beta-box { padding: var(--sp-8) var(--sp-6); }
}
