/* ================================================================
   ICONICBOUND.COM — Main Stylesheet
   Dark theme, pixel-art accents, story-first game landing
   ================================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Press+Start+2P&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Backgrounds */
  --bg-deep:    #060e1a;
  --bg-dark:    #0a1628;
  --bg-mid:     #111e33;
  --bg-card:    #131f35;
  --bg-elevated:#1a2844;

  /* Text */
  --text-bright: #f0f4ff;
  --text-main:   #c8d4e8;
  --text-muted:  #7a8ba8;
  --text-faint:  #4a5a74;

  /* Accents */
  --accent-gold:   #d4a843;
  --accent-teal:   #3bb8a0;
  --accent-purple: #7c6dd8;
  --accent-red:    #c44b4b;

  /* Brand */
  --discord:  #5865F2;
  --patreon:  #FF424D;
  --youtube:  #FF0000;

  /* Borders */
  --border-subtle: rgba(200, 212, 232, 0.08);
  --border-light:  rgba(200, 212, 232, 0.15);
  --border-accent: rgba(59, 184, 160, 0.3);

  /* Sizing */
  --max-width: 1100px;
  --section-gap: 6rem;

  /* Typography */
  --font-body:  'Inter', system-ui, -apple-system, sans-serif;
  --font-pixel: 'Press Start 2P', monospace;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-main);
  background: var(--bg-deep);
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-teal); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--text-bright); }

h1, h2, h3, h4 {
  color: var(--text-bright);
  line-height: 1.3;
  font-weight: 600;
}

::selection {
  background: var(--accent-teal);
  color: var(--bg-deep);
}

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--section-gap) 0;
}

.pixel-label {
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-teal);
  margin-bottom: 1rem;
  display: block;
}

.pixel-divider {
  width: 100%;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--accent-teal) 0px,
    var(--accent-teal) 4px,
    transparent 4px,
    transparent 8px
  );
  opacity: 0.4;
  margin: var(--section-gap) 0;
}

/* ================================================================
   SHARED HEADER
   ================================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 14, 26, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-bright);
}

.header-logo img {
  height: 32px;
  width: auto;
}

.header-logo span {
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.header-nav a:hover {
  color: var(--text-bright);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.25rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-body);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-discord {
  background: var(--discord);
  color: #fff;
}
.btn-discord:hover {
  background: #4752c4;
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-light);
}
.btn-outline:hover {
  border-color: var(--accent-teal);
  color: var(--text-bright);
}

.btn-gold {
  background: var(--accent-gold);
  color: var(--bg-deep);
}
.btn-gold:hover {
  background: #c49a38;
  color: var(--bg-deep);
}

.btn-teal {
  background: var(--accent-teal);
  color: var(--bg-deep);
}
.btn-teal:hover {
  background: #33a48e;
  color: var(--bg-deep);
}

.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 0.95rem;
}

.btn-icon {
  width: 20px;
  height: 20px;
}

/* Mobile menu */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

@media (max-width: 768px) {
  .header-nav { display: none; }
  .header-actions .btn-outline { display: none; }
  .mobile-toggle { display: block; }

  .header-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1rem 1.5rem;
    gap: 1rem;
  }
}

/* ================================================================
   HERO
   ================================================================ */

.hero {
  padding: 6rem 0 4rem;
  text-align: center;
  position: relative;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(59, 184, 160, 0.06) 0%, transparent 60%),
    var(--bg-deep);
}

.hero h1 {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  max-width: 800px;
  margin: 0 auto 1.25rem;
  line-height: 1.2;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent-gold);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-badge {
  margin-top: 3rem;
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  color: var(--text-faint);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ================================================================
   THE STORY
   ================================================================ */

.story {
  background: var(--bg-dark);
}

.story-content {
  max-width: 720px;
  margin: 0 auto;
}

.story-content h2 {
  font-size: 1.6rem;
  margin-bottom: 2rem;
}

.story-content p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.story-content p:last-of-type {
  margin-bottom: 0;
}

.story-signature {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  color: var(--text-faint);
  letter-spacing: 0.1em;
}

/* ================================================================
   THE GAME
   ================================================================ */

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1.75rem;
  transition: border-color 0.3s;
}

.game-card:hover {
  border-color: var(--border-accent);
}

.game-card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.game-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.game-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Screenshot placeholders */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.screenshot-placeholder {
  aspect-ratio: 16 / 9;
  background: var(--bg-card);
  border: 2px dashed var(--border-light);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-size: 0.85rem;
  gap: 0.5rem;
  transition: border-color 0.3s;
}

.screenshot-placeholder:hover {
  border-color: var(--accent-teal);
}

.screenshot-placeholder .ph-icon {
  font-size: 2rem;
  opacity: 0.5;
}

.screenshot-placeholder .ph-label {
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ================================================================
   THE VISION
   ================================================================ */

.vision {
  background: var(--bg-dark);
}

.vision-content {
  max-width: 720px;
  margin: 0 auto;
}

.vision-content h2 {
  font-size: 1.6rem;
  margin-bottom: 2rem;
}

.vision-content p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.vision-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.vision-pillar {
  text-align: center;
  padding: 1.5rem 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
}

.vision-pillar .pillar-icon {
  font-family: var(--font-pixel);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.vision-pillar h4 {
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.vision-pillar p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ================================================================
   JOIN ALPHA
   ================================================================ */

.alpha {
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(88, 101, 242, 0.06) 0%, transparent 60%),
    var(--bg-deep);
}

.alpha h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.alpha-sub {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.alpha-discord {
  margin-bottom: 3rem;
}

.alpha-divider-text {
  color: var(--text-faint);
  font-size: 0.8rem;
  margin: 2rem 0;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.waitlist-form {
  display: flex;
  gap: 0.75rem;
  max-width: 440px;
  margin: 0 auto 1rem;
}

.waitlist-form input[type="email"] {
  flex: 1;
  padding: 0.65rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  color: var(--text-bright);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.waitlist-form input[type="email"]::placeholder {
  color: var(--text-faint);
}

.waitlist-form input[type="email"]:focus {
  border-color: var(--accent-teal);
}

.waitlist-msg {
  font-size: 0.85rem;
  min-height: 1.5em;
  margin-top: 0.5rem;
}

.waitlist-msg.success { color: var(--accent-teal); }
.waitlist-msg.error { color: var(--accent-red); }

.alpha-login {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-faint);
}

.alpha-login a {
  color: var(--text-muted);
}

/* ================================================================
   SUPPORT
   ================================================================ */

.support-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.support-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  transition: border-color 0.3s;
}

.support-card:hover {
  border-color: var(--border-accent);
}

.support-card img {
  height: 32px;
  margin: 0 auto 1rem;
}

.support-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.support-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

/* ================================================================
   FOLLOW THE BUILD
   ================================================================ */

.follow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.follow-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.3s;
}

.follow-card:hover {
  border-color: var(--border-accent);
}

.follow-card img {
  height: 24px;
  width: auto;
}

.follow-card h3 {
  font-size: 0.95rem;
}

.follow-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}

/* ================================================================
   SHARED FOOTER
   ================================================================ */

.site-footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0 2rem;
  margin-top: var(--section-gap);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand img {
  height: 28px;
  margin-bottom: 0.75rem;
  opacity: 0.7;
}

.footer-brand p {
  font-size: 0.8rem;
  color: var(--text-faint);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 3rem;
}

.footer-col h4 {
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-faint);
  margin-bottom: 0.4rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--text-main);
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-faint);
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-socials a {
  opacity: 0.5;
  transition: opacity 0.2s;
}

.footer-socials a:hover {
  opacity: 1;
}

.footer-socials img {
  height: 18px;
  width: auto;
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ================================================================
   LEGAL / SUB-PAGES
   ================================================================ */

.legal-page {
  padding: 4rem 0;
}

.legal-page h1 {
  font-size: 1.6rem;
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.legal-page p,
.legal-page li {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.legal-page ul, .legal-page ol {
  padding-left: 1.5rem;
}

.legal-page a {
  color: var(--accent-teal);
}

/* ================================================================
   404
   ================================================================ */

.page-404 {
  text-align: center;
  padding: 10rem 0;
}

.page-404 h1 {
  font-family: var(--font-pixel);
  font-size: 3rem;
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

.page-404 p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}
