/* Silicon Foundry Tycoon site: quiet, editorial, dark. One accent (the chip core's cyan), gold only for the game's name. */
:root {
  color-scheme: dark;
  --bg: #070b14;
  --surface: #0d1320;
  --surface-2: #121a2b;
  --line: rgba(148, 163, 184, 0.14);
  --line-strong: rgba(148, 163, 184, 0.28);
  --ink: #e6e9ef;
  --muted: #8b95a7;
  --accent: #38bdf8;
  --gold: #f5b544;
  --radius: 10px;
  --gutter: clamp(16px, 4vw, 64px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font: 400 1rem/1.65 Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }

a { color: inherit; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: calc(100% - 2 * var(--gutter)); margin-inline: auto; }

/* Header: a slim full-width bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(7, 11, 20, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav { display: flex; align-items: center; min-height: 60px; }

.nav-links { display: flex; flex-wrap: wrap; gap: 2px 28px; margin: 0; padding: 0; list-style: none; font-size: 0.94rem; font-weight: 500; }

.nav-links a { display: inline-block; padding: 18px 0; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; transition: color .15s; }

.nav-links a:hover { color: var(--ink); }

.nav-links a[aria-current] { color: var(--ink); border-bottom-color: var(--accent); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  padding-block: clamp(56px, 9vw, 120px) clamp(40px, 6vw, 72px);
}

.eyebrow { margin: 0 0 18px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }

.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); font-weight: 800; letter-spacing: -0.035em; }

.hero h1 span { color: var(--gold); }

.tagline { margin: 22px 0 32px; max-width: 46ch; font-size: clamp(1.08rem, 1.6vw, 1.3rem); color: #b7c0cf; }

.store-row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px; }

.play-badge { display: inline-block; }

.play-badge img { height: 60px; width: auto; }

.text-link { font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; }

.text-link:hover { border-color: var(--accent); }

.hero-note { margin: 28px 0 0; font-size: 0.95rem; color: var(--muted); }

.hero-note strong { color: var(--ink); font-weight: 600; }

.hero-logo { width: min(100%, 420px); justify-self: end; border-radius: 22%; border: 1px solid var(--line); }

/* At a glance */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-block: 0;
  padding: 0;
  list-style: none;
  border-block: 1px solid var(--line);
}

.facts li { padding: 26px 24px; border-left: 1px solid var(--line); }

.facts li:first-child { border-left: 0; padding-left: 0; }

.facts strong { display: block; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; letter-spacing: -0.02em; }

.facts span { font-size: 0.9rem; color: var(--muted); }

/* Sections: heading on the left, content on the right, a hairline between them */
.block {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(0, 3fr);
  gap: 24px clamp(32px, 5vw, 80px);
  padding-block: clamp(48px, 7vw, 88px);
  border-top: 1px solid var(--line);
}

.facts + .block { border-top: 0; }

.block > h2 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); }

.prose { font-size: 1.08rem; color: #c3cad6; }

.prose p { margin: 0 0 1em; }

.prose p:last-child { margin: 0; }

/* Features: a ruled grid, no boxes */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.feature { padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.feature img { width: 40px; height: 40px; margin-bottom: 18px; }

.feature h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }

.feature p { margin: 8px 0 0; font-size: 0.95rem; line-height: 1.6; color: var(--muted); }

/* Screens */
.shots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; margin: 0; }

.shots figure { margin: 0; }

.shots img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }

.shots figcaption { margin-top: 12px; font-size: 0.9rem; color: var(--muted); }

/* FAQ */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 4vw, 64px); margin: 0; }

.faq div { padding: 22px 0; border-top: 1px solid var(--line); }

.faq div:nth-child(-n+2) { border-top: 0; padding-top: 0; }

.faq dt { font-weight: 600; }

.faq dd { margin: 8px 0 0; color: var(--muted); }

.faq a, .prose a, .legal a, .copyright a { color: var(--accent); text-underline-offset: 3px; }

/* Text pages (guide, privacy, terms, contact) */
.page { padding-block: clamp(48px, 7vw, 88px); }


.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; }

.legal > h1 + p, .legal > .updated + p { font-size: 1.12rem; color: #b7c0cf; }

.legal h2 { margin: 44px 0 10px; padding-top: 28px; font-size: 1.3rem; border-top: 1px solid var(--line); }

.legal p, .legal li { color: #c3cad6; }

.legal ul { padding-left: 1.2em; }

.legal li { margin: 6px 0; }

.legal li::marker { color: var(--muted); }

.legal .features, .legal .faq { margin-top: 20px; }

.legal strong { color: var(--ink); font-weight: 600; }

.updated { margin: 10px 0 0; font-size: 0.92rem; color: var(--muted) !important; }

.legal-table { width: 100%; margin: 14px 0; border-collapse: collapse; font-size: 0.93rem; }

.legal-table th, .legal-table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }

.legal-table th { font-weight: 600; color: var(--ink); background: var(--surface); }

/* Contact form */
.signup-trap { position: absolute; left: -9999px; }

.signup-status { min-height: 1.4em; margin: 6px 0 0; font-weight: 600; }

.contact-form { display: grid; gap: 6px; margin: 28px 0; }

.contact-form label { margin-top: 14px; font-size: 0.92rem; font-weight: 600; }

.contact-form > input:not(.signup-trap), .contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  transition: border-color .15s;
}

.contact-form > input:focus, .contact-form textarea:focus { border-color: var(--accent); outline: none; }

.contact-form textarea { resize: vertical; }

.contact-form button { justify-self: start; min-height: 48px; margin-top: 18px; padding: 10px 28px; font: inherit; font-weight: 600; color: #04121c; background: var(--accent); border: 0; border-radius: 8px; cursor: pointer; }

.contact-form button:hover { filter: brightness(1.08); }

.contact-form button:disabled { cursor: wait; opacity: .6; }

.topic-group { margin: 0; padding: 0; border: 0; }

.topic-group legend { padding: 0; font-size: 0.92rem; font-weight: 600; }

.topic-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.topic-chip { margin: 0 !important; cursor: pointer; }

.topic-chip input { position: absolute; opacity: 0; }

.topic-chip span { display: block; padding: 9px 16px; font-size: 0.92rem; font-weight: 500; color: var(--muted); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; transition: color .15s, border-color .15s; }

.topic-chip input:checked + span { color: var(--ink); border-color: var(--accent); background: rgba(56, 189, 248, 0.1); }

.topic-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }

.footer-card { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 32px; padding-block: 32px; }

.studio { display: flex; align-items: center; gap: 12px; font-weight: 600; }

.studio img { width: 40px; height: 40px; border-radius: 10px; }

.footer-links { display: flex; flex-wrap: wrap; gap: 4px 28px; margin: 0; padding: 0; list-style: none; font-size: 0.94rem; }

.footer-links a { color: var(--muted); text-decoration: none; }

.footer-links a:hover { color: var(--ink); }

.copyright { width: 100%; margin: 0; padding-top: 20px; font-size: 0.85rem; color: var(--muted); border-top: 1px solid var(--line); }

/* Tablet */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-logo { order: -1; justify-self: start; width: 140px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts li:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .block { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shots { display: flex; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 12px; }
  .shots figure { flex: 0 0 200px; scroll-snap-align: start; }
  .faq { grid-template-columns: 1fr; }
  .faq div:nth-child(2) { border-top: 1px solid var(--line); padding-top: 22px; }
}

/* Phone */
@media (max-width: 560px) {
  .nav-links { gap: 2px 20px; }
  .features { grid-template-columns: 1fr; }
  .feature { padding: 22px 20px; }
  .facts li { padding: 20px 16px; }
  .play-badge img { height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
