/* Construction Tycoon site — Perth daylight: sand ground, navy ink, safety yellow, hi-vis orange.
   Chunky ink outlines + hard shadows echo the game's site signs and hazard tape. */
:root {
  --sand: #f3e7cf;
  --sand-2: #ead8b3;
  --paper: #fffaf0;
  --ink: #1c2230;
  --ink-2: #3c4456;
  --muted: #5d6474;
  --yellow: #f6b800;
  --yellow-hi: #ffc929;
  --orange: #f26a1b;
  --lawn: #6dbb45;
  --sea: #2b8bd6;
  --line: 3px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --radius: 18px;
  --wrap: 1180px;
  --display: "Archivo Black", "Arial Black", Impact, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: clip;
  background: var(--sand);
  color: var(--ink);
  font: 400 17px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--ink); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; letter-spacing: -0.01em; margin: 0; }
h2 { font-size: clamp(30px, 4vw, 46px); }
h3 { font-size: clamp(26px, 3vw, 34px); }

.kicker {
  display: inline-block;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 14px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  white-space: nowrap;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border: var(--line);
  border-radius: 12px;
  padding: 12px 22px;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
}
.btn:hover { background: var(--yellow-hi); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn-small { padding: 8px 16px; font-size: 15px; border-width: 2px; box-shadow: 3px 3px 0 var(--ink); }
.btn-big { font-size: 19px; padding: 16px 28px; }

/* --- Header --- */
.top { position: sticky; top: 0; z-index: 10; background: rgba(243, 231, 207, 0.92); backdrop-filter: blur(8px); border-bottom: var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 18px; text-decoration: none; text-transform: uppercase; letter-spacing: 0.01em; white-space: nowrap; }
.brand-mark {
  width: 30px; height: 30px; border: var(--line); border-radius: 8px;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 6px, var(--ink) 6px 12px);
}
.top nav { display: flex; align-items: center; gap: 24px; }
.top nav a:not(.btn) { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-2); }
.top nav a:not(.btn):hover { color: var(--orange); }

/* --- Hero --- */
.hero { padding: 64px 0 56px; }
.hero-frame { position: relative; }
.hero-img {
  width: 100%;
  aspect-ratio: 1920 / 942;
  object-fit: cover;
  border: var(--line);
  border-radius: 26px;
  box-shadow: 10px 10px 0 var(--ink);
  background: var(--sand-2);
}
.sign {
  position: absolute;
  left: 34px;
  bottom: -34px;
  width: min(560px, 52%);
  background: var(--yellow);
  border: var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 30px 32px 28px;
}
.bolt { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); opacity: 0.75; }
.bolt.tl { top: 10px; left: 10px; } .bolt.tr { top: 10px; right: 10px; }
.bolt.bl { bottom: 10px; left: 10px; } .bolt.br { bottom: 10px; right: 10px; }
.sign-kicker { margin: 0 0 12px; font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.sign h1 { font-size: clamp(34px, 4.4vw, 56px); margin-bottom: 16px; }
.sign h1 em { font-style: normal; color: var(--paper); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 3px 3px 0 var(--ink); }
.sign-copy { margin: 0 0 22px; font-size: 17px; color: var(--ink-2); max-width: 46ch; }
.sign .btn { background: var(--ink); color: var(--paper); box-shadow: 4px 4px 0 var(--paper); border-color: var(--ink); }
.sign .btn:hover { background: #2a3245; box-shadow: 6px 6px 0 var(--paper); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.cta-note { font-size: 14px; font-weight: 600; color: var(--ink-2); }

.sticker { position: absolute; pointer-events: none; filter: drop-shadow(3px 4px 0 rgba(28, 34, 48, 0.25)); }
.sticker.crane { width: 300px; right: 4%; top: -40px; }

/* --- Hazard tape --- */
.tape-wrap { overflow: hidden; margin-top: 46px; padding: 12px 0; }
.tape {
  height: 26px;
  margin: 0 -2%;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 22px, var(--ink) 22px 44px);
  border-top: var(--line);
  border-bottom: var(--line);
  transform: rotate(-1.2deg);
}

/* --- Stages --- */
.stages { padding: 88px 0 72px; text-align: center; }
.stages h2 { max-width: 30ch; margin: 0 auto; font-size: clamp(28px, 3.6vw, 42px); }
.stage-row { list-style: none; margin: 46px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: stage; }
.stage-row li {
  position: relative;
  background: var(--paper);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 16px 16px;
}
.stage-row li + li::before {
  content: "→";
  position: absolute; left: -17px; top: 42%;
  transform: translateX(-50%);
  font-family: var(--display); font-size: 22px; color: var(--orange);
}
.stage-row img { margin: 0 auto; }
.stage-row span {
  display: inline-block; margin-top: 10px;
  font-family: var(--display); font-size: 17px; text-transform: uppercase;
  background: var(--sand); border: 2px solid var(--ink); border-radius: 999px; padding: 4px 14px;
}
.stage-note { max-width: 62ch; margin: 34px auto 0; color: var(--ink-2); font-size: 18px; }

/* --- Features --- */
.feature { padding: 56px 0; }
.feature-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: center; }
.feature.flip .feature-art { order: 2; }
.feature-art { position: relative; }
.shot { width: 100%; border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); background: var(--sand-2); }
.feature-copy h3 { margin-bottom: 16px; }
.feature-copy p:not(.kicker) { margin: 0; color: var(--ink-2); font-size: 18px; }
.sticker.excavator { width: 150px; left: -40px; bottom: -36px; }
.sticker.tipper { width: 140px; right: -26px; bottom: -40px; }

.tender-card {
  position: absolute;
  right: -22px;
  bottom: -30px;
  width: min(340px, 70%);
  background: #1b1a18;
  color: #f2eee6;
  border: var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 16px 18px 14px;
  font-size: 14px;
}
.tc-title { margin: 0 0 10px; font-weight: 700; font-size: 14px; padding-bottom: 8px; border-bottom: 1px solid #3a3733; }
.tender-card dl { margin: 0; }
.tender-card dl div { display: flex; justify-content: space-between; padding: 3px 0; color: #b9b2a6; }
.tender-card dd { margin: 0; color: #f2eee6; font-variant-numeric: tabular-nums; }
.tender-card dd.gold { color: var(--yellow); }
.tender-card .profit dt, .tender-card .profit dd { color: #7fd18b; font-weight: 700; }
.tc-btn { display: block; margin-top: 12px; text-align: center; background: var(--yellow); color: var(--ink); font-weight: 700; border-radius: 8px; padding: 8px; }

/* --- Rivals --- */
.rivals { margin-top: 48px; padding: 88px 0; background: var(--ink); color: var(--paper); border-top: var(--line); border-bottom: var(--line); }
.rivals .kicker { color: var(--yellow); }
.rivals-copy { max-width: 60ch; color: #c9cdd6; font-size: 18px; margin: 18px 0 34px; }
.flags { list-style: none; padding: 0; margin: 0 0 48px; display: flex; flex-wrap: wrap; gap: 12px; }
.flags li {
  position: relative;
  padding: 8px 18px 8px 34px;
  border: 2px solid var(--paper);
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
}
.flags li::before {
  content: "";
  position: absolute; left: 13px; top: 50%;
  width: 14px; height: 14px;
  transform: translateY(-50%);
  background: var(--c);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.facts div { background: #262d3d; border: 2px solid #3b4458; border-radius: var(--radius); padding: 22px 22px 20px; }
.facts strong { display: block; font-family: var(--display); font-weight: 400; font-size: 44px; color: var(--yellow); line-height: 1; margin-bottom: 8px; }
.facts span { color: #c9cdd6; font-size: 16px; }

/* --- Saves --- */
.saves { padding: 88px 0 40px; }
.saves-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 24px; align-items: stretch; }
.card { position: relative; background: var(--paper); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px 32px; }
.card h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 16px; }
.card h3 { font-size: 24px; margin-bottom: 12px; }
.card p { color: var(--ink-2); margin: 0 0 12px; }
.card p:last-child { margin-bottom: 0; }
.card-warn { background: #fff1c2; padding-right: 120px; }
.for-sale { position: absolute; width: 96px; right: 16px; bottom: 14px; transform: rotate(6deg); }

/* --- FAQ --- */
.faq { padding: 56px 0 96px; }
.faq-wrap { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; align-items: start; }
.faq details { background: var(--paper); border: var(--line); border-radius: 14px; padding: 16px 20px; margin-bottom: 12px; box-shadow: 4px 4px 0 var(--ink); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 22px; color: var(--orange); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); margin: 10px 0 2px; }

/* --- Final CTA + footer --- */
.final { background: var(--yellow); border-top: var(--line); border-bottom: var(--line); padding: 64px 0; }
.final-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.final h2 { max-width: 18ch; }
.final .btn { background: var(--ink); color: var(--paper); box-shadow: 5px 5px 0 var(--paper); }
.final .btn:hover { background: #2a3245; }

.foot { background: var(--ink); color: #aab0bd; padding: 36px 0; }
.credits { font-size: 13px; max-width: 820px; margin: 0 0 8px; }
.credits a { color: #d6dae2; }

/* --- Narrow screens --- */
@media (max-width: 900px) {
  .hero-img { border-radius: 18px; box-shadow: 6px 6px 0 var(--ink); aspect-ratio: 4 / 3; }
  .sign { position: relative; left: auto; bottom: auto; width: auto; margin: -40px 10px 0; padding: 26px 22px 22px; }
  .sticker.crane { display: none; }
  .hero { padding-top: 24px; }
  .stage-row { grid-template-columns: repeat(2, 1fr); gap: 26px 16px; }
  .stage-row li:nth-child(3)::before { display: none; }
  .feature-grid, .saves-grid, .faq-wrap { grid-template-columns: 1fr; gap: 34px; }
  .feature.flip .feature-art { order: 0; }
  .tender-card { position: relative; right: auto; bottom: auto; width: auto; margin: -36px 14px 0; }
  .sticker.excavator { width: 110px; left: -8px; bottom: -28px; }
  .sticker.tipper { width: 100px; right: -6px; bottom: -30px; }
  .facts { grid-template-columns: 1fr; }
  .top nav a:not(.btn) { display: none; }
  .brand { font-size: 14px; gap: 8px; }
  .brand-mark { width: 24px; height: 24px; }
  .tape-wrap { margin-top: 30px; }
}
