/* GoldenGem Creations — site styles */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Nunito+Sans:wght@400;600;700&display=swap');

:root {
  --gold: #F7C948;
  --gold-dark: #DFAF2B;
  --gold-highlight: #FFF4D0;
  --outline: #A67C00;

  --blue: #3A7DFF;
  --green: #2ECC71;
  --purple: #9B59B6;

  --ink: #2B2B2B;
  --ink-soft: #5b5750;
  --ink-faint: #8a847a;

  --bg: #FFFCF5;
  --bg-warm-start: #FFF9E6;
  --bg-warm-end: #FCECC2;
  --surface: #FFFFFF;
  --surface-soft: #FFF7E4;
  --border: rgba(43, 43, 43, 0.08);

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 12px 30px rgba(166, 124, 0, 0.12);
  --shadow-card: 0 8px 20px rgba(43, 43, 43, 0.08);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #F5F0E6;
    --ink-soft: #C9C2B4;
    --ink-faint: #9a9384;

    --bg: #17140F;
    --bg-warm-start: #221C12;
    --bg-warm-end: #2b2114;
    --surface: #211C15;
    --surface-soft: #262016;
    --border: rgba(247, 201, 72, 0.12);

    --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.4);
    --shadow-card: 0 8px 20px rgba(0, 0, 0, 0.35);

    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Nunito Sans', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Nunito Sans', sans-serif;
  font-weight: 600;
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
  color: var(--ink);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--outline);
  background: var(--gold-highlight);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

@media (prefers-color-scheme: dark) {
  .eyebrow { background: rgba(247, 201, 72, 0.16); color: var(--gold); }
}

.section {
  padding: 88px 0;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head p { font-size: 1.08rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }

.brand-gem { width: 36px; height: 36px; flex-shrink: 0; }

.brand-word {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  line-height: 1.1;
  white-space: nowrap;
}
.brand-word b { font-weight: 600; }
.brand-word span { font-weight: 400; color: var(--ink-soft); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 8px 16px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
.main-nav a:hover { background: var(--surface-soft); color: var(--ink); text-decoration: none; }
.main-nav a.current { color: var(--ink); background: var(--surface-soft); }

.nav-toggle { display: none; }

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

/* ---------- Buttons & badges ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 999px;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--gold-highlight), var(--gold) 45%, var(--gold-dark));
  color: #4A3A1A;
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { background: var(--surface-soft); }

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-card);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 56px 0 40px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, rgba(255,249,230,0.55) 0%, var(--bg) 88%), url('../img/bg_marshland.webp');
  background-size: cover;
  background-position: center 30%;
  z-index: -1;
}

@media (prefers-color-scheme: dark) {
  .hero-bg {
    background-image: linear-gradient(180deg, rgba(23,20,15,0.55) 0%, var(--bg) 88%), url('../img/bg_marshland_dark.webp');
  }
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .hero .pill-row, .hero .cta-row { justify-content: center; }
}

.hero h1 { margin-bottom: 10px; }
.hero .tagline { font-size: 1.2rem; color: var(--ink); font-weight: 500; margin-bottom: 18px; }
.hero .lede { font-size: 1.05rem; max-width: 52ch; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 28px 0 24px;
}

.hero .pill-row { margin-top: 8px; }

.play-badge { display: inline-flex; }
.play-badge img { height: 58px; width: auto; }
.final-cta .play-badge { margin-top: 22px; }
.final-cta .play-badge img { height: 64px; }

.hero-visual { position: relative; display: flex; justify-content: center; }

/* phone frame */
.phone {
  position: relative;
  width: 260px;
  aspect-ratio: 840 / 1886;
  background: #111;
  border-radius: 44px;
  padding: 12px;
  box-shadow: 0 30px 60px rgba(43,43,43,0.28), 0 4px 12px rgba(43,43,43,0.15);
  flex-shrink: 0;
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 32px;
}
.phone::before {
  content: '';
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 76px; height: 18px;
  background: #111;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}

.float-badge {
  position: absolute;
  width: 68px; height: 68px;
  filter: drop-shadow(0 10px 18px rgba(43,43,43,0.25));
  animation: float 5s ease-in-out infinite;
}
.float-badge.b1 { top: -6%; left: -6%; animation-delay: 0s; }
.float-badge.b2 { bottom: 6%; right: -8%; width: 54px; height: 54px; animation-delay: 1.6s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@media (max-width: 900px) {
  .float-badge { display: none; }
}

/* ---------- Intro / how it works ---------- */

.intro { background: var(--surface-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.intro .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

@media (max-width: 800px) {
  .intro .wrap { grid-template-columns: minmax(0, 1fr); }
}

.rule-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.rule-steps li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.rule-num {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #4A3A1A;
  background: linear-gradient(135deg, var(--gold-highlight), var(--gold));
}
.rule-steps strong { color: var(--ink); }

/* ---------- Mode cards ---------- */

.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}

@media (max-width: 600px) {
  .modes-grid { grid-template-columns: minmax(0, 1fr); }
}

.mode-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.mode-shot {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 18px;
  aspect-ratio: 840 / 1000;
  background: var(--surface-soft);
}
.mode-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.mode-tag {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  width: fit-content;
}

.mode-card.classic .mode-tag { background: rgba(58,125,255,0.12); color: var(--blue); }
.mode-card.rewind .mode-tag { background: rgba(155,89,182,0.14); color: var(--purple); }
.mode-card.timed .mode-tag { background: rgba(46,204,113,0.14); color: #1f9d5c; }
.mode-card.daily .mode-tag { background: var(--gold-highlight); color: var(--outline); }
.mode-card.tangled .mode-tag { background: rgba(230,126,34,0.14); color: #b3591a; }
.mode-card.epic .mode-tag { background: rgba(43,43,43,0.08); color: var(--ink); }
.mode-card.frenzy .mode-tag { background: rgba(231,76,60,0.14); color: #c0392b; }
.mode-card.silhouettes .mode-tag { background: rgba(46,204,113,0.14); color: #1f9d5c; }
.mode-card.theme-pack .mode-tag { background: rgba(230,126,34,0.16); color: #b3591a; }

.mode-card h3 { margin-bottom: 8px; }
.mode-card p { font-size: 0.95rem; margin-bottom: 0; }

/* ---------- Features ---------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-card);
}

.feature-icon {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 14px;
  background: linear-gradient(135deg, var(--gold-highlight), var(--gold));
}

.feature-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feature-card p { font-size: 0.92rem; margin-bottom: 0; }

/* ---------- Gallery ---------- */

.gallery-strip {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 8px 4px 24px;
  scroll-snap-type: x proximity;
}
.gallery-strip::-webkit-scrollbar { height: 8px; }
.gallery-strip::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }

.gallery-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 210px;
}
.gallery-item .phone { width: 210px; margin: 0 auto 12px; }
.gallery-item p {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Studio / about ---------- */

.studio {
  background: linear-gradient(135deg, var(--bg-warm-start), var(--bg-warm-end));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.studio .wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 48px;
  align-items: center;
}

@media (max-width: 800px) {
  .studio .wrap { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .studio .stacked-logo { margin: 0 auto; }
}

.stacked-logo { width: 220px; }

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

.final-cta {
  text-align: center;
}
.final-cta .wrap { max-width: 620px; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  background: var(--surface-soft);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-nav a {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.footer-nav a:hover { color: var(--ink); }

.footer-tagline { font-size: 0.9rem; color: var(--ink-faint); max-width: 34ch; margin: 6px 0 0; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--ink-faint);
}
.footer-bottom a { color: var(--ink-faint); }

/* ---------- Legal pages ---------- */

.legal-hero {
  padding: 64px 0 24px;
  background: linear-gradient(135deg, var(--bg-warm-start), var(--bg-warm-end));
  border-bottom: 1px solid var(--border);
}
.legal-hero .wrap { max-width: 780px; }
.legal-hero p.updated {
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--outline);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.legal-body { padding: 56px 0 100px; }
.legal-body .wrap { max-width: 780px; }

.legal-body h2 {
  font-size: 1.35rem;
  margin-top: 2.2em;
  padding-top: 0.2em;
}
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body h3 { font-size: 1.05rem; margin-top: 1.6em; }
.legal-body p, .legal-body li { color: var(--ink-soft); font-size: 0.98rem; }
.legal-body ul { padding-left: 1.2em; }
.legal-body li { margin-bottom: 0.5em; }
.legal-body strong { color: var(--ink); }

.legal-nav {
  position: sticky;
  top: 96px;
}

/* ---------- Contact form ---------- */

.contact-form {
  max-width: 560px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-field .optional { color: var(--ink-faint); font-weight: 400; }
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 1rem;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--ink);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus { outline: none; border-color: var(--gold-dark); }
.form-hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-status { margin-top: 16px; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 0.92rem; }
.form-status.success { color: #1f9d5c; }
.form-status.error { color: #c0392b; }
.form-field .hint { font-size: 0.82rem; color: var(--ink-faint); margin-top: 6px; }
.btn[disabled] { opacity: 0.6; pointer-events: none; }

.table-wrap { overflow-x: auto; margin: 1.4em 0; border-radius: var(--radius-sm); border: 1px solid var(--border); }

table.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 560px;
}
table.legal-table th, table.legal-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
table.legal-table th {
  font-family: 'Poppins', sans-serif;
  background: var(--surface-soft);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
table.legal-table tr:last-child td { border-bottom: none; }

.legal-callout {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 1.6em 0;
}
.legal-callout p:last-child { margin-bottom: 0; }
