/* Promo website stylesheet.
 * Theme tokens mirror ../docs/design_system.md (lacquer-red dark luxe).
 */
:root {
  --bg-base: #1a0f0e;
  --bg-surface: #2b1a18;
  --bg-surface-accent: #3d2622;
  --outline: #5c3f3a;
  --outline-soft: #3d2622;

  --imperial-red: #a4161a;
  --antique-gold: #d4a02b;
  --jade: #1f7a5e;
  --fire-orange: #f5762d;

  --text-primary: #f5e6cc;
  --text-secondary: #c7ae85;
  --text-tertiary: #8c7355;
  --text-on-color: #ffffff;

  --gold-ember: linear-gradient(135deg, #f5762d 0%, #d4a02b 100%);
  --imperial-rise: radial-gradient(ellipse at center 70%, #a4161a 0%, #1a0f0e 75%);
  --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
body {
  max-width: 100vw;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: 'Noto Sans', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle cloud-wave texture overlay across pages (uses interactive_mockup asset). */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('images/cloud_wave_pattern.webp');
  background-repeat: repeat;
  background-size: 300px 300px;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

a { color: var(--antique-gold); text-decoration: none; }
a:hover { color: var(--text-primary); }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* ---------- Typography helpers ---------- */
h1, h2, h3, h4 {
  font-family: 'Noto Serif', 'Georgia', serif;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.headline-display {
  font-family: 'Long Cang', 'Noto Serif', serif;
  font-size: clamp(44px, 9vw, 88px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  word-break: keep-all;
  background: linear-gradient(135deg, var(--antique-gold) 0%, #f0d28a 50%, var(--antique-gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
}
.eyebrow {
  font-family: 'Noto Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--antique-gold);
}
.lead { font-size: clamp(17px, 2vw, 19px); color: var(--text-secondary); max-width: 56ch; }
.section-title {
  font-size: clamp(28px, 5vw, 44px);
  margin: 0 0 12px;
  text-align: center;
}
.section-title .accent {
  font-family: 'Long Cang', serif;
  color: var(--antique-gold);
  font-weight: 400;
}
.section-sub {
  text-align: center;
  color: var(--text-secondary);
  font-size: 17px;
  max-width: 56ch;
  margin: 0 auto 56px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  padding: 0 28px;
  border-radius: 12px;
  border: none;
  font-family: 'Noto Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: transform 120ms ease, filter 120ms ease, box-shadow 120ms ease;
  text-decoration: none;
  text-align: center;
}
.btn-primary {
  background: var(--imperial-red);
  color: var(--text-on-color);
  box-shadow: 0 6px 20px rgba(164, 22, 26, 0.45);
}
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--outline);
}
.btn-secondary:hover { border-color: var(--antique-gold); color: var(--antique-gold); }
.btn-gold {
  background: var(--gold-ember);
  color: var(--bg-base);
}
.btn-gold:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px 0;
  transition: background 200ms;
}
.nav.scrolled {
  background: rgba(26, 15, 14, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--outline-soft);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.nav-brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--text-primary);
}
.nav-brand .icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 60%, var(--antique-gold) 0%, var(--imperial-red) 70%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(212, 160, 43, 0.3);
}
.nav-brand .icon svg { width: 20px; height: 20px; color: var(--bg-base); }
.nav-brand-text { display: flex; flex-direction: column; line-height: 1; }
.nav-brand-text .name { font-family: 'Long Cang', serif; font-size: 22px; color: var(--antique-gold); }
.nav-brand-text .sub { font-size: 11px; color: var(--text-tertiary); letter-spacing: 1.5px; text-transform: uppercase; margin-top: 2px; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--text-secondary); }
.nav-links a:hover { color: var(--antique-gold); }
.nav-cta { padding: 0 18px; height: 40px; font-size: 14px; }
.nav-toggle { display: none; background: transparent; border: 1px solid var(--outline); border-radius: 8px; width: 40px; height: 40px; color: var(--text-primary); cursor: pointer; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-mobile-open .nav-links {
    display: flex; flex-direction: column;
    position: fixed; inset: 72px 0 auto 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--outline);
    padding: 24px;
    gap: 18px;
  }
}

/* ---------- Hero (split layout #2 — content left, dragon scene right) ---------- */
.hero {
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 80% 30%, rgba(164, 22, 26, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 70%, rgba(212, 160, 43, 0.08) 0%, transparent 50%),
    var(--bg-base);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 60%);
  pointer-events: none;
  z-index: 1;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-content { max-width: 560px; }
.hero-content .eyebrow { display: inline-block; margin-bottom: 16px; }
.hero h1 { margin: 0 0 16px; }
.hero p.lead { margin: 0 0 32px; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.55; }
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 28px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--outline-soft); flex-wrap: wrap; }
.hero-stat-num { font-family: 'Noto Serif', serif; font-size: 28px; font-weight: 700; color: var(--antique-gold); }
.hero-stat-label { font-size: 12px; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

.hero-scene {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--bg-surface);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--outline-soft);
}
.hero-scene img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-scene::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,0.45) 100%);
  pointer-events: none;
}
.hero-scene-frame {
  position: absolute; inset: 14px;
  border: 1px solid rgba(212, 160, 43, 0.4);
  border-radius: 12px;
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 900px) {
  .hero { padding: 120px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-scene { max-width: 380px; margin: 0 auto; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
}

/* ---------- Features ---------- */
.features {
  padding: 96px 0;
  position: relative;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.feature-card {
  background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(43, 26, 24, 0.6) 100%);
  border: 1px solid var(--outline-soft);
  border-radius: 20px;
  padding: 28px 24px 24px;
  position: relative;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 160, 43, 0.45);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.feature-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid rgba(212, 160, 43, 0.5);
}
.feature-icon img { width: 100%; height: 100%; object-fit: cover; }
.feature-card h3 { margin: 0 0 8px; font-size: 19px; font-family: 'Noto Serif', serif; }
.feature-card p { margin: 0; color: var(--text-secondary); font-size: 14.5px; line-height: 1.6; }

/* ---------- Screenshots carousel ---------- */
.screens-section {
  padding: 96px 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(164, 22, 26, 0.15) 0%, transparent 60%),
    var(--bg-base);
}
.swiper-screens {
  padding: 24px 0 64px;
}
.swiper-screens .swiper-slide {
  display: flex;
  justify-content: center;
  height: auto;
}
.phone-frame {
  width: 280px;
  aspect-ratio: 420 / 912;
  border-radius: 36px;
  background: #0d0a09;
  padding: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(212, 160, 43, 0.25);
  position: relative;
  overflow: hidden;
}
.phone-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 30px;
  display: block;
}
.swiper-screens .swiper-pagination-bullet {
  background: var(--text-tertiary);
  opacity: 0.5;
}
.swiper-screens .swiper-pagination-bullet-active {
  background: var(--antique-gold);
  opacity: 1;
  width: 28px;
  border-radius: 4px;
}
.swiper-screens .swiper-button-next,
.swiper-screens .swiper-button-prev {
  color: var(--antique-gold);
}

/* ---------- CTA ---------- */
.cta {
  position: relative;
  padding: 96px 0;
  overflow: hidden;
  background: var(--imperial-rise);
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('images/cta_bg.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  z-index: 0;
}
.cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,15,14,0.7) 0%, rgba(26,15,14,0.85) 100%);
  z-index: 1;
}
.cta-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}
.cta-inner h2 { font-size: clamp(32px, 6vw, 56px); margin: 0 0 16px; }
.cta-inner p { color: var(--text-secondary); font-size: 18px; max-width: 56ch; margin: 0 auto 32px; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer {
  padding: 48px 0 80px;
  border-top: 1px solid var(--outline-soft);
  background: var(--bg-base);
  font-size: 14px;
  color: var(--text-tertiary);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid h4 {
  margin: 0 0 16px;
  color: var(--text-primary);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-family: 'Noto Sans', sans-serif;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--text-secondary); }
.footer-grid a:hover { color: var(--antique-gold); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--outline-soft);
  text-align: center;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Content pages (privacy, terms, contact) ---------- */
.content-page {
  padding: 140px 0 80px;
}
.content-page h1 {
  font-size: clamp(32px, 5vw, 48px);
  margin: 0 0 8px;
}
.content-page .updated {
  color: var(--text-tertiary);
  font-size: 14px;
  margin-bottom: 40px;
}
.content-page h2 {
  font-size: 24px;
  margin: 40px 0 12px;
  color: var(--antique-gold);
  border-bottom: 1px solid var(--outline-soft);
  padding-bottom: 8px;
}
.content-page h3 {
  font-size: 18px;
  margin: 24px 0 8px;
  color: var(--text-primary);
}
.content-page p, .content-page li {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.75;
}
.content-page ul { padding-left: 22px; }
.content-page li { margin-bottom: 6px; }
.content-page a { color: var(--antique-gold); border-bottom: 1px dotted rgba(212,160,43,0.4); }
.content-page a:hover { border-bottom-color: var(--antique-gold); }

/* ---------- Contact form ---------- */
.contact-form {
  display: flex; flex-direction: column; gap: 16px;
  max-width: 580px;
  margin: 32px 0;
}
.contact-form label {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--antique-gold);
  margin-bottom: 6px;
  font-weight: 700;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--bg-surface);
  border: 1.5px solid var(--outline);
  border-radius: 8px;
  color: var(--text-primary);
  padding: 14px 16px;
  font-family: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color 150ms;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--antique-gold);
}
.contact-form textarea { min-height: 160px; resize: vertical; }
.contact-form input[type="file"] {
  background: transparent;
  border: 1.5px dashed var(--outline);
  padding: 12px;
  cursor: pointer;
}
.contact-form .btn { width: max-content; }
.form-success {
  margin-top: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--jade);
  border-left: 4px solid var(--jade);
  border-radius: 8px;
  padding: 16px 20px;
  color: var(--text-primary);
}

/* ---------- Privacy acceptance button (REQUIRED) ---------- */
.privacy-accept-btn {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px;
  background: linear-gradient(180deg, transparent 0%, rgba(26,15,14,0.95) 30%, var(--bg-base) 100%);
  display: flex;
  justify-content: center;
}
.accept-btn {
  width: 100%;
  max-width: 400px;
  height: 52px;
  border: none;
  border-radius: 12px;
  background: var(--imperial-red);
  color: var(--text-on-color);
  font-family: 'Noto Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(164, 22, 26, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}
.accept-btn:hover { filter: brightness(1.1); }
.privacy-accept-btn.hidden { display: none; }
