/* ==========================================================================
   Sort The Nuts : Sort Puzzle — Official Website Styles
   Lightweight, responsive, accessible, zero-dependency vanilla CSS.
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-dark: #070B14;
  --bg-canvas: #0B1120;
  --bg-surface: rgba(17, 24, 39, 0.75);
  --bg-surface-elevated: rgba(30, 41, 59, 0.7);
  --bg-card: rgba(15, 23, 42, 0.65);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(56, 189, 248, 0.3);

  /* Brand & Puzzle Accents */
  --accent-primary: #38BDF8;
  --accent-primary-hover: #0EA5E9;
  --accent-gold: #F59E0B;
  --accent-green: #10B981;
  --accent-red: #EF4444;
  --accent-purple: #A855F7;
  --accent-orange: #F97316;

  /* Typography */
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Layout & Spacing */
  --max-width: 1160px;
  --content-width: 840px;
  --header-height: 72px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 35px rgba(56, 189, 248, 0.15);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-stack);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(56, 189, 248, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 90% 40%, rgba(245, 158, 11, 0.06), transparent),
    radial-gradient(ellipse 60% 40% at 10% 70%, rgba(168, 85, 247, 0.06), transparent);
  background-attachment: fixed;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-primary-hover);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Accessibility Focus */
:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.content-narrow {
  max-width: var(--content-width);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.2s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-main);
}

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--accent-primary);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.nav-cta-btn:hover {
  background: var(--accent-primary);
  color: #040914;
  border-color: var(--accent-primary);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  padding: 56px 0 64px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 6px 14px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.28);
  color: var(--accent-gold);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-gold);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-gold);
}

.hero-title-group {
  display: flex;
  align-items: center;
  gap: 18px;
}

.hero-app-icon {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.hero-title {
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #FFFFFF 30%, #94A3B8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

/* Buttons */
.btn-play-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-play-store:hover {
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(2, 132, 199, 0.5);
  background: linear-gradient(135deg, #0EA5E9 0%, #0284C7 100%);
}

.btn-play-store svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--text-dim);
  font-size: 0.88rem;
  padding-top: 8px;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-meta-item svg {
  width: 16px;
  height: 16px;
  color: var(--accent-green);
}

/* Banner Frame */
.hero-media {
  position: relative;
}

.hero-banner-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #000;
  aspect-ratio: 1024 / 500;
}

.hero-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Section Layouts
   ========================================================================== */

.section {
  padding: 80px 0;
  position: relative;
}

.section-alt {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.4) 0%, rgba(7, 11, 20, 0.6) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 52px;
}

.section-tag {
  display: inline-block;
  color: var(--accent-primary);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* ==========================================================================
   About Section
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.about-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.about-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.about-card:hover::before {
  opacity: 1;
}

.about-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent-primary);
}

.about-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-main);
}

.about-card-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   How to Play Section
   ========================================================================== */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: var(--accent-primary);
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 16px;
}

.step-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
}

.step-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.rules-callout {
  margin-top: 36px;
  padding: 20px 24px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.rules-callout-icon {
  width: 24px;
  height: 24px;
  color: var(--accent-gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.rules-callout-content {
  font-size: 0.92rem;
  color: #E2E8F0;
  line-height: 1.5;
}

.rules-callout-content strong {
  color: #FFF;
}

/* ==========================================================================
   Features Section
   ========================================================================== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-box:nth-child(1) .feature-icon-wrap { background: rgba(239, 68, 68, 0.12); color: #EF4444; }
.feature-box:nth-child(2) .feature-icon-wrap { background: rgba(56, 189, 248, 0.12); color: #38BDF8; }
.feature-box:nth-child(3) .feature-icon-wrap { background: rgba(16, 185, 129, 0.12); color: #10B981; }
.feature-box:nth-child(4) .feature-icon-wrap { background: rgba(245, 158, 11, 0.12); color: #F59E0B; }
.feature-box:nth-child(5) .feature-icon-wrap { background: rgba(168, 85, 247, 0.12); color: #A855F7; }
.feature-box:nth-child(6) .feature-icon-wrap { background: rgba(249, 115, 22, 0.12); color: #F97316; }

.feature-body h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-main);
}

.feature-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ==========================================================================
   Screenshot Gallery
   Mandatory conceptual ordering:
   1) Gameplay screenshots first (6, 2, 3, 4, 1, 5)
   2) Levels screen
   3) Home screen last
   ========================================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gallery-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(56, 189, 248, 0.15);
  border-color: var(--border-accent);
}

.gallery-thumb-wrap {
  aspect-ratio: 9 / 20;
  width: 100%;
  background: #000;
  overflow: hidden;
  position: relative;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-img {
  transform: scale(1.03);
}

.gallery-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  background: rgba(7, 11, 20, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: #FFFFFF;
}

.gallery-tag.tag-gameplay {
  background: rgba(14, 165, 233, 0.85);
  border-color: rgba(56, 189, 248, 0.4);
}

.gallery-tag.tag-levels {
  background: rgba(245, 158, 11, 0.85);
  border-color: rgba(245, 158, 11, 0.4);
}

.gallery-tag.tag-home {
  background: rgba(168, 85, 247, 0.85);
  border-color: rgba(168, 85, 247, 0.4);
}

.gallery-caption {
  padding: 12px 14px;
  background: var(--bg-card);
}

.gallery-caption-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.gallery-caption-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Upcoming & Development Sections
   ========================================================================== */

.upcoming-card {
  background: var(--bg-surface);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.upcoming-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-gold);
}

.upcoming-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.upcoming-badge {
  padding: 4px 12px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-full);
  color: var(--accent-gold);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.upcoming-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
}

.upcoming-desc {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 780px;
}

.upcoming-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.upcoming-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.upcoming-item-name {
  font-weight: 700;
  font-size: 1rem;
  color: #FFFFFF;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.upcoming-item-status {
  display: inline-block;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-gold);
}

.upcoming-item-detail {
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Download CTA Section
   ========================================================================== */

.download-cta-box {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.15) 0%, rgba(15, 23, 42, 0.85) 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-glow);
}

.download-cta-box h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.download-cta-box p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto 28px;
}

.download-btn-center {
  display: inline-flex;
}

/* ==========================================================================
   Support & Contact Section
   ========================================================================== */

.support-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.support-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.support-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #FFFFFF;
}

.support-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.support-contact-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  gap: 16px;
  flex-wrap: wrap;
}

.support-email-text {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-main);
  word-break: break-all;
}

.support-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--accent-primary);
  color: #040914;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  transition: background 0.2s ease;
}

.support-email-btn:hover {
  background: var(--accent-primary-hover);
  color: #040914;
}

.support-topics-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px;
}

.support-topics-card h4 {
  font-size: 1.08rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.support-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.support-list-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.support-list-item svg {
  width: 18px;
  height: 18px;
  color: var(--accent-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: #04070D;
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0 32px;
  color: var(--text-dim);
  font-size: 0.88rem;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.1rem;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

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

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

.footer-dev {
  color: var(--text-muted);
}

.footer-dev strong {
  color: var(--text-main);
}

.footer-copy {
  color: var(--text-dim);
}

/* ==========================================================================
   Legal & Static Documentation Pages (Privacy Policy & Data Deletion)
   ========================================================================== */

.legal-page-header {
  padding: 56px 0 36px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.4);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-primary);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.back-link:hover {
  color: var(--accent-primary-hover);
}

.legal-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.legal-meta {
  color: var(--text-dim);
  font-size: 0.88rem;
}

.legal-body {
  padding: 48px 0 80px;
}

.legal-section {
  margin-bottom: 40px;
}

.legal-section h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.legal-section h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-top: 18px;
  margin-bottom: 8px;
}

.legal-section p {
  color: #CBD5E1;
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 14px;
}

.legal-section ul,
.legal-section ol {
  color: #CBD5E1;
  padding-left: 24px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.96rem;
  line-height: 1.65;
}

.legal-section strong {
  color: #FFFFFF;
}

.legal-callout {
  padding: 24px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-md);
  margin: 24px 0;
}

.legal-callout-warning {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.3);
}

.legal-callout-title {
  font-weight: 700;
  color: #FFFFFF;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

/* Deletion Action Box */
.deletion-action-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 32px 0;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.deletion-action-box h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.deletion-action-box p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 580px;
  margin: 0 auto 20px;
}

.btn-deletion-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-deletion-submit:hover {
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(239, 68, 68, 0.5);
}

.email-manual-copy {
  margin-top: 18px;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.email-manual-copy code {
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-media {
    max-width: 640px;
    margin: 0 auto;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid .about-card:last-child {
    grid-column: span 2;
  }

  .upcoming-items {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(7, 11, 20, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 20px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-cta-btn {
    text-align: center;
    justify-content: center;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-grid .about-card:last-child {
    grid-column: span 1;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .support-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero-title-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-play-store,
  .btn-secondary {
    justify-content: center;
  }

  .download-cta-box {
    padding: 32px 20px;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
