:root {
  --bg: #0d0b09;
  --bg-2: #15110e;
  --panel: rgba(255, 255, 255, 0.065);
  --panel-strong: rgba(255, 255, 255, 0.11);
  --text: #f7efe4;
  --muted: rgba(247, 239, 228, 0.68);
  --soft: rgba(247, 239, 228, 0.12);
  --gold: #d8a95e;
  --gold-2: #ffd18a;
  --danger: #ff8f78;
  --success: #9beaac;
  --radius: 24px;
  --shadow: 0 20px 70px rgba(0,0,0,.45);
  --max: 1180px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(216,169,94,.18), transparent 34%),
    radial-gradient(circle at 90% 20%, rgba(142,79,255,.10), transparent 32%),
    linear-gradient(180deg, #0d0b09 0%, #130f0b 48%, #090807 100%);
  color: var(--text);
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
code { color: var(--gold-2); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px clamp(18px, 4vw, 44px);
  background: rgba(13, 11, 9, .72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #111;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  box-shadow: 0 10px 30px rgba(216,169,94,.22);
}
.brand strong { display: block; letter-spacing: .02em; }
.brand small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }

.top-nav { display: flex; gap: 22px; color: var(--muted); font-size: 14px; }
.top-nav a { transition: color .2s ease; }
.top-nav a:hover { color: var(--gold-2); }

.section-shell {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 72px 0;
}

.hero {
  min-height: calc(100vh - 80px);
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: clamp(28px, 6vw, 70px);
  align-items: center;
}

.eyebrow {
  color: var(--gold-2);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  font-weight: 800;
  margin: 0 0 14px;
}

h1, h2, h3 { line-height: 1.05; margin: 0; }
h1 { font-size: clamp(42px, 7vw, 84px); letter-spacing: -.06em; }
h1 span, h2 span { color: var(--gold-2); }
h2 { font-size: clamp(31px, 4.3vw, 56px); letter-spacing: -.045em; }
h3 { font-size: 24px; letter-spacing: -.02em; }
.lead { color: var(--muted); font-size: clamp(18px, 2vw, 22px); max-width: 690px; margin: 26px 0 0; }

.hero-actions, .form-actions, .summary-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-actions { margin-top: 32px; }

.btn {
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: var(--text);
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 800;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); border-color: rgba(255,209,138,.55); }
.btn.primary {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #140d05;
  border-color: rgba(255,209,138,.2);
}
.btn.ghost { background: transparent; }
.btn.small { min-height: 38px; padding: 0 14px; font-size: 13px; }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}
.trust-row span, .style-chip {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.055);
  color: var(--muted);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
}

.image-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.14);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.main-card { transform: rotate(1.2deg); }
.main-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, rgba(255,209,138,.3), transparent 35%, rgba(255,255,255,.14));
  pointer-events: none;
  z-index: 1;
}
.card-badge {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  background: rgba(8,7,6,.68);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 12px 14px;
  font-weight: 800;
  z-index: 2;
}

.split-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.panel-copy, .automation-mini, .summary-card, .order-form, .price-card {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 34px);
  box-shadow: 0 12px 50px rgba(0,0,0,.2);
}
.panel-copy p:not(.eyebrow), .section-head p { color: var(--muted); max-width: 780px; }
.automation-mini { display: grid; gap: 12px; }
.flow-step {
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.04);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}
.flow-step span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.07);
  color: var(--gold-2);
  font-weight: 900;
  font-size: 12px;
}
.flow-step.active { color: var(--text); border-color: rgba(255,209,138,.24); }
.flow-step.active span { background: rgba(216,169,94,.22); }

.section-head { margin-bottom: 28px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.portfolio-card {
  border-radius: 22px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.12);
  cursor: zoom-in;
  transition: transform .25s ease, border-color .25s ease;
}
.portfolio-card:hover { transform: translateY(-5px); border-color: rgba(255,209,138,.36); }
.portfolio-card img { aspect-ratio: 4/5; width: 100%; object-fit: cover; }
.portfolio-card div { padding: 16px; }
.portfolio-card strong { display: block; }
.portfolio-card span { color: var(--muted); font-size: 14px; }

.style-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.style-chip { font-size: 15px; color: var(--text); padding: 14px 18px; border-radius: 18px; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.price-card { position: relative; min-height: 360px; }
.price-card.featured { background: linear-gradient(180deg, rgba(216,169,94,.16), rgba(255,255,255,.06)); border-color: rgba(255,209,138,.34); }
.ribbon {
  display: inline-flex;
  color: #130e06;
  background: var(--gold-2);
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 14px;
}
.price { font-size: 46px; font-weight: 950; letter-spacing: -.04em; margin: 14px 0 22px; color: var(--gold-2); }
ul { padding-left: 20px; color: var(--muted); }
li { margin: 9px 0; }

.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
  gap: 24px;
  align-items: start;
}
fieldset {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}
legend { font-weight: 950; margin-bottom: 14px; font-size: 18px; }
label { display: grid; gap: 7px; margin-bottom: 14px; color: var(--muted); font-weight: 700; }
input, select, textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 15px;
  background: rgba(0,0,0,.22);
  color: var(--text);
  padding: 14px 14px;
  font: inherit;
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: rgba(255,209,138,.7); box-shadow: 0 0 0 3px rgba(255,209,138,.08); }
.check { display: flex; grid-template-columns: auto 1fr; align-items: flex-start; gap: 10px; color: var(--muted); }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--gold); }
.file-preview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 8px 0 14px; }
.file-preview img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); }

.sticky { position: sticky; top: 92px; }
.total { font-size: 64px; font-weight: 1000; color: var(--gold-2); letter-spacing: -.06em; line-height: .95; }
#priceNote { color: var(--muted); margin-top: 10px; }
hr { border: 0; border-top: 1px solid rgba(255,255,255,.12); margin: 22px 0; }
#briefOutput { min-height: 340px; font-size: 13px; line-height: 1.45; }
.automation-status {
  margin-top: 14px;
  color: var(--muted);
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.1);
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 13px;
}
.automation-status.ok { color: var(--success); border-color: rgba(155,234,172,.3); }
.automation-status.error { color: var(--danger); border-color: rgba(255,143,120,.3); }

.pipeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.pipeline-item {
  min-height: 170px;
  border-radius: 20px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.11);
  padding: 18px;
}
.pipeline-item span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(216,169,94,.16);
  color: var(--gold-2);
  font-weight: 1000;
  margin-bottom: 18px;
}
.pipeline-item strong { display: block; }
.pipeline-item small { display: block; margin-top: 6px; color: var(--muted); }

.site-footer {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 48px 0 70px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
}

.lightbox {
  width: min(94vw, 920px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 24px;
  padding: 0;
  background: #050403;
  box-shadow: var(--shadow);
}
.lightbox::backdrop { background: rgba(0,0,0,.76); backdrop-filter: blur(8px); }
.lightbox img { max-height: 86vh; width: 100%; object-fit: contain; }
#lightboxClose {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  z-index: 2;
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }

@media (max-width: 950px) {
  .hero, .split-panel, .order-layout { grid-template-columns: 1fr; }
  .gallery-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .sticky { position: static; }
  .top-nav { display: none; }
}

@media (max-width: 620px) {
  .section-shell { width: min(100% - 26px, var(--max)); padding: 46px 0; }
  .gallery-grid, .pricing-grid, .pipeline { grid-template-columns: 1fr; }
  .file-preview { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 42px; }
  .total { font-size: 52px; }
  .site-footer { flex-direction: column; }
}
