/* ============================================================
   HIGHVIEW TRADING SDN. BHD. — "Concrete Yard" system
   Light edition: pale concrete, ink, deep-teal signals.
   Big grotesk type, spec tables, zero stock-photo gloss —
   image slots are reserved for the client's own goods photos.
   ============================================================ */

:root {
  --bg: #f1f3ef;
  --panel: #ffffff;
  --panel-2: #e7eae3;
  --ink: #141a20;
  --muted: #57616c;
  --dim: #8b95a1;
  --line: rgba(20, 26, 32, .15);
  --sig: #C2410C;
  --sig-ink: #ffffff;
  --sig-dim: rgba(11, 122, 103, .1);
  --amber: #b25e00;
  --red: #c0392b;
  --dark: #141a20;
  --font-grot: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-grot);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* faint yard grid */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(20,26,32,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,26,32,.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(#000 0%, transparent 45%);
}

header.sys, main, footer.sys { position: relative; z-index: 1; }
::selection { background: var(--sig); color: #fff; }
a { color: inherit; }
.wrap { width: min(1200px, 92vw); margin: 0 auto; }

/* ---------- system bar ---------- */
.sysbar {
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em;
  color: var(--muted); background: var(--panel);
}
.sysbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 9px 0; flex-wrap: wrap; }
.live { display: inline-flex; align-items: center; gap: 8px; color: var(--sig); font-weight: 700; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--sig); animation: pl 1.8s infinite; }
@keyframes pl { 0%,100% { box-shadow: 0 0 0 0 rgba(194,65,12,.4);} 50% { box-shadow: 0 0 0 7px rgba(194,65,12,0);} }
.sysbar a { color: var(--ink); text-decoration: none; border-bottom: 1px dotted var(--dim); }

/* ---------- header ---------- */
header.sys { position: sticky; top: 0; z-index: 50; background: rgba(20,26,32,.96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 2px solid var(--sig); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; }
.wordmark { text-decoration: none; line-height: 1; display: flex; align-items: center; gap: 12px; }
.wordmark .hv {
  font-weight: 900; font-size: 22px; letter-spacing: .02em; color: #fff;
  background: var(--sig); padding: 6px 12px; border-radius: 4px; position: relative;
}
.wordmark .hv::after { content: ""; position: absolute; right: -3px; top: -3px; width: 9px; height: 9px; background: #fff; border-radius: 50%; border: 2px solid var(--dark); }
.wordmark small {
    font-family: var(--font-mono);
    font-size: 16px;
    letter-spacing: 0.20em;
    color: rgba(255, 255, 255, .6);
    display: block;
}
nav.main { display: flex; gap: 2px; }
nav.main a {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .14em;
  text-decoration: none; color: rgba(255,255,255,.65); padding: 10px 14px; border-radius: 6px;
  border: 1px solid transparent;
}
nav.main a:hover { color: #fff; border-color: rgba(255,255,255,.3); }
nav.main a.active { color: #fff; background: var(--sig); }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 700; letter-spacing: .1em;
  background: var(--sig); color: var(--sig-ink); padding: 13px 24px; border-radius: 0;
  text-decoration: none; border: 1px solid var(--sig); cursor: pointer;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: transform .16s ease, box-shadow .16s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -12px rgba(194,65,12,.6); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; box-shadow: none; }
.btn.small { padding: 10px 18px; font-size: 12px; }
.burger { display: none; background: none; border: 1px solid rgba(255,255,255,.3); color: #fff; border-radius: 6px; padding: 8px 12px; font-size: 17px; cursor: pointer; }

/* language toggle */
.lang-toggle {
  font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: .12em;
  background: transparent; color: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.3);
  border-radius: 6px; padding: 10px 14px; cursor: pointer; white-space: nowrap;
}
.lang-toggle:hover { color: #fff; border-color: #fff; }
.head-actions { display: flex; align-items: center; gap: 10px; }

/* ---------- ticker (dark band) ---------- */
.ticker { background: var(--dark); overflow: hidden; }
.ticker .track {
  display: inline-flex; white-space: nowrap; padding: 10px 0;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .18em; color: rgba(255,255,255,.65);
  animation: tick 30s linear infinite;
}
.ticker .track b { color: var(--sig-ink); background: var(--sig); padding: 1px 8px; border-radius: 3px; font-weight: 700; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- hero ---------- */
.hero { padding: 72px 0 36px; }
.kick { font-family: var(--font-mono); font-size: 12px; letter-spacing: .3em; color: var(--sig); margin-bottom: 20px; display: flex; align-items: center; gap: 12px; font-weight: 700; }
.kick::before { content: ""; width: 44px; height: 2px; background: var(--sig); }
h1.mega {
  font-size: clamp(46px, 7.5vw, 104px); font-weight: 900; line-height: .98;
  letter-spacing: -.02em; text-transform: uppercase; max-width: 12em;
}
h1.mega .out {
    color: #C2410C;
}
h1.mega .sig { color: var(--sig); }
.sub { color: var(--muted); font-size: 18px; margin: 24px 0 30px; }
.sub strong { color: var(--ink); }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* image slots — reserved for client goods photos */
.img-slot {
  border: 1.5px dashed rgba(194,65,12,.55); border-radius: 12px;
  background:
    repeating-linear-gradient(-45deg, transparent 0 14px, rgba(194,65,12,.06) 14px 15px),
    var(--panel);
  display: grid; place-items: center; text-align: center;
  min-height: 300px; padding: 30px;
}
.img-slot span {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .22em;
  color: var(--sig); border: 1px solid rgba(194,65,12,.5); border-radius: 6px;
  padding: 12px 20px; background: rgba(255,255,255,.8); font-weight: 700;
}
.img-slot.wide { min-height: 360px; }
.img-slot.low { min-height: 220px; }

/* real photos (client goods imagery) */
.photo-frame {
  border-radius: 12px; overflow: hidden; border: 1px solid var(--line);
  border-top: 8px solid var(--sig);
  background: var(--panel); box-shadow: 0 20px 45px -30px rgba(20,26,32,.35);
}
.photo-frame img { width: 100%; height: 500px; object-fit: cover; display: block; filter: saturate(.85) contrast(1.04); }
.photo-frame.low img { height: 500px; }
.photo-frame.band img { height: 580px; }
.photo-frame img:hover { transform: scale(1.015); transition: transform .5s ease; }
.photo-frame figcaption {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .18em;
  color: var(--muted); padding: 12px 18px; border-top: 1px solid var(--line);
}

/* status board */
.board {
  margin-top: 50px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px;
  background: var(--dark); color: #fff; overflow: hidden; box-shadow: 0 24px 50px -28px rgba(20,26,32,.6);
}
.board-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 22px; border-bottom: 1px solid rgba(255,255,255,.14); background: transparent; color: #fff;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .2em;
}
.board-head .live { color: #FDBA74; }
.board-head .pulse { background: #FDBA74; animation-name: plw; }
@keyframes plw { 0%,100% { box-shadow: 0 0 0 0 rgba(253,186,116,.5);} 50% { box-shadow: 0 0 0 7px rgba(253,186,116,0);} }
.lanes { display: grid; grid-template-columns: repeat(3, 1fr); }
.lane { padding: 28px 26px; border-left: 1px solid rgba(255,255,255,.14); }
.lane:first-child { border-left: none; }
.lane .code { font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; color: rgba(255,255,255,.55); display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-weight: 700; }
.lane h3 { font-size: 22px; font-weight: 800; text-transform: uppercase; margin-bottom: 10px; }
.lane p { color: rgba(255,255,255,.72); font-size: 14.5px; }
.lane ul { list-style: none; margin-top: 14px; border-top: 1px dashed rgba(255,255,255,.22); padding-top: 12px; }
.lane ul li { font-family: var(--font-mono); font-size: 12.5px; color: #fff; padding: 3px 0 3px 20px; position: relative; }
.lane ul li::before { content: "▪"; position: absolute; left: 2px; color: #FDBA74; }
.lane .stat { margin-top: 14px; font-family: var(--font-mono); font-size: 12px; color: #FDBA74; font-weight: 700; }

/* ---------- sections ---------- */
section.block { padding: 68px 0; }
.sec-tag { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .24em; color: var(--sig); margin-bottom: 14px; display: block; font-weight: 700; border-left: 8px solid var(--sig); padding-left: 14px; }
h2.head { font-size: clamp(32px, 4.4vw, 56px); font-weight: 900; text-transform: uppercase; line-height: 1; letter-spacing: -.01em; }
h2.head .out {
    color: #C2410C;
}
.sec-sub { color: var(--muted); max-width: 600px; margin-top: 16px; font-size: 17px; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 26px; flex-wrap: wrap; margin-bottom: 38px; }

/* spec rows */
.spec { border-top: 2px solid var(--ink); }
.spec-row {
    display: grid;
    grid-template-columns: 90px 1fr 1.4fr auto;
    gap: 26px;
    align-items: start;
    padding: 28px 30px;
    border-bottom: 1px solid var(--line);
    background: var(--panel);
}
.spec-row:first-child { border-top: none; }
.spec-row .idx { font-family: var(--font-mono); font-size: 13px; color: #fff; background: var(--sig); border-radius: 5px; text-align: center; padding: 5px 0; font-weight: 700; letter-spacing: .06em; }
.spec-row h3 { font-size: 22px; font-weight: 800; text-transform: uppercase; }
.spec-row p { color: var(--muted); font-size: 15px; }
.spec-row .go { font-family: var(--font-mono); color: var(--sig); font-size: 20px; font-weight: 700; }

/* data table */
table.data { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
table.data th {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; text-align: left;
  color: #fff; background: var(--sig); padding: 13px 16px; text-transform: uppercase;
}
table.data td { padding: 17px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data tr:last-child td { border-bottom: none; }
table.data tr:hover td { background: var(--sig-dim); }
table.data td.item { font-weight: 800; text-transform: uppercase; font-size: 15.5px; }
table.data td.code { font-family: var(--font-mono); font-size: 12.5px; color: var(--sig); white-space: nowrap; font-weight: 700; }
.tag {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; font-weight: 700;
  padding: 5px 12px; border-radius: 999px; border: 1.5px solid; white-space: nowrap; background: #fff;
}
.tag.ok { color: var(--sig); border-color: var(--sig); }
.tag.mid { color: var(--amber); border-color: var(--amber); }
.tag.low { color: var(--muted); border-color: var(--dim); }

/* filter + tabs */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.fbtn {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; font-weight: 700;
  background: var(--panel); color: var(--muted); border: 1px solid var(--line);
  padding: 9px 18px; border-radius: 6px; cursor: pointer;
}
.fbtn.on { color: #fff; background: var(--ink); border-color: var(--ink); }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.tab {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .1em; font-weight: 700;
  padding: 12px 22px; border-radius: 6px; cursor: pointer;
  background: var(--panel); color: var(--muted); border: 1px solid var(--line);
}
.tab.on { background: var(--sig); color: #fff; border-color: var(--sig); }
.tabpane { display: none; }
.tabpane.on { display: block; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px);} to { opacity: 1; transform: none;} }

/* protocol checklist */
.proto { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); }
.proto-row { display: grid; grid-template-columns: 70px 1fr; gap: 22px; padding: 26px 28px; border-bottom: 1px solid var(--line); }
.proto-row:last-child { border-bottom: none; }
.proto-row:nth-child(odd) { background: var(--panel-2); }
.proto-row .box {
  width: 34px; height: 34px; background: var(--sig); color: #fff; border-radius: 6px;
  display: grid; place-items: center; font-weight: 900; font-size: 17px;
}
.proto-row h3 { font-size: 19px; font-weight: 800; text-transform: uppercase; margin-bottom: 6px; }
.proto-row h3 span { font-family: var(--font-mono); font-size: 11px; color: var(--sig); letter-spacing: .2em; display: block; margin-bottom: 4px; font-weight: 700; }
.proto-row p { color: var(--muted); font-size: 15px; }

/* form */
.formbox { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 40px; box-shadow: 0 20px 45px -30px rgba(20,26,32,.35); }
label.fl { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; color: var(--muted); margin: 20px 0 8px; text-transform: uppercase; font-weight: 700; }
input.fl, select.fl, textarea.fl {
  width: 100%; background: transparent; border: none; border-bottom: 2px solid var(--line);
  border-radius: 0; color: var(--ink); padding: 12px 2px; font-size: 17px; font-family: var(--font-grot);
}
input.fl:focus, select.fl:focus, textarea.fl:focus { outline: none; border-bottom-color: var(--sig); box-shadow: none; background: rgba(194,65,12,.05); }
textarea.fl { min-height: 130px; resize: vertical; }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 30px; align-items: start; }
.basecard { border: 1px solid var(--line); border-radius: 12px; padding: 36px 32px; background: var(--ink); color: #fff; }
.basecard h3 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .26em; color: #FDBA74; margin-bottom: 20px; }
.basecard address { font-style: normal; font-size: 18px; line-height: 1.8; }
.basecard .m { margin-top: 24px; border-top: 1px solid rgba(255,255,255,.2); padding-top: 20px; font-family: var(--font-mono); font-size: 12.5px; color: rgba(255,255,255,.75); }
.basecard .m div { margin-bottom: 8px; }
.basecard a { color: #FDBA74; }

/* stat strip */
.coords {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-top: 48px; background: var(--panel);
}
.coords div { padding: 22px; border-left: 1px solid var(--line); }
.coords div:first-child { border-left: none; }
.coords b { font-size: 28px; font-weight: 900; display: block; }
.coords b em { font-style: normal; color: var(--sig); }
.coords span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .18em; color: var(--dim); text-transform: uppercase; font-weight: 700; }

/* footer — light */
footer.sys { border-top: 1px solid var(--line); margin-top: 30px; background: var(--panel); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding: 52px 0 32px; }
.foot-grid h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .26em; color: var(--sig); margin-bottom: 18px; }
.foot-grid p, .foot-grid li { font-size: 14.5px; color: var(--muted); }
.foot-grid ul { list-style: none; }
.foot-grid li { margin-bottom: 10px; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { color: var(--sig); }
.foot-big { font-size: clamp(40px, 7vw, 84px); font-weight: 900; text-transform: uppercase; line-height: .95; color: transparent; -webkit-text-stroke: 1px var(--dim); padding: 34px 0 6px; }
.copy { border-top: 1px solid var(--line); padding: 20px 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: var(--dim); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* split hero (headline left, photo right) */
.hero-split { display: grid; gap: 44px; align-items: center; }
.hero-split .photo-frame img { height: 480px; }
.hero-split .cta-row { margin-bottom: 0; }

/* giant page numeral watermark */
.hero { position: relative; }
.hero[data-num]::after {
  content: attr(data-num);
  position: absolute; right: 0; top: -8px; z-index: -1;
  font-weight: 900; font-size: clamp(56px, 10vw, 130px); line-height: 1;
  letter-spacing: .02em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1.5px rgba(194,65,12,.35);
  pointer-events: none; user-select: none;
}

/* reveal */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } .ticker .track { animation: none; } }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 80px); z-index: 99;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 14px;
  padding: 14px 24px; border-radius: 8px; transition: transform .3s ease; max-width: 90vw;
  font-family: var(--font-mono);
}
.toast.show { transform: translate(-50%, 0); }

@media (max-width: 960px) {
  .lanes { grid-template-columns: 1fr; }
  .lane { border-left: none; border-top: 1px solid rgba(255,255,255,.14); }
  .lane:first-child { border-top: none; }
  .split { grid-template-columns: 1fr; }
  .hero-split { grid-template-columns: 1fr; gap: 28px; }
  .hero-split .photo-frame img { height: 320px; }
  .photo-frame.band img { height: 260px; }
  .coords { grid-template-columns: 1fr 1fr; }
  .coords div:nth-child(3) { border-left: none; }
  .coords div { border-top: 1px solid var(--line); }
  .coords div:nth-child(-n+2) { border-top: none; }
  .spec-row { grid-template-columns: 60px 1fr; }
  .spec-row p { grid-column: 2; }
  .spec-row .go { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  nav.main { display: none; }
  nav.main.open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--dark); flex-direction: column; padding: 12px 4vw 20px;
    border-bottom: 2px solid var(--sig);
  }
  .burger { display: block; }
  .head-actions .btn { display: none; }
  .formbox { padding: 26px 20px; }
}
@media (max-width: 620px) {
  .wordmark small { font-size: 12px; letter-spacing: .14em; white-space: nowrap; }
  .bar { gap: 10px; }
  .f-grid, .foot-grid { grid-template-columns: 1fr; }
  section.block { padding: 50px 0; }
  table.data td:nth-child(3), table.data th:nth-child(3),
  table.data td:nth-child(4), table.data th:nth-child(4) { display: none; }
}
