/* Cogwind: dieselpunk night harbor. Structure follows the studio sites (skanna.joelroos.studio). */
:root {
  --bg: #0f0c17;
  --bg-2: #161220;
  --ink: #f4ecdf;
  --muted: #b8aebf;
  --faint: #857c90;
  --line: rgba(255, 255, 255, 0.08);
  --steel: #2a2633;
  --steel-2: #1d1a25;
  --rivet: #6f6878;
  --brass: #d9a441;
  --brass-hi: #f3cd74;
  --brass-lo: #94671f;
  --copper: #c06a31;
  --furnace: #ff7a2a;
  --ember: #ffb347;
  --green: #63d47b;
  --head: "Avenir Next Condensed", "DIN Condensed", "Roboto Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  --cut: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { background: var(--bg); scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Night sky: stars, moon, drifting clouds and the furnace glow of the harbor below. */
.sky {
  position: absolute; inset: 0 0 auto; height: 1400px; overflow: hidden; pointer-events: none; z-index: 0;
  background: linear-gradient(180deg, #1c1433 0%, #1a1229 38%, #20131d 62%, var(--bg) 100%);
}
.sky::after { content: ""; position: absolute; inset: auto 0 0; height: 420px; background: linear-gradient(transparent, var(--bg)); }
.stars {
  position: absolute; inset: 0 0 30%;
  background-image:
    radial-gradient(1.2px 1.2px at 20px 30px, #fff, transparent),
    radial-gradient(1px 1px at 120px 90px, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1.4px 1.4px at 200px 40px, rgba(255, 240, 220, 0.9), transparent),
    radial-gradient(1px 1px at 60px 150px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1.2px 1.2px at 170px 170px, rgba(255, 255, 255, 0.7), transparent);
  background-size: 230px 200px;
  mask-image: linear-gradient(#000, transparent);
  -webkit-mask-image: linear-gradient(#000, transparent);
  animation: twinkle 7s ease-in-out infinite alternate;
}
@keyframes twinkle { to { opacity: 0.55; } }
.moon {
  position: absolute; top: 90px; right: 12%; width: 74px; height: 74px; border-radius: 50%;
  background: radial-gradient(circle at 38% 36%, #fff8e8, #e9dcc4 60%, #c9b99f);
  box-shadow: 0 0 60px 20px rgba(230, 220, 255, 0.14), 0 0 160px 60px rgba(180, 160, 255, 0.08);
  opacity: 0.85;
}
.cloud { position: absolute; border-radius: 50%; filter: blur(60px); background: #3a2d55; opacity: 0.55; animation: drift 34s ease-in-out infinite alternate; }
.cloud.c1 { width: 620px; height: 220px; top: 220px; left: -200px; }
.cloud.c2 { width: 520px; height: 200px; top: 520px; right: -180px; background: #43304f; animation-duration: 40s; animation-delay: -10s; }
.cloud.c3 { width: 420px; height: 160px; top: 40px; left: 35%; background: #2e2546; animation-duration: 46s; animation-delay: -20s; opacity: 0.45; }
.glow { position: absolute; left: 50%; top: 640px; width: 900px; height: 600px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 122, 42, 0.32), rgba(255, 122, 42, 0.08) 60%, transparent); }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(70px, 20px) scale(1.06); }
  100% { transform: translate(-40px, 40px) scale(0.96); }
}

/* Riveted steel plates with chamfered corners, like the game's panels. */
.plate {
  position: relative;
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
  background:
    radial-gradient(circle at 12px 12px, var(--rivet) 0 2px, transparent 2.6px),
    radial-gradient(circle at calc(100% - 12px) 12px, var(--rivet) 0 2px, transparent 2.6px),
    radial-gradient(circle at 12px calc(100% - 12px), var(--rivet) 0 2px, transparent 2.6px),
    radial-gradient(circle at calc(100% - 12px) calc(100% - 12px), var(--rivet) 0 2px, transparent 2.6px),
    linear-gradient(180deg, var(--steel), var(--steel-2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.hazard { height: 8px; background: repeating-linear-gradient(-45deg, #e9b52c 0 9px, #1a1720 9px 18px); }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 20; padding: 14px 0; transition: background 0.3s, box-shadow 0.3s; }
.nav.scrolled { background: rgba(15, 12, 23, 0.78); backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px); box-shadow: 0 1px 0 var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font: 800 21px/1 var(--head); text-transform: uppercase; letter-spacing: 0.02em; text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.links { display: flex; gap: 24px; font-size: 14.5px; }
.links a { color: var(--muted); text-decoration: none; padding: 4px 0; border-bottom: 1.5px solid transparent; transition: color 0.2s; }
.links a:hover, .links a[aria-current] { color: var(--ink); border-color: var(--brass); }
.nav .btn { margin-left: auto; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border: 0;
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
  background: linear-gradient(180deg, #ffa04a, #e8601c); color: #fff;
  font: 800 16px/1 var(--head); text-transform: uppercase; letter-spacing: 0.04em;
  text-shadow: 0 1px 0 rgba(120, 40, 0, 0.45);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 230, 190, 0.6), inset 0 -2px 0 rgba(120, 40, 0, 0.35);
  transition: transform 0.2s, filter 0.2s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn.ghost { background: linear-gradient(180deg, var(--brass-hi), var(--brass) 55%, var(--brass-lo)); color: #2b1d06; text-shadow: 0 1px 0 rgba(255, 240, 200, 0.4); box-shadow: inset 0 1px 0 rgba(255, 250, 220, 0.7), inset 0 -2px 0 rgba(80, 50, 10, 0.4); }
.btn svg { width: 16px; height: 16px; flex: none; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; font-size: 13px; color: var(--muted);
  background: rgba(42, 38, 51, 0.8); box-shadow: inset 0 0 0 1px var(--line);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: ping 2.2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(99, 212, 123, 0.45); } 80%, 100% { box-shadow: 0 0 0 9px rgba(99, 212, 123, 0); } }

h1, h2 { font-family: var(--head); font-weight: 800; text-transform: uppercase; letter-spacing: 0.005em; }
h1 {
  font-size: clamp(48px, 9vw, 104px); line-height: 0.94; margin: 22px 0 18px;
  background: linear-gradient(180deg, #fff6e4 0%, var(--brass-hi) 55%, var(--brass) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 24px rgba(255, 122, 42, 0.25));
}
h2 { font-size: clamp(38px, 5.6vw, 64px); line-height: 0.98; margin: 0 0 16px; }
h3 { font-size: 18px; font-weight: 650; margin: 0 0 6px; letter-spacing: -0.005em; }
.lede { font-size: clamp(16px, 1.6vw, 18.5px); color: var(--muted); max-width: 560px; margin: 0 auto; }
.eyebrow { font: 800 14px/1 var(--head); text-transform: uppercase; letter-spacing: 0.14em; color: var(--furnace); margin-bottom: 14px; }
.fine { font-size: 13.5px; color: var(--faint); margin: 18px 0 0; }

main, footer { position: relative; z-index: 1; }

/* Hero */
.hero { text-align: center; padding-top: 56px; overflow-x: clip; }
.hero .actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

.stage { position: relative; width: min(320px, 76vw); margin: 64px auto 0; }
.hero-gears { position: absolute; width: 175%; left: -37.5%; top: -6%; z-index: 0; pointer-events: none; }
.hero-gears path { fill: var(--brass); opacity: 0.22; }
.hero-gears .g2 { fill: var(--copper); opacity: 0.28; }
.hero-gears .g3 { opacity: 0.16; }
.phone {
  position: relative; z-index: 1; border-radius: 48px; padding: 10px;
  background: linear-gradient(160deg, #4a4552, #1c1a22 40%, #2c2932);
  box-shadow: 0 40px 100px rgba(255, 110, 40, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.phone img { border-radius: 39px; width: 100%; height: auto; aspect-ratio: 660 / 1434; object-fit: cover; background: #1a1229; }
.stage .phone { animation: float 9s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }

.orb {
  position: absolute; z-index: 2; width: 60px; height: 60px; display: grid; place-items: center;
  clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%);
  background: linear-gradient(180deg, var(--brass-hi), var(--brass-lo));
  animation: bob 6s ease-in-out infinite;
}
.orb span { width: 50px; height: 50px; display: grid; place-items: center; color: var(--ember); clip-path: inherit; background: linear-gradient(180deg, #34303c, #1c1a22); }
.orb svg { width: 22px; height: 22px; }
.orb.o1 { left: -88px; top: 22%; }
.orb.o2 { right: -92px; top: 15%; animation-delay: -2s; }
.orb.o3 { left: -66px; top: 58%; animation-delay: -4s; }
.orb.o4 { right: -72px; top: 52%; animation-delay: -1s; }
.orb.o4 span { color: #8fd0ff; }
@keyframes bob { 50% { transform: translateY(-14px); } }

.embers { position: absolute; inset: 30% -10% 0; z-index: 2; pointer-events: none; }
.embers i { position: absolute; bottom: 0; width: 4px; height: 4px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 8px 2px rgba(255, 140, 50, 0.7); opacity: 0; animation: rise 7s linear infinite; }
.embers i:nth-child(1) { left: 6%; animation-delay: 0s; }
.embers i:nth-child(2) { left: 22%; animation-delay: -2.5s; animation-duration: 8s; }
.embers i:nth-child(3) { left: 48%; animation-delay: -5s; }
.embers i:nth-child(4) { left: 70%; animation-delay: -1.2s; animation-duration: 9s; }
.embers i:nth-child(5) { left: 86%; animation-delay: -3.8s; }
.embers i:nth-child(6) { left: 96%; animation-delay: -6s; animation-duration: 8.5s; }
@keyframes rise {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translate(24px, -420px); opacity: 0; }
}

/* Spinning gears (hero and drive train) */
.spin { transform-box: fill-box; transform-origin: center; animation: spin var(--t, 10s) linear infinite; }
.spin.ccw { animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Sections */
section.block { padding-top: 120px; scroll-margin-top: -40px; }
.head { text-align: center; margin-bottom: 44px; }

.train { max-width: 640px; margin: 0 auto 16px; padding: 28px 20px 20px; }
.train svg { display: block; width: 100%; height: auto; max-width: 480px; margin: 0 auto; }
.train .g-motor { fill: #77717f; }
.train .core { fill: var(--furnace); filter: drop-shadow(0 0 6px rgba(255, 122, 42, 0.8)); }
.train .g-small { fill: var(--brass); }
.train .g-large { fill: var(--copper); }
.train text { font: 800 11px/1 var(--head); fill: var(--ink); text-anchor: middle; letter-spacing: 0.08em; }
.train text.sub { font-size: 9px; fill: var(--ember); }

.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.rule { padding: 26px 24px 24px; }
.rule .num { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-bottom: 14px; font: 800 18px/1 var(--head); color: #2b1d06; background: linear-gradient(180deg, var(--brass-hi), var(--brass-lo)); clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%); }
.rule h3 { font: 800 22px/1.1 var(--head); text-transform: uppercase; letter-spacing: 0.01em; margin-bottom: 10px; }
.rule p { color: var(--muted); font-size: 15px; margin: 0; }

.ammo { padding: 14px 26px 10px; }
.ammo-head, .ammo-row { display: grid; grid-template-columns: 170px minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.ammo-head { font: 800 13px/1 var(--head); text-transform: uppercase; letter-spacing: 0.12em; color: var(--faint); padding: 12px 0; border-bottom: 1px solid var(--line); }
.ammo-row { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); line-height: 1.45; }
.ammo-row:last-child { border-bottom: 0; }
.ammo-row b { display: flex; align-items: center; gap: 10px; font: 800 18px/1.2 var(--head); text-transform: uppercase; color: var(--ink); letter-spacing: 0.02em; }
.ammo-row b svg { width: 20px; height: 20px; color: var(--ember); flex: none; }
.ammo-row em { display: block; font: 800 15px/1.3 var(--head); font-style: normal; text-transform: uppercase; letter-spacing: 0.06em; color: var(--brass-hi); }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feat { padding: 24px 22px 22px; transition: transform 0.25s; }
.feat { clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut)); background: linear-gradient(180deg, var(--steel), var(--steel-2)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), inset 0 0 0 1px rgba(255, 255, 255, 0.05); }
.feat:hover { transform: translateY(-3px); }
.chip-ic { width: 40px; height: 40px; display: grid; place-items: center; flex: none; margin-bottom: 16px; color: var(--ember); background: rgba(255, 122, 42, 0.12); box-shadow: inset 0 0 0 1px rgba(255, 160, 80, 0.25); clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px); }
.chip-ic svg { width: 20px; height: 20px; }
.feat h3 { font: 800 19px/1.15 var(--head); text-transform: uppercase; letter-spacing: 0.01em; margin-bottom: 8px; }
.feat p { color: var(--muted); font-size: 14px; margin: 0; }

/* Screens */
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; max-width: 800px; margin: 0 auto; }
.shots figure { margin: 0; }
.shots .phone { border-radius: 38px; padding: 8px; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.1); }
.shots .phone img { border-radius: 31px; aspect-ratio: 600 / 1304; }
.shots figcaption { text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); }
.shots figcaption b { display: block; font: 800 20px/1.2 var(--head); text-transform: uppercase; letter-spacing: 0.02em; color: var(--ink); }

/* Free */
.price-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 860px; margin: 0 auto; }
.price-card { padding: 32px 30px 30px; }
.price-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: repeating-linear-gradient(-45deg, #e9b52c 0 9px, #1a1720 9px 18px); }
.price-card h3 { font: 800 24px/1 var(--head); text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.price-card .amount { font: 800 64px/1 var(--head); text-transform: uppercase; margin: 14px 0 6px; color: var(--brass-hi); }
.price-card.alt .amount { color: var(--green); }
.price-card .sub { color: var(--faint); font-size: 14px; }
.price-card ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; font-size: 15px; color: var(--ink); }
.price-card li { display: flex; gap: 10px; }
.price-card li::before { content: ""; flex: none; width: 9px; height: 9px; margin-top: 7px; background: var(--furnace); clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%); }
.price-card.alt li::before { background: var(--green); }

/* Closing call to action */
.cta { text-align: center; padding: 140px 16px 120px; }
.cta h2 { max-width: 780px; margin: 0 auto 22px; }
.cta .actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.inline-ic { display: inline-grid; place-items: center; width: 0.9em; height: 0.9em; vertical-align: -0.08em; color: var(--brass); margin: 0 0.04em; }
.inline-ic svg { width: 0.9em; height: 0.9em; animation: spin 8s linear infinite; filter: drop-shadow(0 0 14px rgba(255, 122, 42, 0.5)); }

footer.site { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 13.5px; color: var(--faint); }
footer.site .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer.site nav { display: flex; gap: 20px; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--ink); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; } .reveal.d2 { transition-delay: 0.16s; } .reveal.d3 { transition-delay: 0.24s; }

/* Text pages (privacy, support) */
.legal { max-width: 760px; padding-top: 72px; padding-bottom: 80px; }
.legal h1 { font-size: clamp(48px, 8vw, 80px); margin: 0 0 14px; }
.legal h2 { font-size: 26px; line-height: 1.1; margin: 40px 0 10px; color: var(--brass-hi); }
.legal p, .legal li { font-size: 17px; line-height: 1.65; color: var(--muted); }
.legal strong { color: var(--ink); }
.legal a { color: var(--ember); }
.legal .updated { color: var(--faint); font-size: 15px; }
.legal ul { padding-left: 20px; }
.legal .contact { margin: 32px 0 8px; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.legal .contact p { margin: 0; color: var(--ink); }
.legal .contact .btn { color: #fff; }
.qa { margin-top: 8px; }
.qa details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.qa summary { cursor: pointer; font: 800 20px/1.25 var(--head); text-transform: uppercase; letter-spacing: 0.02em; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; color: var(--brass); font-size: 24px; line-height: 1; transition: transform 0.2s; }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa details p { margin: 10px 0 0; }

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .rules { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .price-cards { grid-template-columns: 1fr; max-width: 460px; }
  .ammo-head, .ammo-row { grid-template-columns: 130px minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
}
@media (max-width: 640px) {
  .links { display: none; }
  .nav .btn { padding: 11px 14px; font-size: 14px; }
  .brand { font-size: 19px; }
  section.block { padding-top: 88px; }
  .grid { gap: 10px; }
  .feat { padding: 18px 16px; --cut: 10px; }
  .chip-ic { width: 34px; height: 34px; margin-bottom: 12px; }
  .chip-ic svg { width: 17px; height: 17px; }
  .feat h3 { font-size: 17px; }
  .feat p { font-size: 13px; }
  .orb { width: 50px; height: 50px; } .orb span { width: 42px; height: 42px; } .orb svg { width: 19px; height: 19px; }
  .orb.o1 { left: -26px; } .orb.o2 { right: -28px; } .orb.o3 { left: -20px; } .orb.o4 { right: -22px; }
  .ammo { padding: 6px 18px 6px; }
  .ammo-head { display: none; }
  .ammo-row { grid-template-columns: 1fr 1fr; gap: 6px 14px; }
  .ammo-row b { grid-column: 1 / -1; margin-bottom: 4px; }
  .ammo-row span::before { display: block; font: 800 10.5px/1.4 var(--head); letter-spacing: 0.12em; color: var(--faint); }
  .ammo-row span:nth-of-type(1)::before { content: "CLOCKWISE"; }
  .ammo-row span:nth-of-type(2)::before { content: "COUNTERCLOCKWISE"; }
  .shots { grid-template-columns: 1fr; max-width: 270px; gap: 44px; }
  .price-card { padding: 28px 22px 24px; }
  .cloud { filter: blur(44px); }
  .moon { width: 52px; height: 52px; top: 76px; right: 8%; }
  .legal { padding-top: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
