:root {
  --primary: #d4af37;
  --accent: #ffffff;
  --bg: #0a0a0c;
  --panel: #141417;
  --panel-2: #1c1c20;
  --border: #2a2a2e;
  --text: #f1f1f3;
  --text-dim: #9a9aa2;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: inherit; }
img, video { max-width: 100%; display: block; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { font-weight: 800; line-height: 1.15; margin: 0 0 14px; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
p { color: var(--text-dim); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 10px;
  border: none;
  background: var(--primary);
  color: #15130a;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-2px); opacity: .92; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-lg { padding: 16px 36px; font-size: 1.1rem; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,12,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; }
.logo { font-size: 1.3rem; font-weight: 800; text-decoration: none; }
.logo span { color: var(--primary); }
.site-nav { display: flex; gap: 26px; align-items: center; }
.site-nav a { text-decoration: none; color: var(--text-dim); font-size: .95rem; }
.site-nav a:hover { color: var(--text); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px; background: none; border: 1px solid var(--border); border-radius: 8px; cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); margin: 0 auto; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Focus visibility — keep it clean but never invisible */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px;
}

/* Scroll-reveal */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].revealed { opacity: 1; transform: translateY(0); }

/* Hero */
.hero { position: relative; padding: 100px 0 70px; text-align: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -220px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,.22) 0%, rgba(212,175,55,0) 70%);
  pointer-events: none; z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero .eyebrow {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  background: var(--panel-2); border: 1px solid var(--border);
  color: var(--primary); font-size: .82rem; font-weight: 700; margin-bottom: 20px;
  letter-spacing: .03em;
}
.hero p.lead { max-width: 560px; margin: 18px auto 32px; font-size: 1.1rem; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-strip {
  display: flex; gap: 14px; overflow-x: auto; margin-top: 56px; padding-bottom: 10px;
  scrollbar-width: none;
}
.hero-strip::-webkit-scrollbar { display: none; }
.hero-strip img {
  height: 180px; width: auto; border-radius: 14px; border: 1px solid var(--border); flex-shrink: 0;
  object-fit: cover;
}

/* How it works */
.section { padding: 70px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 46px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.step-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 28px;
}
.step-num {
  width: 38px; height: 38px; border-radius: 10px; background: var(--primary); color: #15130a;
  display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 16px;
}
.step-card h3 { font-size: 1.15rem; }
.step-card p { font-size: .92rem; margin: 0; }

/* Template gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.template-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  text-decoration: none; color: var(--text);
  transition: transform .2s ease, border-color .2s ease;
  display: flex; flex-direction: column;
}
.template-card:hover { transform: translateY(-5px); border-color: var(--primary); }
.template-card .thumb-wrap { aspect-ratio: 4/5; background: var(--panel-2); overflow: hidden; }
.template-card .thumb-wrap img, .template-card .thumb-wrap video { width: 100%; height: 100%; object-fit: cover; }
.template-card .body { padding: 16px 18px; }
.template-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.template-card .price { color: var(--primary); font-weight: 700; font-size: .95rem; }

/* Pricing / trust */
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.trust-card { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 22px; text-align: center; }
.trust-card .emoji { display: flex; justify-content: center; color: var(--primary); margin-bottom: 10px; }
.trust-card p { font-size: .88rem; margin: 0; }

/* Promo banner */
.promo-banner { padding: 10px 20px 50px; }
.promo-banner-inner {
  background: linear-gradient(135deg, rgba(212,175,55,.18), rgba(212,175,55,.04));
  border: 1px solid var(--primary); border-radius: 20px;
  padding: 36px 30px; text-align: center;
}
.promo-banner-inner .promo-emoji { font-size: 2rem; display: block; margin-bottom: 10px; }
.promo-banner-inner p { color: var(--text); font-size: 1.1rem; font-weight: 600; max-width: 560px; margin: 0 auto 20px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; text-align: center; color: var(--text-dim); font-size: .85rem; }
.site-footer a { color: var(--text-dim); margin: 0 10px; text-decoration: none; }
.site-footer a:hover { color: var(--primary); }

/* Cookie banner */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: var(--panel); border-top: 1px solid var(--border);
  padding: 16px 20px; display: none;
  align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
}
.cookie-banner.show { display: flex; }
.cookie-banner p { margin: 0; font-size: .85rem; max-width: 560px; }

/* Intake wizard steps (order.php form, pre-submission) */
.intake-steps { display: flex; justify-content: center; gap: 8px; margin-bottom: 24px; }
.is-dot {
  width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--panel-2); border: 1px solid var(--border); font-weight: 700; font-size: .8rem; color: var(--text-dim);
}
.is-dot.active { background: var(--primary); color: #15130a; border-color: var(--primary); }
.is-dot.done { background: var(--text); color: var(--bg); }
.intake-step { animation: stepFadeIn .25s ease; }
@keyframes stepFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.step-nav { display: flex; gap: 10px; margin-top: 24px; }
.step-nav .step-back { flex: 0 0 auto; }
.step-nav .step-next, .step-nav button[type="submit"] { flex: 1; }
.intake-step .gender-toggle { margin-bottom: 24px; }
.intake-step > .step-next { margin-top: 8px; }
.intake-step .template-picker { margin-bottom: 4px; }
.step-next:disabled { opacity: .4; cursor: not-allowed; }

/* Wizard (order.php) */
.wizard-wrap { max-width: 640px; margin: 50px auto; padding: 0 20px; }
.wizard-steps { display: flex; justify-content: center; gap: 8px; margin-bottom: 36px; }
.wizard-steps span {
  width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--panel-2); border: 1px solid var(--border); font-weight: 700; font-size: .85rem; color: var(--text-dim);
}
.wizard-steps span.active { background: var(--primary); color: #15130a; border-color: var(--primary); }
.wizard-steps span.done { background: var(--text); color: var(--bg); }
.wizard-card { background: var(--panel); border: 1px solid var(--border); border-radius: 18px; padding: 32px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .88rem; margin-bottom: 7px; color: var(--text-dim); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--panel-2); color: var(--text); font-size: .95rem;
}
.form-group input:focus, .form-group textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.form-row { display: flex; gap: 14px; flex-wrap: wrap; }
.form-row .form-group { flex: 1; min-width: 200px; }
.gender-toggle { display: flex; gap: 10px; }
.gender-btn {
  flex: 1; padding: 14px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--panel-2); color: var(--text-dim); font-size: 1rem; font-weight: 600; cursor: pointer;
}
.gender-btn.selected { border-color: var(--primary); background: rgba(212,175,55,.15); color: var(--text); }

.template-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.template-pick-card { cursor: pointer; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: var(--panel-2); transition: border-color .15s ease, opacity .15s ease; }
.template-pick-card.gender-hidden { display: none; }
.template-pick-card .thumb-wrap { aspect-ratio: 4/5; position: relative; background: var(--panel); overflow: hidden; }
.template-pick-card .thumb-wrap img { width: 100%; height: 100%; object-fit: cover; }
.template-pick-card video.preview-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s ease; }
.template-pick-card:hover video.preview-video, .template-pick-card.touch-playing video.preview-video { opacity: 1; }
.template-pick-card .pick-check {
  position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--primary); color: #15130a; display: none; align-items: center; justify-content: center; font-size: .75rem; font-weight: 800;
}
.template-pick-card.selected { border-color: var(--primary); }
.template-pick-card.selected .pick-check { display: flex; }
.template-pick-card .pick-name { font-size: .78rem; font-weight: 600; padding: 6px 8px 0; }
.template-pick-card .pick-price { font-size: .76rem; color: var(--primary); padding: 2px 8px 8px; }

.notice-box {
  background: var(--panel-2); border: 1px solid var(--border); border-left: 3px solid var(--primary);
  border-radius: 8px; padding: 12px 16px; font-size: .84rem; color: var(--text-dim); margin-bottom: 16px;
}
.notice-box strong { color: var(--text); }
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--text-dim); }
.checkbox-row input { width: auto; margin-top: 3px; }
.upload-drop {
  border: 2px dashed var(--border); border-radius: 14px; padding: 34px 20px; text-align: center;
  cursor: pointer; color: var(--text-dim);
}
.upload-drop.has-file { border-color: var(--primary); color: var(--text); }
.icon-svg { width: 1em; height: 1em; display: inline-block; vertical-align: -0.15em; flex-shrink: 0; }
.icon-lg { width: 20px; height: 20px; }
#uploadPlaceholder { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.btn .icon-svg { width: 1.1em; height: 1.1em; }
.field-hint { font-size: .8rem; color: var(--text-dim); margin: 8px 0 0; }
.upload-drop img { max-height: 180px; margin: 0 auto 12px; border-radius: 10px; }
.alert { padding: 13px 16px; border-radius: 10px; margin-bottom: 18px; font-size: .9rem; }
.alert-error { background: #3a1e20; color: #ff9b9e; border: 1px solid #5a2a2d; }
.alert-success { background: #1e3a2e; color: #7fe3b4; border: 1px solid #2d5a44; }
.status-box { text-align: center; padding: 30px 10px; }
.status-box .spinner {
  width: 48px; height: 48px; border-radius: 50%; border: 4px solid var(--border); border-top-color: var(--primary);
  margin: 0 auto 20px; animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }

/* FAQ accordion */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%;
  padding: 18px 4px; cursor: pointer; font-weight: 700; font-size: 1rem; color: var(--text);
  background: none; border: none; font-family: inherit; text-align: left;
}
.faq-q::after { content: "+"; font-size: 1.4rem; color: var(--primary); flex-shrink: 0; transition: transform .2s ease; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-item.open .faq-a { max-height: 220px; }
.faq-a p { padding: 0 4px 18px; margin: 0; }

/* Template card video preview */
.template-card .thumb-wrap { position: relative; }
.template-card video.preview-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s ease; }
.template-card:hover video.preview-video { opacity: 1; }

/* Sticky mobile CTA */
.mobile-sticky-cta {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  padding: 12px 16px; background: rgba(10,10,12,.92); backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
}

@media (max-width: 720px) {
  .site-nav {
    display: none; position: fixed; top: 65px; left: 0; right: 0; z-index: 60;
    background: var(--panel); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 20px; border-bottom: 1px solid var(--border); }
  .site-nav .btn { margin: 10px 20px; }
  .nav-toggle { display: flex; }
  .hero { padding: 50px 0 40px; }
  .section { padding: 44px 0; }
  .mobile-sticky-cta { display: block; }
  body { padding-bottom: 70px; }
}
