/* ═══════════════════════════════════════════════════════════
   MIDAS SOLAR — futuristic dark theme
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg: #06080f;
  --bg-2: #0a0e1a;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --stroke: rgba(255, 255, 255, 0.09);
  --stroke-hi: rgba(255, 185, 48, 0.45);
  --text: #e8ecf4;
  --muted: #9aa3b5;
  --gold: #ffb930;
  --gold-2: #ff9f1c;
  --cyan: #22d3ee;
  --grad: linear-gradient(92deg, #ffd166 0%, #ffb930 45%, #22d3ee 120%);
  --font-body: "Be Vietnam Pro", system-ui, sans-serif;
  --font-tech: "Chakra Petch", "Be Vietnam Pro", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 18px;
  --container: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(255, 185, 48, 0.35); }

img, svg, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
b, strong { font-weight: 700; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 860px; }

.txt-gradient {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.txt-gold { color: var(--gold); }
.txt-cyan { color: var(--cyan); }

/* ─── Background FX ─── */
.bg-fx { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.bg-grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, #000 30%, transparent 75%);
}
.bg-orb { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .5; }
.bg-orb--gold {
  width: 560px; height: 560px; top: -180px; right: -120px;
  background: radial-gradient(circle, rgba(255,159,28,.5), transparent 65%);
  animation: drift 14s ease-in-out infinite alternate;
}
.bg-orb--cyan {
  width: 480px; height: 480px; top: 40vh; left: -200px;
  background: radial-gradient(circle, rgba(34,211,238,.32), transparent 65%);
  animation: drift 18s ease-in-out infinite alternate-reverse;
}
@keyframes drift { to { transform: translate(60px, 50px) scale(1.12); } }

/* ─── Glass ─── */
.glass {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-tech); font-weight: 600; font-size: 15px;
  padding: 14px 26px; border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s;
  letter-spacing: .02em;
}
.btn--primary {
  background: linear-gradient(120deg, #ffd166, #ff9f1c);
  color: #221500;
  box-shadow: 0 6px 28px rgba(255, 159, 28, 0.35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 36px rgba(255, 159, 28, 0.5); }
.btn--ghost {
  background: var(--surface); border-color: var(--stroke); color: var(--text);
}
.btn--ghost:hover { border-color: var(--stroke-hi); background: var(--surface-2); transform: translateY(-2px); }
.btn--sm { padding: 10px 18px; font-size: 13.5px; }
.btn--full { width: 100%; }

/* ─── Navbar ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0; transition: background .25s, padding .25s, box-shadow .25s;
}
.nav.is-scrolled {
  padding: 10px 0;
  background: rgba(6, 8, 15, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--stroke);
}
.nav__inner { display: flex; align-items: center; gap: 28px; }
.nav__logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-tech); font-weight: 700; font-size: 20px; letter-spacing: .06em;
}
.nav__logo em { font-style: normal; color: var(--gold); }
.nav__logo-mark { width: 54px; height: 34px; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a {
  font-size: 14.5px; color: var(--muted); font-weight: 500;
  transition: color .18s;
}
.nav__links a:hover { color: var(--text); }
.nav__links .nav__hot { color: var(--gold); font-weight: 600; }
.nav__cta { white-space: nowrap; }
.nav__burger {
  display: none; background: none; border: 0; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 6px; margin-left: auto;
}
.nav__burger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; }

/* ─── Hero ─── */
.hero { position: relative; padding: 168px 0 90px; }
.hero__inner {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
}
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .04em;
  color: var(--muted);
  border: 1px solid var(--stroke); border-radius: 100px;
  padding: 8px 16px; background: var(--surface);
}
.badge__dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 12px var(--gold); animation: pulse 2s infinite;
}
@keyframes pulse { 50% { opacity: .35; } }
.hero__title {
  font-family: var(--font-tech);
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.12; font-weight: 700; margin: 22px 0 20px;
  letter-spacing: -0.01em;
}
.hero__sub { color: var(--muted); font-size: 17px; max-width: 520px; }
.hero__sub strong { color: var(--text); }
.hero__actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero__stats {
  display: flex; gap: 40px; margin-top: 46px; flex-wrap: wrap;
}
.hstat b {
  font-family: var(--font-tech); font-size: 30px; color: var(--text);
  display: block; line-height: 1.1;
}
.hstat span { font-size: 12.5px; color: var(--muted); line-height: 1.4; display: block; margin-top: 4px; }

/* Hero dashboard */
.hero__visual { position: relative; }
.dash { padding: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.dash__head {
  display: flex; align-items: center; gap: 14px; margin-bottom: 18px;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--muted);
}
.dash__live {
  display: inline-flex; align-items: center; gap: 6px;
  color: #4ade80; font-weight: 600; letter-spacing: .1em;
}
.dash__live i {
  width: 7px; height: 7px; border-radius: 50%; background: #4ade80;
  box-shadow: 0 0 10px #4ade80; animation: pulse 1.6s infinite;
}
.dash__title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash__main { display: grid; grid-template-columns: 1fr 1.1fr; gap: 18px; align-items: center; }
.dash__gauge { position: relative; }
.dash__gauge-val {
  position: absolute; inset: auto 0 6px; text-align: center;
}
.dash__gauge-val b { font-family: var(--font-tech); font-size: 32px; display: block; line-height: 1; }
.dash__gauge-val span { font-size: 11px; color: var(--muted); font-family: var(--font-mono); }
.dash__cells { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dcell {
  background: rgba(255,255,255,.03); border: 1px solid var(--stroke);
  border-radius: 12px; padding: 10px 14px;
}
.dcell span { font-size: 11px; color: var(--muted); font-family: var(--font-mono); display: block; }
.dcell b { font-family: var(--font-tech); font-size: 19px; }
.dcell b i { font-style: normal; font-size: 11px; color: var(--muted); }
.dash__spark { margin-top: 16px; }
.dash__spark canvas { width: 100%; height: 90px; }
.dash__spark-label {
  font-family: var(--font-mono); font-size: 10.5px; color: var(--muted);
  margin-top: 8px; text-align: right;
}
.hero__chip {
  position: absolute; padding: 10px 16px; font-family: var(--font-tech);
  font-size: 13.5px; font-weight: 600; border-radius: 100px;
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
  animation: float 5s ease-in-out infinite;
}
.chip-a { top: -18px; right: 8%; animation-delay: 0s; }
.chip-b { bottom: -16px; left: 4%; animation-delay: 2.2s; }
@keyframes float { 50% { transform: translateY(-9px); } }

.hero__scroll {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1.5px solid var(--stroke); border-radius: 100px;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px;
  background: var(--gold); border-radius: 4px; transform: translateX(-50%);
  animation: scrollhint 1.8s infinite;
}
@keyframes scrollhint { 60% { transform: translate(-50%, 14px); opacity: 0; } 100% { opacity: 0; } }

/* ─── Ticker ─── */
.ticker {
  border-block: 1px solid var(--stroke); overflow: hidden;
  background: rgba(255,255,255,.02); padding: 14px 0;
}
.ticker__track {
  display: flex; gap: 34px; align-items: center; white-space: nowrap;
  font-family: var(--font-tech); font-size: 13px; letter-spacing: .14em;
  color: var(--muted); width: max-content;
  animation: ticker 32s linear infinite;
}
.ticker__track i { color: var(--gold); font-style: normal; font-size: 9px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ─── Sections ─── */
.section { padding: 110px 0; position: relative; }
.section__head { max-width: 680px; margin-bottom: 56px; }
.section__head h2 {
  font-family: var(--font-tech); font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.18; font-weight: 700; margin: 14px 0 16px;
}
.section__head p { color: var(--muted); font-size: 16.5px; }
.section__head p b { color: var(--text); }
.kicker {
  font-family: var(--font-mono); font-size: 13px; color: var(--gold);
  letter-spacing: .08em;
}

.grid { display: grid; gap: 22px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

/* ─── Cards ─── */
.card { padding: 30px 26px; transition: transform .25s ease, border-color .25s ease, background .25s; }
.card:hover { transform: translateY(-6px); border-color: var(--stroke-hi); background: var(--surface-2); }
.card__icon {
  width: 52px; height: 52px; display: grid; place-items: center;
  font-size: 24px; border-radius: 14px; margin-bottom: 18px;
  background: linear-gradient(140deg, rgba(255,185,48,.16), rgba(34,211,238,.1));
  border: 1px solid var(--stroke);
}
.card h3 { font-family: var(--font-tech); font-size: 18.5px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14.5px; }

/* ─── Calculator ─── */
.section--calc::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(255,159,28,.08), transparent 70%),
    radial-gradient(ellipse 50% 45% at 10% 80%, rgba(34,211,238,.07), transparent 70%);
}
.calc {
  display: grid; grid-template-columns: 400px 1fr;
  overflow: hidden; box-shadow: 0 40px 100px rgba(0,0,0,.45);
}
.calc__inputs {
  padding: 34px 30px;
  border-right: 1px solid var(--stroke);
  background: rgba(255,255,255,.02);
}
.calc__results { padding: 34px 34px 30px; }
.calc__panel-tag {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em;
  color: var(--gold); margin-bottom: 26px;
}
.calc__panel-tag--r { color: var(--cyan); }

.f-group { margin-top: 22px; }
.f-label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13px; font-weight: 600; color: var(--muted);
  letter-spacing: .02em; margin-bottom: 9px;
}
.f-label-val { font-family: var(--font-tech); color: var(--gold); font-size: 15px; }
.f-input { position: relative; }
.f-input input, .f-input select {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  background: rgba(255,255,255,.05); border: 1px solid var(--stroke);
  color: var(--text); font-family: var(--font-tech); font-size: 17px; font-weight: 600;
  outline: none; transition: border-color .18s, box-shadow .18s;
  appearance: none;
}
.f-input select { font-size: 14.5px; cursor: pointer; }
.f-input input:focus, .f-input select:focus {
  border-color: var(--stroke-hi); box-shadow: 0 0 0 3px rgba(255,185,48,.12);
}
.f-unit {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 12px; color: var(--muted); pointer-events: none;
}
.f-input select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.f-quick { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.f-quick button {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--muted);
  background: rgba(255,255,255,.04); border: 1px solid var(--stroke);
  padding: 5px 11px; border-radius: 100px; cursor: pointer; transition: all .15s;
}
.f-quick button:hover { color: var(--gold); border-color: var(--stroke-hi); }
.f-hint { font-size: 11.5px; color: var(--muted); margin-top: 8px; opacity: .8; }

.seg {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  background: rgba(255,255,255,.04); border: 1px solid var(--stroke);
  padding: 4px; border-radius: 12px;
}
.seg__btn {
  font-family: var(--font-tech); font-size: 13.5px; font-weight: 600;
  padding: 10px 8px; border: 0; border-radius: 9px; cursor: pointer;
  background: transparent; color: var(--muted); transition: all .18s;
}
.seg__btn.is-active {
  background: linear-gradient(120deg, #ffd166, #ff9f1c); color: #221500;
  box-shadow: 0 4px 16px rgba(255,159,28,.3);
}

.sys-pick { display: grid; gap: 10px; }
.sys-opt input { position: absolute; opacity: 0; }
.sys-opt__box {
  border: 1px solid var(--stroke); border-radius: 12px; padding: 13px 16px;
  cursor: pointer; transition: all .18s; background: rgba(255,255,255,.03);
}
.sys-opt__box b { font-family: var(--font-tech); font-size: 15px; display: block; }
.sys-opt__box span { font-size: 12px; color: var(--muted); line-height: 1.5; display: block; margin-top: 3px; }
.sys-opt input:checked + .sys-opt__box {
  border-color: var(--gold); background: rgba(255,185,48,.07);
  box-shadow: 0 0 0 1px var(--gold), 0 8px 24px rgba(255,159,28,.12);
}

input[type="range"] {
  width: 100%; accent-color: var(--gold); height: 32px; cursor: pointer;
}

/* Results */
.res-hero {
  display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center;
  padding: 22px 24px; border-radius: 14px;
  background: linear-gradient(120deg, rgba(255,185,48,.1), rgba(34,211,238,.06));
  border: 1px solid var(--stroke-hi);
}
.res-hero__label { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: .1em; }
.res-hero__val { display: flex; align-items: baseline; gap: 8px; }
.res-hero__val b {
  font-family: var(--font-tech); font-size: 58px; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.res-hero__val span { font-family: var(--font-tech); font-size: 20px; color: var(--muted); }
.res-hero__spec { display: grid; gap: 7px; font-size: 13.5px; }
.res-hero__spec i { color: var(--gold); font-style: normal; margin-right: 8px; font-size: 11px; }

.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.res-cell {
  background: rgba(255,255,255,.03); border: 1px solid var(--stroke);
  border-radius: 12px; padding: 13px 16px;
}
.res-cell span { font-size: 11.5px; color: var(--muted); display: block; margin-bottom: 3px; }
.res-cell b { font-family: var(--font-tech); font-size: 21px; }

.res-chart { margin-top: 18px; padding: 18px; border: 1px solid var(--stroke); border-radius: 14px; background: rgba(255,255,255,.02); }
.res-chart__head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 10.5px; color: var(--muted);
  letter-spacing: .1em; margin-bottom: 12px; flex-wrap: wrap; gap: 8px;
}
.res-chart__legend { display: inline-flex; align-items: center; gap: 8px; letter-spacing: .02em; }
.lg { display: inline-block; width: 14px; height: 4px; border-radius: 2px; }
.lg--gold { background: linear-gradient(90deg, #ffd166, #ff9f1c); }
.lg--line { background: var(--cyan); height: 2px; }
.res-chart canvas { width: 100%; height: 240px; }
.res-chart__note { font-size: 13px; color: var(--muted); margin-top: 12px; text-align: center; }
.res-chart__note b { color: var(--gold); font-family: var(--font-tech); }
#calcCta { margin-top: 20px; }
.res-disclaimer { font-size: 11.5px; color: var(--muted); opacity: .75; margin-top: 12px; line-height: 1.6; }

/* ─── Tech ─── */
.tech { padding: 28px; }
.tech__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.tech__head h3 { font-family: var(--font-tech); font-size: 19px; }
.tech__badge {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em;
  color: var(--gold); border: 1px solid var(--stroke-hi); border-radius: 100px;
  padding: 4px 12px;
}
.spec { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec td { padding: 9px 0; border-bottom: 1px dashed var(--stroke); }
.spec td:first-child { color: var(--muted); }
.spec td:last-child { text-align: right; font-family: var(--font-tech); font-weight: 600; }
.spec tr:last-child td { border-bottom: 0; }

/* ─── Pricing ─── */
.section--pricing::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 55% 45% at 50% 45%, rgba(255,159,28,.07), transparent 70%);
}
.price { padding: 30px 26px; display: flex; flex-direction: column; position: relative; transition: transform .25s, border-color .25s; }
.price:hover { transform: translateY(-6px); border-color: var(--stroke-hi); }
.price--hot { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 24px 60px rgba(255,159,28,.15); }
.price__flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; white-space: nowrap;
  background: linear-gradient(120deg, #ffd166, #ff9f1c); color: #221500; font-weight: 700;
  padding: 5px 14px; border-radius: 100px;
}
.price__name { font-family: var(--font-mono); font-size: 12px; letter-spacing: .18em; color: var(--muted); }
.price__kwp { font-family: var(--font-tech); font-size: 46px; font-weight: 700; line-height: 1.15; margin-top: 8px; }
.price__kwp span { font-size: 18px; color: var(--muted); }
.price__tag { font-family: var(--font-tech); font-size: 20px; color: var(--gold); margin: 4px 0 18px; }
.price ul { flex: 1; display: grid; gap: 9px; margin-bottom: 22px; }
.price li { font-size: 13.5px; color: var(--muted); padding-left: 20px; position: relative; }
.price li::before { content: "◆"; position: absolute; left: 0; top: 1px; color: var(--gold); font-size: 9px; }
.price-note { text-align: center; margin-top: 34px; color: var(--muted); font-size: 14.5px; }
.price-note a { color: var(--gold); border-bottom: 1px dashed var(--stroke-hi); }

/* ─── Steps ─── */
.steps {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px;
  counter-reset: step;
}
.step {
  position: relative; padding: 26px 20px 24px;
  background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--radius);
  transition: border-color .25s, transform .25s;
}
.step:hover { border-color: var(--stroke-hi); transform: translateY(-4px); }
.step__num {
  font-family: var(--font-tech); font-size: 15px; font-weight: 700;
  display: inline-grid; place-items: center;
  width: 42px; height: 42px; border-radius: 12px; margin-bottom: 16px;
  background: linear-gradient(140deg, rgba(255,185,48,.18), rgba(34,211,238,.1));
  border: 1px solid var(--stroke-hi); color: var(--gold);
}
.step h3 { font-family: var(--font-tech); font-size: 16px; margin-bottom: 8px; }
.step p { font-size: 13px; color: var(--muted); }

/* ─── FAQ ─── */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--surface); border: 1px solid var(--stroke);
  border-radius: 14px; overflow: hidden; transition: border-color .2s;
}
.faq details[open] { border-color: var(--stroke-hi); background: var(--surface-2); }
.faq summary {
  cursor: pointer; list-style: none; padding: 19px 52px 19px 22px;
  font-family: var(--font-tech); font-weight: 600; font-size: 16px;
  position: relative; user-select: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%;
  transform: translateY(-50%); font-size: 22px; color: var(--gold);
  transition: transform .25s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--muted); font-size: 14.5px; }
.faq details p em { color: var(--text); font-style: normal; font-weight: 600; }

/* ─── Contact ─── */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; padding: 48px; }
.contact__info h2 { font-family: var(--font-tech); font-size: clamp(28px, 3vw, 38px); line-height: 1.2; margin: 12px 0 14px; }
.contact__info p { color: var(--muted); }
.contact__info p b { color: var(--gold); }
.contact__lines { display: grid; gap: 12px; margin-top: 26px; }
.contact__line { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--muted); }
.contact__line b { color: var(--text); font-family: var(--font-tech); }
.contact__line i { font-style: normal; }
.contact__form .f-group:first-child { margin-top: 0; }
.contact__form .f-input input { font-family: var(--font-body); font-weight: 500; font-size: 15px; }
.contact__form button { margin-top: 24px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ─── Footer ─── */
.footer { border-top: 1px solid var(--stroke); background: rgba(255,255,255,.015); }
.footer__inner {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 36px; padding: 56px 24px 44px;
}
.footer__brand p { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 300px; }
.footer__col { display: grid; gap: 10px; align-content: start; font-size: 14px; color: var(--muted); }
.footer__col b { color: var(--text); font-family: var(--font-tech); margin-bottom: 6px; letter-spacing: .04em; }
.footer__col a:hover { color: var(--gold); }
.footer__bar { border-top: 1px solid var(--stroke); padding: 18px 0; font-size: 12.5px; color: var(--muted); }

/* ─── Projects (homepage cards) ─── */
.proj { overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, border-color .25s; }
.proj:hover { transform: translateY(-6px); border-color: var(--stroke-hi); }
.proj__img {
  position: relative; height: 190px; display: grid; place-items: center;
  border-bottom: 1px solid var(--stroke);
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 28px 28px;
}
.proj__img--a { background-color: rgba(255,159,28,.10); }
.proj__img--b { background-color: rgba(34,211,238,.09); }
.proj__img--c { background-color: rgba(74,222,128,.08); }
.proj__img i { font-size: 64px; font-style: normal; filter: drop-shadow(0 10px 24px rgba(0,0,0,.5)); }
.proj__kwp {
  position: absolute; right: 14px; bottom: 12px;
  font-family: var(--font-tech); font-weight: 700; font-size: 22px;
  color: var(--gold); text-shadow: 0 2px 12px rgba(0,0,0,.6);
}
.proj__tag {
  position: absolute; left: 14px; top: 12px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em;
  background: rgba(6,8,15,.75); border: 1px solid var(--stroke-hi);
  color: var(--gold); border-radius: 100px; padding: 4px 11px;
}
.proj__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.proj__body h3 { font-family: var(--font-tech); font-size: 18px; line-height: 1.35; margin-bottom: 10px; }
.proj__body p { color: var(--muted); font-size: 13.5px; flex: 1; }
.proj__nums { display: flex; gap: 18px; margin: 16px 0; }
.proj__nums div b { font-family: var(--font-tech); font-size: 18px; color: var(--cyan); display: block; }
.proj__nums div span { font-size: 11px; color: var(--muted); }
.proj__link { font-family: var(--font-tech); font-weight: 600; font-size: 14px; color: var(--gold); }
.proj__link:hover { text-decoration: underline; }

/* ─── Article pages ─── */
.art-main { padding: 130px 0 90px; }
.crumb {
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px;
}
.crumb a:hover { color: var(--gold); }
.art-kicker { font-family: var(--font-mono); font-size: 12.5px; color: var(--gold); letter-spacing: .1em; }
.art-title {
  font-family: var(--font-tech); font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2; margin: 14px 0 16px;
}
.art-meta { display: flex; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; margin-bottom: 34px; }
.art-meta b { color: var(--text); }
.art-cover {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--stroke); height: 300px;
  display: grid; place-items: center; margin-bottom: 26px;
  background-image:
    radial-gradient(ellipse 70% 90% at 70% 10%, rgba(255,159,28,.18), transparent 60%),
    radial-gradient(ellipse 60% 80% at 10% 90%, rgba(34,211,238,.14), transparent 60%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: auto, auto, 34px 34px, 34px 34px;
}
.art-cover i { font-size: 110px; font-style: normal; filter: drop-shadow(0 16px 40px rgba(0,0,0,.55)); }
.art-cover span {
  position: absolute; bottom: 14px; right: 18px;
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
}
.art-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 44px;
}
.art-stats .res-cell b { font-size: 23px; }
.prose { max-width: 760px; }
.prose h2 {
  font-family: var(--font-tech); font-size: 25px; margin: 44px 0 14px;
}
.prose h2::before { content: "// "; color: var(--gold); }
.prose p { color: #c6cdda; margin-bottom: 16px; font-size: 16px; }
.prose ul { margin: 0 0 16px; display: grid; gap: 8px; }
.prose li { color: #c6cdda; padding-left: 22px; position: relative; font-size: 15.5px; }
.prose li::before { content: "◆"; position: absolute; left: 0; top: 2px; color: var(--gold); font-size: 10px; }
.prose .spec { max-width: 640px; margin: 6px 0 10px; }
.art-quote {
  border-left: 3px solid var(--gold); border-radius: 0 14px 14px 0;
  background: var(--surface); padding: 22px 26px; margin: 30px 0;
}
.art-quote p { font-size: 17px; font-style: italic; color: var(--text); margin-bottom: 10px; }
.art-quote cite { font-style: normal; font-size: 13.5px; color: var(--muted); }
.art-cta {
  margin-top: 54px; padding: 34px; text-align: center;
  border: 1px solid var(--stroke-hi); border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(255,185,48,.09), rgba(34,211,238,.06));
}
.art-cta h2 { font-family: var(--font-tech); font-size: 26px; margin-bottom: 10px; }
.art-cta p { color: var(--muted); margin-bottom: 22px; }
.art-nav {
  display: flex; justify-content: space-between; gap: 14px; margin-top: 40px;
  padding-top: 26px; border-top: 1px solid var(--stroke); flex-wrap: wrap;
}
.art-nav a { color: var(--gold); font-family: var(--font-tech); font-weight: 600; font-size: 14.5px; }
.art-nav a:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .art-stats { grid-template-columns: 1fr 1fr; }
  .art-cover { height: 210px; }
  .art-cover i { font-size: 72px; }
}

/* ─── Floating contact (Zalo / FB / TikTok / phone) ─── */
.fab {
  position: fixed; right: 18px; bottom: 20px; z-index: 90;
  display: flex; flex-direction: column; gap: 12px; align-items: flex-end;
}
.fab__btn {
  display: flex; align-items: center; gap: 0;
  height: 52px; min-width: 52px; border-radius: 100px;
  padding: 0 13px; color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative; overflow: hidden;
}
.fab__btn svg { width: 26px; height: 26px; flex: 0 0 auto; }
.fab__btn span {
  max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap;
  font-family: var(--font-tech); font-weight: 600; font-size: 14px;
  transition: max-width .3s ease, opacity .25s ease, margin .3s ease;
}
.fab__btn:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,.55); }
.fab__btn:hover span { max-width: 120px; opacity: 1; margin-left: 9px; }
.fab__btn--phone { background: linear-gradient(135deg, #ffd166, #ff9f1c); color: #221500; animation: fab-ring 2.6s ease-in-out infinite; }
.fab__btn--zalo { background: #0068ff; }
.fab__btn--fb { background: #1877f2; }
.fab__btn--tiktok { background: #111; border: 1px solid rgba(255,255,255,.25); }
@keyframes fab-ring {
  0%, 100% { box-shadow: 0 8px 24px rgba(0,0,0,.45), 0 0 0 0 rgba(255,159,28,.45); }
  50% { box-shadow: 0 8px 24px rgba(0,0,0,.45), 0 0 0 12px rgba(255,159,28,0); }
}
@media (max-width: 760px) {
  .fab { right: 12px; bottom: 14px; gap: 10px; }
  .fab__btn { height: 46px; min-width: 46px; padding: 0 10px; }
  .fab__btn svg { width: 23px; height: 23px; }
  .fab__btn:hover span { max-width: 0; opacity: 0; margin-left: 0; }
}

/* ─── Reveal on scroll ─── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ─── Responsive ─── */
@media (max-width: 1060px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .calc { grid-template-columns: 1fr; }
  .calc__inputs { border-right: 0; border-bottom: 1px solid var(--stroke); }
  .hero__inner { grid-template-columns: 1fr; gap: 64px; }
  .hero { padding-top: 140px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav__links.is-open {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0; padding: 18px 24px 24px; gap: 16px;
    background: rgba(6,8,15,.97); border-bottom: 1px solid var(--stroke);
    backdrop-filter: blur(16px);
  }
  .section { padding: 76px 0; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .res-grid { grid-template-columns: 1fr 1fr; }
  .res-hero { grid-template-columns: 1fr; gap: 16px; }
  .contact { grid-template-columns: 1fr; padding: 30px 22px; }
  .f-row { grid-template-columns: 1fr; }
  .dash__main { grid-template-columns: 1fr; }
  .hero__chip { display: none; }
  .hero__stats { gap: 26px; }
  .calc__inputs, .calc__results { padding: 26px 20px; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
}
