/* ==============================================================================
   MuStreamer - Foglio di Stile Ufficiale (Audiophile Dark Hi-Fi Edition)
   Accento: Arancione Hi-Fi Naim (#ff6b00) | Fondo: Nero Titanio (#08090c)
   ============================================================================== */

:root {
  --bg-main: #08090c;
  --bg-surface: rgba(18, 20, 26, 0.75);
  --bg-surface-hover: rgba(26, 29, 38, 0.85);
  --bg-glass: rgba(14, 16, 22, 0.65);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(255, 107, 0, 0.4);
  
  --accent: #ff6b00;
  --accent-light: #ff8533;
  --accent-glow: rgba(255, 107, 0, 0.22);
  --accent-glow-strong: rgba(255, 107, 0, 0.45);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --font-mono: "SF Mono", Monaco, "Cascadia Code", Consolas, monospace;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --max-width: 1180px;
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* Background Ambient Glows */
body::before {
  content: "";
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 100vw);
  height: 500px;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.12) 0%, rgba(8, 9, 12, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

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

/* Typography Helpers */
h1, h2, h3, h4 {
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

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

.text-gradient {
  background: linear-gradient(135deg, #ffffff 30%, #ff8533 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 107, 0, 0.12);
  color: var(--accent-light);
  border: 1px solid rgba(255, 107, 0, 0.28);
  box-shadow: 0 0 20px rgba(255, 107, 0, 0.15);
}

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

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(255, 107, 0, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 107, 0, 0); }
}

/* Header & Navigation */
header.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

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

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

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

.header-cta {
  padding: 9px 18px;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  transition: var(--transition);
  box-shadow: 0 4px 14px var(--accent-glow);
  white-space: nowrap;
}

.header-cta:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--accent-glow-strong);
}

/* Header Actions & Language Switcher */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switcher {
  position: relative;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn:hover,
.lang-switcher.open .lang-btn {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--border-focus);
  box-shadow: 0 0 14px rgba(255, 107, 0, 0.16);
}

.lang-flag {
  font-size: 1rem;
  line-height: 1;
}

.lang-code {
  letter-spacing: 0.03em;
}

.lang-chevron {
  width: 14px;
  height: 14px;
  color: var(--text-secondary);
  transition: transform 0.2s ease;
}

.lang-switcher.open .lang-chevron {
  transform: rotate(180deg);
  color: var(--accent-light);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 175px;
  padding: 6px;
  background: #0e1118;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.65), 0 0 24px rgba(255, 107, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 1200;
}

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

.lang-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
}

.lang-option.active {
  background: rgba(255, 107, 0, 0.15);
  color: var(--accent-light);
  font-weight: 600;
}

.lang-opt-flag {
  font-size: 1.05rem;
  line-height: 1;
}

.lang-opt-name {
  flex: 1;
}

.lang-opt-check {
  font-size: 0.85rem;
  color: var(--accent);
  opacity: 0;
}

.lang-option.active .lang-opt-check {
  opacity: 1;
}

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

.hero-content {
  max-width: 820px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.12;
  margin: 22px 0;
}

.hero p.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #ffffff;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1.05rem;
  box-shadow: 0 8px 24px var(--accent-glow);
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px var(--accent-glow-strong);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  padding: 14px 26px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1.05rem;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

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

/* Official Apple App Store Buttons */
.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: #000000;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 11px 22px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

.app-store-btn:hover {
  background: #11141b;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--accent-glow);
}

.app-store-btn svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  fill: currentColor;
}

.app-store-btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}

.app-store-btn-text .caption {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.app-store-btn-text .store-name {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #ffffff;
}

.hero-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.hero-mac-tip {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 660px;
  margin: 8px auto 0;
  line-height: 1.45;
}

.hero-mac-tip code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-light);
}

.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 7px 18px;
  border-radius: 9999px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.coming-soon-badge strong {
  color: #ffffff;
}

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

/* Hero Showcase Mockup — Authentic MuStreamer Desktop UI */
/* Hero Showcase Mockup */
.hero-mockup-wrap {
  margin-top: 55px;
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-mockup-frame {
  width: 100%;
  max-width: 980px;
  background: #11141b;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 80px rgba(255, 107, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.mockup-header-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.mockup-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #2b303c;
  flex-shrink: 0;
}
.mockup-dot.red { background: #ff5f56; }
.mockup-dot.yellow { background: #ffbd2e; }
.mockup-dot.green { background: #27c93f; }

.mockup-title {
  margin: 0 auto;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  padding-right: 40px;
}

.mockup-body {
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  text-align: left;
}

.mockup-card {
  background: rgba(18, 20, 26, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  min-width: 0;
}

.mockup-card-badge {
  font-size: 0.68rem;
  padding: 4px 10px;
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}

/* Audio Visualizer Bar Simulator */
.vumeter-sim {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vu-channel {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.vu-bar {
  flex: 1;
  height: 10px;
  background: #1a1e28;
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}

.vu-fill {
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, #10b981 60%, #f59e0b 80%, #ef4444 100%);
  animation: vu-bounce 1.8s infinite ease-in-out alternate;
}

.vu-fill.r {
  animation-duration: 2.2s;
  animation-delay: 0.2s;
}

@keyframes vu-bounce {
  0% { width: 45%; }
  30% { width: 88%; }
  60% { width: 70%; }
  100% { width: 92%; }
}

/* Sections */
section {
  padding: 90px 0;
  position: relative;
}

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

.section-head h2 {
  font-size: clamp(2rem, 3.5vw, 2.7rem);
  margin-top: 14px;
}

.section-head p {
  color: var(--text-secondary);
  font-size: 1.08rem;
  margin-top: 14px;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 107, 0, 0.35);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 25px var(--accent-glow);
}

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

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(255, 107, 0, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 107, 0, 0.25);
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

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

/* Story Section */
.story-section {
  background: linear-gradient(180deg, rgba(14, 16, 22, 0.4) 0%, rgba(20, 24, 34, 0.7) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.story-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(32px, 6vw, 56px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.story-box::after {
  content: "”";
  position: absolute;
  bottom: -40px;
  right: 30px;
  font-size: 180px;
  font-family: serif;
  color: rgba(255, 107, 0, 0.05);
  pointer-events: none;
}

.story-text {
  font-size: 1.06rem;
  color: #cbd5e1;
  line-height: 1.8;
}

.story-text p {
  margin-bottom: 20px;
}

.story-text ul {
  margin: 16px 0 24px 24px;
}

.story-text li {
  margin-bottom: 8px;
}

.story-signature {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 16px;
}

.signature-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.signature-info strong {
  display: block;
  font-size: 1.1rem;
}

.signature-info span {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Specs Table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.specs-table th, .specs-table td {
  padding: 18px 24px;
  text-align: left;
}

.specs-table th {
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}

.specs-table tr:not(:last-child) td {
  border-bottom: 1px solid var(--border-subtle);
}

.specs-table td strong {
  color: var(--accent-light);
}

/* Footer */
footer.site-footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border-subtle);
  background: #050608;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

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

.footer-nav a:hover {
  color: var(--accent-light);
}

.footer-disclaimer {
  font-size: 0.8rem;
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 24px;
}

/* Mobile Navigation Dropdown & Pager (Desktop defaults: hidden) */
.mobile-nav-switcher {
  display: none;
  position: relative;
}

.mobile-section-pager {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.subpage-main {
  padding: 70px 0 100px;
}

.subpage-title {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  .mobile-nav-switcher {
    display: block;
    justify-self: start;
  }

  .brand {
    justify-self: center;
  }

  .nav-links { display: none; }
  .header-cta { display: none; }

  .nav-actions {
    justify-self: end;
  }

  .mobile-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--text-primary);
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
  }

  .mobile-nav-btn:hover,
  .mobile-nav-switcher.open .mobile-nav-btn {
    background: rgba(255, 107, 0, 0.18);
    border-color: var(--accent);
    box-shadow: 0 0 14px rgba(255, 107, 0, 0.22);
    color: var(--accent-light);
  }

  .mobile-nav-icon {
    flex-shrink: 0;
  }

  .mobile-nav-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: auto;
    min-width: 225px;
    padding: 6px;
    background: #0e1118;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-md);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.7), 0 0 24px rgba(255, 107, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.98);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: 1250;
  }

  .mobile-nav-switcher.open .mobile-nav-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }

  .mobile-nav-option {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
  }

  .mobile-nav-option:hover {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-primary);
  }

  .mobile-nav-option.active {
    background: rgba(255, 107, 0, 0.16);
    color: var(--accent-light);
    font-weight: 600;
  }

  .mobile-nav-opt-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    opacity: 0;
    flex-shrink: 0;
  }

  .mobile-nav-option.active .mobile-nav-opt-dot {
    opacity: 1;
  }

  .mobile-nav-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 6px 8px;
  }

  /* Mobile Page-by-Page View on Index */
  html[data-page="index"] main > section[data-mobile-section] {
    display: none;
  }

  html[data-page="index"] main > section[data-mobile-section].mobile-active {
    display: block;
    animation: mobilePageFade 0.22s ease;
  }

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

  .mobile-section-pager {
    display: block;
    padding: 6px 0 44px;
  }

  .mobile-pager-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
  }

  .mobile-pager-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 42px;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    min-width: 0;
  }

  .mobile-pager-btn span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-pager-btn svg {
    flex-shrink: 0;
    color: var(--accent-light);
  }

  .mobile-pager-btn:hover {
    background: var(--bg-surface-hover);
    border-color: var(--border-focus);
  }

  .mobile-pager-prev {
    justify-self: start;
  }

  .mobile-pager-next {
    justify-self: end;
  }

  .mobile-pager-btn:disabled {
    opacity: 0;
    pointer-events: none;
  }

  .mobile-pager-indicator {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    padding: 5px 10px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    white-space: nowrap;
  }

  .hero { padding: 36px 0 36px; }
  section { padding: 38px 0 36px; }
  .section-head { margin: 0 auto 28px; }
  .section-head h2 { font-size: clamp(1.55rem, 6vw, 2.05rem); }
  .section-head p { font-size: 0.96rem; }
  .hero-mockup-wrap { margin-top: 30px; }

  .subpage-main { padding: 34px 0 52px; }
  .subpage-title { font-size: clamp(1.75rem, 6.5vw, 2.2rem); }

  .footer-top { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-nav { flex-wrap: wrap; gap: 12px 20px; }
  footer.site-footer { padding: 38px 0 28px; }
  .mockup-body { grid-template-columns: 1fr; padding: 16px; }
  .features-grid { grid-template-columns: 1fr; gap: 16px; }
  .feature-card { padding: 22px 20px; }
  .story-box { padding: 26px 20px; }
  #story h2 { font-size: 1.65rem !important; margin-bottom: 18px !important; }
  .story-text { font-size: 0.97rem; line-height: 1.72; }
}

@media (max-width: 540px) {
  .nav-container { height: 62px; }
  .container { padding: 0 14px; }
  .brand { font-size: 1.02rem; gap: 8px; }
  .brand-icon { width: 30px; height: 30px; border-radius: 8px; }
  .nav-actions { gap: 6px; }
  .mobile-nav-btn { width: 36px; height: 36px; border-radius: 10px; }
  .lang-btn { padding: 6px 10px; font-size: 0.76rem; gap: 5px; }
  .lang-flag { font-size: 0.9rem; }
  .hero h1 { font-size: clamp(1.72rem, 7.4vw, 2.2rem); margin: 16px 0; }
  .hero p.lead { font-size: 0.98rem; margin-bottom: 24px; }
  .hero-actions { flex-direction: column; gap: 10px; margin-bottom: 18px; }
  .hero-actions .app-store-btn,
  .hero-actions .btn-secondary { width: 100%; max-width: 320px; justify-content: center; }
  .badge { font-size: 0.68rem; padding: 5px 11px; max-width: 100%; flex-wrap: wrap; justify-content: center; text-align: center; }
  .coming-soon-badge { max-width: 100%; font-size: 0.78rem; padding: 6px 14px; }
  .mockup-title { padding-right: 0; font-size: 0.74rem; }
  .mockup-card { padding: 16px; }
  .specs-table thead { display: none; }
  .specs-table tbody,
  .specs-table tr,
  .specs-table td { display: block; width: 100%; }
  .specs-table tr { padding: 14px 16px; border-bottom: 1px solid var(--border-subtle); }
  .specs-table tr:last-child { border-bottom: none; }
  .specs-table td { padding: 0; border-bottom: none !important; font-size: 0.92rem; }
  .specs-table td:first-child { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin-bottom: 4px; font-weight: 600; }
}
