/* ═══════════════════════════════════════════════════════════════════════════
   SassaGold — Shared Design System
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Design tokens ─────────────────────────────────────────────────────── */
:root {
  --gold:        #C49A00;
  --gold-btn:    #D4A017;
  --gold-light:  #FFF8E1;
  --gold-border: rgba(196,154,0,0.25);
  --text-primary:   #111111;
  --text-secondary: #555555;
  --text-muted:     #999999;
  --bg:       #FFFFFF;
  --bg-soft:  #FAFAF8;
  --bg-muted: #F3F2EE;
  --border:   #E8E8E8;
  --shadow-sm: rgba(0,0,0,0.06);
  --shadow-md: rgba(0,0,0,0.10);
}

/* ── Base ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ── Animations ─────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up         { opacity: 0; animation: fadeUp .75s ease forwards; }
.fade-up.delay-1 { animation-delay: .10s; }
.fade-up.delay-2 { animation-delay: .25s; }
.fade-up.delay-3 { animation-delay: .40s; }
.fade-up.delay-4 { animation-delay: .55s; }

/* ── Utilities ──────────────────────────────────────────────────────────── */
.text-gold { color: var(--gold); }
.gold-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(196,154,0,.3), transparent);
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: var(--gold-btn);
  color: #111;
  font-weight: 700;
  font-family: inherit;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
}
.btn-gold:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 36px rgba(196,154,0,0.35);
}
.btn-gold:disabled { opacity: .7; cursor: not-allowed; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-weight: 600;
  font-family: inherit;
  font-size: 1rem;
  background: transparent;
  cursor: pointer;
  transition: background .2s, transform .2s;
  text-decoration: none;
}
.btn-outline:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

/* ── Navigation ─────────────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.nav-logo {
  color: var(--gold);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -.03em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: .9rem;
  font-weight: 500;
}
.nav-link {
  color: var(--text-secondary);
  transition: color .2s;
}
.nav-link:hover { color: var(--text-primary); }
.nav-link.active { color: var(--gold); font-weight: 600; }

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: .4rem;
  background: none;
  border: none;
  margin-left: .5rem;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: .2s;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile dropdown menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  padding: 1rem 1.5rem;
  gap: .25rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu-link {
  display: block;
  padding: .75rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  transition: color .2s;
}
.mobile-menu-link:last-child { border-bottom: none; }
.mobile-menu-link:hover,
.mobile-menu-link.active { color: var(--gold); }

/* ── Section helpers ────────────────────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: .85rem;
}
.section-inner {
  max-width: 1120px;
  margin: 0 auto;
}
.section-hd {
  text-align: center;
  margin-bottom: 4rem;
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -.03em;
  margin: 0 0 1rem;
  line-height: 1.15;
}
.section-sub {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin: 0;
  line-height: 1.7;
}
.section-more {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .95rem;
  font-weight: 600;
  color: var(--gold);
  margin-top: 2.5rem;
  transition: gap .2s;
}
.section-more:hover { gap: .6rem; }

/* ── Page hero (inner pages) ────────────────────────────────────────────── */
.page-hero {
  padding: 80px 1.5rem 70px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.page-hero-inner { max-width: 760px; margin: 0 auto; }
.page-hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -.04em;
  margin: 0 0 1rem;
  line-height: 1.1;
}
.page-hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}

/* ── Feature cards (grid) ───────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 2px 12px var(--shadow-sm);
  transition: transform .3s, box-shadow .3s;
  text-align: left;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 40px var(--shadow-md);
}
.feature-icon { font-size: 2.25rem; margin-bottom: 1rem; }
.feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 .6rem;
}
.feature-body {
  font-size: .95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* ── Feature blocks (features page — alternating layout) ────────────────── */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}
.feature-block:last-child { border-bottom: none; }
.feature-block.reversed .feature-block-text  { order: 2; }
.feature-block.reversed .feature-block-visual { order: 1; }
.feature-block-icon {
  width: 64px;
  height: 64px;
  font-size: 2rem;
  background: var(--gold-light);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  border: 1px solid var(--gold-border);
}
.feature-block-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -.03em;
  margin: 0 0 1rem;
  line-height: 1.2;
}
.feature-block-body {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0 0 1.5rem;
}
.feature-block-visual {
  display: flex;
  justify-content: center;
}

/* ── Lang badges ────────────────────────────────────────────────────────── */
.lang-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .7rem;
  border-radius: 9999px;
  background: var(--gold-light);
  border: 1px solid var(--gold-border);
  font-size: .8rem;
  color: var(--gold);
  font-weight: 500;
}
.lang-badges { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .75rem; }

/* ── Phone frames ───────────────────────────────────────────────────────── */
.phone-frame {
  border-radius: 2.5rem;
  overflow: hidden;
  background: #14141e;
  position: relative;
  border: 8px solid #222;
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
  transition: transform .3s, box-shadow .3s;
}
.phone-frame:hover {
  transform: translateY(-6px);
  box-shadow: 0 36px 80px rgba(0,0,0,0.22);
}
.phone-frame.featured {
  box-shadow: 0 32px 80px rgba(0,0,0,0.22), 0 0 0 2px var(--gold-btn);
}
.screenshot-item { display: flex; flex-direction: column; align-items: center; gap: .85rem; cursor: pointer; }
.screenshot-item.featured { transform: translateY(-20px); }
.screenshot-label {
  font-size: .85rem;
  color: var(--text-muted);
  font-weight: 500;
  text-align: center;
}
.screenshots-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 2.5rem;
  flex-wrap: wrap;
}

/* ── Screen inner content ───────────────────────────────────────────────── */
.screen {
  width: 200px;
  height: 400px;
  background: #14141e;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-family: 'Inter', sans-serif;
}
.screen.tall { height: 430px; }
.screen-header {
  text-align: center;
  padding: 8px 0 10px;
  border-bottom: 1px solid rgba(212,160,23,.2);
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-btn);
}
.screen-label {
  font-size: 8px;
  color: rgba(255,255,255,.35);
  letter-spacing: 1.5px;
  margin-top: 2px;
}
.screen-row {
  background: rgba(255,255,255,.05);
  border-radius: 8px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.screen-row-between {
  background: rgba(255,255,255,.05);
  border-radius: 8px;
  padding: 8px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.screen-row.active {
  background: rgba(196,154,0,.14);
  border: 1px solid rgba(196,154,0,.3);
}
.screen-emoji { font-size: 18px; line-height: 1; }
.screen-title { font-size: 10px; font-weight: 600; color: rgba(255,255,255,.85); }
.screen-sub   { font-size: 8px;  color: rgba(255,255,255,.4); }
.screen-num   { font-size: 12px; font-weight: 700; color: var(--gold-btn); }
.screen-active-badge { font-size: 8px; color: var(--gold-btn); font-weight: 600; }
.screen-online { font-size: 8px; color: #22c55e; font-weight: 600; }
.screen-emerg-banner {
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.3);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}

/* ── About section pieces ───────────────────────────────────────────────── */
.about-graphic {
  background: #fff;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}
.audience-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.audience-tag {
  display: inline-block;
  padding: .35rem 1rem;
  border-radius: 9999px;
  background: var(--gold-light);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  font-size: .9rem;
  font-weight: 500;
}

/* ── Philosophy / info cards ────────────────────────────────────────────── */
.info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold-btn);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 2px 12px var(--shadow-sm);
}
.info-card-icon { font-size: 2rem; margin-bottom: 1rem; }
.info-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 .6rem;
}
.info-card-body {
  font-size: .95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* ── Creator / profile card ─────────────────────────────────────────────── */
.creator-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem 2.5rem;
  box-shadow: 0 2px 12px var(--shadow-sm);
  max-width: 560px;
  margin: 0 auto;
}
.creator-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gold-light);
  border: 2px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold);
  flex-shrink: 0;
}
.creator-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 .25rem;
}
.creator-role {
  font-size: .9rem;
  color: var(--text-muted);
  margin: 0;
}

/* ── Screenshots gallery grid ───────────────────────────────────────────── */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 2.5rem;
  justify-items: center;
}
.tab-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin-bottom: 3.5rem;
}
.tab-btn {
  padding: .45rem 1.15rem;
  border-radius: 9999px;
  font-size: .875rem;
  font-weight: 600;
  font-family: inherit;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all .2s;
}
.tab-btn:hover { border-color: var(--gold); color: var(--gold); }
.tab-btn.active {
  background: var(--gold-btn);
  border-color: var(--gold-btn);
  color: #111;
}

/* ── Screenshot lightbox modal ──────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0,0,0,0.82);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.modal-overlay.open { display: flex; }
.modal-content {
  position: relative;
  max-width: min(90vw, 420px);
  width: 100%;
}
.modal-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.5rem;
  box-shadow: 0 8px 40px rgba(0,0,0,.55);
}
.modal-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.modal-close:hover { background: rgba(255,255,255,.3); }

/* ── FAQ ────────────────────────────────────────────────────────────────── */
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: .75rem;
  margin-bottom: .75rem;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow-sm);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color .2s;
  font-size: .95rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--gold);
  transition: transform .25s;
  flex-shrink: 0;
  margin-left: .75rem;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { color: var(--gold); }
.faq-answer {
  padding: 0 1.25rem 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: .95rem;
}

/* ── Waitlist ────────────────────────────────────────────────────────────── */
.waitlist-input {
  background: #fff;
  border: 1.5px solid var(--border);
  color: var(--text-primary);
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 9999px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.waitlist-input::placeholder { color: var(--text-muted); }
.waitlist-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196,154,0,0.12);
}
#form-message { min-height: 1.5rem; font-size: .9rem; text-align: center; }
#form-message.success { color: #16a34a; }
#form-message.error   { color: #dc2626; }
.count-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem 1.1rem;
  border-radius: 9999px;
  background: var(--gold-light);
  border: 1px solid var(--gold-border);
  font-size: .85rem;
  color: var(--gold);
  font-weight: 600;
}

/* ── Support ─────────────────────────────────────────────────────────────── */
.support-email {
  color: var(--gold);
  font-weight: 700;
  font-size: 1.1rem;
  border-bottom: 2px solid var(--gold-border);
  padding-bottom: 2px;
  transition: border-color .2s;
}
.support-email:hover { border-color: var(--gold); }

/* ── Prose (privacy policy) ──────────────────────────────────────────────── */
.prose h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 2.5rem;
  margin-bottom: .75rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid var(--border);
}
.prose h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: .5rem;
}
.prose p {
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 1rem;
  font-size: 1rem;
}
.prose ul {
  list-style: disc;
  padding-left: 1.5rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 1rem;
  font-size: 1rem;
}
.prose ul li { margin-bottom: .4rem; }
.prose a { color: var(--gold); text-decoration: underline; }
.prose strong { color: var(--text-primary); font-weight: 600; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  padding: 2.5rem 1.5rem;
  text-align: center;
  font-size: .875rem;
  background: var(--bg-muted);
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
}
.footer-logo { color: var(--gold); font-weight: 800; font-size: 1.15rem; }
.footer-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.footer-link { color: #888; transition: color .2s; }
.footer-link:hover { color: var(--gold); }
.footer-copy { color: #aaa; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .feature-block { gap: 3rem; }
}

@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .screenshots-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .feature-block {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 60px 0;
  }
  .feature-block.reversed .feature-block-text  { order: 0; }
  .feature-block.reversed .feature-block-visual { order: 0; }
  .nav-links .nav-link { display: none; }
  .nav-links .btn-gold { display: none; }
  .nav-hamburger { display: flex; }
  .creator-card { flex-direction: column; text-align: center; }
}

@media (max-width: 580px) {
  .features-grid { grid-template-columns: 1fr; }
  .screenshots-grid { grid-template-columns: 1fr; }
}

/* ── Accessibility: skip link ─────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--gold);
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  padding: .5rem 1rem;
  border-radius: 0 0 .5rem .5rem;
  text-decoration: none;
  z-index: 9999;
  transition: top .15s;
}
.skip-link:focus {
  top: 0;
}

/* ── Accessibility: visually hidden (screen-reader only) ─────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* ── Privacy / cookie banner ─────────────────────────────────────────────── */
#privacy-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--text-primary);
  color: #fff;
  font-size: .875rem;
  padding: .9rem 1.5rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  z-index: 9998;
  line-height: 1.5;
}
#privacy-banner a {
  color: var(--gold-border);
  text-decoration: underline;
  white-space: nowrap;
}
#privacy-banner-ok {
  margin-left: auto;
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 9999px;
  padding: .35rem 1.1rem;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}
#privacy-banner-ok:hover { background: #a87e00; }
