/* Twinglide Promotional Site — Premium Cinematic Vanilla CSS
   Matches the game's handcrafted aesthetic (Journey / Death Stranding inspired)
   Colors, spacing, and glow language taken directly from the Flutter app */

:root {
  --bg: #1A0F0A;
  --bg-deep: #0D0704;
  --copper: #D4A04A;
  --copper-glow: #E8B86B;
  --cream: #F5E6D0;
  --white: #FFFFFF;
  --white-70: rgba(255,255,255,0.70);
  --white-55: rgba(255,255,255,0.55);
  --white-40: rgba(255,255,255,0.40);
  --white-15: rgba(255,255,255,0.15);
  --card-bg: rgba(26,15,10,0.55);
  --card-border: rgba(212,160,74,0.22);
  --shadow: rgba(0,0,0,0.45);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === Cinematic Background Layers === */
.bg-layers {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  overflow: hidden;
}

.bg-layers::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 20%, rgba(212,160,74,0.055) 0%, transparent 55%);
  pointer-events: none;
}

.bg-layers::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 40%, rgba(0,0,0,0.55) 82%);
  pointer-events: none;
}

/* === Layout === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
  .hero {
    background-attachment: scroll;
    background-size: cover;
    background-position: center 30%;
  }
}

/* === Header / Nav === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,7,4,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
}

.logo img {
  height: 36px;
  width: auto;
}

.logo-text {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--copper);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--white-70);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 1.5px;
  transition: color 0.2s ease;
}

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
}

/* === Hero === */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  background: url('../images/screenshots/start.jpg') center/cover no-repeat;
  background-attachment: fixed;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13,7,4,0.78) 0%,
    rgba(13,7,4,0.88) 45%,
    rgba(13,7,4,0.96) 78%,
    #0D0704 100%
  );
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 680px;
}

.hero h1 {
  font-size: clamp(48px, 8vw, 82px);
  font-weight: 200;
  letter-spacing: 6px;
  line-height: 0.92;
  margin: 0 0 24px;
  color: var(--white);
}

.hero .tagline {
  font-size: 21px;
  font-weight: 400;
  color: var(--white-70);
  letter-spacing: 1px;
  margin-bottom: 48px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 36px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(180deg, #C68A3A 0%, #A66A2A 100%);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(212,160,74,0.25);
  border: 1px solid rgba(212,160,74,0.55);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(212,160,74,0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--white-70);
  border: 1px solid var(--white-15);
}

.btn-secondary:hover {
  color: var(--white);
  border-color: var(--white-40);
}

/* === Section Common === */
.section {
  padding: 96px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 4px;
  color: var(--copper);
  margin: 0 0 12px;
  text-transform: uppercase;
}

.section-header .title {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 300;
  letter-spacing: 2px;
  margin: 0;
  color: var(--white);
}

/* === Features === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 32px 28px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212,160,74,0.38);
}

.feature-card h3 {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin: 0 0 14px;
  color: var(--cream);
}

.feature-card p {
  font-size: 15px;
  color: var(--white-70);
  margin: 0;
  line-height: 1.65;
}

/* === Screenshots Gallery === */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
  cursor: pointer;
  box-shadow: 0 10px 30px var(--shadow);
  transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.25s ease;
}

.gallery-item:hover {
  transform: scale(1.015);
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--white-70);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.8);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  cursor: pointer;
  transition: background 0.2s ease;
  user-select: none;
}

.lightbox-close {
  top: 24px;
  right: 24px;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  font-size: 32px;
}

.lightbox-nav.prev { left: 24px; }
.lightbox-nav.next { right: 24px; }

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(212,160,74,0.25);
}

/* === Download Section === */
.download {
  background: linear-gradient(180deg, rgba(212,160,74,0.04) 0%, transparent 100%);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.store-placeholder {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 32px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  font-size: 15px;
  color: var(--white-70);
  margin: 12px 8px 0;
}

.store-placeholder span {
  color: var(--copper);
  font-weight: 500;
}

/* === Footer === */
.site-footer {
  padding: 64px 0 48px;
  text-align: center;
  color: var(--white-40);
  font-size: 13px;
  letter-spacing: 0.5px;
}

.site-footer a {
  color: var(--copper);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* === Utility === */
.muted {
  color: var(--white-55);
}

.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--card-border), transparent);
  margin: 80px 0;
}
