:root {
  --ink: #0f172a;
  --ink-2: #1e293b;
  --text: #1f2937;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --accent: #f59e0b;
  --accent-dark: #b45309;
  --ok: #15803d;
  --err: #b91c1c;
  --radius: 14px;
  --wrap: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-dark); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section.soft { background: var(--bg-soft); }
.section.dark { background: var(--ink); color: #cbd5e1; }
.section.dark h2, .section.dark h3 { color: #fff; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--accent-dark); margin-bottom: .6em; }
.dark .eyebrow { color: var(--accent); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.dark .lead { color: #94a3b8; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(15, 23, 42, .96); backdrop-filter: blur(8px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: .02em; }
.brand-mark { width: 34px; height: 34px; border-radius: 8px; background: var(--accent); color: var(--ink); display: grid; place-items: center; font-weight: 900; font-size: .9rem; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { color: #cbd5e1; text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: .95rem; font-weight: 500; }
.nav a:hover, .nav a.active { color: #fff; background: rgba(255,255,255,.08); }
.nav a.live-link::before { content: ""; display: inline-block; width: 8px; height: 8px; background: #ef4444; border-radius: 50%; margin-right: 7px; vertical-align: 1px; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--ink); flex-direction: column; align-items: stretch; padding: 10px 16px 18px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 10px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .1s, background .15s; font-family: inherit; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: #fbbf24; }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--ink); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(245,158,11,.25), transparent 60%), var(--ink); color: #cbd5e1; padding: 96px 0 88px; }
.hero h1 { color: #fff; max-width: 820px; }
.hero h1 span { color: var(--accent); }
.hero .lead { color: #94a3b8; margin-bottom: 30px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 36px; margin-top: 52px; }
.hero-stats div { color: #94a3b8; font-size: .92rem; }
.hero-stats strong { display: block; color: #fff; font-size: 1.6rem; }

/* grids & cards */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card p:last-child { margin-bottom: 0; }
.dark .card { background: var(--ink-2); border-color: #334155; }
.icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(245,158,11,.14); color: var(--accent-dark); display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 14px; }
.dark .icon { color: var(--accent); }
.card-link { text-decoration: none; color: inherit; display: block; transition: transform .15s, box-shadow .15s; }
.card-link:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(15,23,42,.1); }
.more { font-weight: 700; color: var(--accent-dark); }

/* portfolio */
.work { overflow: hidden; padding: 0; }
.work-thumb { aspect-ratio: 16 / 9; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.5rem; letter-spacing: .02em; }
.work-body { padding: 20px 22px 24px; }
.work-body .domain { font-size: .88rem; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag { font-size: .75rem; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 99px; padding: 3px 10px; color: var(--muted); }

/* products */
.product { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.product-art { aspect-ratio: 4 / 3; display: grid; place-items: center; font-size: 3rem; background: linear-gradient(135deg, #e2e8f0, #cbd5e1); }
.product-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.product-body .price { font-weight: 700; color: var(--ink); margin-top: auto; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 3px 9px; border-radius: 99px; background: var(--accent); color: var(--ink); margin-bottom: 8px; }
.badge.soon { background: var(--line); color: var(--muted); }

/* steps */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 58px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--ink); display: grid; place-items: center; font-weight: 800; }

/* forms */
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { form .row { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: 14px; }
input, select, textarea { width: 100%; margin-top: 6px; padding: 11px 13px; font: inherit; font-size: 1rem; border: 1px solid #cbd5e1; border-radius: 9px; background: #fff; color: var(--text); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
textarea { min-height: 110px; resize: vertical; }
.hint { font-weight: 400; color: var(--muted); font-size: .85rem; }
.msg { padding: 12px 14px; border-radius: 9px; margin-top: 12px; font-size: .95rem; display: none; }
.msg.show { display: block; }
.msg.ok { background: #dcfce7; color: var(--ok); }
.msg.err { background: #fee2e2; color: var(--err); }

/* page header */
.page-head { background: var(--ink); color: #94a3b8; padding: 64px 0 56px; }
.page-head h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 2.9rem); }

/* split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* live */
.live-pill { display: inline-flex; align-items: center; gap: 8px; background: #ef4444; color: #fff; font-weight: 800; font-size: .8rem; letter-spacing: .1em; padding: 6px 12px; border-radius: 99px; }
.live-pill::before { content: ""; width: 8px; height: 8px; background: #fff; border-radius: 50%; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.schedule { width: 100%; border-collapse: collapse; }
.schedule td, .schedule th { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); }
.schedule th { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

/* footer */
.site-footer { background: #0b1120; color: #94a3b8; padding: 54px 0 30px; font-size: .95rem; }
.site-footer a { color: #cbd5e1; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.footer-grid h4 { color: #fff; margin: 0 0 12px; font-size: .95rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid #1e293b; margin-top: 36px; padding-top: 20px; font-size: .85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- business card designer ---------- */
.designer { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 36px; align-items: start; }
@media (max-width: 960px) { .designer { grid-template-columns: 1fr; } }
.preview-pane { position: sticky; top: 90px; }
@media (max-width: 960px) { .preview-pane { position: static; } }
.metal-card { aspect-ratio: 3.5 / 2; border-radius: 16px; position: relative; overflow: hidden; box-shadow: 0 24px 50px rgba(15,23,42,.28), inset 0 1px 0 rgba(255,255,255,.35); transition: background .3s; }
.metal-card[data-finish="silver"] { background: repeating-linear-gradient(90deg, rgba(255,255,255,.12) 0 1px, transparent 1px 3px), linear-gradient(135deg, #e5e7eb, #b8bcc4 45%, #d9dce1 70%, #a7abb3); }
.metal-card[data-finish="black"] { background: repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 1px, transparent 1px 3px), linear-gradient(135deg, #2b2e33, #141619 60%, #24272c); }
.metal-card[data-finish="gold"] { background: repeating-linear-gradient(90deg, rgba(255,255,255,.12) 0 1px, transparent 1px 3px), linear-gradient(135deg, #f3d77a, #c9a227 45%, #e8c65a 70%, #b48a17); }
.metal-card .engrave { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.metal-card .placeholder[hidden] { display: none; }
.metal-card .placeholder { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; font-weight: 600; color: rgba(15,23,42,.55); }
.metal-card[data-finish="black"] .placeholder { color: rgba(255,255,255,.55); }
.metal-card .upload-img { position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: contain; }
.metal-card.loading::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); background-size: 200% 100%; animation: shine 1.2s linear infinite; }
@keyframes shine { from { background-position: 150% 0; } to { background-position: -50% 0; } }
.preview-note { color: var(--muted); font-size: .9rem; margin-top: 14px; min-height: 1.4em; }

.tabs { display: flex; gap: 6px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 5px; margin-bottom: 20px; }
.tabs button { flex: 1; padding: 11px; border: 0; border-radius: 9px; background: transparent; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; }
.tabs button.active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(15,23,42,.12); }
.panel { display: none; }
.panel.active { display: block; }

.opt-group { margin-bottom: 22px; }
.opt-group > .opt-title { font-weight: 700; color: var(--ink); margin-bottom: 10px; display: block; }
.opts { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { display: block; border: 2px solid var(--line); border-radius: 11px; padding: 12px 14px; cursor: pointer; font-weight: 600; font-size: .95rem; color: var(--ink); background: #fff; height: 100%; }
.opt span small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; margin-top: 2px; }
.opt input:checked + span { border-color: var(--accent); background: #fffbeb; }
.opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: -2px; margin-right: 6px; border: 1px solid rgba(0,0,0,.2); }

.total-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 18px 22px; margin-top: 8px; flex-wrap: wrap; }
.total-bar .amount { font-size: 1.6rem; font-weight: 800; }
.total-bar .each { color: #94a3b8; font-size: .9rem; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { width: auto; margin-top: 4px; }
.dropzone { border: 2px dashed #cbd5e1; border-radius: 12px; padding: 28px; text-align: center; color: var(--muted); cursor: pointer; background: #fff; }
.dropzone.drag { border-color: var(--accent); background: #fffbeb; }
.dropzone strong { color: var(--ink); }
.revise { display: none; margin-top: 16px; }
.revise.show { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
