/* ─── TOKENS ──────────────────────────────────────────── */
:root {
  --c-bg:       #FAF5EC;              /* warm cream parchment         */
  --c-surface:  #F1E8D4;              /* slightly deeper parchment    */
  --c-dark:     #1D0E06;              /* deep espresso                */
  --c-panel:    #2B1508;              /* dark mocha panel             */
  --c-border:   rgba(110,68,28,.18);  /* warm brown                   */
  --c-text:     #221208;              /* dark espresso text           */
  --c-muted:    rgba(34,18,8,.58);    /* muted warm                   */
  --c-accent:   #C4531C;              /* terracotta / pain d'épices   */
  --c-gold:     #C9903A;              /* golden wheat                 */
  --c-cream:    #F5EDD8;              /* light text for dark sections */

  --ff-head:    'DM Sans', system-ui, sans-serif;
  --ff-body:    'Inter', system-ui, sans-serif;
  --ff-deco:    'Playfair Display', Georgia, serif; /* bakery accents only */

  --nav-h:      64px;
  --radius:     14px;
  --ease-out:   cubic-bezier(.22,1,.36,1);

  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

:root:lang(zh), :root:lang(zh-Hans) {
  --ff-head: 'DM Sans', 'Noto Sans SC', sans-serif;
  --ff-body: 'DM Sans', 'Noto Sans SC', sans-serif;
}

/* ─── RESET ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
button { cursor: pointer; background: none; border: none; font: inherit; }
input, select, textarea { font: inherit; }

/* ─── BASE ────────────────────────────────────────────── */
body {
  font-family: var(--ff-body);
  background: var(--c-bg);
  color: var(--c-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-width: 320px;
}
h1, h2, h3 { font-family: var(--ff-head); line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 6vw, 4.8rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem);   font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1rem; font-weight: 600; }
p  { line-height: 1.7; color: var(--c-muted); }

.label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--ff-body);
}
.label::before {
  content: '✦';
  display: inline-block;
  width: auto; height: auto;
  background: none;
  font-size: .65em;
  opacity: .85;
  flex-shrink: 0;
  line-height: 1;
}
.label::after {
  content: '';
  display: block;
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: .2;
}

/* ─── NAVBAR ──────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(29,14,6,.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
  /* override tokens for dark nav */
  --c-text:   #FAF5EC;
  --c-muted:  rgba(250,245,236,.68);
  --c-border: rgba(250,245,236,.12);
  --c-accent: var(--c-gold);
}
#navbar.scrolled { border-color: rgba(201,144,58,.28); }

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.logo { display: flex; align-items: center; gap: .5rem; }
.logo-name {
  font-family: var(--ff-head);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--c-text);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-actions { display: flex; align-items: center; gap: 1rem; justify-self: end; }

.nav-link {
  font-size: .78rem;
  font-weight: 500;
  color: var(--c-muted);
  letter-spacing: .01em;
  transition: color .2s;
  position: relative;
  white-space: nowrap;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1.5px;
  background: var(--c-gold);
  transform: scaleX(0);
  transition: transform .25s var(--ease-out);
  transform-origin: left;
}
.nav-link:hover { color: var(--c-text); }
.nav-link:hover::after { transform: scaleX(1); }

/* Language toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.07);
  border: 1px solid var(--c-border);
  border-radius: 6px;
  padding: 3px;
  gap: 2px;
}
.lang-btn {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .07em;
  color: var(--c-muted);
  padding: .32rem .6rem;
  min-height: 36px;
  border-radius: 4px;
  background: none;
  border: none;
  cursor: pointer;
  transition: background .2s, color .2s;
  font-family: var(--ff-body);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lang-btn:hover { color: var(--c-text); }
.lang-btn.active { background: var(--c-gold); color: #1D0E06; }

/* Nav CTA */
.btn-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .55rem 1.1rem;
  min-height: 38px;
  min-width: 8.5rem;
  background: var(--c-accent);
  color: #fff;
  border-radius: 6px;
  font-family: var(--ff-body);
  transition: background .2s, transform .2s var(--ease-out), box-shadow .2s;
  box-shadow: 0 2px 12px rgba(196,83,28,.25);
  white-space: nowrap;
}
.btn-nav-cta:hover {
  background: #a84317;
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(196,83,28,.35);
}

/* Mobile lang */
.mobile-lang {
  display: flex;
  gap: .5rem;
  padding: .75rem 0 .25rem;
}
.mobile-lang .lang-btn {
  font-size: .8rem;
  padding: .4rem .8rem;
  border: 1px solid var(--c-border);
  border-radius: 4px;
}

/* ─── HERO ────────────────────────────────────────────── */
#hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 4rem) 1.5rem 6rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 110% 70% at 50% 115%, rgba(196,83,28,.09) 0%, transparent 60%),
    radial-gradient(ellipse 65% 50% at 8% 92%,   rgba(201,144,58,.07) 0%, transparent 55%),
    radial-gradient(ellipse 65% 50% at 92% 88%,  rgba(201,144,58,.06) 0%, transparent 55%),
    var(--c-bg);
}

/* linen/canvas weave texture */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg,   transparent, transparent 3px, rgba(110,68,28,.03) 3px, rgba(110,68,28,.03) 4px),
    repeating-linear-gradient(90deg,  transparent, transparent 3px, rgba(110,68,28,.02) 3px, rgba(110,68,28,.02) 4px);
  background-size: 4px 4px;
  pointer-events: none;
}

/* warm sunlight glow from below */
#hero::after {
  content: '';
  position: absolute;
  bottom: -18%; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 700px;
  background: radial-gradient(ellipse, rgba(201,144,58,.14) 0%, transparent 68%);
  pointer-events: none;
}

.hero-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 1.2rem;
  font-family: var(--ff-body);
}

h1 em {
  font-style: normal;
  color: var(--c-accent);
}

.hero-sub {
  font-size: 1.08rem;
  max-width: 520px;
  margin: 1.4rem auto 2.4rem;
}

.hero-btns { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3.5rem; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .9rem 2rem;
  background: var(--c-accent);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  border-radius: 6px;
  font-family: var(--ff-body);
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: background .2s, transform .2s var(--ease-out), box-shadow .2s;
  box-shadow: 0 4px 20px rgba(196,83,28,.2);
}
.btn-primary:hover {
  background: #a84317;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(196,83,28,.32);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: .9rem 2rem;
  border: 1.5px solid rgba(34,18,8,.22);
  color: var(--c-text);
  font-weight: 500;
  font-size: .85rem;
  border-radius: 6px;
  letter-spacing: .04em;
  transition: border-color .2s, background .2s, transform .2s var(--ease-out);
}
.btn-ghost:hover {
  border-color: rgba(34,18,8,.4);
  background: rgba(34,18,8,.05);
  transform: translateY(-2px);
}
.btn-ghost:active { transform: translateY(0); }

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-n {
  display: block;
  font-family: var(--ff-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.1;
}
.stat-l {
  font-size: .75rem;
  color: var(--c-muted);
  letter-spacing: .04em;
}
.stat-price {
  color: var(--c-accent);
  font-size: 2rem;
}
.stat-currency {
  display: block;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--c-muted);
  text-transform: uppercase;
  margin-top: .15rem;
}
.stat-div {
  width: 1px;
  height: 36px;
  background: rgba(34,18,8,.18);
}

/* Hero orbs — warm candlelight */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(90px);
}
.hero-orb-1 {
  width: 650px; height: 650px;
  background: radial-gradient(circle, rgba(196,83,28,.16) 0%, transparent 70%);
  top: -200px; left: -200px;
  animation: float 20s ease-in-out infinite;
}
.hero-orb-2 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(201,144,58,.12) 0%, transparent 70%);
  bottom: -110px; right: -100px;
  animation: float 25s ease-in-out infinite reverse;
}

/* floating flour-dust particles (added via JS) */
.hero-particle {
  position: absolute;
  bottom: 0;
  border-radius: 50%;
  background: var(--c-gold);
  pointer-events: none;
  z-index: 0;
  filter: blur(1.5px);
  animation: particleDrift linear infinite;
}
@keyframes particleDrift {
  0%   { transform: translateY(0) scale(.5); opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: .55; }
  100% { transform: translateY(-100vh) scale(1.1); opacity: 0; }
}

/* ─── TICKER STRIP ────────────────────────────────────── */
.ticker {
  background: var(--c-dark);
  overflow: hidden;
  padding: .7rem 0;
  border-top:    1px solid rgba(201,144,58,.22);
  border-bottom: 1px solid rgba(201,144,58,.22);
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  width: max-content;
  animation: marqueeScroll 32s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-track span {
  font-family: var(--ff-deco);  /* Playfair for the marquee banner */
  font-size: .8rem;
  font-weight: 400;
  font-style: italic;
  color: rgba(250,245,236,.72);
  white-space: nowrap;
  letter-spacing: .04em;
}
.ticker-sep {
  color: var(--c-gold) !important;
  font-style: normal !important;
  font-size: .6rem !important;
  opacity: .9;
  flex-shrink: 0;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── SECTION SHARED ──────────────────────────────────── */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 1.5rem;
}
.section-top { margin-bottom: 3.5rem; }
.section-top h2 { margin-bottom: 1rem; }
.section-sub { max-width: 560px; font-size: .95rem; }

/* ─── TEMPLATES GRID ──────────────────────────────────── */
#templates {
  background: var(--c-surface);
  background-image: radial-gradient(rgba(110,68,28,.09) 1px, transparent 1px);
  background-size: 28px 28px;
}

.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* card */
.tpl-card {
  background: var(--c-bg);
  border: 1px solid rgba(110,68,28,.2);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .35s var(--ease-out), border-color .25s;
  will-change: transform;
}
.tpl-card:hover {
  box-shadow: 0 16px 48px rgba(34,18,8,.18);
  border-color: rgba(110,68,28,.35);
}
.tpl-card.soon { opacity: .75; }
.tpl-card.soon:hover { opacity: 1; transform: translateY(-4px); }
.tpl-card.live:hover {
  box-shadow: 0 0 0 1px rgba(196,83,28,.22), 0 20px 56px rgba(34,18,8,.22);
}

/* mini browser preview */
.card-preview {
  display: block;
  background: #1a1a1a;
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
a.card-preview:hover .preview-hero { opacity: .85; }

.preview-chrome {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  background: rgba(0,0,0,.5);
  border-bottom: 1px solid rgba(255,255,255,.06);
  position: relative;
  z-index: 2;
}
.preview-chrome span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
}
.preview-chrome span:nth-child(1) { background: #FF5F57; }
.preview-chrome span:nth-child(2) { background: #FEBC2E; }
.preview-chrome span:nth-child(3) { background: #28C840; }
.preview-url {
  flex: 1;
  font-size: .6rem;
  color: rgba(255,255,255,.3);
  text-align: center;
  font-family: monospace;
}

.preview-body { padding: 8px; display: flex; flex-direction: column; gap: 6px; }

.preview-hero {
  border-radius: 4px;
  height: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 10px;
  gap: 4px;
  transition: opacity .25s;
}
.ph-title { height: 8px; background: rgba(255,255,255,.7); border-radius: 4px; width: 60%; }
.ph-sub   { height: 5px; background: rgba(255,255,255,.4); border-radius: 4px; width: 40%; }
.ph-btn   { height: 14px; border-radius: 8px; width: 28%; margin-top: 4px; }

.preview-cards { display: flex; gap: 5px; }
.ph-card {
  flex: 1;
  height: 30px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.03);
}

/* soon overlay */
.soon-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(2px);
}
.soon-overlay span {
  font-family: var(--ff-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  border: 1.5px solid rgba(255,255,255,.3);
  border-radius: 50px;
  padding: .3rem .9rem;
}

/* card meta */
.card-meta { padding: 1.25rem; }

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .6rem;
}
.card-type { font-size: .75rem; font-weight: 600; color: var(--c-muted); }

.badge-live {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: rgba(40,140,65,.1);
  color: #2A8040;
  border: 1px solid rgba(40,140,65,.25);
  border-radius: 50px;
  padding: .2rem .6rem;
  animation: pulse-glow 2.5s ease-in-out infinite;
}
.badge-soon {
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-muted);
  border: 1px solid var(--c-border);
  border-radius: 50px;
  padding: .2rem .6rem;
}

.card-meta h3 { font-size: 1.05rem; color: var(--c-text); margin-bottom: .4rem; }
.card-meta p  { font-size: .82rem; line-height: 1.5; margin-bottom: .9rem; }

.palette {
  display: flex;
  gap: 5px;
  margin-bottom: .9rem;
}
.palette span {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,.1);
  flex-shrink: 0;
}

.btn-demo {
  display: inline-flex;
  align-items: center;
  font-size: .82rem;
  font-weight: 600;
  color: var(--c-accent);
  transition: gap .2s, color .2s;
  gap: .25rem;
}
.btn-demo:hover { gap: .5rem; color: #a84317; }

/* ─── HOW IT WORKS ────────────────────────────────────── */
#how {
  background: var(--c-panel);
  border-top:    1px solid rgba(201,144,58,.22);
  border-bottom: 1px solid rgba(201,144,58,.22);
  /* override tokens so children use light colours */
  --c-bg:      rgba(255,255,255,.04);
  --c-surface: rgba(255,255,255,.06);
  --c-border:  rgba(201,144,58,.22);
  --c-text:    var(--c-cream);
  --c-muted:   rgba(245,237,216,.62);
  --c-accent:  var(--c-gold);
  color:        var(--c-cream);
}
#how h2 { color: var(--c-cream); }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
}

.step {
  padding: 1.5rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(201,144,58,.22);
  border-radius: var(--radius);
  transition: border-color .25s, background .25s;
}
.step:hover {
  border-color: rgba(201,144,58,.45);
  background: rgba(255,255,255,.07);
}

.step-n {
  font-family: var(--ff-deco);  /* Playfair for decorative numbers */
  font-size: 2.2rem;
  font-weight: 700;
  font-style: italic;
  display: block;
  margin-bottom: .6rem;
  line-height: 1;
  background: linear-gradient(160deg, var(--c-gold) 0%, rgba(201,144,58,.28) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.step h3 { color: var(--c-cream); margin-bottom: .5rem; font-size: .95rem; font-style: normal; }
.step p  { font-size: .85rem; color: rgba(245,237,216,.62); }

/* ─── CONTACT ─────────────────────────────────────────── */
#contact {
  background: var(--c-bg);
  padding: 6rem 1.5rem;
}

.contact-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contact-text h2   { margin-bottom: 1.2rem; }
.contact-text > p  { margin-bottom: 2rem; font-size: .95rem; }

.contact-links { display: flex; flex-direction: column; gap: .9rem; }
.contact-item  { display: flex; align-items: center; gap: .75rem; font-size: .9rem; color: var(--c-muted); }
.ci-icon { font-size: 1rem; flex-shrink: 0; }
a.contact-item:hover span:last-child { color: var(--c-text); }

/* form */
.form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; }

label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(196,83,28,.82);
  font-family: var(--ff-body);
}

input, textarea {
  padding: .8rem 1rem;
  background: #fff;
  border: 1.5px solid rgba(110,68,28,.22);
  border-radius: 8px;
  color: var(--c-text);
  font-size: .95rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
input::placeholder, textarea::placeholder { color: rgba(34,18,8,.28); }
input:focus, textarea:focus {
  border-color: rgba(196,83,28,.5);
  box-shadow: 0 0 0 3px rgba(196,83,28,.08);
}
textarea { resize: vertical; min-height: 90px; }

:root:lang(zh) .form-group,
:root:lang(zh-Hans) .form-group { margin-bottom: .65rem; }
:root:lang(zh) input,
:root:lang(zh-Hans) input,
:root:lang(zh) textarea,
:root:lang(zh-Hans) textarea { font-size: 1rem; }

.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  padding: .95rem;
  background: var(--c-accent);
  color: #fff;
  font-family: var(--ff-body);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 6px;
  transition: background .2s, transform .2s var(--ease-out), box-shadow .2s;
  box-shadow: 0 4px 20px rgba(196,83,28,.18);
}
.btn-submit:hover {
  background: #a84317;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(196,83,28,.28);
}
.btn-submit:active { transform: translateY(0); }

#form-success {
  margin-top: .9rem;
  text-align: center;
  font-size: .85rem;
  color: #2A8040;
  font-weight: 500;
  min-height: 1.2rem;
}

/* ─── FOOTER ──────────────────────────────────────────── */
footer {
  background: var(--c-dark);
  border-top: 1px solid rgba(201,144,58,.22);
  padding: 1.5rem;
  --c-text:  var(--c-cream);
  --c-muted: rgba(245,237,216,.52);
  color:     var(--c-cream);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand { display: flex; align-items: center; gap: .45rem; }
.footer-brand .logo-name { font-family: var(--ff-head); font-size: 1rem; font-weight: 700; color: var(--c-cream); }

.footer-copy { font-size: .78rem; color: rgba(245,237,216,.52); }

.footer-nav { display: flex; gap: 1.4rem; }
.footer-nav a { font-size: .82rem; color: rgba(245,237,216,.52); transition: color .2s; }
.footer-nav a:hover { color: var(--c-cream); }

/* ─── MOBILE MENU ─────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  margin-left: .25rem;
  touch-action: manipulation;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform .25s var(--ease-out), opacity .2s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(29,14,6,.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(201,144,58,.2);
  padding: .5rem 1.5rem 1.2rem;
  --c-text:  #FAF5EC;
  --c-muted: rgba(250,245,236,.65);
  --c-border: rgba(201,144,58,.2);
}
.main-mobile-menu.open { display: flex; }
.main-mobile-menu a {
  padding: .85rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(250,245,236,.7);
  border-bottom: 1px solid rgba(201,144,58,.18);
  transition: color .2s;
}
.main-mobile-menu a:last-child { border-bottom: none; }
.main-mobile-menu a:hover { color: #FAF5EC; }

/* ─── ANIMATIONS ──────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-22px); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(40,140,65,.25); }
  50%       { box-shadow: 0 0 0 5px rgba(40,140,65,0); }
}
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

/* Hero entrance stagger */
.hero-inner > * {
  opacity: 0;
  animation: fadeUp .8s var(--ease-out) forwards;
}
.hero-inner .eyebrow    { animation-delay: .08s; }
.hero-inner h1          { animation-delay: .22s; }
.hero-inner .hero-sub   { animation-delay: .38s; }
.hero-inner .hero-btns  { animation-delay: .54s; }
.hero-inner .hero-stats { animation-delay: .70s; }

/* Scroll reveal */
.js-enabled .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.js-enabled .reveal.in-view { opacity: 1; transform: none; }

/* staggered reveal for grid children */
.js-enabled .reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.js-enabled .reveal-stagger.in-view > * { opacity: 1; transform: none; }
.js-enabled .reveal-stagger.in-view > *:nth-child(1)  { transition-delay: .04s; }
.js-enabled .reveal-stagger.in-view > *:nth-child(2)  { transition-delay: .10s; }
.js-enabled .reveal-stagger.in-view > *:nth-child(3)  { transition-delay: .16s; }
.js-enabled .reveal-stagger.in-view > *:nth-child(4)  { transition-delay: .22s; }
.js-enabled .reveal-stagger.in-view > *:nth-child(5)  { transition-delay: .28s; }
.js-enabled .reveal-stagger.in-view > *:nth-child(6)  { transition-delay: .34s; }
.js-enabled .reveal-stagger.in-view > *:nth-child(7)  { transition-delay: .38s; }
.js-enabled .reveal-stagger.in-view > *:nth-child(8)  { transition-delay: .42s; }
.js-enabled .reveal-stagger.in-view > *:nth-child(9)  { transition-delay: .46s; }
.js-enabled .reveal-stagger.in-view > *:nth-child(10) { transition-delay: .50s; }
.js-enabled .reveal-stagger.in-view > *:nth-child(11) { transition-delay: .54s; }
.js-enabled .reveal-stagger.in-view > *:nth-child(12) { transition-delay: .58s; }

/* ─── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .templates-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}

@media (max-width: 900px) {
  .contact-inner { grid-template-columns: 1fr; gap: 3rem; }
  .nav-links { display: none; }
  .btn-nav-cta { display: none; }
  .nav-hamburger { display: flex; }
}

@media (max-width: 768px) {
  .section-inner { padding: 4.5rem 1.25rem; }
  #contact { padding: 4.5rem 1.25rem; }
  h2 { font-size: clamp(1.6rem, 5vw, 2.4rem); }
  /* FAQ tap area improvement */
  .faq-q { padding: 1rem 1.2rem; font-size: .87rem; }
  .faq-a { padding-left: 1.2rem; padding-right: 1.2rem; }
  /* Mobile menu easier tapping */
  .main-mobile-menu a { padding: .9rem 0; }
}

@media (max-width: 600px) {
  .hero-stats { gap: 1.2rem; }
  .stat-div   { display: none; }
  .stat-n     { font-size: 1.25rem; }
  .templates-grid { grid-template-columns: 1fr; }
  .steps      { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-nav   { justify-content: center; flex-wrap: wrap; gap: 1rem; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
  .hero-btns { flex-direction: column; align-items: stretch; padding: 0 1rem; }
  .nav-inner { padding: 0 1rem; }
  /* Receive and trust grids already go 1fr via receive-grid responsive block */
  .coming-soon-chips { gap: .35rem; }
  /* Keep hero readable */
  #hero { padding-left: 1rem; padding-right: 1rem; }
}

@media (max-width: 400px) {
  h1 { font-size: clamp(2rem, 9vw, 2.4rem); }
  .section-inner { padding: 3.5rem 1rem; }
  #contact { padding: 3.5rem 1rem; }
  /* Hero badges wrap into 2 rows cleanly */
  .hero-badges { gap: .35rem; }
  .hero-badge  { font-size: .65rem; padding: .25rem .55rem; }
  /* FAQ slightly tighter */
  .faq-q { padding: .9rem 1rem; }
  .faq-a { padding-left: 1rem; padding-right: 1rem; }
  /* Stats */
  .stat-price { font-size: 1.7rem; }
  /* Hide desktop lang-toggle at very small screens — it's in the mobile menu */
  #lang-toggle { display: none; }
  .nav-actions  { gap: .5rem; }
}

/* Landscape phone — prevent hero from being too cramped */
@media (max-height: 500px) and (orientation: landscape) {
  #hero {
    min-height: auto;
    padding-top: calc(var(--nav-h) + 2rem);
    padding-bottom: 3rem;
  }
  .hero-stats  { display: none; }
  .hero-badges { display: none; }
}

/* ─── HERO BADGES ─────────────────────────────────────── */
.hero-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 2rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--c-muted);
  background: rgba(34,18,8,.05);
  border: 1px solid rgba(34,18,8,.14);
  border-radius: 50px;
  padding: .32rem .8rem;
  transition: background .2s, color .2s, border-color .2s;
}
.hero-badge:hover {
  background: rgba(34,18,8,.09);
  color: var(--c-text);
  border-color: rgba(34,18,8,.22);
}
.hero-badge svg { flex-shrink: 0; opacity: .7; }

/* ─── CARD CHIPS ──────────────────────────────────────── */
.card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-bottom: .9rem;
}
.chip {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--c-muted);
  background: rgba(110,68,28,.07);
  border: 1px solid rgba(110,68,28,.15);
  border-radius: 50px;
  padding: .22rem .62rem;
  transition: background .2s, color .2s;
}
.tpl-card:hover .chip {
  background: rgba(196,83,28,.08);
  border-color: rgba(196,83,28,.18);
  color: var(--c-accent);
}

/* ─── COMING SOON NOTE ───────────────────────────────── */
.coming-soon-note {
  margin-top: 3rem;
  padding: 1.75rem 2rem;
  background: rgba(110,68,28,.04);
  border: 1px solid rgba(110,68,28,.12);
  border-radius: var(--radius);
  text-align: center;
}
.coming-soon-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 1rem;
}
.coming-soon-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  justify-content: center;
  margin-bottom: 1rem;
}
.chip-muted {
  font-size: .75rem;
  font-weight: 500;
  color: var(--c-muted);
  background: rgba(34,18,8,.04);
  border: 1px solid rgba(34,18,8,.1);
  border-radius: 50px;
  padding: .28rem .75rem;
  opacity: .72;
}
.coming-soon-sub {
  font-size: .82rem;
  color: var(--c-muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ─── WHAT YOU RECEIVE ───────────────────────────────── */
#receive {
  background: var(--c-bg);
}

.receive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.receive-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  background: #fff;
  border: 1px solid rgba(110,68,28,.14);
  border-radius: var(--radius);
  transition: box-shadow .3s var(--ease-out), border-color .25s, transform .3s var(--ease-out);
}
.receive-item:hover {
  box-shadow: 0 8px 28px rgba(34,18,8,.1);
  border-color: rgba(110,68,28,.24);
  transform: translateY(-2px);
}
.ri-icon {
  font-size: 1.35rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: .1rem;
}
.receive-item h3 {
  font-size: .9rem;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: .3rem;
}
.receive-item p {
  font-size: .8rem;
  line-height: 1.55;
  color: var(--c-muted);
  margin: 0;
}

/* ─── EXAMPLE DELIVERY ───────────────────────────────── */
#example {
  background: var(--c-surface);
  background-image: radial-gradient(rgba(110,68,28,.07) 1px, transparent 1px);
  background-size: 28px 28px;
}

.example-card {
  background: var(--c-bg);
  border: 1px solid rgba(110,68,28,.18);
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(34,18,8,.08);
}
.example-disclaimer {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.4rem;
  background: rgba(201,144,58,.07);
  border-bottom: 1px solid rgba(201,144,58,.2);
  font-size: .72rem;
  font-weight: 500;
  color: var(--c-muted);
}
.example-disclaimer svg { flex-shrink: 0; color: var(--c-gold); opacity: .9; }

.example-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.example-info {
  padding: 2rem 2rem 2rem;
  border-right: 1px solid rgba(110,68,28,.12);
}
.example-biz {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: 1.75rem;
}
.example-biz-icon {
  font-size: 2rem;
  line-height: 1;
}
.example-biz-name {
  font-family: var(--ff-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--c-text);
  margin: 0 0 .15rem;
}
.example-biz-desc {
  font-size: .8rem;
  color: var(--c-muted);
  margin: 0;
  line-height: 1.4;
}

.example-block {
  margin-bottom: 1.4rem;
}
.example-block-label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: .5rem;
}
.example-block > p {
  font-size: .84rem;
  line-height: 1.65;
  color: var(--c-muted);
  margin: 0;
}

.example-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.example-list li {
  font-size: .84rem;
  color: var(--c-muted);
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.5;
}
.example-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--c-accent);
  font-weight: 700;
  font-size: .75rem;
}

.example-outcomes {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.outcome-chip {
  font-size: .72rem;
  font-weight: 600;
  color: #2A8040;
  background: rgba(40,140,65,.08);
  border: 1px solid rgba(40,140,65,.2);
  border-radius: 50px;
  padding: .25rem .7rem;
}

.example-cta {
  display: inline-flex;
  margin-top: 1.5rem;
  font-size: .82rem;
}

.example-preview-wrap {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: rgba(26,18,9,.03);
}
.example-preview {
  width: 100%;
  max-width: 320px;
  background: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(34,18,8,.22);
  border: 1px solid rgba(255,255,255,.06);
}
.example-preview-note {
  font-size: .74rem;
  color: var(--c-muted);
  text-align: center;
  max-width: 220px;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 860px) {
  .example-body { grid-template-columns: 1fr; }
  .example-info { border-right: none; border-bottom: 1px solid rgba(110,68,28,.12); }
  .example-preview-wrap { padding: 1.5rem 2rem 2rem; }
}
@media (max-width: 500px) {
  .example-info { padding: 1.5rem; }
  .example-preview-wrap { padding: 1.25rem 1.5rem 1.5rem; }
}

/* ─── TRUST SECTION ──────────────────────────────────── */
#trust {
  background: var(--c-bg);
  border-top: 1px solid rgba(110,68,28,.1);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.trust-item {
  padding: 1.4rem 1.5rem;
  background: rgba(34,18,8,.025);
  border: 1px solid rgba(110,68,28,.13);
  border-radius: var(--radius);
  transition: border-color .25s, background .25s, transform .3s var(--ease-out);
}
.trust-item:hover {
  border-color: rgba(110,68,28,.24);
  background: rgba(34,18,8,.05);
  transform: translateY(-2px);
}
.trust-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: .75rem;
  line-height: 1;
}
.trust-item h3 {
  font-size: .9rem;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: .4rem;
}
.trust-item p {
  font-size: .82rem;
  line-height: 1.6;
  color: var(--c-muted);
  margin: 0;
}

/* ─── FAQ ────────────────────────────────────────────── */
#faq {
  background: var(--c-surface);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.faq-item {
  background: var(--c-bg);
  border: 1px solid rgba(110,68,28,.16);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item[open] { border-color: rgba(196,83,28,.3); }

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--c-text);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color .2s;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: '+';
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--c-accent);
  flex-shrink: 0;
  transition: transform .25s var(--ease-out);
  line-height: 1;
}
.faq-item[open] .faq-q::after { transform: rotate(45deg); }
.faq-item[open] .faq-q { color: var(--c-accent); }

.faq-q:hover { color: var(--c-accent); }
.faq-q:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: -2px;
}

.faq-a {
  padding: 0 1.4rem 1.2rem;
  font-size: .87rem;
  line-height: 1.7;
  color: var(--c-muted);
  margin: 0;
  border-top: 1px solid rgba(110,68,28,.1);
  padding-top: 1rem;
}
.faq-a a {
  color: var(--c-accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ─── FORM IMPROVEMENTS ──────────────────────────────── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 540px) {
  .form-row { grid-template-columns: 1fr; }
}

select {
  padding: .8rem 1rem;
  background: #fff;
  border: 1.5px solid rgba(110,68,28,.22);
  border-radius: 8px;
  color: var(--c-text);
  font-size: .95rem;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23C4531C' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .8rem center;
  padding-right: 2.2rem;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
  font-family: var(--ff-body);
}
select:focus {
  border-color: rgba(196,83,28,.5);
  box-shadow: 0 0 0 3px rgba(196,83,28,.08);
}

/* Improved button arrow nudge */
.btn-primary svg,
.btn-submit svg {
  transition: transform .2s var(--ease-out);
}
.btn-primary:hover svg,
.btn-submit:hover svg { transform: translateX(3px); }

/* Improved btn-demo arrow */
.btn-demo { letter-spacing: .01em; }

/* Better focus states globally */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─── RECEIVE GRID RESPONSIVE ────────────────────────── */
@media (max-width: 600px) {
  .receive-grid { grid-template-columns: 1fr; }
  .trust-grid   { grid-template-columns: 1fr; }
  .hero-badges  { gap: .4rem; }
  .hero-badge   { font-size: .67rem; padding: .28rem .65rem; }
  .card-chips   { display: none; }
  .coming-soon-note { padding: 1.25rem 1rem; }
}

/* ─── LANG SWITCH FADE ───────────────────────────────── */
body.lang-switching [data-fr],
body.lang-switching [data-placeholder-fr] {
  opacity: .4;
  transition: opacity .15s;
}

/* ─── SECTION BACKGROUND RHYTHM ─────────────────────── */
#trust {
  background: var(--c-bg);
}

/* ─── PALETTE SWATCH (kept for any legacy ref) ──────── */
.palette { display: none; }

/* ─── TIGHTER CARD FOCUS STATE ──────────────────────── */
.tpl-card.live a.card-preview:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

/* ─── REDUCED MOTION ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hero-inner > * {
    opacity: 1;
    animation: none;
  }
  .js-enabled .reveal,
  .js-enabled .reveal-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
  scroll-behavior: auto;
}
