/* ── Reset & Base ── */

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

:root {
  --bg: #0a0a0f;
  --surface: #111118;
  --border: rgba(255, 255, 255, 0.06);
  --accent: #ADDB71;
  --accent-dim: rgba(173, 219, 113, 0.15);
  --accent-glow: rgba(173, 219, 113, 0.3);
  --text: #ffffff;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --radius: 14px;
  --nav-h: 64px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Nav ── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10, 10, 15, 0.7);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.logo-icon {
  flex-shrink: 0;
}

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

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* ── Language Switcher ── */

.lang-switch {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  padding: 6px 12px;
  font-size: 0.8rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

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

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  min-width: 140px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.2s ease;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.lang-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 8px 12px;
  font-size: 0.85rem;
  font-family: inherit;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.lang-dropdown button:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.lang-dropdown button.active {
  color: var(--accent);
  font-weight: 600;
}

/* ── Hero ── */

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  min-height: 100vh;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: center;
  width: 100%;
  padding-top: 60px;
  padding-bottom: 60px;
}

.hero-text {
  max-width: 520px;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.accent {
  color: var(--accent);
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 14px;
}

.hero-warning {
  color: #d4736a;
  font-size: 0.82rem;
  line-height: 1.5;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-warning::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23d4736a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ── Download Cards ── */

.download-cards {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.dl-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  font-family: inherit;
}

.dl-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-dim), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s;
}

.dl-card:not(:disabled):hover {
  border-color: rgba(173, 219, 113, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(173, 219, 113, 0.1);
}

.dl-card:not(:disabled):hover::before {
  opacity: 1;
}

.dl-card:not(:disabled):active {
  transform: translateY(0);
}

.dl-card:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.dl-card:disabled .dl-arrow {
  display: none;
}

.dl-card.recommended:not(:disabled):hover {
  border-color: rgba(173, 219, 113, 0.4);
  background: linear-gradient(135deg, rgba(173, 219, 113, 0.06), var(--surface));
}

.dl-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.dl-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  position: relative;
  z-index: 1;
}

.dl-platform {
  font-weight: 600;
  font-size: 0.9rem;
}

.dl-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.dl-arrow {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent);
  position: relative;
  z-index: 1;
  transition: transform 0.25s ease;
}

.dl-card:not(:disabled):hover .dl-arrow {
  transform: translateY(4px);
}

.version-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Hero Visual ── */

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.orb-1 {
  width: 350px;
  height: 350px;
  background: rgba(173, 219, 113, 0.12);
  top: -40px;
  right: -40px;
}

.orb-2 {
  width: 250px;
  height: 250px;
  background: rgba(107, 184, 58, 0.08);
  bottom: -20px;
  left: -20px;
}

.screenshot-stack {
  position: relative;
  width: 100%;
}

.screenshot {
  display: block;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.shot-back {
  position: absolute;
  top: -30px;
  left: 40px;
  width: 85%;
  opacity: 0.5;
  transform: rotate(3deg) scale(0.9);
  filter: blur(1px);
  z-index: 1;
}

.shot-front {
  position: relative;
  z-index: 2;
  transition: transform 0.4s ease;
}

.shot-front:hover {
  transform: translateY(-4px) scale(1.01);
}

/* ── Footer ── */

.footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 28px 0;
  flex-shrink: 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-studio {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  white-space: nowrap;
  transition: color 0.2s;
}

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

.footer-copy {
  color: var(--text-muted);
  font-size: 0.8rem;
  white-space: nowrap;
}
.footer-disclaimer {
  color: var(--text-muted);
  font-size: 0.75rem;
  opacity: 0.85;
  width: 100%;
  text-align: center;
}

/* ════════════════════════════════════════════
   Responsive Breakpoints
   Mobile:      < 640px
   Tablet:      640px – 1023px
   Desktop:     1024px – 1599px  (default)
   Wide:        1600px+
   ════════════════════════════════════════════ */

/* ── Wide (1600+) ── */

@media (min-width: 1600px) {
  .container {
    max-width: 1520px;
  }

  .hero-inner {
    grid-template-columns: 1fr 1.6fr;
    gap: 56px;
  }

  h1 {
    font-size: 4rem;
  }

  .hero-desc {
    font-size: 1.15rem;
  }

  .dl-card {
    padding: 18px 20px;
  }
}

/* ── Tablet (640–1023) ── */

@media (max-width: 1023px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

  .hero-text {
    max-width: 600px;
    margin: 0 auto;
  }

  .hero-warning {
    justify-content: center;
    text-align: center;
  }

  .download-cards {
    justify-content: center;
  }

  .dl-card {
    max-width: 200px;
  }

  .hero-visual {
    max-width: 560px;
    margin: 0 auto;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-links {
    gap: 20px;
  }
}

/* ── Mobile (< 640) ── */

@media (max-width: 639px) {
  :root {
    --nav-h: 56px;
  }

  .container {
    padding: 0 28px;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-links a {
    font-size: 0.82rem;
  }

  .nav-right {
    gap: 12px;
  }

  .lang-btn {
    padding: 5px 8px;
    font-size: 0.75rem;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-h) + 32px);
    padding-bottom: 32px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .hero-text {
    max-width: 100%;
    margin: 0 auto;
  }

  h1 {
    font-size: 1.75rem;
    margin-bottom: 14px;
  }

  .hero-desc {
    font-size: 0.9rem;
    margin-bottom: 10px;
    line-height: 1.6;
  }

  .hero-warning {
    font-size: 0.75rem;
    margin-bottom: 20px;
    justify-content: center;
    text-align: center;
  }

  .download-cards {
    flex-direction: column;
    gap: 10px;
    padding: 0 8px;
  }

  .dl-card {
    max-width: 100%;
  }

  .hero-visual {
    max-width: calc(100% - 16px);
    margin: 0 auto;
  }

  .shot-back {
    top: -16px;
    left: 20px;
  }

  .orb-1 {
    width: 200px;
    height: 200px;
  }

  .orb-2 {
    width: 150px;
    height: 150px;
  }

  .footer {
    padding: 20px 0;
  }

  .footer-inner {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
  }

  .footer-links a {
    font-size: 0.8rem;
  }

  .footer-copy {
    font-size: 0.75rem;
  }
}
