/* Peg Siege site styles.
   Art direction is still open. Every color, font and size that defines the
   look lives in :root below, so a reskin is a one-block edit. */

:root {
  /* Colors */
  --color-bg: #0f1724;
  --color-surface: #182235;
  --color-surface-2: #22304a;
  --color-text: #eef2f8;
  --color-text-muted: #9aa8bf;
  --color-accent: #ffb547;
  --color-accent-ink: #1a1206;
  --color-border: #2c3b57;
  --color-focus: #7cc4ff;

  /* Fonts */
  --font-display: ui-rounded, "SF Pro Rounded", "Avenir Next", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Shape and spacing */
  --radius: 14px;
  --radius-pill: 999px;
  --page-width: 960px;
  --gutter: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

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

/* Header */
.site-header {
  padding: 20px 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--color-text);
  text-decoration: none;
}

/* Hero */
.hero {
  padding: 32px 0 56px;
}

.hero .wrap {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 760px) {
  .hero .wrap {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero h1 {
  font-size: clamp(40px, 9vw, 68px);
  font-weight: 800;
}

.tagline {
  font-size: clamp(20px, 4vw, 26px);
  color: var(--color-accent);
  font-weight: 700;
  margin: 0 0 16px;
}

.lede {
  color: var(--color-text-muted);
  margin: 0 0 28px;
  max-width: 34em;
}

/* App Store badge placeholder */
.store-badge {
  display: inline-flex;
  flex-direction: column;
  padding: 10px 22px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  line-height: 1.2;
}

.store-badge small {
  color: var(--color-text-muted);
  font-size: 12px;
}

.store-badge strong {
  font-size: 18px;
}

/* Gameplay video placeholder: phone-shaped 9:19.5 frame */
.video-frame {
  width: min(300px, 100%);
  margin: 0 auto;
  aspect-ratio: 9 / 19.5;
  border-radius: 36px;
  border: 8px solid var(--color-surface-2);
  background: var(--color-surface);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--color-text-muted);
  overflow: hidden;
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sections */
.section {
  padding: 48px 0;
  border-top: 1px solid var(--color-border);
}

.steps {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 16px;
}

@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.steps li {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 20px;
}

.steps h3 {
  font-size: 19px;
}

.steps p {
  margin: 0;
  color: var(--color-text-muted);
}

/* Email signup placeholder */
.signup {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  max-width: 480px;
}

.signup input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 12px 16px;
  font: inherit;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
}

.signup button {
  padding: 12px 22px;
  font: inherit;
  font-weight: 700;
  color: var(--color-accent-ink);
  background: var(--color-accent);
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.signup button:disabled,
.signup input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.fine-print {
  color: var(--color-text-muted);
  font-size: 14px;
}

/* Text pages (privacy, support) */
.page {
  padding: 24px 0 64px;
}

.page .wrap {
  max-width: 720px;
}

.page h1 {
  font-size: clamp(32px, 7vw, 44px);
}

.page h2 {
  font-size: 22px;
  margin-top: 1.6em;
}

/* Footer */
.site-footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.site-footer nav {
  display: flex;
  gap: 20px;
}

.site-footer a {
  color: var(--color-text-muted);
}
