/* ═══════════════════════════════════════════════════════════════════════════
   RocketLabs File Transfer — Modern SHAREit Inspired Design System
   ═══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  /* Brand Gradients & Accents (FileSharing Theme: AccentDark = #609BFD, AccentLight = #2E7CFC) */
  --brand-primary: #2E7CFC;
  --brand-secondary: #609BFD;
  --brand-tertiary: #1D4ED8;
  --brand-gradient: linear-gradient(135deg, #609BFD 0%, #2E7CFC 55%, #1D4ED8 100%);
  --brand-gradient-hover: linear-gradient(135deg, #93C5FD 0%, #3B82F6 50%, #1D4ED8 100%);
  --brand-glow: rgba(46, 124, 252, 0.28);
  --brand-glow-lg: 0 12px 40px -8px rgba(46, 124, 252, 0.38);

  /* Vivid Feature Accents */
  --color-cyan: #06B6D4;
  --color-purple: #8B5CF6;
  --color-emerald: #10B981;
  --color-amber: #F59E0B;
  --color-rose: #F43F5E;
  --color-indigo: #6366F1;

  /* Surfaces & Backgrounds (FileSharing Dark Mode: DarkBg = #070F1C, DarkSurface = #0F1D2E, DarkCard = #132032) */
  --bg-main: #070F1C;
  --bg-subtle: #0F1D2E;
  --bg-card: rgba(19, 32, 50, 0.85);
  --bg-card-hover: rgba(25, 46, 82, 0.85);
  --bg-glass: rgba(15, 29, 46, 0.85);
  --bg-pill: rgba(255, 255, 255, 0.06);

  /* Mockup Surfaces */
  --bg-mockup: linear-gradient(180deg, rgba(19, 32, 50, 0.95) 0%, rgba(7, 15, 28, 0.98) 100%);
  --bg-mockup-item: rgba(255, 255, 255, 0.04);
  --bg-mockup-item-hover: rgba(255, 255, 255, 0.08);
  --bg-speedbox: linear-gradient(135deg, rgba(46, 124, 252, 0.12), rgba(96, 155, 253, 0.08));
  --bg-floatbadge: rgba(19, 32, 50, 0.9);
  --bg-sim: #0F1D2E;
  --bg-sim-bar: rgba(19, 32, 50, 0.95);
  --bg-sim-addr: rgba(255, 255, 255, 0.06);
  --bg-sim-card: rgba(255, 255, 255, 0.04);
  --bg-cta: linear-gradient(135deg, rgba(46, 124, 252, 0.35) 0%, rgba(96, 155, 253, 0.15) 50%, rgba(15, 29, 46, 0.9) 100%);

  /* Borders & Dividers (DarkBorder = #192E52) */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: #192E52;
  --border-hover: rgba(96, 155, 253, 0.5);
  --border-mockup: #192E52;
  --border-speedbox: rgba(96, 155, 253, 0.3);

  /* Typography Colors (Dark Mode: Blue50 = #EFF6FF, Slate400 = #94A3B8, AccentDark = #609BFD) */
  --text-white: #FFFFFF;
  --text-primary: #EFF6FF;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-accent: #609BFD;
  --text-mockup-title: #EFF6FF;

  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;

  /* Layout & Geometry */
  --max-w: 1240px;
  --header-h: 74px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px -8px rgba(0, 0, 0, 0.5);
  --shadow-mockup: 0 20px 60px rgba(46, 124, 252, 0.18);
  --shadow-blue: 0 12px 36px rgba(46, 124, 252, 0.25);
  --shadow-cyan: 0 12px 36px rgba(96, 155, 253, 0.25);
}

/* ── Light Theme Overrides (FileSharing Light Mode: Slate900 = #0F172A, Slate500 = #64748B, AccentLight = #2E7CFC) ────────────────── */
[data-theme="light"] {
  --brand-primary: #2E7CFC;
  --brand-secondary: #2E7CFC;
  --brand-tertiary: #1D4ED8;
  --brand-gradient: linear-gradient(135deg, #609BFD 0%, #2E7CFC 55%, #1D4ED8 100%);
  --brand-gradient-hover: linear-gradient(135deg, #3B82F6 0%, #2563EB 50%, #1D4ED8 100%);
  --brand-glow: rgba(46, 124, 252, 0.18);
  --brand-glow-lg: 0 12px 40px -8px rgba(46, 124, 252, 0.25);

  --bg-main: #FFFFFF;
  --bg-subtle: #F8FAFC;
  --bg-card: #F5F8FA;
  --bg-card-hover: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.92);
  --bg-pill: rgba(46, 124, 252, 0.08);

  /* Light Mockup Surfaces */
  --bg-mockup: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  --bg-mockup-item: #FFFFFF;
  --bg-mockup-item-hover: #F1F5F9;
  --bg-speedbox: linear-gradient(135deg, rgba(46, 124, 252, 0.08), rgba(96, 155, 253, 0.04));
  --bg-floatbadge: rgba(255, 255, 255, 0.95);
  --bg-sim: #FFFFFF;
  --bg-sim-bar: #F8FAFC;
  --bg-sim-addr: #F1F5F9;
  --bg-sim-card: #F8FAFC;
  --bg-cta: linear-gradient(135deg, rgba(46, 124, 252, 0.12) 0%, rgba(96, 155, 253, 0.08) 50%, #FFFFFF 100%);

  /* Light Borders */
  --border-subtle: #E2E8F0;
  --border-card: #E2E8F0;
  --border-hover: rgba(46, 124, 252, 0.4);
  --border-mockup: #E2E8F0;
  --border-speedbox: rgba(46, 124, 252, 0.25);

  /* Light Typography */
  --text-white: #0F172A;
  --text-primary: #0F172A;
  --text-secondary: #64748B;
  --text-muted: #94A3B8;
  --text-accent: #2E7CFC;
  --text-mockup-title: #0F172A;

  /* Light Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 48px -8px rgba(0, 0, 0, 0.08);
  --shadow-mockup: 0 20px 50px rgba(46, 124, 252, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04);
}

/* ── Base & Reset ────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Background Atmospheric Glow Wrapper (Strict Overflow Barrier) */
.bg-glow-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* Background Atmospheric Glow Orbs (GPU Accelerated, No Repaint Glitch) */
.bg-glow-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  transition: opacity 0.3s ease;
}

[data-theme="light"] .bg-glow-orb {
  opacity: 0.25;
}

.orb-1 {
  top: -100px;
  left: 20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle closest-side, rgba(0, 198, 255, 0.35) 0%, rgba(0, 102, 255, 0.12) 60%, transparent 100%);
}

.orb-2 {
  top: 600px;
  right: -100px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle closest-side, rgba(139, 92, 246, 0.25) 0%, rgba(0, 102, 255, 0.08) 60%, transparent 100%);
}

.orb-3 {
  top: 2200px;
  left: -150px;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle closest-side, rgba(6, 182, 212, 0.22) 0%, rgba(0, 102, 255, 0.06) 60%, transparent 100%);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-primary);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ── Typography & Helpers ────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-white);
  line-height: 1.2;
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
}

.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-accent);
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
}

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

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 16px;
}

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

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand-gradient);
  color: #FFFFFF !important;
  box-shadow: var(--brand-glow-lg);
}

.btn-primary:hover {
  background: var(--brand-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -4px rgba(0, 102, 255, 0.5);
}

.btn-outline {
  background: var(--bg-pill);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(0, 102, 255, 0.1);
  border-color: var(--brand-secondary);
  color: var(--text-white);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn-icon-right {
  transition: transform 0.2s ease;
}

.btn:hover .btn-icon-right {
  transform: translateX(4px);
}

/* ── Header & Navbar ─────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  transform: translateZ(0);
  will-change: background-color, border-color, box-shadow;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--border-card);
}

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

/* Brand Logo */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-wrap {
  width: 42px;
  height: 42px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 12px rgba(46, 124, 252, 0.4));
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 4px;
}

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

.brand-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

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

.nav-link {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-secondary);
  border-radius: 99px;
  transition: width 0.25s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.mobile-only-item {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

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

/* ── Hero Section ─────────────────────────────────────────────────────────── */
.hero {
  padding-top: calc(var(--header-h) + 60px);
  padding-bottom: 90px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-headline {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.hero-subheadline {
  font-size: 1.18rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 560px;
}

/* Feature Quick Pills Bar */
.hero-feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.feature-pill-icon {
  font-size: 1rem;
}

/* ── Dual Mock Devices (HP Phone & Web Share Tablet) ─────────────────────── */
.hero-devices-showcase {
  position: relative;
  width: 100%;
  max-width: 610px;
  height: 440px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
  z-index: 2;
  box-sizing: border-box;
}

.device-mockup {
  position: absolute;
  box-sizing: border-box;
  user-select: none;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ── Tablet / Web Share Mockup (Layered Background) ── */
.device-tablet {
  right: 0;
  top: 15px;
  width: 470px;
  height: 295px;
  background: #0D1628;
  border-radius: 18px;
  border: 4px solid #1E293B;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.tablet-screen {
  width: 100%;
  height: 100%;
  background: #080E1B;
  display: flex;
  flex-direction: column;
}

.tablet-topbar {
  background: #111C30;
  padding: 7px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tablet-dots {
  display: flex;
  gap: 4px;
}

.tablet-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.dot.red { background: #EF4444; }
.dot.yellow { background: #F59E0B; }
.dot.green { background: #10B981; }

.tablet-url-bar {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  padding: 2px 9px;
  font-size: 0.68rem;
  color: #94A3B8;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: monospace;
}

.tablet-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 6px #10B981;
}

.tablet-inner-content {
  padding: 8px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.tablet-categories-row {
  display: flex;
  gap: 4px;
  overflow-x: hidden;
  padding-left: 135px;
}

.tablet-cat-chip {
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.62rem;
  font-weight: 600;
  color: #94A3B8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}

.tablet-cat-chip.active {
  background: #2563EB;
  color: #FFFFFF;
  border-color: #3B82F6;
}

.tablet-media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding-left: 135px;
}

.tablet-media-card {
  height: 76px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 5px 6px;
}

.card-img-1 { background: linear-gradient(135deg, #1E1B4B 0%, #312E81 50%, #4338CA 100%); }
.card-img-2 { background: linear-gradient(135deg, #064E3B 0%, #065F46 50%, #047857 100%); }
.card-img-3 { background: linear-gradient(135deg, #4C1D95 0%, #5B21B6 50%, #6D28D9 100%); }

.media-thumb-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
}

.play-mini-btn {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #1E40AF;
  font-size: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 1px;
}

.media-thumb-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 0.52rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.6);
  color: #60A5FA;
}

.media-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0;
  z-index: 1;
}

.media-card-name {
  font-size: 0.62rem;
  font-weight: 600;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.media-card-size {
  font-size: 0.52rem;
  color: rgba(255, 255, 255, 0.65);
}

.tablet-transfer-strip {
  background: #111C30;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 5px 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: 135px;
}

.strip-icon-box {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: rgba(37, 99, 235, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60A5FA;
  flex-shrink: 0;
}

.strip-meta {
  flex: 1;
  min-width: 0;
}

.strip-title {
  font-size: 0.64rem;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.strip-sub {
  font-size: 0.54rem;
  color: #94A3B8;
}

.strip-speed {
  font-size: 0.68rem;
  font-weight: 800;
  color: #38BDF8;
}

/* ── Smartphone Mockup (Foreground) ── */
.device-phone {
  left: 0;
  bottom: 0;
  width: 220px;
  height: 412px;
  background: #080E1A;
  border-radius: 34px;
  border: 5px solid #1E293B;
  box-shadow: 0 30px 70px -10px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.12);
  overflow: hidden;
  z-index: 3;
  display: flex;
  flex-direction: column;
}

.phone-dynamic-island {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 15px;
  background: #000000;
  border-radius: 10px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 5px;
}

.island-camera {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #1E293B;
  box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.8);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #060B14;
  padding: 26px 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
}

.phone-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 0 1px;
}

.phone-brand-title {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.phone-logo-wrap {
  width: 17px;
  height: 17px;
  min-width: 17px;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.phone-logo-wrap svg {
  width: 17px;
  height: 17px;
  display: block;
}

.phone-name-text {
  font-size: 0.76rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

.phone-name-text span {
  color: #38BDF8;
}

/* Phone Top Bar User Avatar */
.phone-user-avatar {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1E293B, #334155);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  flex-shrink: 0;
}

.avatar-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-status-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  border: 1.5px solid #060B14;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.phone-user-avatar {
  position: relative;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.phone-user-avatar:hover {
  transform: scale(1.05);
}

.avatar-img-box {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.35);
}

.avatar-status-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  border: 1.5px solid #060B14;
  box-shadow: 0 0 4px #10B981;
}


/* Compact Action Buttons */
.phone-action-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.action-card {
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.72rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.action-card:hover {
  transform: translateY(-1px);
}

.action-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-send {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25);
}

.card-receive {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

/* Connected Peer Card */
.phone-peer-card {
  background: #0E1726;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.peer-header {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.peer-avatar {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: rgba(59, 130, 246, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60A5FA;
  flex-shrink: 0;
}

.peer-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.peer-title-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.peer-name {
  font-size: 0.68rem;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.peer-speed {
  font-size: 0.6rem;
  font-weight: 800;
  color: #38BDF8;
  flex-shrink: 0;
}

.peer-sub {
  font-size: 0.54rem;
  color: #94A3B8;
}

.phone-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
}

.phone-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563EB, #38BDF8);
  border-radius: 99px;
  box-shadow: 0 0 6px rgba(56, 189, 248, 0.6);
}

/* Phone Transfer Items List */
.phone-file-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.phone-file-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 7px;
  padding: 5px 7px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.file-type-badge {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.type-video { background: rgba(139, 92, 246, 0.15); }
.type-archive { background: rgba(56, 189, 248, 0.15); }

.file-info-group {
  flex: 1;
  min-width: 0;
}

.file-name {
  font-size: 0.64rem;
  font-weight: 600;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-sub {
  font-size: 0.54rem;
  color: #94A3B8;
}

.file-status {
  font-size: 0.62rem;
  font-weight: 700;
}

.file-status.done {
  color: #10B981;
  background: rgba(16, 185, 129, 0.15);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.file-status.active {
  color: #38BDF8;
  font-size: 0.62rem;
  background: rgba(56, 189, 248, 0.12);
  padding: 1px 4px;
  border-radius: 3px;
}

/* ── Contextual Floating Hero Badges ── */
.floating-hero-badge {
  position: absolute;
  background: rgba(13, 22, 40, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-full);
  padding: 4px 11px;
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), 0 0 16px rgba(56, 189, 248, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 5;
  user-select: none;
}

/* Badge 1: Top-Right of Phone Frame / Center Bridge (P2P Connection Callout) */
.badge-p2p-speed {
  top: -14px;
  left: 165px;
  border-color: rgba(56, 189, 248, 0.35);
  animation: floatBadgeP2P 4s infinite ease-in-out;
}

@keyframes floatBadgeP2P {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.badge-icon-wifi {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38BDF8;
  flex-shrink: 0;
}

/* Badge 2: Top-Right Shoulder of Tablet (Web Share Callout) */
.badge-webshare-status {
  top: -14px;
  right: 18px;
  border-color: rgba(16, 185, 129, 0.35);
  animation: floatBadgeWebShare 4.5s infinite ease-in-out;
}

@keyframes floatBadgeWebShare {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.badge-icon-browser {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #10B981;
  flex-shrink: 0;
}

.badge-text-col {
  display: flex;
  flex-direction: column;
}

.badge-text-col .badge-title {
  font-size: 0.68rem;
  font-weight: 800;
  color: #FFFFFF;
}

.badge-text-col .badge-sub {
  font-size: 0.56rem;
  color: #7DD3FC;
}

.badge-webshare-status .badge-sub {
  color: #6EE7B7;
}

/* ── Light Mode Adaptations for Dual Mock Devices ────────────────────────── */
[data-theme="light"] .device-tablet {
  background: #FFFFFF;
  border: 6px solid #E2E8F0;
  box-shadow: 0 25px 60px -10px rgba(15, 23, 42, 0.12), 0 0 0 1px #CBD5E1;
}

[data-theme="light"] .tablet-camera-notch {
  background: #CBD5E1;
}

[data-theme="light"] .tablet-screen {
  background: #F8FAFC;
}

[data-theme="light"] .tablet-topbar {
  background: #F1F5F9;
  border-bottom: 1px solid #E2E8F0;
}

[data-theme="light"] .tablet-url-bar {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #475569;
}

[data-theme="light"] .tablet-cat-chip {
  background: #E2E8F0;
  color: #64748B;
}

[data-theme="light"] .tablet-cat-chip.active {
  background: #2E7CFC;
  color: #FFFFFF;
}

[data-theme="light"] .tablet-media-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .tablet-transfer-strip {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .strip-icon-box {
  background: rgba(46, 124, 252, 0.12);
  color: #2E7CFC;
}

[data-theme="light"] .strip-title {
  color: #0F172A;
}

[data-theme="light"] .strip-sub {
  color: #64748B;
}

[data-theme="light"] .strip-speed {
  color: #2E7CFC;
}

/* Light Mode HP Smartphone Frame (White / Ceramic Frame) */
[data-theme="light"] .device-phone {
  background: #FFFFFF;
  border: 6px solid #E2E8F0;
  box-shadow: 0 30px 70px -10px rgba(15, 23, 42, 0.15), 0 0 0 1px #CBD5E1;
}

[data-theme="light"] .phone-dynamic-island {
  background: #0F172A;
}

[data-theme="light"] .phone-screen {
  background: #F8FAFC;
}

[data-theme="light"] .phone-brand-title {
  color: #0F172A;
}

[data-theme="light"] .phone-name-text {
  color: #0F172A;
}

[data-theme="light"] .phone-name-text span {
  color: #2E7CFC !important;
}

[data-theme="light"] .phone-user-avatar {
  background: #E2E8F0;
  border-color: #CBD5E1;
  color: #475569;
}

[data-theme="light"] .avatar-status-dot {
  border-color: #F8FAFC;
}

[data-theme="light"] .phone-peer-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .peer-avatar {
  background: rgba(46, 124, 252, 0.12);
  color: #2E7CFC;
}

[data-theme="light"] .peer-name {
  color: #0F172A;
}

[data-theme="light"] .peer-speed {
  color: #2E7CFC;
}

[data-theme="light"] .peer-sub {
  color: #64748B;
}

[data-theme="light"] .phone-progress-bar {
  background: #E2E8F0;
}

[data-theme="light"] .phone-progress-fill {
  background: linear-gradient(90deg, #2E7CFC, #609BFD);
}

[data-theme="light"] .phone-file-item {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .file-name {
  color: #0F172A;
}

[data-theme="light"] .file-sub {
  color: #64748B;
}

[data-theme="light"] .file-status.active {
  color: #2E7CFC;
  background: rgba(46, 124, 252, 0.12);
}

[data-theme="light"] .file-status.done {
  color: #059669;
  background: rgba(16, 185, 129, 0.15);
}

/* Light Mode Floating Badges */
[data-theme="light"] .floating-hero-badge {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1), 0 0 16px rgba(46, 124, 252, 0.08);
}

[data-theme="light"] .badge-text-col .badge-title {
  color: #0F172A;
}

[data-theme="light"] .badge-p2p-speed {
  border-color: rgba(46, 124, 252, 0.3);
}

[data-theme="light"] .badge-p2p-speed .badge-sub {
  color: #0284C7;
}

[data-theme="light"] .badge-icon-wifi {
  background: rgba(46, 124, 252, 0.12);
  border-color: rgba(46, 124, 252, 0.25);
  color: #2E7CFC;
}

[data-theme="light"] .badge-webshare-status {
  border-color: rgba(16, 185, 129, 0.3);
}

[data-theme="light"] .badge-webshare-status .badge-sub {
  color: #059669;
}

[data-theme="light"] .badge-icon-browser {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.25);
  color: #059669;
}

/* ── Benchmark / Speed Calculator Section ────────────────────────────────── */
.benchmark-section {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg-main) 0%, var(--bg-subtle) 50%, var(--bg-main) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.calculator-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
}

.calc-selector-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.calc-size-btn {
  padding: 10px 22px;
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.calc-size-btn:hover {
  background: rgba(0, 102, 255, 0.1);
  color: var(--text-white);
}

.calc-size-btn.active {
  background: var(--brand-gradient);
  border-color: transparent;
  color: #FFFFFF !important;
  box-shadow: var(--brand-glow-lg);
}

.calc-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.calc-result-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transition: all 0.3s ease;
}

.calc-result-card.champion {
  background: linear-gradient(180deg, rgba(0, 102, 255, 0.12) 0%, rgba(0, 198, 255, 0.04) 100%);
  border: 1.5px solid var(--brand-secondary);
  box-shadow: 0 12px 32px rgba(0, 102, 255, 0.2);
}

.champion-ribbon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-gradient);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.35);
  margin-bottom: 16px;
  white-space: nowrap;
}

.card-pill-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  color: var(--text-accent);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  white-space: nowrap;
}

.calc-method-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 8px;
  line-height: 1.35;
}

.calc-method-speed {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.calc-time-value {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text-white);
  line-height: 1;
  margin-bottom: 6px;
}

.calc-result-card.champion .calc-time-value {
  color: var(--brand-primary);
}

[data-theme="dark"] .calc-result-card.champion .calc-time-value {
  color: #38BDF8;
}

.calc-time-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ── Core Features Section (SHAREit Key Pillars) ─────────────────────────── */
.features-section {
  padding: 100px 0;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 36px 30px;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(0, 102, 255, 0.15);
}

.feature-icon-wrapper {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 24px;
}

.icon-wrap-blue   { background: rgba(0, 102, 255, 0.15); color: #0284C7; border: 1px solid rgba(0, 102, 255, 0.3); }
.icon-wrap-cyan   { background: rgba(6, 182, 212, 0.15); color: #0891B2; border: 1px solid rgba(6, 182, 212, 0.3); }
.icon-wrap-purple { background: rgba(139, 92, 246, 0.15); color: #7C3AED; border: 1px solid rgba(139, 92, 246, 0.3); }
.icon-wrap-green  { background: rgba(16, 185, 129, 0.15); color: #059669; border: 1px solid rgba(16, 185, 129, 0.3); }
.icon-wrap-amber  { background: rgba(245, 158, 11, 0.15); color: #D97706; border: 1px solid rgba(245, 158, 11, 0.3); }
.icon-wrap-rose   { background: rgba(244, 63, 94, 0.15); color: #E11D48; border: 1px solid rgba(244, 63, 94, 0.3); }

.feature-card-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 12px;
}

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

/* ── Web Share Showcase Section (Zero Install Experience) ────────────────── */
.webshare-section {
  padding: 100px 0;
  background: radial-gradient(circle at center, rgba(0, 102, 255, 0.1) 0%, transparent 70%);
}

.webshare-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
}

.webshare-info {
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.webshare-steps-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 30px 0;
}

.webshare-step-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.4);
}

.step-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-white);
  margin-bottom: 2px;
}

.step-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* Web Share Interactive Simulator Window */
.webshare-simulator {
  background: var(--bg-sim);
  border-left: 1px solid var(--border-card);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.sim-browser-bar {
  background: var(--bg-sim-bar);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.sim-browser-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  background: var(--bg-pill);
  border-radius: var(--radius-sm);
}

.sim-address-bar {
  flex: 1;
  background: var(--bg-sim-addr);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-size: 0.8rem;
  font-family: monospace;
  color: var(--text-accent);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sim-content-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sim-tabs-row {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 10px;
}

.sim-tab {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.sim-tab.active {
  background: var(--brand-gradient);
  color: #FFFFFF !important;
}

.sim-grid-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.sim-media-card {
  aspect-ratio: 16 / 11;
  background: var(--bg-sim-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.sim-media-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.3s ease;
}

.sim-media-card:hover .sim-media-img {
  transform: scale(1.05);
}

.sim-media-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-secondary);
  box-shadow: 0 6px 18px rgba(0, 102, 255, 0.2);
}

.sim-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  pointer-events: none;
}

.sim-play-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #0066FF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}

.sim-media-card:hover .sim-play-circle {
  transform: scale(1.1);
  background: #FFFFFF;
}

.sim-play-circle svg {
  width: 15px;
  height: 15px;
  margin-left: 2px;
  fill: #0066FF;
}

.sim-doc-icon-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.sim-doc-icon-wrap svg {
  color: #38BDF8;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.sim-doc-ext {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  background: rgba(0, 102, 255, 0.35);
  border: 1px solid rgba(0, 198, 255, 0.45);
  border-radius: var(--radius-sm);
  color: #FFFFFF;
}

.sim-media-info {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, transparent 0%, rgba(6, 11, 20, 0.85) 60%, rgba(6, 11, 20, 0.95) 100%);
  padding: 18px 10px 8px 10px;
}

.sim-media-name {
  font-size: 0.76rem;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.sim-media-meta {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sim-dropzone {
  margin-top: auto;
  padding: 16px 20px;
  background: rgba(0, 102, 255, 0.05);
  border: 1.5px dashed rgba(0, 102, 255, 0.35);
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.sim-dropzone svg {
  width: 20px;
  height: 20px;
  color: var(--brand-secondary);
  flex-shrink: 0;
}

/* ── Platform Download Hub Section ───────────────────────────────────────── */
.downloads-section {
  padding: 100px 0;
  border-top: 1px solid var(--border-subtle);
}

.platform-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.platform-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 36px 24px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}

.platform-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--brand-secondary);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(0, 102, 255, 0.2);
}

.platform-card.ready {
  border-color: rgba(52, 211, 153, 0.4);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, var(--bg-card) 100%);
}

.platform-card.ready:hover {
  border-color: #10B981;
  box-shadow: var(--shadow-lg), 0 0 30px rgba(16, 185, 129, 0.25);
}

.platform-status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.status-ready {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10B981;
}

.status-soon {
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.platform-card-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.platform-card-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 6px;
}

.platform-card-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.platform-card-btn {
  width: 100%;
  margin-top: auto;
}

/* ── FAQ Section ─────────────────────────────────────────────────────────── */
.faq-section {
  padding: 100px 0;
  border-top: 1px solid var(--border-subtle);
}

.faq-accordion-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

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

.faq-question-btn {
  width: 100%;
  padding: 22px 26px;
  background: transparent;
  border: none;
  color: var(--text-white);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}

.faq-toggle-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-primary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-toggle-icon {
  transform: rotate(45deg);
  background: var(--brand-primary);
  color: #FFFFFF;
}

.faq-answer-wrap {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 26px;
}

.faq-item.open .faq-answer-wrap {
  max-height: 250px;
  padding-bottom: 22px;
}

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

/* ── CTA Banner Section ─────────────────────────────────────────────────── */
.cta-section {
  padding: 80px 0 100px 0;
}

.cta-banner-card {
  background: var(--bg-cta);
  border: 1px solid rgba(0, 198, 255, 0.4);
  border-radius: var(--radius-xl);
  padding: 64px 40px;
  text-align: center;
  box-shadow: var(--shadow-lg), 0 0 80px rgba(0, 102, 255, 0.25);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.cta-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 900;
  color: var(--text-white);
  margin-bottom: 18px;
}

.cta-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 36px auto;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-subtle);
  padding: 64px 0 32px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 16px;
  max-width: 320px;
  line-height: 1.6;
}

.footer-col-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

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

.footer-theme-toggle {
  background: transparent;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.footer-theme-toggle:hover {
  color: var(--text-white);
  border-color: var(--brand-secondary);
  background: var(--bg-pill);
}



/* ── Responsive Queries (Full Mobile & Tablet Precision) ───────────────── */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-content {
    align-items: center;
    text-align: center;
    width: 100%;
  }
  .hero-headline {
    text-align: center;
  }
  .hero-subheadline {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  .hero-cta-row {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-feature-pills {
    justify-content: center;
  }
  .hero-devices-showcase {
    margin: 40px auto 0;
    max-width: 520px;
    height: 420px;
  }
  .device-tablet {
    width: 390px;
    height: 270px;
    right: 0;
    top: 20px;
  }
  .device-phone {
    width: 205px;
    height: 390px;
    left: 0;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .webshare-box {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .webshare-info {
    text-align: center;
  }
  .webshare-info .section-title,
  .webshare-info .section-desc {
    text-align: center !important;
  }
  .webshare-steps-list {
    text-align: left;
    max-width: 520px;
    margin: 0 auto 28px auto;
  }
  .platform-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

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

  .container {
    padding: 0 16px;
  }

  /* Top Bar Fix - Prevents Truncation & Clamping on Mobile */
  .brand {
    gap: 8px;
  }
  .brand-logo-wrap {
    width: 36px;
    height: 36px;
  }
  .brand-name {
    font-size: 1.15rem;
  }
  .brand-badge {
    display: none;
  }

  /* Hide long button in top bar header so it never clamps */
  .nav-actions .btn {
    display: none;
  }

  .nav-actions {
    gap: 8px;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #FFFFFF;
    cursor: pointer;
  }

  /* Mobile Drawer Menu */
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    width: 100%;
    background: #0D3ECA;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 20px 20px 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
    z-index: 1001;
    gap: 6px;
  }

  .nav-menu.open {
    display: flex;
    animation: fadeInSlide 0.25s ease-out;
  }

  .nav-link {
    display: block;
    padding: 12px 0;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    text-align: left;
  }

  .mobile-only-item {
    display: block !important;
    width: 100%;
    margin-top: 8px;
  }

  /* Centered Layout Sections */
  .hero {
    padding-top: calc(var(--header-h) + 32px);
    padding-bottom: 60px;
    text-align: center;
  }

  .hero-content {
    align-items: center;
    text-align: center;
    margin: 0 auto;
  }

  .hero-devices-showcase {
    max-width: 440px;
    height: 380px;
    margin: 30px auto 0;
  }

  .device-tablet {
    width: 330px;
    height: 230px;
    top: 15px;
    right: 0;
  }

  .device-phone {
    width: 190px;
    height: 360px;
    left: 0;
  }

  .badge-p2p-speed {
    top: -12px;
    left: 4px;
    padding: 3px 9px;
  }

  .badge-webshare-status {
    top: -12px;
    right: 4px;
    padding: 3px 9px;
  }

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

  .calc-results-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .platform-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }

  .footer-brand-desc {
    margin-left: auto;
    margin-right: auto;
  }

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

  .sim-tabs-row {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 6px;
  }
  .sim-tabs-row::-webkit-scrollbar {
    display: none;
  }

  .sim-tab {
    flex-shrink: 0;
  }

  .calc-selector-row {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 6px;
  }
  .calc-selector-row::-webkit-scrollbar {
    display: none;
  }

  .calc-size-btn {
    flex-shrink: 0;
  }
}

@media (max-width: 540px) {
  .hero-headline {
    font-size: clamp(1.85rem, 8vw, 2.4rem);
    text-align: center;
  }

  .hero-subheadline {
    font-size: 0.95rem;
    text-align: center;
  }

  .hero-cta-row {
    flex-direction: column;
    width: 100%;
    max-width: 360px;
    margin: 0 auto 24px auto;
    gap: 10px;
  }

  .hero-cta-row .btn {
    width: 100%;
    text-align: center;
    padding: 14px 20px;
  }

  .hero-feature-pills {
    gap: 6px;
    justify-content: center;
  }

  .hero-feature-pill {
    padding: 6px 12px;
    font-size: 0.78rem;
  }

  .hero-devices-showcase {
    max-width: 330px;
    height: 360px;
    margin: 25px auto 0;
  }

  .device-tablet {
    width: 240px;
    height: 180px;
    right: 0px;
    top: 15px;
    opacity: 0.85;
  }

  .tablet-categories-row {
    display: none;
  }

  .tablet-transfer-strip {
    display: none;
  }

  .device-phone {
    width: 175px;
    height: 340px;
    left: 0;
  }

  .badge-p2p-speed {
    left: 50%;
    transform: translateX(-50%);
    top: -12px;
    font-size: 0.68rem;
    white-space: nowrap;
  }

  .badge-webshare-status {
    display: none;
  }

  .floating-media-bubble {
    display: none;
  }

  .sim-grid-preview {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .sim-media-name {
    font-size: 0.72rem;
  }

  .sim-media-meta {
    font-size: 0.62rem;
  }

  .sim-content-body {
    padding: 16px 12px;
    gap: 12px;
  }

  .sim-dropzone {
    padding: 12px 10px;
    font-size: 0.76rem;
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }

  .calc-result-card {
    padding: 24px 18px;
    text-align: center;
  }

  .calc-method-title {
    font-size: 1.15rem;
  }

  .platform-card {
    padding: 28px 18px;
  }

  .faq-question-btn {
    padding: 16px 18px;
    font-size: 0.95rem;
  }

  .faq-answer-wrap {
    padding: 0 18px;
  }

  .faq-item.open .faq-answer-wrap {
    padding-bottom: 18px;
  }

  .cta-banner-card {
    padding: 40px 20px;
    border-radius: var(--radius-lg);
    text-align: center;
  }

  .cta-title {
    font-size: 1.8rem;
  }

  .cta-desc {
    font-size: 0.98rem;
    margin-bottom: 24px;
  }

  .cta-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .cta-actions .btn {
    width: 100%;
    text-align: center;
  }
}

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