/* ==========================================================================
   SiloGame Landing Page Styles
   Theme: Modern Dark Gaming / macOS Glassmorphism
   ========================================================================== */

:root {
  --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Colors */
  --bg-primary: #080c14;
  --bg-secondary: #0d1424;
  --bg-card: rgba(19, 27, 46, 0.7);
  --bg-card-hover: rgba(26, 38, 64, 0.85);
  --bg-elevated: #162036;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(56, 189, 248, 0.3);
  --border-focus: #38bdf8;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #040810;

  /* Brand Accents */
  --accent-cyan: #38bdf8;
  --accent-cyan-glow: rgba(56, 189, 248, 0.25);
  --accent-blue: #2563eb;
  --accent-blue-deep: #1d4ed8;
  --accent-purple: #a855f7;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-amber-bg: rgba(245, 158, 11, 0.1);
  --accent-amber-border: rgba(245, 158, 11, 0.3);

  /* Layout */
  --max-width: 1200px;
  --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.5);
  --shadow-glow: 0 0 40px rgba(56, 189, 248, 0.2);

  /* Transitions */
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  scroll-behavior: smooth;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(37, 99, 235, 0.18), transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 30%, rgba(168, 85, 247, 0.12), transparent 70%),
    radial-gradient(ellipse 50% 30% at 20% 70%, rgba(56, 189, 248, 0.08), transparent 70%);
  background-attachment: fixed;
}

/* Modern Web Guidance: Modal Dialog & Backdrop */
dialog:modal {
  overscroll-behavior: contain;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  color: var(--text-primary);
  padding: 2rem;
  max-width: 540px;
  width: 90vw;
  box-shadow: var(--shadow-lg), 0 0 50px rgba(0, 0, 0, 0.8);
  margin: auto;
}

dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  background: rgba(4, 8, 16, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  text-decoration: underline;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

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

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 12, 20, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.brand-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

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

.nav-link:hover {
  color: var(--text-primary);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Language Switcher */
.lang-selector {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}

.lang-btn:hover {
  color: var(--text-primary);
}

.lang-btn.active {
  background: var(--accent-blue);
  color: #fff;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.4);
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  padding: 0.5rem;
  cursor: pointer;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(37, 99, 235, 0.5);
  color: #ffffff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-pix {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.btn-pix:hover {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
  color: #ffffff;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border-radius: var(--radius-md);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 5rem 0 4rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
  width: fit-content;
}

.hero-title {
  font-size: 3.25rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.025em;
  background: linear-gradient(180deg, #ffffff 40%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 580px;
}

/* ==========================================================================
   Hero Section Actions & Alignment Fix
   ========================================================================== */
.hero-actions-container {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.hero-actions-row {
  display: flex;
  align-items: stretch;
  gap: 1rem;
}

.hero-actions-row .btn {
  height: 54px;
}

.hero-version-info {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-left: 0.25rem;
}

/* Download Counter Badge */
.download-counter-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  width: fit-content;
}

.counter-pulse {
  width: 10px;
  height: 10px;
  background: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
  100% { transform: scale(0.95); opacity: 1; }
}

.counter-number {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.counter-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.counter-bump {
  animation: bump 0.4s ease-out;
}

@keyframes bump {
  0% { transform: scale(1); }
  50% { transform: scale(1.25); color: var(--accent-cyan); }
  100% { transform: scale(1); }
}

/* Hero Visual / macOS Window Card */
.hero-visual {
  position: relative;
}

.hero-card {
  background: linear-gradient(145deg, rgba(22, 32, 54, 0.8) 0%, rgba(14, 21, 38, 0.9) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg), 0 0 50px rgba(37, 99, 235, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.5), transparent);
}

.hero-card-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
}

.mac-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.mac-dot.red { background: #ff5f56; }
.mac-dot.yellow { background: #ffbd2e; }
.mac-dot.green { background: #27c93f; }

.app-icon-wrapper {
  position: relative;
  margin: 0.5rem 0;
}

.hero-app-icon {
  width: 130px;
  height: 130px;
  border-radius: 28px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.hero-app-icon:hover {
  transform: scale(1.05);
}

.icon-glow {
  position: absolute;
  inset: -15px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.4), transparent 70%);
  z-index: 1;
  border-radius: 50%;
  filter: blur(12px);
}

.hero-card-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.hero-card-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.hero-card-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.hero-card-divider {
  width: 100%;
  height: 1px;
  background: var(--border-subtle);
  margin: 0.5rem 0;
}

.hero-card-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.step-gatekeeper-box {
  margin-top: 0.75rem;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  font-size: 0.85rem;
  color: #fde68a;
  line-height: 1.5;
}

.step-gatekeeper-steps {
  margin-top: 0.4rem;
  padding-left: 1.1rem;
  color: #cbd5e1;
  font-size: 0.82rem;
}

/* ==========================================================================
   Notice / Active Development & Crash Report Banner
   ========================================================================== */
.alert-section {
  padding: 2rem 0;
}

.alert-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(217, 119, 6, 0.04) 100%);
  border: 1px solid var(--accent-amber-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: flex-start;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.05);
}

.alert-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
}

.alert-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.alert-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fbbf24;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.alert-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #cbd5e1;
}

.alert-thankyou {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(245, 158, 11, 0.2);
  font-size: 0.9rem;
  color: #fde68a;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.section-tag {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

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

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.feature-icon-box.purple {
  background: rgba(168, 85, 247, 0.1);
  color: var(--accent-purple);
  border-color: rgba(168, 85, 247, 0.2);
}

.feature-icon-box.green {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-emerald);
  border-color: rgba(16, 185, 129, 0.2);
}

.feature-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   How It Works Section
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  transition: var(--transition);
}

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

.step-number {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
}

.step-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(37, 99, 235, 0.2);
  color: var(--accent-cyan);
  width: fit-content;
  border: 1px solid rgba(37, 99, 235, 0.3);
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.step-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Requirements Section
   ========================================================================== */
.requirements-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.requirements-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.req-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.req-icon {
  font-size: 1.5rem;
}

.req-title {
  font-size: 1.3rem;
  font-weight: 700;
}

.req-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.req-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.req-check {
  color: var(--accent-emerald);
  font-size: 1.1rem;
  font-weight: bold;
  line-height: 1.3;
}

.req-cross {
  color: #ef4444;
  font-size: 1.1rem;
  font-weight: bold;
  line-height: 1.3;
}

/* ==========================================================================
   Support & Pix Donation Section
   ========================================================================== */
.pix-section {
  padding: 5rem 0;
  background: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.08), transparent 60%);
}

.pix-card {
  background: linear-gradient(145deg, rgba(19, 27, 46, 0.85) 0%, rgba(13, 20, 36, 0.95) 100%);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(16, 185, 129, 0.1);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.pix-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pix-badge {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
  width: fit-content;
}

.pix-heading {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
}

.pix-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.pix-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pix-highlight-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pix-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}

.pix-qr-container {
  width: 210px;
  height: 210px;
  background: #ffffff;
  padding: 10px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pix-qr-container img,
.pix-qr-container canvas,
.pix-qr-container svg {
  width: 100% !important;
  height: 100% !important;
}

.pix-key-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pix-key-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.pix-key-group {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.5rem 0.35rem 0.85rem;
  gap: 0.5rem;
}

.pix-key-code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-cyan);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.pix-copy-btn {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.pix-copy-btn:hover {
  background: var(--accent-emerald);
  color: #fff;
  border-color: var(--accent-emerald);
}

.pix-copy-btn.copied {
  background: var(--accent-emerald);
  color: #fff;
}

.pix-extra-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item[open] {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.faq-summary {
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent-cyan);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-summary::after {
  content: '−';
  transform: rotate(0deg);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.faq-answer p + p {
  margin-top: 0.75rem;
}

.faq-code {
  font-family: var(--font-mono);
  background: rgba(0, 0, 0, 0.4);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85em;
  color: var(--accent-cyan);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: rgba(6, 9, 15, 0.95);
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem;
  margin-top: 5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 400px;
  line-height: 1.6;
}

.footer-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--accent-cyan);
  text-decoration: none;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.legal-disclaimer {
  color: #64748b;
}

/* ==========================================================================
   Modals (Modern Web Guidance Compliant)
   ========================================================================== */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.modal-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.modal-steps-box {
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  border: 1px solid var(--border-subtle);
}

.modal-steps-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modal-steps-list {
  list-style: decimal inside;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.modal-steps-list li strong {
  color: var(--text-primary);
}

.modal-footer {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #10b981;
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 100;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  pointer-events: none;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-content {
    align-items: center;
  }

  .hero-subtitle {
    margin: 0 auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-version-info {
    justify-content: center;
  }

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

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

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

  .pix-card {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2rem;
    text-align: center;
  }

  .pix-info {
    align-items: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.35rem;
  }

  .nav {
    display: none;
  }

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

  .alert-banner {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.5rem;
  }

  .alert-icon {
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
  }

  .hero-actions-row {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .download-counter-bar {
    width: 100%;
    justify-content: center;
  }
}

/* SHA-256 do instalador: discreto e sem estourar a largura no celular */
.hero-sha {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  opacity: 0.7;
}
.hero-sha code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  word-break: break-all;
  user-select: all;
}
