/* Golizia landing page — hand-written, no build step.
   Brand tokens mirror the Flutter app's theme (lib/theme.dart). */

:root {
  --bg: #1b1e39;
  --bg-deep: #0f0f19;
  --card: #1a1d35;
  --card-2: #212245;
  --gold: #d4af37;
  --gold-hi: #f8efaf;
  --text: #f3ecd8;
  --text-2: #cfc9b8;
  --muted: #8a8674;
  --serif: "Playfair Display", "Noto Serif TC", serif;
  --sans: "Inter", "Noto Sans TC", sans-serif;
  --max: 1120px;
  --radius: 14px;
}

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

html {
  scroll-behavior: smooth;
}

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

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

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

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

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

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(27, 30, 57, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 26px;
  color: var(--gold);
  letter-spacing: 0.01em;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links {
  display: flex;
  gap: 22px;
  font-size: 14px;
  color: var(--text-2);
}

.nav-links a:hover {
  color: var(--gold-hi);
}

.lang-switch {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.lang-switch a {
  color: var(--text-2);
  padding: 2px 4px;
}

.lang-switch a:hover {
  color: var(--gold-hi);
}

.lang-switch .active {
  color: var(--gold);
  font-weight: 600;
}

.btn-gold {
  display: inline-block;
  background: var(--gold);
  color: #14162b;
  font-weight: 600;
  font-size: 14px;
  padding: 9px 20px;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.btn-gold:hover {
  background: var(--gold-hi);
  transform: translateY(-1px);
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 78%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 900px;
  height: 900px;
  right: -220px;
  top: -160px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.16) 0%, rgba(212, 175, 55, 0) 62%);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
  padding-top: 88px;
  padding-bottom: 96px;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  color: var(--gold-hi);
}

.hero h1 .accent {
  color: var(--gold);
}

.hero .sub {
  margin-top: 22px;
  font-size: 18px;
  color: var(--text-2);
  max-width: 46ch;
}

.store-badges {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.store-badges img {
  height: 52px;
  width: auto;
}

.store-badges a {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.store-badges a:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.hero-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

/* phone frame */

.phone {
  width: min(300px, 72vw);
  margin: 0 auto;
  border-radius: 38px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: var(--bg-deep);
  padding: 10px;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.45),
    0 0 120px rgba(212, 175, 55, 0.08);
}

.phone img {
  border-radius: 28px;
}

/* ---------- sections ---------- */

section {
  padding: 96px 0;
}

.section-kicker {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 14px;
}

section h2 {
  font-size: clamp(30px, 4vw, 42px);
  color: var(--gold-hi);
  max-width: 22ch;
}

.section-sub {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 17px;
  max-width: 62ch;
}

/* trust — split layout */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split .phone {
  width: min(280px, 68vw);
}

.check-list {
  list-style: none;
  margin-top: 26px;
  display: grid;
  gap: 14px;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text-2);
}

.check-list svg {
  flex: none;
  margin-top: 3px;
  color: var(--gold);
}

/* clarity cards */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 48px;
}

.card {
  background: var(--card);
  border: 1px solid rgba(212, 175, 55, 0.14);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.4);
}

.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.12);
  display: grid;
  place-items: center;
  color: var(--gold);
  margin-bottom: 18px;
}

.card h3 {
  font-size: 20px;
  color: var(--text);
  margin-bottom: 10px;
}

.card p {
  font-size: 15px;
  color: var(--text-2);
}

/* ---------- AI features ---------- */

.ai-section {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 50%, var(--bg) 100%);
}

.ai-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 48px;
}

.ai-card {
  background: var(--card);
  border: 1px solid rgba(212, 175, 55, 0.14);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ai-card .media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}

.ai-card .media img,
.ai-card .media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ai-card:hover .media img,
.ai-card:hover .media video {
  transform: scale(1.04);
}

.ai-card .media .duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
}

.ai-card .media .duo img {
  height: 100%;
}

.ai-card .body {
  padding: 24px 24px 28px;
}

.ai-card h3 {
  font-size: 20px;
  color: var(--gold-hi);
  margin-bottom: 8px;
}

.ai-card p {
  font-size: 15px;
  color: var(--text-2);
}

.ai-consent {
  margin-top: 26px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- gallery ---------- */

.gallery {
  display: flex;
  gap: 20px;
  margin-top: 48px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.4) transparent;
}

.gallery .shot {
  flex: 0 0 auto;
  width: 230px;
  scroll-snap-align: start;
  border-radius: 24px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  overflow: hidden;
  background: var(--bg-deep);
}

/* ---------- CTA ---------- */

.cta {
  text-align: center;
  background: radial-gradient(ellipse 70% 90% at 50% 110%, rgba(212, 175, 55, 0.14) 0%, rgba(212, 175, 55, 0) 70%), var(--bg-deep);
}

.cta h2 {
  margin: 0 auto;
}

.cta .store-badges {
  justify-content: center;
}

.cta .wordmark {
  font-size: 32px;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid rgba(212, 175, 55, 0.12);
  padding: 56px 0 40px;
  font-size: 14px;
  color: var(--text-2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.footer-tagline {
  margin-top: 10px;
  color: var(--muted);
}

.social-links {
  display: flex;
  gap: 16px;
  margin-top: 18px;
}

.social-links a {
  color: var(--text-2);
  transition: color 0.2s ease;
}

.social-links a:hover {
  color: var(--gold);
}

.footer-col h4 {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

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

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

.footer-bottom {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- language banner ---------- */

.lang-banner {
  display: none;
  background: var(--card-2);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  font-size: 14px;
  text-align: center;
  padding: 10px 16px;
}

.lang-banner.show {
  display: block;
}

.lang-banner a {
  color: var(--gold);
  font-weight: 600;
  margin: 0 6px;
}

.lang-banner button {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  margin-left: 10px;
}

/* ---------- reveal animations (JS-gated: content stays visible without JS) ---------- */

html.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

html.js .reveal.in {
  opacity: 1;
  transform: none;
}

html.js .reveal.d1 {
  transition-delay: 0.1s;
}

html.js .reveal.d2 {
  transition-delay: 0.2s;
}

html.js .reveal.d3 {
  transition-delay: 0.3s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .card,
  .ai-card .media img,
  .ai-card .media video,
  .store-badges a,
  .btn-gold {
    transition: none;
  }
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  section {
    padding: 72px 0;
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 56px;
    padding-bottom: 64px;
  }

  .hero .sub {
    margin-left: auto;
    margin-right: auto;
  }

  .store-badges {
    justify-content: center;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .split .phone {
    order: -1;
  }

  .cards,
  .ai-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
