/* ===================================
   Storycraft Games | Shared Styles
   =================================== */

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background-color: #0f0e17;
  color: #fffffe;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
  color: #fffffe;
  font-weight: 700;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }

p { font-size: 1.05rem; color: #a7a9be; }

a { color: #d58269; text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }

strong { color: #fffffe; }

/* ===== LAYOUT ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 5.5rem 0; }

/* ===== NAVIGATION ===== */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.2rem 0;
  background: rgba(15, 14, 23, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fffffe;
  letter-spacing: 0.01em;
}
.nav-logo:hover { opacity: 1; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: #a7a9be;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-links a:hover { color: #fffffe; opacity: 1; }

.nav-cta {
  background: #d58269 !important;
  color: #0f0e17 !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  font-size: 0.83rem !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: #e09478 !important; opacity: 1 !important; }

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: #fffffe;
  padding: 0.4rem;
}
.hamburger { display: block; width: 22px; }
.hamburger span {
  display: block;
  height: 2px;
  background: #fffffe;
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.3s;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    padding: 1.5rem;
    background: #17162e;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    gap: 1.25rem;
    align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1rem; }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: #d58269;
  color: #0f0e17;
}
.btn-primary:hover {
  background: #e09478;
  opacity: 1;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: #d58269;
  border: 2px solid #d58269;
}
.btn-outline:hover {
  background: rgba(213, 130, 105, 0.08);
  opacity: 1;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 15% 45%, rgba(213, 130, 105, 0.13) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 65%, rgba(110, 75, 170, 0.09) 0%, transparent 55%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 740px;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #d58269;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before {
  content: '';
  width: 2rem;
  height: 2px;
  background: #d58269;
  flex-shrink: 0;
}

.hero h1 { margin-bottom: 1.5rem; }
.hero h1 em { font-style: italic; color: #d58269; }

.hero-sub {
  font-size: 1.15rem;
  color: #a7a9be;
  margin-bottom: 2.5rem;
  max-width: 54ch;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.ks-note {
  font-size: 0.82rem;
  color: #6b6880;
  margin-top: 1.25rem;
}

/* ===== SECTION UTILS ===== */
.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #d58269;
  margin-bottom: 0.75rem;
}

.section-header { margin-bottom: 3rem; }
.section-header p { margin-top: 0.85rem; }

.divider {
  width: 3rem;
  height: 3px;
  background: #d58269;
  border-radius: 2px;
  margin: 1.5rem 0;
}

/* ===== CARDS ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 680px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: #17162e;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 2rem;
  transition: border-color 0.2s;
}
.card:hover { border-color: rgba(213, 130, 105, 0.25); }

.card-icon {
  font-size: 1.7rem;
  margin-bottom: 1rem;
  display: block;
}

.card-icon-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
  margin: 0 auto 1rem;
}

/* Work-in-progress art teaser */
.art-wip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.art-wip-grid figure {
  background: #17162e;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  overflow: hidden;
}
.art-wip-grid img { width: 100%; height: auto; display: block; aspect-ratio: 3/4; object-fit: cover; }
.art-wip-tag {
  display: inline-block;
  background: rgba(213, 130, 105, 0.1);
  border: 1px solid rgba(213, 130, 105, 0.22);
  color: #d58269;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
}
@media (max-width: 680px) { .art-wip-grid { grid-template-columns: repeat(2, 1fr); } }

.card h3 { margin-bottom: 0.6rem; }
.card p { font-size: 0.95rem; }

/* ===== TAGS ===== */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag {
  background: rgba(213, 130, 105, 0.1);
  border: 1px solid rgba(213, 130, 105, 0.22);
  color: #d58269;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
}

/* ===== SPECS BAR ===== */
.specs-bar {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin: 2rem 0 2.5rem;
  padding: 1.75rem 2rem;
  background: #17162e;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
}

.spec-item { display: flex; flex-direction: column; gap: 0.2rem; }

.spec-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #6b6880;
}

.spec-value {
  font-size: 1rem;
  font-weight: 600;
  color: #fffffe;
}

/* ===== GAME BANNER ===== */
.game-banner {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
  margin: 3rem 0;
}
.game-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== WAITLIST SECTION ===== */
.waitlist-section {
  background: #17162e;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}

.waitlist-inner {
  max-width: 560px;
  margin: 0 auto;
}

.waitlist-inner h2 { margin-bottom: 1rem; }
.waitlist-inner p { margin: 0 auto 2.5rem; }

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, rgba(213, 130, 105, 0.12) 0%, rgba(110, 75, 170, 0.09) 100%);
  border: 1px solid rgba(213, 130, 105, 0.18);
  border-radius: 16px;
  padding: 4rem 3rem;
  text-align: center;
}
.cta-banner h2 { margin-bottom: 1rem; }
.cta-banner p { margin: 0 auto 2rem; max-width: 50ch; }

/* ===== ABOUT PAGE ===== */
.about-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.about-two-col p + p { margin-top: 1rem; }

.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #17162e;
  border: 1px solid rgba(255,255,255,0.07);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #a7a9be;
  transition: all 0.2s;
}
.social-link:hover {
  border-color: rgba(213, 130, 105, 0.3);
  color: #fffffe;
  opacity: 1;
}

/* ===== FOOTER ===== */
footer {
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

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

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fffffe;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.footer-links a {
  font-size: 0.82rem;
  color: #6b6880;
}
.footer-links a:hover { color: #a7a9be; opacity: 1; }

.footer-copy {
  font-size: 0.78rem;
  color: #6b6880;
  width: 100%;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  section { padding: 3.5rem 0; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .about-two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .cta-banner { padding: 2.5rem 1.5rem; }
  .specs-bar { gap: 1.5rem; }
  .footer-inner { flex-direction: column; }
  .footer-copy { text-align: center; }
}
