@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #000000;
  --panel-bg: #111111;
  --panel-border: rgba(255, 255, 255, 0.08);
  --panel-border-active: rgba(255, 255, 255, 0.2);
  
  --fg: #ffffff;
  --fg-muted: #7f8ea3;
  --fg-accent: #e2e8f0;
  
  --accent: #ffffff;
  --accent-hover: #f1f5f9;
  --accent-glow: rgba(255, 255, 255, 0.1);
  
  --red: #ef4444;
  --black: #000000;
  
  --max-width: 980px;
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

::selection {
  background: var(--accent);
  color: #000;
}

a {
  color: var(--fg);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Header */
header.site {
  padding: 24px 0;
  background: rgba(4, 8, 16, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--panel-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

header.site .brand-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

header.site img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  transition: transform 0.2s ease;
}

header.site .brand-container:hover img {
  transform: scale(1.05);
}

header.site .brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
}

header.site nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

header.site nav a {
  color: var(--fg-muted);
  font-weight: 500;
  font-size: 14px;
}

header.site nav a:hover {
  color: var(--fg);
}

header.site nav .btn-play {
  background: var(--accent);
  color: #000;
  padding: 8px 18px;
  border-radius: 30px;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 14px;
}

header.site nav .btn-play:hover {
  background: var(--accent-hover);
  transform: scale(1.02);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 90px 0 50px;
}

.hero img.hero-app-icon {
  width: 100px;
  height: 100px;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  margin-bottom: 24px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 58px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.rotating-word {
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  opacity: 1;
  transform: translateY(0);
}

.rotating-word.exit {
  opacity: 0;
  transform: translateY(-16px);
}

.rotating-word.enter {
  opacity: 0;
  transform: translateY(16px);
  transition: none;
}

.hero p.tagline {
  font-size: 19px;
  color: var(--fg-muted);
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.store-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #111827;
  border: 1px solid var(--panel-border);
  color: #fff;
  padding: 10px 22px;
  border-radius: 12px;
  text-align: left;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.store-badge:hover {
  background: #1f2937;
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.store-badge svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: currentColor;
}

.store-badge .badge-eyebrow {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fg-muted);
}

.store-badge .badge-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-display);
}

.store-badge.disabled {
  opacity: 0.3;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.02);
  border-color: transparent;
}

/* Hero Phone Mockup Skeleton */
.hero-showcase {
  margin: 20px auto 80px;
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.phone-mockup {
  width: 1159px;
  max-width: 100%;
  aspect-ratio: 1311 / 1065;
  height: auto;
  position: relative;
  margin: 0 auto;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9);
}

.phone-frame-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
  object-fit: fill;
}

/* Phone Screen Contents - positioned exactly to align with screen in cropped/padded frame image */
.phone-screen {
  position: absolute;
  left: 33.638%;
  width: 32.799%;
  top: 1.315%;
  height: 82.723%;
  border-radius: 28px;
  overflow: hidden;
  background: #000;
  z-index: 1;
}

.phone-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Boot-style loading splash, shown over the video until it can play (like an iPhone boot logo) */
.phone-boot {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  z-index: 2;
  transition: opacity 0.5s ease;
}

.phone-boot--hidden {
  opacity: 0;
  pointer-events: none;
}

.phone-boot-logo {
  width: 22%;
  animation: phone-boot-pulse 1.6s ease-in-out infinite;
}

@keyframes phone-boot-pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1); }
}

/* Hero Details (tagline, download buttons below video) */
.hero-details {
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone-header {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  letter-spacing: 0.1em;
}

.phone-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.phone-cards-mockup {
  display: flex;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.phone-card {
  width: 50px;
  height: 74px;
  background: #fff;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6px 4px;
  color: var(--black);
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  transform: rotate(var(--r, 0deg));
}

.phone-card.hearts { color: var(--red); }
.phone-card-suit { font-size: 16px; align-self: center; line-height: 1; }

.phone-card:nth-child(1) { --r: -8deg; }
.phone-card:nth-child(2) { --r: 0deg; }
.phone-card:nth-child(3) { --r: 8deg; }

.phone-status {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 10px;
  text-align: center;
  color: var(--fg-accent);
  width: 100%;
}

.phone-footer {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.01em;
}

/* Feature Tabs Section */
.feature-tabs {
  padding: 80px 0;
  border-top: 1px solid var(--panel-border);
}

.feature-tabs h2 {
  font-family: var(--font-display);
  font-size: 34px;
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: -0.02em;
}

.tab-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}

.tab-btn {
  background: #111827;
  border: 1px solid var(--panel-border);
  color: var(--fg-muted);
  padding: 10px 28px;
  border-radius: 30px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--fg);
}

.tab-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

.tab-content {
  position: relative;
}

.tab-panel {
  display: none;
  animation: fadeIn 0.3s ease forwards;
}

.tab-panel.active {
  display: block;
}

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

.game-overview {
  display: grid;
  grid-template-columns: 1.2fr 1.0fr;
  gap: 40px;
  align-items: center;
}

.game-specs {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.spec-item {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  gap: 16px;
}

.spec-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--panel-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 18px;
  flex-shrink: 0;
}

.spec-text h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.spec-text p {
  font-size: 14px;
  color: var(--fg-muted);
}

.game-preview-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 36px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.game-preview-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: 12px;
}

.badge-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--accent);
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.game-preview-card p {
  color: var(--fg-muted);
  font-size: 14px;
  margin-bottom: 28px;
  line-height: 1.6;
}

.interactive-preview-ui {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 20px;
  max-width: 260px;
  margin: 0 auto;
}

.ui-cards-row {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.ui-cards-row .card-preview {
  width: 46px;
  height: 66px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--fg-muted);
}

/* Core Highlights */
.core-highlights {
  padding: 80px 0;
  border-top: 1px solid var(--panel-border);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.highlight-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  padding: 28px;
  transition: border-color 0.2s ease;
}

.highlight-card:hover {
  border-color: var(--panel-border-active);
}

.highlight-icon {
  font-size: 28px;
  margin-bottom: 16px;
  display: inline-block;
}

.highlight-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.highlight-card p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* Rules Section */
.rules-explorer {
  padding: 80px 0;
  border-top: 1px solid var(--panel-border);
}

.rules-explorer h2 {
  font-family: var(--font-display);
  font-size: 34px;
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: -0.02em;
}

.accordion-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 780px;
  margin: 0 auto;
}

.accordion-item {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.accordion-header {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--fg-accent);
}

.accordion-header:hover {
  color: #fff;
}

.accordion-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: transform 0.25s ease;
}

.accordion-content {
  max-height: 0;
  padding: 0 24px;
  color: var(--fg-muted);
  font-size: 14px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  line-height: 1.7;
}

.accordion-content p {
  padding-bottom: 20px;
}

/* Accordion Active States */
.accordion-item.active {
  border-color: var(--panel-border-active);
}

.accordion-item.active .accordion-header {
  color: #fff;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-item.active .accordion-content {
  max-height: 400px;
  padding-top: 4px;
  opacity: 1;
}

/* Policies */
.policy {
  padding: 80px 0;
}

.policy h1 {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.policy .updated {
  color: var(--fg-muted);
  font-size: 14px;
  margin-bottom: 36px;
}

.policy h2 {
  font-family: var(--font-display);
  font-size: 20px;
  margin-top: 36px;
  margin-bottom: 12px;
}

.policy p {
  color: var(--fg-muted);
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.7;
}

.policy ul {
  margin-bottom: 18px;
  padding-left: 20px;
  color: var(--fg-muted);
  font-size: 14px;
}

.policy li {
  margin-bottom: 8px;
}

.policy a.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-weight: 500;
}

/* Contact Form styling */
.contact-form {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  padding: 32px;
  max-width: 500px;
  margin-top: 24px;
  margin-bottom: 32px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.contact-form .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.contact-form label {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-form input,
.contact-form textarea {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--panel-border);
  color: #fff;
  border-radius: 8px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  transition: all 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(0, 0, 0, 0.4);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  background: var(--accent);
  border: none;
  color: #000;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 28px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.contact-form button:hover {
  background: var(--accent-hover);
  transform: scale(1.02);
}

/* Footer styling */
footer.site {
  border-top: 1px solid var(--panel-border);
  padding: 30px 0 50px;
  background: var(--bg);
  color: var(--fg-muted);
  font-size: 13px;
}

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

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

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

footer.site .links a:hover {
  color: var(--fg);
}

/* Responsive grid changes */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 40px;
  }
  .core-highlights {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .game-overview {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  footer.site .wrap {
    flex-direction: column;
    text-align: center;
  }
  footer.site .links {
    justify-content: center;
    flex-wrap: wrap;
  }
}
