/* =========================================================
   Landing page — Công nghệ xử lý rác Nhật Bản (Shiokaze)
   ========================================================= */

:root {
  --ink: #14110f;          /* nền tối "võ đường" */
  --ink-2: #1e1916;
  --ink-3: #2a231f;
  --paper: #faf7f2;
  --sand: #f1e9dc;
  --text: #1d1a17;
  --muted: #6b625a;
  --on-dark: #f5efe7;
  --on-dark-muted: #b9ada1;

  --fire: #ff6a1a;         /* cam lửa — chữ 廃 rực cháy */
  --fire-2: #ffb347;
  --fire-deep: #d94b06;
  --green: #2fbf71;        /* tài nguyên, bền vững */
  --green-deep: #1d8f52;

  --line: rgba(29, 26, 23, .12);
  --line-dark: rgba(245, 239, 231, .14);

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 40px -18px rgba(20, 17, 15, .35);

  --font: "Be Vietnam Pro", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
p { margin: 0 0 1em; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 700 16px/1 var(--font);
  padding: 16px 26px;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--fire-2); outline-offset: 3px; }
.btn--fire {
  color: #fff;
  background: linear-gradient(135deg, var(--fire) 0%, var(--fire-deep) 100%);
  box-shadow: 0 10px 28px -10px rgba(255, 106, 26, .8);
}
.btn--fire:hover { box-shadow: 0 14px 34px -10px rgba(255, 106, 26, .95); }
.btn--ghost { color: var(--on-dark); border-color: rgba(255, 255, 255, .45); background: rgba(0, 0, 0, .2); }
.btn--ghost:hover { border-color: #fff; }
.btn--sm { padding: 11px 18px; font-size: 14px; }
.btn--lg { padding: 20px 36px; font-size: 18px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 20px -14px rgba(20, 17, 15, .45);
  color: var(--text);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__logo { display: block; height: 40px; width: auto; }
.nav__links { display: flex; gap: 28px; }
.nav__links a { text-decoration: none; font-size: 15px; font-weight: 600; color: var(--muted); transition: color .2s; }
.nav__links a:hover { color: #0a4e90; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: flex; align-items: flex-end;
  color: var(--on-dark);
  background: var(--ink);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 15% 40%; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(270deg, rgba(20,17,15,.95) 0%, rgba(20,17,15,.85) 36%, rgba(20,17,15,.25) 58%, rgba(20,17,15,0) 72%),
    linear-gradient(0deg, rgba(20,17,15,.95) 0%, rgba(20,17,15,0) 45%);
}
.hero__content { position: relative; padding: 110px 0 56px; }
.hero__box { margin-left: auto; max-width: 600px; }
.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--fire-2);
  border: 1px solid rgba(255, 179, 71, .45);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 22px;
}
.hero__title {
  font-size: clamp(36px, 4.6vw, 62px);
  font-weight: 900;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.hl-fire {
  background: linear-gradient(90deg, var(--fire-2), var(--fire) 60%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero__lead { font-size: clamp(17px, 1.6vw, 20px); max-width: 560px; margin: 24px 0 32px; color: #e8ded3; }
.hero__lead strong { color: #fff; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__facts {
  list-style: none; padding: 0; margin: 56px 0 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
}
.hero__facts li { background: rgba(20, 17, 15, .72); padding: 18px 20px; }
.hero__facts b { display: block; font-size: 17px; font-weight: 800; color: #fff; }
.hero__facts span { font-size: 14px; color: var(--on-dark-muted); }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section--light { background: var(--paper); }
.section--sand { background: var(--sand); }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--dark p { color: #ddd2c6; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--fire-deep);
  margin-bottom: 14px;
}
.kicker::before { content: ""; width: 28px; height: 3px; background: currentColor; border-radius: 2px; }
.kicker--green { color: var(--green); }
.kicker--fire { color: var(--fire-2); }
.h2 { font-size: clamp(28px, 3.8vw, 46px); font-weight: 900; letter-spacing: -.015em; text-wrap: balance; margin-bottom: 20px; }
.h3 { font-size: clamp(21px, 2.2vw, 26px); font-weight: 800; margin-bottom: 14px; }
.lead { font-size: 19px; color: var(--muted); max-width: 760px; }

/* ---------- Problems ---------- */
.problems { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 44px 0 56px; }
.problem {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px 24px;
  box-shadow: var(--shadow);
}
.problem__num { display: block; font-size: 44px; font-weight: 900; line-height: 1; color: #e8dfd3; margin-bottom: 14px; }
.problem h3 { font-size: 21px; font-weight: 800; margin-bottom: 10px; }
.problem p { color: var(--muted); margin: 0; font-size: 16px; }
.problem--alert { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.problem--alert .problem__num { color: var(--fire); }
.problem--alert p { color: #d9cdc0; }
.problem--alert strong { color: var(--fire-2); }

.pitch {
  border-left: 5px solid var(--fire);
  padding: 6px 0 6px 28px;
  max-width: 860px;
  font-size: 19px;
}
.pitch p:last-child { margin: 0; color: var(--muted); font-size: 17px; }

/* ---------- Technology ---------- */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; margin-bottom: 64px; }
.split__media img { border-radius: var(--radius); box-shadow: 0 30px 60px -25px rgba(0,0,0,.7); aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.split__text p { font-size: 18px; }
.split__text strong { color: #fff; }

.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.flow__item {
  position: relative;
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.flow__item h3 { font-size: 22px; font-weight: 800; margin: 14px 0 6px; }
.flow__to { margin: 0; color: var(--on-dark-muted) !important; }
.flow__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--ink-3); color: var(--green); }
.flow__icon svg { width: 30px; height: 30px; }
.flow__item--star { background: linear-gradient(160deg, #3a1a08 0%, var(--ink-2) 70%); border-color: rgba(255, 106, 26, .55); }
.flow__item--star .flow__icon { background: rgba(255, 106, 26, .18); color: var(--fire); }
.flow__item--star strong { color: var(--fire-2); }
.flow__badge {
  position: absolute; top: -12px; right: 20px;
  background: var(--fire); color: #fff;
  font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}

.oil {
  margin-top: 28px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px;
  background: linear-gradient(135deg, rgba(47,191,113,.12), rgba(47,191,113,.02));
  border: 1px solid rgba(47, 191, 113, .35);
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 44px);
}
.oil__text p { margin: 0; }
.oil__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.oil__points li { position: relative; padding-left: 34px; color: #ddd2c6; }
.oil__points li::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.oil__points b { color: #fff; }

/* ---------- Profile ---------- */
.profile { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.profile__photo img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; object-position: 30% 30%; width: 100%; }
.profile__role { color: var(--fire-deep); font-weight: 700; margin-top: -8px; }
.profile__list { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 14px; }
.profile__list li { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: start; color: var(--muted); }
.profile__list li span {
  display: grid; place-items: center; height: 40px;
  border-radius: 10px;
  background: var(--ink); color: var(--fire-2);
  font-weight: 900; font-size: 15px;
}
.profile__quote {
  margin: 0 0 18px; padding: 18px 22px;
  background: var(--sand);
  border-radius: var(--radius-sm);
  font-style: italic; font-size: 17px;
}
.link { font-weight: 700; color: var(--fire-deep); text-decoration: none; border-bottom: 2px solid rgba(217, 75, 6, .3); }
.link:hover { border-color: var(--fire-deep); }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.steps li { background: #fff; border-radius: var(--radius); padding: 26px 22px; border: 1px solid var(--line); position: relative; }
.steps__n {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--fire); color: #fff; font-weight: 900; font-size: 18px;
  margin-bottom: 14px;
}
.steps h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ---------- Contact ---------- */
.contact { padding-top: 0; }
.contact__banner { position: relative; min-height: 420px; display: flex; align-items: flex-end; overflow: hidden; margin-bottom: 56px; }
.contact__banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.contact__banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--ink) 0%, rgba(20,17,15,.55) 50%, rgba(20,17,15,.2) 100%); }
.contact__banner-text { position: relative; z-index: 1; padding-bottom: 20px; }
.contact__banner-text p { max-width: 640px; font-size: 18px; }

/* ---------- Form ---------- */
.form { display: grid; gap: 22px; max-width: 920px; margin-inline: auto; }
.card {
  margin: 0; min-width: 0;
  background: var(--paper); color: var(--text);
  border: 0; border-radius: var(--radius);
  padding: clamp(22px, 3.5vw, 36px);
}
.card__title {
  float: left; width: 100%;
  display: flex; align-items: center; gap: 12px;
  font-size: 21px; font-weight: 800;
  padding: 0; margin-bottom: 22px;
}
.card__title + * { clear: both; }
.card__title span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--ink); color: var(--fire-2); font-size: 16px; }
.grid { display: grid; gap: 18px 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: grid; gap: 7px; min-width: 0; }
.field--full { grid-column: 1 / -1; margin-top: 4px; }
.field__label { display: block; font-size: 15px; font-weight: 700; color: var(--text); }
.field__label em, .form__foot em { color: var(--fire-deep); font-style: normal; }
.card > .field__label { margin: 6px 0 10px; }
.section--dark .card p, .hint { color: var(--muted); font-size: 15px; margin-top: -8px; }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%;
  font: 500 16px/1.4 var(--font);
  color: var(--text);
  background: #fff;
  border: 1.5px solid #d9cfc3;
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  transition: border-color .15s, box-shadow .15s;
  appearance: none; -webkit-appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%236b625a' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
  padding-right: 40px;
}
textarea { resize: vertical; min-height: 120px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--fire); box-shadow: 0 0 0 4px rgba(255, 106, 26, .18); }
.is-invalid { border-color: #d92d20 !important; box-shadow: 0 0 0 4px rgba(217, 45, 32, .12) !important; }

.combo { display: grid; grid-template-columns: 1fr 140px; gap: 8px; }

.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
.check {
  display: flex; align-items: flex-start; gap: 10px;
  background: #fff;
  border: 1.5px solid #e4dbcf;
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  cursor: pointer;
  font-size: 15.5px;
  transition: border-color .15s, background .15s;
}
.check:hover { border-color: #cbbfb1; }
.check input { width: 19px; height: 19px; margin: 2px 0 0; accent-color: var(--fire); flex: none; }
.check:has(input:checked) { border-color: var(--fire); background: #fff4ec; }
.check--inline { background: transparent; border: 0; padding: 0; }
.check--inline:has(input:checked) { background: transparent; }

/* Thành phần rác */
.mix { position: sticky; top: 76px; z-index: 5; background: var(--paper); padding: 6px 0 14px; margin-bottom: 8px; }
.mix__bar { display: flex; height: 18px; border-radius: 999px; overflow: hidden; background: #e9e1d6; }
.mix__bar span { height: 100%; transition: width .2s ease; }
.mix__total { margin-top: 8px; font-weight: 800; font-size: 15px; }
.mix__total.ok { color: var(--green-deep); }
.mix__total.over { color: #d92d20; }
.mix__total.under { color: var(--muted); }

.comp { display: grid; gap: 4px; margin-bottom: 18px; }
.comp__row {
  display: grid; grid-template-columns: minmax(150px, 230px) 1fr 92px; gap: 16px; align-items: center;
  padding: 10px 0; border-bottom: 1px dashed #e0d6ca;
}
.comp__name { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15.5px; line-height: 1.3; }
.comp__name small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; }
.comp__dot { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.comp__num { position: relative; }
.comp__num input { padding-right: 30px; text-align: right; }
.comp__num::after { content: "%"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; }

input[type="range"] { width: 100%; height: 28px; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--c, var(--fire)) var(--p, 0%), #e4dbcf var(--p, 0%)); }
input[type="range"]::-moz-range-track { height: 8px; border-radius: 999px; background: #e4dbcf; }
input[type="range"]::-moz-range-progress { height: 8px; border-radius: 999px; background: var(--c, var(--fire)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -7px; border-radius: 50%; background: #fff; border: 3px solid var(--c, var(--fire)); box-shadow: 0 2px 6px rgba(0,0,0,.2); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--c, var(--fire)); }
input[type="range"]:focus-visible { outline: 3px solid rgba(255, 106, 26, .35); outline-offset: 2px; border-radius: 999px; }

.form__foot { display: grid; gap: 18px; justify-items: start; padding: 8px 4px 0; }
.form__foot .check--inline span { color: var(--on-dark); }
.notes { margin: 0; padding-left: 20px; color: var(--on-dark-muted); font-size: 15px; }
.notes strong { color: var(--on-dark); }
.form__msg { margin: 0; padding: 16px 18px; border-radius: var(--radius-sm); font-weight: 600; width: 100%; }
.form__msg.err { background: rgba(217, 45, 32, .15); color: #ffb4ab; border: 1px solid rgba(217, 45, 32, .5); }
.form__msg.ok { background: rgba(47, 191, 113, .15); color: #9ff0c3; border: 1px solid rgba(47, 191, 113, .5); }

/* ---------- Footer ---------- */
.footer { background: #0d0b0a; color: var(--on-dark-muted); padding: 48px 0 28px; font-size: 15px; }
.footer__inner { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid var(--line-dark); }
.footer__inner p { margin: 12px 0 0; max-width: 460px; }
.footer .brand--foot { display: inline-block; background: #fff; border-radius: 12px; padding: 10px 16px; }
.footer .brand__logo { height: 44px; }
.footer__partner a { color: var(--fire-2); }
.footer__copy { padding-top: 20px; font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__shade { background: linear-gradient(0deg, rgba(20,17,15,.97) 0%, rgba(20,17,15,.8) 60%, rgba(20,17,15,.3) 100%); }
  .hero__box { margin-left: 0; }
  .nav__links { display: none; }
  .split, .profile, .oil { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .hero { min-height: auto; }
  .hero__bg { object-position: 22% 30%; }
  .hero__shade { background: linear-gradient(0deg, rgba(20,17,15,.97) 0%, rgba(20,17,15,.85) 55%, rgba(20,17,15,.35) 100%); }
  .hero__content { padding: 96px 0 40px; }
  .hero__facts { grid-template-columns: 1fr; margin-top: 40px; }
  .problems, .flow, .steps { grid-template-columns: 1fr; }
  .grid--2, .checks { grid-template-columns: 1fr; }
  .comp__row { grid-template-columns: 1fr 88px; gap: 6px 12px; }
  .comp__row input[type="range"] { grid-column: 1 / -1; grid-row: 2; }
  .contact__banner { min-height: 340px; }
  .mix { top: 66px; }
  .btn--sm { padding: 10px 14px; font-size: 13px; }
  .brand__logo { height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Gửi form (backend PHP) ---------- */
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.btn .spinner { width: 18px; height: 18px; border-radius: 50%; border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form__done {
  display: grid; gap: 10px; justify-items: center; text-align: center;
  background: var(--paper); color: var(--text);
  border-radius: var(--radius); padding: clamp(32px, 6vw, 56px);
  max-width: 920px; margin-inline: auto;
}
.form__done h3 { font-size: 26px; font-weight: 900; }
.form__done p { color: var(--muted) !important; margin: 0; max-width: 560px; }
.form__done .tick { width: 64px; height: 64px; border-radius: 50%; background: var(--green); display: grid; place-items: center; }
