/* ==========================================================================
   QualityTime Official Website Stylesheet
   Theme: Pine Teal (#042F2E), Emerald & Neon Mint (#14B8A6 / #2DD4BF),
   Glassmorphism (Frosted Glass), Modern Minimalist & Fully Responsive
   Mobile-First (320px+ phones, tablets, desktop)
   ========================================================================== */

:root {
  --bg-darkest: #021a19;
  --bg-primary: #042f2e;
  --bg-radial-1: #0a403d;
  --bg-radial-2: #031e1d;
  --bg-card: rgba(6, 44, 43, 0.7);
  --bg-card-hover: rgba(9, 58, 56, 0.88);
  --bg-glass-input: rgba(2, 26, 25, 0.7);
  
  --primary: #14b8a6;
  --primary-glow: #2dd4bf;
  --primary-deep: #0f766e;
  --accent-cyan: #38bdf8;
  --accent-emerald: #10b981;
  --accent-purple: #a855f7;
  
  --text-main: #f0fdfa;
  --text-body: #ccfbf1;
  --text-muted: #99f6e4;
  --text-dim: #5eead4;
  --text-subtle: #94a3b8;
  --border-glass: rgba(45, 212, 191, 0.22);
  --border-glass-light: rgba(255, 255, 255, 0.12);
  --border-focus: #2dd4bf;

  --shadow-glow: 0 0 35px -8px rgba(45, 212, 191, 0.35);
  --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Menlo, Consolas, monospace;

  --transition-smooth: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Mobile-First Foundation */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-darkest);
  color: var(--text-body);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 50% 0%, var(--bg-radial-1) 0%, var(--bg-radial-2) 45%, var(--bg-darkest) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  position: relative;
  line-height: 1.6;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(45, 212, 191, 0.2);
}

body.nav-open {
  overflow: hidden;
}

/* Subtle ambient background glow circles (constrained to prevent overflow) */
body::before {
  content: '';
  position: fixed;
  top: -10vw;
  right: -5vw;
  width: 45vw;
  height: 45vw;
  max-width: 500px;
  max-height: 500px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: 0;
  left: -10vw;
  width: 40vw;
  height: 40vw;
  max-width: 450px;
  max-height: 450px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* Responsive media & images */
img, svg, video, canvas, audio, iframe, embed, object {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button, input, select {
  font-family: inherit;
}

/* Text Word Wrap & Break Protection */
h1, h2, h3, h4, h5, h6, p, li, span, a, label {
  overflow-wrap: break-word;
  word-break: normal;
}

.code-inline, pre, code {
  font-family: var(--font-mono);
  word-break: break-all;
  overflow-wrap: anywhere;
}

/* Containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .container {
    padding: 0 24px;
  }
}

.container-narrow {
  max-width: 860px;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(1.85rem, 6vw, 3.5rem); }
h2 { font-size: clamp(1.45rem, 4.5vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 3.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }

.text-gradient {
  background: linear-gradient(135deg, #f0fdfa 20%, #2dd4bf 70%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-alt {
  background: linear-gradient(135deg, #2dd4bf 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead {
  font-size: clamp(1rem, 2.8vw, 1.18rem);
  color: rgba(240, 253, 250, 0.88);
  line-height: 1.6;
}

.subtle {
  color: rgba(204, 251, 241, 0.7);
}

/* Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(4, 47, 46, 0.85);
  border-bottom: 1px solid var(--border-glass-light);
  transition: var(--transition-smooth);
}

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

@media (min-width: 768px) {
  .nav-container {
    height: 74px;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 0 14px rgba(45, 212, 191, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }
  .brand {
    gap: 14px;
  }
}

.brand-name {
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
  white-space: nowrap;
}

.brand-name span {
  color: var(--primary-glow);
}

.nav-links {
  display: none;
  list-style: none;
}

@media (min-width: 1025px) {
  .nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
  }

  .nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(240, 253, 250, 0.88);
    position: relative;
    padding: 8px 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease;
  }

  .nav-link:hover, .nav-link.active {
    color: #fff;
  }

  .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-glow);
    box-shadow: 0 0 8px var(--primary-glow);
    border-radius: 2px;
  }

  .nav-mobile-cta {
    display: none;
  }
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile Toggle Button (Guaranteed 44x44px touch target) */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass-light);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 1.4rem;
  cursor: pointer;
  touch-action: manipulation;
  transition: var(--transition-smooth);
}

.menu-toggle:hover, .menu-toggle:focus-visible {
  background: rgba(45, 212, 191, 0.2);
  border-color: var(--primary-glow);
  outline: none;
}

@media (min-width: 1025px) {
  .menu-toggle {
    display: none;
  }
}

/* Mobile Menu Drawer (Active below 1025px) */
@media (max-width: 1024px) {
  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: rgba(2, 26, 25, 0.98);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    flex-direction: column;
    padding: 20px 20px 36px;
    gap: 8px;
    border-bottom: 1px solid var(--border-glass);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.85);
    z-index: 999;
  }

  @media (min-width: 768px) {
    .nav-links {
      top: 74px;
      max-height: calc(100vh - 74px);
    }
  }

  .nav-links.show {
    display: flex;
    animation: drawerSlide 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-link {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 46px;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-size: 1.05rem;
    font-weight: 600;
    color: rgba(240, 253, 250, 0.9);
    touch-action: manipulation;
  }

  .nav-link:hover, .nav-link:focus, .nav-link.active {
    background: rgba(20, 184, 166, 0.18);
    color: #fff;
    border: 1px solid var(--border-glass);
  }

  .nav-mobile-cta {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border-glass-light);
    width: 100%;
    list-style: none;
  }

  .nav-mobile-cta .btn {
    width: 100%;
    min-height: 48px;
  }
}

@keyframes drawerSlide {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Buttons (All tap-friendly, minimum 44px) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  text-align: center;
  min-height: 44px;
  min-width: 44px;
  box-sizing: border-box;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  white-space: normal;
}

.btn-primary {
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(20, 184, 166, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-primary:hover, .btn-primary:active {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #2dd4bf 0%, #14b8a6 100%);
  box-shadow: 0 8px 28px rgba(45, 212, 191, 0.65);
  color: #042f2e;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #f0fdfa;
  border: 1px solid var(--border-glass);
}

.btn-secondary:hover, .btn-secondary:active {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(45, 212, 191, 0.5);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-sm {
  min-height: 44px;
  min-width: 44px;
  padding: 10px 18px;
  font-size: 0.9rem;
}

.btn-lg {
  min-height: 50px;
  padding: 14px 28px;
  font-size: 1.05rem;
}

/* Nav CTA Button Behavior on Mobile (below 540px) */
@media (max-width: 540px) {
  .nav-cta .btn-sm {
    padding: 8px 12px;
    font-size: 0.85rem;
    gap: 6px;
    min-height: 40px;
    border-radius: var(--radius-full);
  }

  .nav-cta .btn-sm strong {
    display: none;
  }
}

@media (max-width: 360px) {
  .nav-cta .btn-sm {
    padding: 0;
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    border-radius: 50%;
  }

  .nav-cta .btn-sm span {
    display: none;
  }
}

/* Badges & Pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  background: rgba(20, 184, 166, 0.15);
  border: 1px solid rgba(45, 212, 191, 0.35);
  color: var(--primary-glow);
  max-width: 100%;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2dd4bf;
  box-shadow: 0 0 10px #2dd4bf;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(45, 212, 191, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(45, 212, 191, 0); }
}

/* Glass Cards */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass-light);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

@media (min-width: 768px) {
  .glass-card {
    padding: 34px 30px;
  }
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glass);
  box-shadow: var(--shadow-glow), var(--shadow-card);
}

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

@media (min-width: 768px) {
  .hero {
    padding: 70px 0 40px;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding: 90px 0 60px;
  }
}

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

.hero-title {
  margin: 18px 0 14px;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 3vw, 1.25rem);
  color: rgba(204, 251, 241, 0.88);
  margin-bottom: 28px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  width: 100%;
}

@media (max-width: 520px) {
  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }
  .hero-actions .btn {
    width: 100%;
  }
}

.release-meta-bar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px 16px;
  padding: 10px 18px;
  background: rgba(2, 26, 25, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: rgba(240, 253, 250, 0.9);
  flex-wrap: wrap;
  max-width: 100%;
  box-sizing: border-box;
}

.release-meta-bar span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.release-meta-bar strong {
  color: #fff;
}

/* Phone Mockup Showcase */
.hero-visual {
  margin-top: 36px;
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
}

.phone-mockup-wrap {
  position: relative;
  width: 100%;
  max-width: 380px;
}

.phone-mockup {
  background: #021a19;
  border: 3px solid rgba(45, 212, 191, 0.3);
  border-radius: 32px;
  padding: 10px;
  box-shadow: 0 25px 50px -15px rgba(0, 0, 0, 0.9), 0 0 35px rgba(45, 212, 191, 0.25);
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

@media (min-width: 768px) {
  .phone-mockup-wrap {
    max-width: 440px;
  }
  .phone-mockup {
    border-width: 4px;
    border-radius: 40px;
    padding: 14px;
  }
}

.phone-screen {
  background: linear-gradient(180deg, #042f2e 0%, #021a19 100%);
  border-radius: 24px;
  overflow: hidden;
  padding: 18px 14px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 768px) {
  .phone-screen {
    border-radius: 30px;
    padding: 24px 20px;
  }
}

.call-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 8px;
}

.call-badge-live {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.4);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.call-avatar-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 20px 0;
}

.call-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: radial-gradient(circle, #14b8a6 0%, #042f2e 90%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  border: 3px solid #2dd4bf;
  box-shadow: 0 0 25px rgba(45, 212, 191, 0.5);
  position: relative;
}

@media (min-width: 768px) {
  .call-avatar {
    width: 90px;
    height: 90px;
    font-size: 2.2rem;
  }
}

.call-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  padding: 10px 6px;
  margin-top: 18px;
}

@media (max-width: 350px) {
  .call-stats-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.stat-box {
  text-align: center;
  overflow: hidden;
}

.stat-label {
  font-size: 0.68rem;
  color: rgba(204, 251, 241, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 0.88rem;
  font-weight: 700;
  color: #2dd4bf;
}

.call-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.ctrl-btn {
  width: 46px;
  height: 46px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  font-size: 1.15rem;
  touch-action: manipulation;
}

.ctrl-btn.hangup {
  background: #dc2626;
  border-color: #ef4444;
  box-shadow: 0 0 16px rgba(220, 38, 38, 0.5);
}

/* Mobile-First Grid System */
.features-section {
  padding: 50px 0;
}

@media (min-width: 768px) {
  .features-section {
    padding: 80px 0;
  }
}

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

@media (min-width: 768px) {
  .section-head {
    margin-bottom: 56px;
  }
}

.section-head h2 {
  margin-top: 12px;
  margin-bottom: 14px;
}

/* Responsive Grid 3 (1 col on mobile, 2 col on tablet, 3 col on desktop) */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 640px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
}

@media (min-width: 992px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
}

/* Responsive Grid 2 (1 col on mobile, 2 col on tablet/desktop) */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

.feature-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(20, 184, 166, 0.15);
  border: 1px solid rgba(45, 212, 191, 0.35);
  color: #2dd4bf;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  margin-bottom: 18px;
}

.feature-title {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.feature-desc {
  color: rgba(204, 251, 241, 0.78);
  font-size: 0.94rem;
  line-height: 1.6;
}

/* Interactive Quality Calculator */
.calculator-box {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 22px 16px;
  margin: 32px 0;
}

@media (min-width: 768px) {
  .calculator-box {
    padding: 36px 32px;
    margin: 48px 0;
  }
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 860px) {
  .calc-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
  }
}

.quality-buttons {
  display: flex;
  gap: 8px;
  margin: 18px 0;
  flex-wrap: wrap;
}

.quality-btn {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass-light);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-body);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  transition: var(--transition-smooth);
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}

@media (max-width: 480px) {
  .quality-btn {
    flex: 1 1 calc(50% - 6px);
    font-size: 0.82rem;
    padding: 10px 6px;
    text-align: center;
  }
}

.quality-btn:hover {
  background: rgba(20, 184, 166, 0.2);
  border-color: var(--primary-glow);
}

.quality-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary-glow);
  box-shadow: 0 0 15px rgba(45, 212, 191, 0.4);
}

.calc-result-card {
  background: rgba(2, 26, 25, 0.85);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 22px 16px;
  text-align: center;
}

@media (min-width: 768px) {
  .calc-result-card {
    padding: 28px;
  }
}

.calc-rate-big {
  font-size: clamp(2.4rem, 8vw, 3.2rem);
  font-weight: 800;
  color: #2dd4bf;
  margin: 8px 0;
  line-height: 1;
}

/* Download Hub */
.download-hero {
  padding: 40px 0 24px;
  text-align: center;
}

@media (min-width: 768px) {
  .download-hero {
    padding: 70px 0 36px;
  }
}

.download-card-featured {
  background: linear-gradient(180deg, rgba(20, 184, 166, 0.15) 0%, rgba(6, 44, 43, 0.85) 100%);
  border: 2px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px 18px;
  box-shadow: var(--shadow-glow), var(--shadow-card);
  text-align: left;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 900px) {
  .download-card-featured {
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    padding: 44px;
    align-items: center;
  }
}

.download-platforms-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 32px 0;
}

@media (min-width: 520px) {
  .download-platforms-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (min-width: 992px) {
  .download-platforms-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.platform-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass-light);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  text-align: center;
  transition: var(--transition-smooth);
}

.platform-card:hover {
  border-color: var(--border-glass);
  transform: translateY(-2px);
}

.platform-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
  color: var(--primary-glow);
}

.platform-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 10px;
}

.badge-available {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.4);
}

.badge-soon {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.4);
}

/* Steps Walkthrough */
.steps-wrap {
  margin: 36px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 580px) {
  .steps-wrap {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (min-width: 992px) {
  .steps-wrap {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass-light);
  border-radius: var(--radius-md);
  padding: 24px 18px;
  position: relative;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #042f2e;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 0 14px rgba(45, 212, 191, 0.6);
}

/* Responsive Table Wrapper */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 16px 0;
  border-radius: var(--radius-sm);
}

.table-responsive table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}

/* FAQ Accordion (Tap Friendly, >= 44px) */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 32px 0;
}

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

.faq-item:hover {
  border-color: var(--border-glass);
}

.faq-question {
  width: 100%;
  min-height: 48px;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}

@media (min-width: 768px) {
  .faq-question {
    padding: 20px 24px;
    font-size: 1.05rem;
  }
}

.faq-icon {
  font-size: 1.25rem;
  transition: transform 0.25s ease;
  color: var(--primary-glow);
  flex-shrink: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  padding: 0 18px;
  color: rgba(204, 251, 241, 0.85);
  font-size: 0.94rem;
}

@media (min-width: 768px) {
  .faq-answer {
    padding: 0 24px;
  }
}

.faq-item.open .faq-answer {
  max-height: 700px;
  padding-bottom: 20px;
  transition: max-height 0.4s ease-in-out;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

/* Notes & Checklist */
.notes-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}

.notes-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(240, 253, 250, 0.9);
  font-size: 0.94rem;
  line-height: 1.5;
}

.notes-list li::before {
  content: '✓';
  color: #2dd4bf;
  font-weight: 800;
  background: rgba(45, 212, 191, 0.15);
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Legal Documents & Content formatting */
.legal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-glass-light);
  border-radius: var(--radius-lg);
  padding: 24px 18px;
  margin: 32px 0 60px;
}

@media (min-width: 768px) {
  .legal-content {
    padding: 44px;
    margin: 40px 0 80px;
  }
}

.legal-content h2 {
  margin-top: 32px;
  margin-bottom: 12px;
  font-size: 1.4rem;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-glass-light);
  padding-bottom: 8px;
}

.legal-content p, .legal-content ul {
  margin-bottom: 16px;
  color: rgba(204, 251, 241, 0.88);
}

.legal-content ul {
  padding-left: 20px;
}

.legal-content li {
  margin-bottom: 8px;
}

/* Footer (Mobile-first responsive grid) */
.footer {
  margin-top: auto;
  background: #021a19;
  border-top: 1px solid var(--border-glass-light);
  padding: 44px 0 28px;
  font-size: 0.9rem;
  color: rgba(204, 251, 241, 0.65);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 36px;
}

@media (min-width: 600px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (min-width: 992px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
  }
}

.footer-brand p {
  margin-top: 12px;
  max-width: 320px;
  line-height: 1.6;
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 14px;
}

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

.footer-link {
  color: rgba(204, 251, 241, 0.72);
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

.footer-link:hover {
  color: var(--primary-glow);
  transform: translateX(3px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  flex-direction: column;
  gap: 14px;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    text-align: left;
  }
}

/* Touch Friendly Utilities */
@media (max-width: 768px) {
  /* Override any hardcoded desktop padding on glass cards */
  .glass-card[style*="padding: 48px"] {
    padding: 22px 18px !important;
  }
}
