:root {
  --bg: #0d0d0d;
  --surface: #171717;
  --raised: #242424;
  --ink: #f3f1ec;
  --muted: #a39f97;
  --line: #2f2f2f;
  --accent: #ffc629;
  --accent-ink: #0d0d0d;
  --teal: #ffc629;
  --shadow: 0 10px 30px rgba(0,0,0,.4);
  --radius: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Montserrat", system-ui, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.08; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); font-weight: 900; letter-spacing: -.03em; text-transform: uppercase; }
h2 { font-size: clamp(1.5rem, 3vw, 2.3rem); font-weight: 900; letter-spacing: -.02em; text-transform: uppercase; }
h3 { font-size: 1.1rem; font-weight: 800; }
p { margin: 0 0 1em; }
a { color: inherit; }
canvas { display: block; width: 100%; height: auto; }

main > section { max-width: 1180px; margin: 0 auto; padding: 72px 20px; }
.section-head { margin-bottom: 28px; max-width: 640px; }
.section-head p { color: var(--muted); }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 20px;
  background: rgba(13, 13, 13, .88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 900; text-decoration: none; letter-spacing: .02em; }
.brand span { background: var(--accent); color: var(--accent-ink); padding: 1px 6px; border-radius: 4px; margin-left: 2px; }
.topbar nav { display: flex; gap: 18px; align-items: center; font-size: .9rem; font-weight: 600; }
.topbar nav a { text-decoration: none; color: var(--muted); }
.topbar nav a:hover { color: var(--ink); }
.topbar nav .nav-cta { color: var(--accent-ink); background: var(--accent); padding: 7px 14px; border-radius: 999px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 20px; border-radius: 999px;
  font: inherit; font-weight: 800; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .12s ease, background .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #ffd659; }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-block { width: 100%; }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: center; padding-top: 56px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 800; color: var(--accent); }
.lead { font-size: 1.05rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 18px; }
.hero-price { color: var(--muted); }
.hero-price strong { color: var(--accent); font-size: 1.3rem; }
.hero-visual canvas { border-radius: var(--radius); }

/* Selling points */
main > section.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 0; padding-bottom: 0; }
.perks article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.perks h2 { font-size: 1.05rem; }
.perks article p:not(.perk-big) { color: var(--muted); margin: 0; }
.perk-big { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 900; letter-spacing: -.03em; line-height: 1; color: var(--accent); margin-bottom: 14px; text-transform: uppercase; }

/* Studio */
.studio-grid {
  display: grid; grid-template-columns: 1fr 340px; gap: 20px 28px; align-items: start;
  grid-template-areas: "stage controls" "summary controls";
  grid-template-rows: auto auto;
}
.stage { grid-area: stage; }
.controls { grid-area: controls; }
.controls { align-self: stretch; align-content: start; }
.summary { grid-area: summary; align-self: end; }
.summary .control-actions { grid-template-columns: 1fr 1fr; }
.canvas-wrap { position: relative; border-radius: var(--radius); overflow: hidden; touch-action: none; }
.canvas-wrap canvas { cursor: grab; }
.canvas-wrap.dragging canvas { cursor: grabbing; }
.drop-hint {
  position: absolute; inset: 0; display: none; place-items: center;
  background: rgba(255, 198, 41, .92); color: var(--accent-ink); font-size: 1.4rem; font-weight: 900;
}
.canvas-wrap.drag-over .drop-hint { display: grid; }
.hint { color: var(--muted); font-size: .9rem; margin-top: 10px; }

.controls { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 18px; }
.controls fieldset { border: 0; margin: 0; padding: 0; }
.controls legend, .range span { font-weight: 800; font-size: .85rem; margin-bottom: 8px; display: flex; justify-content: space-between; width: 100%; }
.range output { font-weight: 600; color: var(--muted); }
.range input { width: 100%; accent-color: var(--accent); }
.toggle { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-weight: 800; font-size: .85rem; }
.toggle input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); }
.toggle small { display: block; font-weight: 500; color: var(--muted); }
.upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload input:focus-visible + .btn { outline: 3px solid var(--ink); outline-offset: 2px; }
.seg { display: grid; gap: 6px; }
.seg-2 { grid-template-columns: 1fr 1fr; }
.seg-3 { grid-template-columns: repeat(3, 1fr); }
.seg button {
  font: inherit; font-size: .85rem; font-weight: 700; padding: 9px 6px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--raised); color: var(--ink); cursor: pointer;
}
.seg button small { display: block; font-weight: 600; color: var(--muted); }
.seg button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.seg button[aria-pressed="true"] small { color: var(--accent-ink); }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--raised); color: var(--ink); font-size: 1.2rem; cursor: pointer; }
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper output { min-width: 2ch; text-align: center; font-size: 1.4rem; font-weight: 900; }
.facts { margin: 0; display: grid; gap: 8px; font-size: .9rem; }
.facts div { display: flex; justify-content: space-between; gap: 12px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 800; text-align: right; }
.dpi-good { color: var(--accent); }
.dpi-ok { color: #f0b13c; }
.dpi-bad { color: #ff6b5b; }
.price-box { background: var(--raised); border-radius: 10px; padding: 14px; display: grid; gap: 2px; }
.price-box span { color: var(--muted); font-size: .9rem; }
.price-box strong { font-size: 1.6rem; font-weight: 900; }
.price-box small { color: var(--muted); }
.control-actions { display: grid; gap: 10px; }

/* Samples */
.sample-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sample-card {
  padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--surface); cursor: pointer; text-align: left; font: inherit; color: inherit;
  transition: transform .15s ease, border-color .15s ease;
}
.sample-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.sample-card .meta { padding: 14px 16px; display: flex; justify-content: space-between; gap: 8px; }
.sample-card .meta span { color: var(--muted); font-size: .85rem; white-space: nowrap; }

/* Tiers */
.tier-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tier-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.tier-card.featured { border: 2px solid var(--accent); }
.tier-card .amount { font-size: 2rem; font-weight: 900; margin: 0 0 .4em; }
.tier-card ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.tier-card .pending { color: var(--muted); font-style: italic; margin: 0; }

/* Real photos */
.real-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.real-item {
  position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
  background: repeating-linear-gradient(135deg, var(--surface) 0 14px, var(--bg) 14px 28px);
  border: 1.5px dashed var(--line);
}
.real-item.real-wide { grid-column: span 2; aspect-ratio: auto; }
.real-item::before {
  content: "Ảnh thật sắp cập nhật"; position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--muted); font-weight: 700; font-size: .95rem;
}
.real-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.real-item:has(img) { border-style: solid; }
.real-item figcaption {
  position: absolute; left: 12px; bottom: 12px; padding: 5px 12px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-size: .8rem; font-weight: 800;
}

/* Quote form */
.quote-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 760px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.quote-form label { display: grid; gap: 6px; font-weight: 800; font-size: .85rem; }
.quote-form .full { grid-column: 1 / -1; }
.quote-form input, .quote-form select, .quote-form textarea {
  font: inherit; font-weight: 500; padding: 11px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--raised); color: var(--ink);
}
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.quote-status { color: var(--muted); margin: 0; min-height: 1.5em; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; max-width: 760px; }
.faq summary { font-weight: 800; cursor: pointer; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

.footer { text-align: center; color: var(--muted); padding: 40px 20px; border-top: 1px solid var(--line); font-size: .9rem; }

/* canvases have a 1600px intrinsic width; keep them from widening grid tracks */
.hero > *, .studio-grid > *, .sample-grid > *, .tier-cards > *, main > section.perks > * { min-width: 0; }

@media (max-width: 900px) {
  .studio-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "stage" "controls" "summary"; grid-template-rows: none; }
  .summary .control-actions { grid-template-columns: minmax(0, 1fr); }
  .hero, .sample-grid, .tier-cards, main > section.perks { grid-template-columns: minmax(0, 1fr); }
  .real-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  main > section { padding: 52px 16px; }
  .topbar { padding: 12px 16px; }
  .topbar nav a:not(.nav-cta) { display: none; }
  .quote-form { grid-template-columns: 1fr; padding: 18px; }
}

/* ================= OASC additions ================= */
body { overflow-x: hidden; }
img { max-width: 100%; }

/* Logo wordmark: fat yellow letters with a black drop, like the fanpage cover */
.brand.logo {
  font-size: 1.45rem; font-weight: 900; letter-spacing: .04em; color: var(--accent);
  text-shadow: 3px 3px 0 #000, 3px 3px 0 #000; -webkit-text-stroke: 1px #000;
  display: inline-flex; align-items: baseline; gap: 8px;
}
.brand.logo small { font-size: .62rem; letter-spacing: .14em; color: var(--muted); -webkit-text-stroke: 0; text-shadow: none; font-weight: 700; }
.topbar nav a[aria-current="page"] { color: var(--ink); }

/* Hero with real photos */
.hero-photos { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; align-items: end; }
.hero-photos img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--radius); display: block; }
.hero-photos img:nth-child(2) { transform: translateY(-28px); }
.hero-photos img:nth-child(3) { transform: translateY(-8px); }
.hero h1 .hl { color: var(--accent); }

/* Proof strip */
main > section.proof { padding-top: 8px; padding-bottom: 8px; }
.proof ul { list-style: none; margin: 0; padding: 18px 22px; display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof li { color: var(--muted); font-size: .92rem; }
.proof strong { color: var(--ink); font-weight: 900; font-size: 1.1rem; margin-right: 4px; }

/* Gallery */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filters button {
  font: inherit; font-size: .85rem; font-weight: 700; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
}
.filters button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.work-grid { columns: 4 220px; column-gap: 12px; }
.work { break-inside: avoid; margin: 0 0 12px; position: relative; }
.work[hidden] { display: none; }
.work button { display: block; width: 100%; padding: 0; border: 0; background: var(--surface); border-radius: var(--radius); overflow: hidden; cursor: zoom-in; position: relative; }
.work img { display: block; width: 100%; height: auto; transition: transform .25s ease; }
.work button:hover img { transform: scale(1.03); }
.work figcaption { font-size: .8rem; color: var(--muted); padding: 6px 2px 0; }
.play {
  position: absolute; right: 10px; top: 10px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: .85rem;
}
.more { margin-top: 10px; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; color: var(--ink); }
.lightbox::backdrop { background: rgba(0, 0, 0, .92); }
.lb-stage { position: absolute; inset: 56px 56px 120px; display: grid; place-items: center; pointer-events: none; }
.lb-stage img, .lb-stage video { max-width: 100%; max-height: calc(100vh - 176px); max-height: calc(100dvh - 176px); min-height: 0; object-fit: contain; border-radius: 8px; pointer-events: auto; }
.lb-cap { position: absolute; left: 0; right: 0; bottom: 74px; text-align: center; margin: 0; color: var(--muted); font-size: .9rem; padding: 0 16px; }
.lb-cta { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); white-space: nowrap; }
.lightbox button.lb-close, .lightbox button.lb-prev, .lightbox button.lb-next {
  position: absolute; border: 0; background: rgba(255,255,255,.1); color: #fff; cursor: pointer;
  width: 44px; height: 44px; border-radius: 50%; font-size: 1.4rem; line-height: 1;
}
.lb-close { top: 10px; right: 10px; }
.lb-prev { left: 8px; top: 50%; }
.lb-next { right: 8px; top: 50%; }

/* Three lines of business */
.lines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.line-card { position: relative; display: block; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .15s ease; }
.line-card:hover { border-color: var(--accent); }
.line-card img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.line-card div { padding: 18px 20px 22px; }
.line-card p { color: var(--muted); margin: 0 0 10px; }
.line-card .go { color: var(--accent); font-weight: 800; }
.line-card .price { font-weight: 900; color: var(--ink); }

/* Steps (shared) */
.steps ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps li p { color: var(--muted); margin: 0; }
.step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 900; }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.reviews blockquote { margin: 0; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 20px 22px; }
.reviews blockquote p { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.reviews cite { color: var(--muted); font-style: normal; font-size: .88rem; }

/* Decor tool bits */
.perk-tags { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.perk-tags li { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .85rem; font-weight: 600; color: var(--muted); }
main > section.perks.two { grid-template-columns: 1fr 1fr; }
.view-toggle { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 12px; }
.view-toggle button { font: inherit; font-size: .88rem; font-weight: 700; border: 0; background: transparent; padding: 7px 14px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.view-toggle button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
.count-chips { display: grid; grid-template-columns: repeat(9, 1fr); gap: 5px; }
.count-chips button { aspect-ratio: 1; min-width: 0; border-radius: 10px; border: 1px solid var(--line); background: var(--raised); color: var(--ink); font: inherit; font-weight: 800; cursor: pointer; }
.count-chips button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.price-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.price-cards article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.price-cards article.featured { border: 2px solid var(--accent); }
.price-cards .amount { font-size: 1.5rem; font-weight: 900; margin-bottom: .4em; }
.price-cards article p:last-child { color: var(--muted); margin: 0; }
.spec { color: var(--muted); margin-top: 18px; }
.samples-mini { margin-top: 28px; }
.samples-mini h3 { color: var(--muted); font-size: .9rem; text-transform: uppercase; letter-spacing: .1em; }

/* B2B */
.usecases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.usecase { display: grid; grid-template-columns: 140px 1fr; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.usecase img { width: 100%; height: 100%; object-fit: cover; min-height: 170px; }
.usecase div { padding: 18px 18px 18px 0; }
.usecase p { color: var(--muted); margin: 0; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; max-width: 860px; }
.checks li { padding-left: 28px; position: relative; color: var(--muted); }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 900; }
.checks strong { color: var(--ink); }

/* Footer + floating contact */
.footer { text-align: left; }
.footer .cols { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.footer h3 { color: var(--ink); font-size: .95rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--accent); }
.fab { position: fixed; right: 16px; bottom: 16px; z-index: 20; display: flex; gap: 8px; }
.fab a { box-shadow: var(--shadow); }
.fab .btn-ghost { background: var(--bg); }

.lines > *, .reviews > *, .usecases > *, .price-cards > * { min-width: 0; }
@media (max-width: 900px) {
  .lines, .reviews, .usecases, .price-cards, .steps ol, main > section.perks.two { grid-template-columns: minmax(0, 1fr); }
  .footer .cols { grid-template-columns: 1fr; }
  .hero-photos img:nth-child(2) { transform: none; }
  .hero-photos img:nth-child(3) { transform: none; }
}
@media (max-width: 560px) {
  .work-grid { columns: 2; column-gap: 8px; }
  .work { margin-bottom: 8px; }
  .checks { grid-template-columns: 1fr; }
  .usecase { grid-template-columns: 110px 1fr; }
  .lb-stage { inset: 56px 8px 130px; }
  .lb-stage img, .lb-stage video { max-height: calc(100dvh - 186px); }
  .lb-prev, .lb-next { top: auto !important; bottom: 70px; }
  .fab .btn-ghost { display: none; }
  .count-chips { grid-template-columns: repeat(5, 1fr); }
  .brand.logo small { display: none; }
}
@media (max-width: 560px) {
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-left: -16px; margin-right: -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .filters button { white-space: nowrap; flex: none; }
}
.credits { color: var(--muted); font-size: .8rem; margin-top: 14px; }
