/* Roboworld · PuduBot 2 – đề xuất giải pháp xưởng đồ chơi */
:root {
  color-scheme: light;
  --red: #BF3D2A;
  --red-dark: #9C2F20;
  --red-soft: #FBEDEA;
  --red-line: #F1CFC8;
  --blue: #2F6FB3;
  --blue-soft: #EAF1F9;
  --green: #1E7F55;
  --green-soft: #E8F5EE;
  --amber: #D9921F;
  --ink: #16191D;
  --ink-2: #3A4049;
  --muted: #6A727D;
  --line: #E5E7EB;
  --bg: #FFFFFF;
  --bg-alt: #F7F8FA;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);
  --font: "Be Vietnam Pro", "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { height: 40px; width: auto; }
.brand span { font-size: 13px; color: var(--muted); border-left: 1px solid var(--line); padding-left: 12px; line-height: 1.3; }
.nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  color: var(--ink-2); font-size: 14px; font-weight: 500; white-space: nowrap;
  padding: 8px 12px; border-radius: 999px;
}
.nav a:hover, .nav a.active { background: var(--red-soft); color: var(--red); text-decoration: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 15px/1 var(--font); padding: 14px 22px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); text-decoration: none; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--red); color: var(--red); text-decoration: none; }
.btn-sm { padding: 9px 14px; font-size: 14px; }

/* ---------- hero ---------- */
.hero { padding: 56px 0 72px; background: linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--red);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--red); border-radius: 2px; }
.hero h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; margin: 16px 0 18px; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero .lead { font-size: 18px; color: var(--ink-2); max-width: 560px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 36px; }
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 600px; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.chip b { display: block; font-size: 22px; font-weight: 700; }
.chip span { font-size: 13px; color: var(--muted); line-height: 1.35; display: block; }
.hero-visual { position: relative; display: grid; place-items: center; }
.hero-visual::before {
  content: ""; position: absolute; width: 86%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, var(--red-soft) 70%, transparent 71%);
}
.hero-visual img { position: relative; width: auto; max-width: 100%; max-height: 500px; }
.hero-tag {
  position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 10px 14px; font-size: 13px; line-height: 1.35;
}
.hero-tag b { display: block; font-size: 14px; }
.hero-tag.t1 { left: 0; top: 18%; }
.hero-tag.t2 { right: 0; bottom: 16%; }

/* ---------- sections ---------- */
section { padding: 88px 0; }
section.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.sec-head { max-width: 760px; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; margin: 12px 0 14px; }
.sec-head p { color: var(--ink-2); font-size: 17px; }
.sec-num { color: var(--red); }

.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.card p, .card li { color: var(--ink-2); font-size: 15px; }
.card ul { margin: 0; padding-left: 18px; }
.card li + li { margin-top: 6px; }
.icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--red-soft); color: var(--red); margin-bottom: 16px;
}
.icon svg { width: 22px; height: 22px; }
.icon.blue { background: var(--blue-soft); color: var(--blue); }
.icon.green { background: var(--green-soft); color: var(--green); }

/* problem */
.problem-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; margin-top: 24px; align-items: start; }
.sketch { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.sketch img { border-radius: 10px; width: 100%; aspect-ratio: 1; object-fit: cover; }
.sketch figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.fact { background: var(--bg-alt); border-radius: 12px; padding: 14px 16px; }
.fact b { display: block; font-size: 20px; }
.fact span { font-size: 13px; color: var(--muted); }
.compare { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare th { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.compare td:first-child { font-weight: 600; width: 26%; }
.compare .bad { color: var(--ink-2); }
.compare .good { color: var(--green); font-weight: 500; }

/* product */
.product-intro { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; }
.product-shot { background: var(--bg-alt); border-radius: var(--radius); padding: 24px; display: grid; place-items: center; }
.product-shot img { max-height: 520px; width: auto; }
.parts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; margin: 20px 0 0; padding: 0; list-style: none; }
.parts li { font-size: 15px; color: var(--ink-2); padding-left: 18px; position: relative; }
.parts li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.specs { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.specs td { padding: 11px 16px; border-bottom: 1px solid var(--line); }
.specs tr:last-child td { border-bottom: 0; }
.specs td:first-child { color: var(--muted); width: 45%; }
.specs td:last-child { font-weight: 600; }
.specs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }

.features { margin-top: 48px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.feature img { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: var(--bg-alt); }
.feature div { padding: 16px 18px 20px; }
.feature h4 { font-size: 16px; margin-bottom: 6px; }
.feature p { font-size: 14px; color: var(--ink-2); }
.feature .stat { color: var(--red); font-weight: 700; }

.fit { margin-top: 48px; }
.fit-row { display: grid; grid-template-columns: 1fr 32px 1fr auto; gap: 12px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.fit-row:last-child { border-bottom: 0; }
.fit-row .arrow { color: var(--muted); text-align: center; }
.fit-row .need { font-weight: 600; }
.fit-row .have { color: var(--ink-2); }
.badge { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.badge.ok { background: var(--green-soft); color: var(--green); }
.badge.warn { background: #FDF3E1; color: #94600D; }

.accessories { margin-top: 48px; }
.acc { display: flex; gap: 16px; align-items: center; }
.acc img { width: 92px; height: 92px; object-fit: contain; background: var(--bg-alt); border-radius: 12px; padding: 8px; flex-shrink: 0; }
.acc h4 { font-size: 16px; margin-bottom: 4px; }
.acc p { font-size: 14px; color: var(--ink-2); }
.acc .tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--red); margin-top: 6px; }

/* media */
.video-box { border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.video-box video { width: 100%; aspect-ratio: 16/9; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px; }
.gallery button { padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: var(--bg-alt); aspect-ratio: 4/3; }
.gallery button.wide { grid-column: span 2; aspect-ratio: auto; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery button:hover img { transform: scale(1.04); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); }
.lightbox::backdrop { background: rgba(10, 12, 15, .82); }
.lightbox img { border-radius: 12px; max-height: 86vh; width: auto; margin: auto; }
.lightbox form { position: absolute; top: 8px; right: 8px; }
.lightbox button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; font-size: 22px; cursor: pointer; }

/* simulation */
.sim-controls { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 16px; }
.sim-controls label { font-size: 14px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.sim-controls select, .sim-controls input[type=range] { font: inherit; }
.sim-controls select { padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.clock { font-size: 22px; font-weight: 700; margin-left: auto; }
.clock small { font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 6px; }
.sim-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.sim-panel + .sim-panel { margin-top: 16px; }
.sim-title { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.sim-title h3 { font-size: 17px; }
.pill { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.pill.before { background: #F1F2F4; color: var(--ink-2); }
.pill.after { background: var(--red-soft); color: var(--red); }
.sim-scroll { overflow-x: auto; }
.sim-svg { width: 100%; min-width: 640px; height: auto; display: block; }
.swipe-hint { display: none; font-size: 12px; color: var(--muted); margin-top: 4px; }
.sim-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.sim-stat { background: var(--bg-alt); border-radius: 10px; padding: 10px 14px; }
.sim-stat span { display: block; font-size: 12px; color: var(--muted); }
.sim-stat b { font-size: 18px; }
.sim-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--ink-2); margin-top: 16px; }
.sim-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.saving-banner {
  margin-top: 16px; padding: 16px 20px; border-radius: var(--radius);
  background: var(--green-soft); color: var(--green); font-weight: 600; display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}
.saving-banner b { font-size: 20px; }

/* ROI – bài toán 3 bước */
.field { padding: 10px 0; }
.field label { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--ink-2); }
.field label output { font-weight: 700; color: var(--ink); white-space: nowrap; }
.field input[type=range] { width: 100%; accent-color: var(--red); margin-top: 6px; }
.field small { font-size: 12px; color: var(--muted); display: block; }
.field small.money { color: var(--ink-2); font-weight: 600; margin-top: 4px; }
.field input[type=number] {
  width: 100%; margin-top: 6px; font: 600 15px var(--font); padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 8px;
}
.quick { padding: 12px 24px; }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; }
.more { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.more summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--red); padding: 4px 0; }
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; margin-top: 4px; }

.step-card { margin-top: 20px; }
.step-label { display: flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 700; margin-bottom: 18px; }
.step-label span {
  background: var(--red); color: #fff; font-size: 13px; font-weight: 700;
  padding: 4px 12px; border-radius: 999px; flex-shrink: 0;
}
.trip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.trip { border-radius: 12px; padding: 18px 20px; background: var(--bg-alt); }
.trip.after { background: var(--red-soft); }
.trip h4 { font-size: 15px; margin-bottom: 10px; }
.flow { list-style: none; margin: 0; padding: 0; }
.flow li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 15px; color: var(--ink-2); }
.trip.after .flow li { border-bottom-color: var(--red-line); }
.flow li > b { color: var(--ink); white-space: nowrap; }
.trip-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; font-weight: 600; }
.trip-total b { font-size: 26px; font-weight: 800; }
.trip.after .trip-total b { color: var(--red); }
.step-result { margin-top: 16px; font-size: 16px; color: var(--ink-2); }
.step-result b { color: var(--green); }

.day-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.day-box { background: var(--bg-alt); border-radius: 12px; padding: 16px; }
.day-box span { display: block; font-size: 13px; color: var(--muted); }
.day-box b { display: block; font-size: 26px; font-weight: 800; margin: 4px 0 2px; }
.day-box small { font-size: 13px; color: var(--ink-2); }
.day-box.hl { background: var(--green-soft); }
.day-box.hl b { color: var(--green); }

.step-intro { color: var(--ink-2); margin-bottom: 14px; }
.cap-legend { display: flex; gap: 20px; font-size: 13px; color: var(--ink-2); margin-bottom: 8px; flex-wrap: wrap; }
.cap-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.cap-row { display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: center; margin: 10px 0; }
.cap-name { font-size: 14px; font-weight: 600; }
.cap-track { display: flex; gap: 2px; height: 38px; }
.seg {
  display: flex; align-items: center; padding: 0 10px; font-size: 13px; font-weight: 700;
  white-space: nowrap; overflow: hidden; transition: flex-basis .3s; min-width: 4px;
}
.seg.work { background: var(--blue); color: #fff; border-radius: 4px 0 0 4px; }
.seg.move { background: var(--amber); color: var(--ink); border-radius: 0 4px 4px 0; }
.cap-big { display: flex; align-items: center; gap: 18px; margin-top: 18px; padding: 16px 20px; background: var(--green-soft); border-radius: 12px; }
.cap-big > b { font-size: 44px; font-weight: 800; color: var(--green); line-height: 1; }
.cap-big strong { display: block; font-size: 17px; color: var(--green); }
.cap-big span { font-size: 14px; color: var(--ink-2); }

dl.cost { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 12px 0 0; font-size: 15px; }
dl.cost dt { color: var(--muted); }
dl.cost dd { margin: 0; font-weight: 700; text-align: right; }
.note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.cap-ok { color: var(--green); font-weight: 600; }
.cap-warn { color: #94600D; font-weight: 600; }

/* price */
.price { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: start; }
.price-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.price-table th, .price-table td { padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: left; }
.price-table th { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--bg-alt); }
.price-table td.r, .price-table th.r { text-align: right; white-space: nowrap; }
.price-table .item { display: flex; gap: 14px; align-items: center; }
.price-table .item img { width: 56px; height: 56px; object-fit: contain; background: var(--bg-alt); border-radius: 10px; padding: 4px; }
.price-table .item small { display: block; color: var(--muted); font-size: 13px; }
.price-table tfoot td { font-weight: 800; font-size: 18px; border-bottom: 0; }
.price-table tfoot td.r { color: var(--red); font-size: 22px; }

/* demo */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 22px 22px; }
.step::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  display: block; font-size: 28px; font-weight: 800; color: var(--red); line-height: 1; margin-bottom: 12px;
}
.step h4 { font-size: 16px; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--ink-2); }
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin-top: 8px; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.check input { accent-color: var(--red); width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; }
.check b { display: block; font-size: 15px; }
.check span { font-size: 13px; color: var(--ink-2); }
.check:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.progress-line { font-size: 14px; color: var(--ink-2); margin-top: 12px; }
.warn-box { margin-top: 24px; background: #FDF3E1; border: 1px solid #F3DDB0; border-radius: var(--radius); padding: 18px 20px; color: #6B4A0F; font-size: 15px; }
.warn-box b { color: #4A3208; }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; }
.person { background: var(--red); color: #fff; border-radius: var(--radius); padding: 28px; }
.person img { height: 52px; width: auto; margin-bottom: 20px; }
.person h3 { font-size: 24px; }
.person p { opacity: .9; margin-top: 4px; }
.person a { color: #fff; display: flex; gap: 10px; align-items: center; margin-top: 14px; font-weight: 600; font-size: 17px; }
.person a svg { width: 20px; height: 20px; flex-shrink: 0; }
.branches { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
@media (max-width: 560px) { .branches { grid-template-columns: 1fr; } }
.branches h4 { font-size: 15px; color: var(--red); margin-bottom: 2px; }
.branches p { font-size: 15px; color: var(--ink-2); }

footer { padding: 28px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .g4, .gallery { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .day-grid { grid-template-columns: repeat(2, 1fr); }
  .more-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  section { padding: 64px 0; }
  .hero .wrap, .problem-layout, .product-intro, .specs-grid, .price, .contact { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-visual img { max-height: 340px; }
  .g3, .g2 { grid-template-columns: 1fr; }
  .chips { grid-template-columns: repeat(2, 1fr); }
  .quick-grid, .trip-grid { grid-template-columns: 1fr; }
  .sim-stats { grid-template-columns: repeat(2, 1fr); }
  .checklist { grid-template-columns: 1fr; }
  .brand span { display: none; }
}
@media (max-width: 560px) {
  .g4, .gallery, .steps { grid-template-columns: 1fr; }
  .gallery button.wide { grid-column: auto; aspect-ratio: 4/3; }
  .day-grid, .more-grid { grid-template-columns: 1fr; }
  .cap-row { grid-template-columns: 1fr; gap: 4px; }
  .cap-big { flex-direction: column; align-items: flex-start; gap: 8px; }
  .quick { padding: 12px 16px; }
  .facts { grid-template-columns: 1fr; }
  .fit-row { grid-template-columns: 1fr; gap: 4px; }
  .fit-row .arrow { display: none; }
  .hero-tag { display: none; }
  .hero { padding-top: 32px; }
  .hero-visual img { max-height: 240px; }
  .swipe-hint { display: block; }
  .parts { grid-template-columns: 1fr; }
  .clock { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
