/* ═══════════════════════════════════════════════════════
   AKKARIS — Brand Stylesheet
   Fonts: Instrument Serif (display) + DM Sans (body)
   Palette: Amber #F2A623 · Ink #1a1a24 · Stone #f0ede6
   ═══════════════════════════════════════════════════════ */

/* ── Custom properties ─────────────────────────────────── */
:root {
  --amber:        #F2A623;
  --amber-deep:   #BA7517;
  --amber-pale:   #FAC775;
  --amber-faint:  rgba(242,166,35,0.08);
  --ink:          #1a1a24;
  --ink-2:        #2c2c38;
  --ink-3:        #3c3c4a;
  --stone:        #f0ede6;
  --stone-2:      #fafaf7;
  --muted:        #888784;
  --text-primary: #1a1a24;
  --text-secondary: #4a4a52;
  --text-dim:     #888784;
  --teal:         #1D9E75;
  --border:       rgba(26,26,36,0.1);
  --border-light: rgba(26,26,36,0.06);

  --font-serif:   'Instrument Serif', Georgia, serif;
  --font-sans:    'DM Sans', system-ui, sans-serif;

  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    18px;
  --radius-xl:    24px;

  --transition:   0.2s cubic-bezier(0.16,1,0.3,1);
  --transition-slow: 0.5s cubic-bezier(0.16,1,0.3,1);

  --container:    1100px;
  --gap:          clamp(24px, 4vw, 48px);
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--stone-2);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ── Container ─────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

/* ── Nav ───────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background var(--transition), box-shadow var(--transition);
}
.nav-scrolled {
  background: rgba(250,250,247,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border-light);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(250,250,247,0.9);
  transition: opacity var(--transition), color var(--transition);
}
.nav-logo:hover { opacity: 0.7; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  font-size: 14px;
  font-weight: 400;
  color: rgba(250,250,247,0.6);
  letter-spacing: 0.02em;
  transition: color var(--transition);
}
.nav-link:hover { color: rgba(250,250,247,0.95); }

/* Once scrolled, switch to dark text on light background */
.nav-scrolled .nav-logo { color: var(--text-primary); }
.nav-scrolled .nav-link { color: var(--text-secondary); }
.nav-scrolled .nav-link:hover { color: var(--text-primary); }

/* ── Buttons ───────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--amber);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.btn-primary:hover {
  background: var(--amber-deep);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(242,166,35,0.3);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 400;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--amber);
  background: var(--amber-faint);
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--stone-2);
  font-size: 14px;
  font-weight: 500;
  padding: 11px 20px;
  border-radius: var(--radius-md);
  transition: background var(--transition), transform var(--transition);
}
.btn-store:hover {
  background: var(--ink-2);
  transform: translateY(-1px);
}

.btn-store-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
  background: var(--ink-3);
}

/* ── Section helpers ───────────────────────────────────── */
.section-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-bottom: 10px;
}
.section-header {
  margin-bottom: clamp(32px, 5vw, 56px);
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
}

/* ── Reveal animation ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  background: var(--ink);
  padding: 0 clamp(40px, 8vw, 120px);
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
}
#star-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0.7;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero-gradient-left {
  position: absolute; top: 0; left: 0; bottom: 0; width: 50%;
  background: linear-gradient(90deg, rgba(10,30,51,0.6) 0%, transparent 100%);
}
.hero-gradient-right {
  position: absolute; top: 0; right: 0; bottom: 0; width: 50%;
  background: linear-gradient(270deg, rgba(26,10,46,0.6) 0%, transparent 100%);
}
.hero-content {
  position: relative; z-index: 2;
  /* max-width: 560px; */
  padding-top: 140px;
  padding-bottom: 80px;
}
.hero-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.6s 0.2s cubic-bezier(0.16,1,0.3,1) forwards;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(40px, 7vw, 78px);
  font-weight: 400;
  line-height: 1.08;
  color: #fafaf7;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.7s 0.35s cubic-bezier(0.16,1,0.3,1) forwards;
}
.hero-subtitle {
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 400;
  line-height: 1.5;
  color: rgba(250,250,247,0.85);
  margin-bottom: 14px;
  max-width: 480px;
  opacity: 0;
  animation: fadeUp 0.7s 0.5s cubic-bezier(0.16,1,0.3,1) forwards;
}
.hero-body {
  font-size: clamp(14px, 1.8vw, 15px);
  line-height: 1.7;
  color: rgba(250,250,247,0.48);
  margin-bottom: 36px;
  max-width: 480px;
  opacity: 0;
  animation: fadeUp 0.7s 0.6s cubic-bezier(0.16,1,0.3,1) forwards;
}
.hero-content .btn-primary {
  opacity: 0;
  animation: fadeUp 0.6s 0.65s cubic-bezier(0.16,1,0.3,1) forwards;
}
.hero-mark {
  position: relative; z-index: 2;
  flex-shrink: 0;
  width: clamp(180px, 26vw, 320px);
  opacity: 0;
  animation: fadeIn 1.2s 0.8s ease forwards;
  pointer-events: none;
}
.hero-mark svg { width: 100%; height: auto; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
  from { opacity: 0; transform: translateY(20px); }
}
@keyframes fadeIn {
  to { opacity: 1; } from { opacity: 0; }
}

/* ── Games section ─────────────────────────────────────── */
.games-section {
  padding: clamp(64px, 10vw, 120px) 0;
  background: var(--stone-2);
}
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr));
  gap: clamp(20px, 3vw, 32px);
}

/* ── Game card ─────────────────────────────────────────── */
.game-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  transition: transform var(--transition), box-shadow var(--transition);
}
.game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.game-card-upcoming {
  background: var(--stone);
  border-color: var(--border-light);
}

.game-card-visual { position: relative; }
.game-preview {
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
  background: var(--ink);
}
.game-canvas {
  width: 100%; height: 100%;
  display: block;
}
.upcoming-preview {
  background: var(--stone);
  display: flex;
  align-items: center;
  justify-content: center;
}
.upcoming-mark { opacity: 0.5; }

.game-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--amber);
  color: var(--ink);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.game-badge-soon {
  background: var(--stone-2);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.game-card-body {
  padding: clamp(20px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.game-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.game-tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(29,158,117,0.08);
  border: 1px solid rgba(29,158,117,0.2);
  padding: 3px 9px;
  border-radius: 999px;
}
.game-tag-dim {
  color: var(--text-dim);
  background: transparent;
  border-color: var(--border);
}
.game-title {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.2;
}
.game-title-dim { color: var(--text-dim); }
.game-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}
.game-desc-dim { color: var(--text-dim); }

.game-details {
  display: flex;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
}
.game-detail {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.detail-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.detail-value {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 400;
}

.game-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: auto;
}

/* ── About section ─────────────────────────────────────── */
.about-section {
  padding: clamp(64px, 10vw, 120px) 0;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.about-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.about-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  position: relative; z-index: 1;
}
@media (max-width: 640px) {
  .about-inner {
    grid-template-columns: 1fr;
  }
  .about-mark { display: none; }
}
.about-mark { flex-shrink: 0; }
.about-content { max-width: 560px; }
.about-section .section-eyebrow { color: var(--amber); }
.about-title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.15;
  color: #fafaf7;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.about-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}
.about-body p {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(250,250,247,0.62);
}
.about-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.about-tag {
  font-size: 12px;
  color: rgba(250,250,247,0.45);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

/* ── Footer ────────────────────────────────────────────── */
.footer {
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(250,250,247,0.7);
  letter-spacing: 0.04em;
  transition: opacity var(--transition);
}
.footer-logo:hover { opacity: 0.6; }
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-link {
  font-size: 13px;
  color: rgba(250,250,247,0.4);
  transition: color var(--transition);
}
.footer-link:hover { color: rgba(250,250,247,0.8); }
.footer-copy {
  font-size: 12px;
  color: rgba(250,250,247,0.28);
}

/* ── Privacy page ──────────────────────────────────────── */
.privacy-hero {
  background: var(--ink);
  padding: 120px clamp(20px, 5vw, 60px) 64px;
  text-align: center;
}
.privacy-hero-inner {
  max-width: 640px; margin: 0 auto;
}
.privacy-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 400;
  color: #fafaf7;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.privacy-hero p {
  font-size: 15px;
  color: rgba(250,250,247,0.5);
  line-height: 1.7;
}
.privacy-content {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 60px);
}
.privacy-game-block {
  margin-bottom: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--border-light);
}
.privacy-game-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
.privacy-game-name {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 400;
  margin-bottom: 6px;
  color: var(--text-primary);
}
.privacy-updated {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 28px;
  letter-spacing: 0.04em;
}
.privacy-section {
  margin-bottom: 28px;
}
.privacy-section h3 {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.privacy-section p,
.privacy-section li {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-secondary);
}
.privacy-section ul {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.privacy-section a {
  color: var(--amber-deep);
  text-decoration: underline;
  text-decoration-color: rgba(186,117,23,0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--transition);
}
.privacy-section a:hover {
  text-decoration-color: var(--amber-deep);
}
.privacy-contact-box {
  background: var(--stone);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-top: 40px;
}
.privacy-contact-box p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.privacy-contact-box strong {
  color: var(--text-primary);
  font-weight: 500;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero { padding: 0 clamp(20px, 5vw, 40px); }
  .hero-mark { display: none; }
  .nav-links { gap: 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}
@media (max-width: 480px) {
  .nav-link:not(:last-child) { display: none; }
}

/* ── Reduced motion ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
