/* ===== Saffr Website Design System ===== */
/* Brand tokens mirror mobile/src/theme/colors.js and fonts.js: source of truth stays the app. */

:root {
  --bg: #0F0F0F;
  --card: #181818;
  --surface-mid: #1F1F1F;
  --border: rgba(255, 255, 255, 0.08);
  --text-main: #F5F3EF;
  --text-sub: #B3B3B3;
  --text-muted: #727272;
  --flame: #E8792C;
  --raga: #9B8BE8;
  --linen: #F0EAE0;
  --midnight: #0B0814;
  --green: #2EE59D;
  --danger: #E5484D;
  --gradient-flame: linear-gradient(135deg, var(--flame), var(--raga));

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Poppins', var(--font-body);

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  --container: 1320px;
  --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin: 0 0 var(--space-2); }
p { margin: 0 0 var(--space-2); color: var(--text-sub); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

:focus-visible {
  outline: 2px solid var(--flame);
  outline-offset: 3px;
}

/* ===== Decorative backgrounds ===== */
.blob-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.28;
}
.blob-flame { background: var(--flame); width: 420px; height: 420px; top: -120px; left: -80px; }
.blob-raga { background: var(--raga); width: 380px; height: 380px; top: 60px; right: -100px; opacity: 0.22; }
.dots-scatter { position: absolute; opacity: 0.5; pointer-events: none; }

@media (max-width: 767px) {
  .blob { filter: blur(50px); opacity: 0.18; }
}

/* ===== Nav (floating pill, shrinks on scroll) ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 12px var(--space-3) 0;
  pointer-events: none;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 12px 14px 12px 22px;
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  background: rgba(31, 31, 31, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  pointer-events: auto;
  transition: max-width 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              padding 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              gap 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s ease,
              background 0.35s ease,
              border-color 0.35s ease,
              transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: max-width, padding;
}
.nav.is-scrolled .nav-inner {
  max-width: 275px;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 10px 8px 18px;
  box-shadow: 0 20px 42px -10px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo img { height: 28px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  max-width: 500px;
  opacity: 1;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.25s ease,
              gap 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-links a {
  color: var(--text-sub);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 200ms ease;
}
.nav-links a:hover { color: var(--text-main); }

.nav.is-scrolled .nav-links {
  max-width: 0;
  opacity: 0;
  gap: 0;
  pointer-events: none;
  transform: scale(0.94);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  background: var(--flame);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 150ms ease, transform 150ms ease, background-color 150ms ease;
}
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }
.nav-toggle { display: none; }

@media (max-width: 767px) {
  .nav {
    padding: 10px var(--space-3) 0;
  }
  .nav-inner {
    position: relative;
    padding: 8px 10px 8px 16px;
    width: 100%;
    max-width: 100% !important;
    justify-content: space-between;
  }
  .nav.is-scrolled .nav-inner {
    max-width: 100% !important;
    padding: 8px 10px 8px 16px;
    gap: 10px;
  }
  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100% !important;
    flex-direction: column;
    align-items: stretch;
    background: rgba(20, 20, 20, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 12px 18px;
    gap: 0;
    box-shadow: 0 24px 50px -10px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.05);
    transform: translateY(-8px) scale(0.98);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    overflow: visible;
    white-space: normal;
    transition: opacity 220ms ease, transform 220ms cubic-bezier(0.16, 1, 0.3, 1), visibility 220ms;
    z-index: 100;
  }
  .nav-links.is-open {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
    pointer-events: auto !important;
    visibility: visible !important;
  }
  .nav.is-scrolled .nav-links {
    max-width: 100% !important;
    gap: 0;
  }
  .nav.is-scrolled .nav-links.is-open {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
    pointer-events: auto !important;
    visibility: visible !important;
  }
  .nav-links a {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    padding: 13px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    transition: color 150ms ease, transform 150ms ease;
  }
  .nav-links a:last-child {
    border-bottom: none;
  }
  .nav-links a:hover,
  .nav-links a:active {
    color: var(--flame);
    transform: translateX(3px);
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-pill);
    cursor: pointer;
    color: var(--text-main);
    flex-shrink: 0;
    transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
  }
  .nav-toggle:hover,
  .nav-toggle[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
    color: var(--flame);
  }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: transform 150ms ease, opacity 150ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-primary {
  background: #FFFFFF;
  color: #0F0F0F;
}
.btn-primary:hover {
  background: #E8E5DF;
  opacity: 1;
}
.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.35);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: calc(var(--space-6) + 52px) 0 var(--space-6);
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 480px) 1fr;
  gap: var(--space-6);
  align-items: center;
}
.hero-copy { max-width: 480px; }
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -0.02em;
}
.hero .accent { color: var(--flame); font-style: italic; }
.hero p.lede {
  max-width: 480px;
  margin: var(--space-3) 0 var(--space-4);
  font-size: 18px;
}
.hero-ctas { display: flex; gap: var(--space-2); flex-wrap: wrap; }

@media (max-width: 1050px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { max-width: 640px; margin: 0 auto; }
  .hero p.lede { margin-inline: auto; }
  .hero-ctas { justify-content: center; }
}


/* ===== Hero UI mockup (flat panels, no device chrome) ===== */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 26px;
}
@media (max-width: 1050px) {
  .hero-visual { margin-top: var(--space-6); }
}

.mock-panel {
  width: 210px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 28px 54px -14px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.03);
  overflow: hidden;
  padding: 18px 16px;
}
.mock-panel-project { transform: rotate(-3deg); }
.mock-panel-profile { transform: rotate(2deg); }
.mock-panel-discover { transform: rotate(-1.5deg); }

.mock-title { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--text-main); margin-bottom: 12px; }

.mock-search {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 8px 12px;
  margin-bottom: 12px;
}
.mock-search svg { width: 13px; height: 13px; color: var(--text-muted); flex-shrink: 0; }
.mock-search span { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mock-chips { display: flex; gap: 7px; margin-bottom: 12px; }
.mock-chip { font-size: 11px; padding: 5px 10px; border-radius: var(--radius-pill); background: var(--card); color: var(--text-sub); white-space: nowrap; }
.mock-chip.is-active { background: var(--flame); color: #fff; }

.mock-count { font-size: 11px; color: var(--text-muted); margin-bottom: 9px; }

.mock-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 12px; margin-bottom: 9px; }
.mock-card-row { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.mock-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
}
.mock-avatar svg, .mock-avatar-lg svg { width: 55%; height: 55%; }
.mock-avatar img, .mock-avatar-lg img, .mock-media img, .mock-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mock-card-name { font-size: 14px; font-weight: 700; color: var(--text-main); }
.mock-card-role { font-size: 11px; color: var(--text-sub); }
.mock-tags { display: flex; gap: 7px; margin-bottom: 9px; }
.mock-tag { font-size: 11px; color: var(--text-sub); background: var(--surface-mid); padding: 3px 9px; border-radius: var(--radius-pill); }
.mock-card-actions { display: flex; gap: 7px; }
.mock-btn { flex: 1; height: 30px; border-radius: var(--radius-pill); background: var(--surface-mid); color: var(--text-sub); font-size: 11px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.mock-btn.is-primary { background: var(--flame); color: #fff; }

.mock-media {
  height: 80px;
  border-radius: 12px;
  background: var(--surface-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  margin-bottom: 9px;
  position: relative;
}
.mock-media svg { width: 24px; height: 24px; }
.mock-media-tag {
  position: absolute;
  top: 7px;
  left: 7px;
  font-size: 10px;
  color: var(--text-sub);
  background: rgba(0, 0, 0, 0.55);
  padding: 3px 7px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 3px;
}
.mock-media-tag svg { width: 9px; height: 9px; }

/* ===== Project mockup ===== */
.mock-project-title { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--text-main); margin-bottom: 7px; }
.mock-status { display: inline-block; font-size: 11px; font-weight: 700; color: var(--flame); background: rgba(232, 121, 44, 0.14); padding: 4px 9px; border-radius: 6px; margin-bottom: 9px; }
.mock-desc { font-size: 11px; color: var(--text-sub); line-height: 1.4; margin-bottom: 9px; }
.mock-meta { display: flex; gap: 7px; margin-bottom: 13px; }
.mock-meta span { font-size: 11px; color: var(--text-sub); background: var(--card); padding: 4px 9px; border-radius: 6px; }
.mock-section-label { font-size: 11px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 9px; }
.mock-member-row { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.mock-member-name { font-size: 12px; font-weight: 600; color: var(--text-main); }
.mock-member-role { font-size: 11px; color: var(--text-sub); }
.mock-creator-tag { font-size: 10px; color: var(--flame); }
.mock-task-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.mock-task-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--text-muted); flex-shrink: 0; }
.mock-task-dot.is-done { border-color: var(--green); background: var(--green); }
.mock-task-dot.is-progress { border-color: var(--flame); }
.mock-task-text { font-size: 11px; color: var(--text-sub); }
.mock-task-text.is-done { color: var(--text-muted); text-decoration: line-through; }

/* ===== Profile mockup ===== */
.mock-profile-header { text-align: center; margin-bottom: 13px; }
.mock-avatar-lg {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--surface-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  margin: 0 auto 9px;
}
.mock-avatar-lg svg { width: 55%; height: 55%; }
.mock-profile-name { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--text-main); }
.mock-profile-handle { font-size: 11px; color: var(--text-muted); margin-bottom: 7px; }
.mock-profile-bio { font-size: 11px; color: var(--text-sub); max-width: 165px; margin: 0 auto 11px; line-height: 1.35; }
.mock-stats { display: flex; justify-content: center; gap: 16px; margin-bottom: 13px; }
.mock-stats div { text-align: center; }
.mock-stats strong { display: block; font-size: 13px; color: var(--text-main); }
.mock-stats span { font-size: 9px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; }

.mock-tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 11px; }
.mock-tab { flex: 1; text-align: center; font-size: 11px; font-weight: 600; color: var(--text-muted); padding-bottom: 9px; position: relative; }
.mock-tab.is-active { color: var(--text-main); }
.mock-tab.is-active::after { content: ''; position: absolute; left: 20%; right: 20%; bottom: -1px; height: 2px; background: var(--flame); border-radius: 2px; }

.mock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.mock-grid-item { aspect-ratio: 1; border-radius: 7px; background: var(--surface-mid); display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
.mock-grid-item svg { width: 18px; height: 18px; }
/* ===== Store badges (High Prominence) ===== */
.store-badges {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: var(--space-4) 0 var(--space-3);
}

@media (max-width: 1050px) {
  .store-badges { justify-content: center; }
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 58px;
  padding: 0 22px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #181818;
  color: #FFFFFF;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.store-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(232, 121, 44, 0.14), rgba(155, 139, 232, 0.08));
  opacity: 0;
  transition: opacity 250ms ease;
}

.store-badge:hover {
  transform: translateY(-2px);
  border-color: rgba(232, 121, 44, 0.65);
  background: #202020;
  box-shadow: 0 18px 38px -8px rgba(0, 0, 0, 0.75), 0 0 24px rgba(232, 121, 44, 0.22);
}

.store-badge:hover::before {
  opacity: 1;
}

.store-badge:active {
  transform: translateY(0) scale(0.98);
}

.store-badge svg {
  width: 26px;
  height: 26px;
  color: #FFFFFF;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: transform 200ms ease;
}

.store-badge:hover svg {
  transform: scale(1.06);
}

.store-badge .store-text {
  text-align: left;
  line-height: 1.25;
  position: relative;
  z-index: 1;
}

.store-badge .store-text .small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #A3A3A3;
  letter-spacing: 0.02em;
}

.store-badge .store-text .big {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

/* ===== Sections ===== */
.section { padding: var(--space-6) 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto var(--space-5); }
.section-head h2 { font-size: clamp(26px, 4vw, 38px); }
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--raga);
  margin-bottom: var(--space-2);
}

/* ===== Creative fields strip (continuous marquee) ===== */
.disc-marquee {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}
.disc-track {
  display: flex;
  width: max-content;
  gap: var(--space-2);
  padding: 0 var(--space-3);
  animation: disc-scroll 36s linear infinite;
}
.disc-track:hover { animation-play-state: paused; }

.disc-card {
  position: relative;
  flex-shrink: 0;
  width: 210px;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card);
  transition: transform 250ms ease;
}
.disc-card:hover { transform: translateY(-4px); }

.disc-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.disc-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--space-3) var(--space-2) var(--space-2);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.15) 70%, transparent);
}
.disc-label h3 { font-size: 15px; color: #FFFFFF; margin-bottom: 2px; }
.disc-label p { font-size: 12px; color: rgba(245, 243, 239, 0.8); margin: 0; }

@keyframes disc-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.photo-credit {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  margin: var(--space-2) 0 0;
}
.photo-credit a { color: var(--text-muted); text-decoration: underline; }

@media (max-width: 767px) {
  .disc-card { width: 160px; }
}

/* ===== How it works (Interactive Walkthrough) ===== */
.how-interactive {
  display: grid;
  grid-template-columns: minmax(320px, 440px) 1fr;
  gap: var(--space-5);
  align-items: center;
  margin-top: var(--space-4);
}

.how-tabs {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.how-tab {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px 20px;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  width: 100%;
  color: inherit;
  font-family: inherit;
}

.how-tab:hover {
  border-color: rgba(232, 121, 44, 0.35);
  background: #1c1c1c;
  transform: translateX(4px);
}

.how-tab.is-active {
  background: var(--surface-mid);
  border-color: rgba(232, 121, 44, 0.7);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(232, 121, 44, 0.25);
  transform: translateX(6px);
}

.how-tab-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.how-tab-num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--flame);
  background: rgba(232, 121, 44, 0.12);
  padding: 3px 9px;
  border-radius: 6px;
}

.how-tab h3 {
  font-size: 17px;
  margin: 0;
  color: var(--text-main);
}

.how-tab p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-sub);
  margin: 0;
}

.how-tab-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
}

.how-tab.is-active .how-tab-progress {
  background: rgba(255, 255, 255, 0.08);
}

.how-tab.is-active .how-tab-bar {
  height: 100%;
  width: 0%;
  background: var(--gradient-flame);
  animation: tab-timer 6s linear infinite;
}

@keyframes tab-timer {
  from { width: 0%; }
  to { width: 100%; }
}

.how-tabs.is-paused .how-tab-bar {
  animation-play-state: paused;
}

/* UI Stage & Mock Panels */
.how-stage {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.how-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(12px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.how-panel.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  position: relative;
  z-index: 2;
  width: 100%;
}

.how-stage .mock-panel {
  width: 260px;
  transform: none !important;
  margin: 0 auto;
  box-shadow: 0 24px 50px -10px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

@media (max-width: 900px) {
  .how-interactive {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .how-tab.is-active {
    transform: none;
  }
  .how-stage {
    min-height: auto;
    margin-top: var(--space-2);
  }
}

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 500ms ease, transform 500ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: var(--space-5) 0 var(--space-4);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.footer-brand img { height: 22px; margin-bottom: var(--space-2); }
.footer-brand p { font-size: 13px; max-width: 260px; }
.footer-links { display: flex; gap: var(--space-6); flex-wrap: wrap; }
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 10px;
  transition: color 200ms ease;
}
.footer-col a:hover { color: var(--text-main); }
.footer-bottom {
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-socials a {
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 200ms ease, transform 150ms ease;
}

.footer-socials a:hover {
  color: var(--flame);
  transform: translateY(-2px);
}

/* ===== Legal / content pages ===== */
.legal {
  padding: calc(var(--space-6) + 36px) var(--space-3) var(--space-7);
  max-width: 820px;
  margin: 0 auto;
  overflow-wrap: break-word;
  word-break: break-word;
}
.legal .updated { font-size: 13px; color: var(--text-muted); margin-bottom: var(--space-4); }
.legal h1 { font-size: clamp(28px, 5vw, 40px); margin-bottom: var(--space-2); }
.legal h2 { font-size: 20px; margin-top: var(--space-5); }
.legal p, .legal li { color: var(--text-sub); font-size: 15px; line-height: 1.6; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--flame); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: break-word; word-break: break-word; }

/* Responsive table wrap */
.legal-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: var(--space-3) 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--card);
}
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 14px;
}
.legal th, .legal td {
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--border);
  color: var(--text-sub);
  vertical-align: top;
}
.legal th { color: var(--text-main); background: rgba(255, 255, 255, 0.04); font-weight: 600; white-space: nowrap; }

/* ===== Support / FAQ ===== */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: var(--space-3) 0;
}
.faq-item h3 { font-size: 17px; margin-bottom: 6px; }
.faq-item p { font-size: 14px; margin: 0; }

.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  text-align: center;
  margin-bottom: var(--space-6);
}
.contact-card h2 { font-size: 22px; }
.contact-card a.email { color: var(--flame); font-weight: 600; font-size: 18px; word-break: break-all; }

@media (max-width: 767px) {
  .legal {
    padding: calc(var(--space-5) + 32px) var(--space-2) var(--space-6);
  }
  .legal h1 {
    font-size: 28px;
  }
  .legal h2 {
    font-size: 18px;
  }
  .legal p, .legal li {
    font-size: 14px;
    line-height: 1.6;
  }
  .legal table {
    min-width: 520px;
  }
  .contact-card {
    padding: var(--space-3) var(--space-2);
  }
  .contact-card a.email {
    font-size: 16px;
  }
}

/* ===== 404 ===== */
.error-page {
  min-height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--space-6) + 40px) var(--space-3) var(--space-6);
}
.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(64px, 14vw, 120px);
  color: var(--flame);
  line-height: 1;
}

/* ===== Invite landing ===== */
.invite-card {
  max-width: 420px;
  margin: calc(var(--space-7) + 20px) auto var(--space-7);
  text-align: center;
  padding: 0 var(--space-3);
}
.invite-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--gradient-flame);
  margin: 0 auto var(--space-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: #fff;
}
