/* ============================================================
   ELM LAN Messenger — Product Website Styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-deep:        #0D1117;
  --bg-base:        #161B22;
  --bg-card:        #1E2530;
  --bg-card-hover:  #232C3A;
  --accent:         #3B82F6;
  --accent-hover:   #60A5FA;
  --accent-glow:    rgba(59, 130, 246, 0.35);
  --accent-glow-sm: rgba(59, 130, 246, 0.15);
  --text-primary:   #E6EDF3;
  --text-secondary: #8B949E;
  --text-muted:     #6E7681;
  --green:          #22C55E;
  --yellow:         #EAB308;
  --red:            #EF4444;
  --border:         #30363D;
  --border-hover:   #484F58;
  --shadow-lg:      0 32px 80px rgba(0,0,0,0.6);
  --shadow-md:      0 16px 40px rgba(0,0,0,0.45);
  --shadow-sm:      0 4px 16px rgba(0,0,0,0.3);
  --radius-sm:      6px;
  --radius-md:      10px;
  --radius-lg:      16px;
  --radius-xl:      24px;
  --font:           'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  display: block;
}

ul {
  list-style: none;
}

/* ── Utility Classes ─────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.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;
}

.text-accent    { color: var(--accent); }
.text-secondary { color: var(--text-secondary); }
.text-muted     { color: var(--text-muted); }

.gradient-text {
  background: linear-gradient(135deg, #E6EDF3 0%, var(--accent) 50%, #60A5FA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.22s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 0 var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.0625rem;
}

/* ── Navigation ──────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(13, 17, 23, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-logo-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-logo-sub {
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 14px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
  color: var(--text-primary);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* ── Hero Section ────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(59,130,246,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(59,130,246,0.09) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 20% 80%, rgba(96,165,250,0.07) 0%, transparent 50%);
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(48,54,61,0.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(48,54,61,0.25) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-content {
  max-width: 580px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.3);
  border-radius: 50px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent-hover);
  margin-bottom: 24px;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 60%, #93C5FD 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-trust-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.hero-trust-badges {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.trust-badge svg {
  display: inline;
  flex-shrink: 0;
}

/* Hero visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(59,130,246,0.28) 0%, transparent 70%);
  border-radius: 50%;
  animation: glow-pulse 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glow-pulse {
  0%, 100% { transform: scale(1);   opacity: 0.8; }
  50%       { transform: scale(1.1); opacity: 1;   }
}

.hero-app-mockup {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 0;
  filter: drop-shadow(0 40px 80px rgba(0,0,0,0.7));
}

/* ─── Mockup Windows ─────────────────────────────────────── */
.mockup-window {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  flex-shrink: 0;
}

.mockup-titlebar {
  background: var(--bg-deep);
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  user-select: none;
}

.mockup-titlebar-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 4px;
  flex: 1;
  text-align: center;
}

.mockup-dots {
  display: flex;
  gap: 5px;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red    { background: #EF4444; }
.dot-yellow { background: #EAB308; }
.dot-green  { background: #22C55E; }

/* ── Hero Sidebar Mockup ─────────────────────────────────── */
.hero-sidebar {
  width: 220px;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  border-right: 1px solid var(--border);
}

.hero-sidebar .mockup-titlebar {
  border-radius: var(--radius-md) 0 0 0;
}

.sidebar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.015);
}

.sidebar-toolbar-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.sidebar-toolbar-icon:hover {
  background: rgba(59,130,246,0.12);
  color: var(--accent);
}

.sidebar-search {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}

.sidebar-search-input {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 5px 8px;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.sidebar-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px 4px;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sidebar-section-header svg {
  display: inline;
}

.sidebar-users {
  padding: 0 4px 4px;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 6px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s;
}

.sidebar-user:hover,
.sidebar-user.active {
  background: rgba(59,130,246,0.08);
}

.sidebar-user.active {
  background: rgba(59,130,246,0.12);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  position: relative;
}

.user-avatar-a { background: linear-gradient(135deg, #3B82F6, #6366F1); }
.user-avatar-b { background: linear-gradient(135deg, #10B981, #059669); }
.user-avatar-c { background: linear-gradient(135deg, #F59E0B, #D97706); }
.user-avatar-d { background: linear-gradient(135deg, #EC4899, #DB2777); }
.user-avatar-e { background: linear-gradient(135deg, #8B5CF6, #7C3AED); }

.user-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--bg-card);
}

.status-online  { background: var(--green); }
.status-away    { background: var(--yellow); }
.status-busy    { background: var(--red); }
.status-offline { background: var(--text-muted); }

.user-info {
  min-width: 0;
  flex: 1;
}

.user-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-status-text {
  font-size: 0.625rem;
  color: var(--text-muted);
}

.sidebar-groups-section {
  padding: 4px;
}

.sidebar-group-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 6px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s;
}

.sidebar-group-item:hover {
  background: rgba(59,130,246,0.08);
}

.group-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: rgba(59,130,246,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

/* ── Hero Chat Mockup ────────────────────────────────────── */
.hero-chat {
  width: 300px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  display: flex;
  flex-direction: column;
}

.hero-chat .mockup-titlebar {
  border-radius: 0 var(--radius-md) 0 0;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.015);
}

.chat-header-info {
  flex: 1;
  min-width: 0;
}

.chat-header-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.chat-header-status {
  font-size: 0.625rem;
  color: var(--green);
}

.chat-header-actions {
  display: flex;
  gap: 4px;
  color: var(--text-secondary);
}

.chat-header-actions svg {
  display: inline;
  cursor: pointer;
  padding: 2px;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}

.chat-header-actions svg:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-primary);
}

.chat-messages {
  flex: 1;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg-deep);
  min-height: 220px;
}

.msg {
  display: flex;
  flex-direction: column;
  max-width: 78%;
}

.msg-right {
  align-self: flex-end;
  align-items: flex-end;
}

.msg-left {
  align-self: flex-start;
  align-items: flex-start;
}

.msg-bubble {
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 0.6875rem;
  line-height: 1.4;
  word-break: break-word;
}

.msg-bubble-sent {
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 3px;
}

.msg-bubble-received {
  background: var(--bg-card);
  color: var(--text-primary);
  border-bottom-left-radius: 3px;
}

.msg-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  font-size: 0.5625rem;
  color: var(--text-muted);
}

.msg-ticks {
  color: var(--accent-hover);
  font-size: 0.65rem;
  font-weight: 700;
}

.chat-input-area {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 8px;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.015);
}

.chat-input-box {
  flex: 1;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 5px 10px;
  font-size: 0.6875rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-send-btn {
  width: 26px;
  height: 26px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════
   FEATURES SECTION
   ═══════════════════════════════════════════════════════════ */
.features {
  padding: 120px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: 50px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: default;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 0%, rgba(59,130,246,0.08) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59,130,246,0.4);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(59,130,246,0.1);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 16px;
  transition: background 0.25s, border-color 0.25s;
}

.feature-card:hover .feature-icon {
  background: rgba(59,130,246,0.2);
  border-color: rgba(59,130,246,0.4);
}

.feature-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════
   SCREENSHOTS SECTION
   ═══════════════════════════════════════════════════════════ */
.screenshots {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-base) 50%, var(--bg-deep) 100%);
  position: relative;
  overflow: hidden;
}

.screenshots::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(59,130,246,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.screenshots-row {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Mockup A: Contact List ───────────────────────────────── */
.mockup-contacts {
  width: 280px;
  flex-shrink: 0;
}

.contacts-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 7px 8px;
  border-bottom: 1px solid var(--border);
}

.ct-icon {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.ct-icon:hover {
  background: rgba(59,130,246,0.12);
  color: var(--accent);
}

.contacts-search {
  padding: 7px 8px;
  border-bottom: 1px solid var(--border);
}

.contacts-search-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.contacts-section-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px 5px;
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  user-select: none;
  cursor: pointer;
}

.contacts-section-hdr:hover {
  color: var(--text-secondary);
}

.contacts-section-badge {
  background: rgba(255,255,255,0.08);
  border-radius: 50px;
  padding: 1px 7px;
  font-size: 0.5625rem;
  margin-left: 4px;
  font-weight: 600;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s;
  margin: 0 4px;
}

.contact-item:hover {
  background: rgba(59,130,246,0.08);
}

.contact-item.active {
  background: rgba(59,130,246,0.12);
}

.contact-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  position: relative;
}

.contact-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--bg-card);
}

.contact-info {
  flex: 1;
  min-width: 0;
}

.contact-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.contact-status-label {
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.contacts-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 8px;
}

.groups-section {
  padding: 0 4px 8px;
}

.group-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s;
  margin: 0 4px;
}

.group-row:hover {
  background: rgba(59,130,246,0.08);
}

.group-icon-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(59,130,246,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 0.6875rem;
  font-weight: 700;
  flex-shrink: 0;
}

.group-row-info {
  flex: 1;
}

.group-row-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.group-row-members {
  font-size: 0.6875rem;
  color: var(--text-muted);
}

/* ── Mockup B: Chat Window ────────────────────────────────── */
.mockup-chat {
  width: 420px;
  flex-shrink: 0;
}

.chat-hdr {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.015);
}

.chat-hdr-info { flex: 1; }

.chat-hdr-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
}

.chat-hdr-status {
  font-size: 0.6875rem;
  color: var(--green);
}

.chat-hdr-actions {
  display: flex;
  gap: 4px;
  color: var(--text-secondary);
}

.chat-hdr-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.chat-hdr-btn:hover {
  background: rgba(255,255,255,0.07);
  color: var(--text-primary);
}

.chat-msgs-area {
  background: var(--bg-deep);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 280px;
}

.message {
  display: flex;
  flex-direction: column;
}

.message-right {
  align-items: flex-end;
}

.message-left {
  align-items: flex-start;
}

.message-bubble {
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 0.8125rem;
  line-height: 1.45;
  max-width: 75%;
  word-break: break-word;
}

.bubble-sent {
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.bubble-received {
  background: var(--bg-card);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}

.message-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.seen-ticks {
  color: var(--accent-hover);
  font-weight: 700;
  font-size: 0.75rem;
}

.file-card-bubble {
  background: var(--accent);
  border-radius: 12px;
  border-bottom-right-radius: 4px;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 240px;
  cursor: pointer;
}

.file-card-icon {
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.2);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

.file-card-info { min-width: 0; }

.file-card-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-card-size {
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.75);
}

.chat-seen-bar {
  padding: 3px 12px 6px;
  font-size: 0.6875rem;
  color: var(--text-muted);
  background: var(--bg-deep);
  text-align: right;
}

.chat-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.015);
}

.chat-input-field {
  flex: 1;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 7px 14px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-emoji-btn {
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 5px;
  transition: color 0.15s;
}

.chat-emoji-btn:hover { color: var(--yellow); }

.chat-send-button {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.15s;
}

.chat-send-button:hover {
  background: var(--accent-hover);
  transform: scale(1.08);
}

/* ── Mockup C: Screen Share ───────────────────────────────── */
.mockup-screenshare {
  width: 380px;
  flex-shrink: 0;
}

.screenshare-titlebar-content {
  flex: 1;
  text-align: center;
  font-size: 0.6875rem;
  color: var(--text-secondary);
}

.screenshare-main {
  background: #0a0d12;
  position: relative;
  min-height: 220px;
  overflow: hidden;
}

.remote-desktop-sim {
  position: absolute;
  inset: 0;
  padding: 0;
}

.remote-wallpaper {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a2035 0%, #0d1424 40%, #142040 100%);
}

.remote-window-frame {
  position: absolute;
  top: 16px;
  left: 20px;
  right: 80px;
  bottom: 36px;
  background: var(--bg-card);
  border-radius: 5px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.remote-window-titlebar {
  background: var(--bg-deep);
  padding: 5px 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  border-bottom: 1px solid var(--border);
}

.remote-window-body {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.remote-window-line {
  height: 7px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
}

.remote-window-line:nth-child(1) { width: 80%; }
.remote-window-line:nth-child(2) { width: 65%; }
.remote-window-line:nth-child(3) { width: 75%; }
.remote-window-line:nth-child(4) { width: 50%; }

.remote-taskbar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 32px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  padding: 0 8px;
  gap: 4px;
}

.remote-taskbar-start {
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.remote-taskbar-item {
  width: 28px;
  height: 22px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
}

.remote-taskbar-clock {
  margin-left: auto;
  font-size: 0.5625rem;
  color: rgba(255,255,255,0.5);
}

.remote-side-apps {
  position: absolute;
  top: 16px;
  right: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.remote-side-app {
  width: 52px;
  height: 40px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.1);
}

.remote-app-1 { background: linear-gradient(135deg, #1e3a5f, #2d5a8e); }
.remote-app-2 { background: linear-gradient(135deg, #1e3a1e, #2d5a2d); }
.remote-app-3 { background: linear-gradient(135deg, #3a1e1e, #5a2d2d); }

.recording-indicator {
  position: absolute;
  top: 10px;
  right: 78px;
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(0,0,0,0.65);
  border: 1px solid rgba(239,68,68,0.4);
  border-radius: 50px;
  padding: 4px 9px;
  font-size: 0.5625rem;
  color: var(--red);
  font-weight: 700;
}

.rec-dot {
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  animation: blink 1.2s ease infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.screenshare-bottombar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
}

.ss-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 50px;
  font-size: 0.6875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: var(--font);
  transition: all 0.15s;
}

.ss-btn-disconnect {
  background: rgba(239,68,68,0.15);
  color: var(--red);
  border: 1px solid rgba(239,68,68,0.3);
}

.ss-btn-disconnect:hover {
  background: rgba(239,68,68,0.25);
}

.ss-btn-record {
  background: rgba(255,255,255,0.06);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  margin-left: auto;
}

.ss-btn-record:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-primary);
}

.ss-remote-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: 4px;
  font-size: 0.6875rem;
  color: var(--green);
}

.ss-remote-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
}

/* ═══════════════════════════════════════════════════════════
   SECURITY SECTION
   ═══════════════════════════════════════════════════════════ */
.security {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.security-card {
  background: linear-gradient(135deg, rgba(30,37,48,0.95) 0%, rgba(22,27,34,0.95) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 72px 64px;
  position: relative;
  overflow: hidden;
}

.security-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 100%, rgba(59,130,246,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 0% 50%, rgba(59,130,246,0.05) 0%, transparent 50%);
  pointer-events: none;
}

.security-lock-bg {
  position: absolute;
  right: 48px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.04;
  color: var(--text-primary);
  pointer-events: none;
}

.security-header {
  text-align: center;
  margin-bottom: 56px;
  position: relative;
  z-index: 1;
}

.security-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
  z-index: 1;
}

.security-col {
  text-align: center;
}

.security-col-icon {
  width: 56px;
  height: 56px;
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin: 0 auto 16px;
}

.security-col-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.security-col-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════════
   SILENT VIEW HIGHLIGHT SECTION
   ═══════════════════════════════════════════════════════════ */
.silent-view {
  padding: 80px 0 120px;
}

.silent-view-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.silent-view-content {}

.admin-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.silent-view-title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 16px;
}

.silent-view-desc {
  font-size: 1.0rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
}

.silent-view-bullets {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.sv-bullet {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.sv-bullet-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Admin mockup */
.admin-mockup {
  width: 340px;
  margin: 0 auto;
}

.admin-mockup-body {
  padding: 20px;
  background: var(--bg-card);
}

.admin-section-title {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.admin-passphrase-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  align-items: center;
}

.admin-input {
  flex: 1;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-unlock-btn {
  padding: 7px 14px;
  background: rgba(59,130,246,0.2);
  border: 1px solid rgba(59,130,246,0.35);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.admin-unlock-btn:hover {
  background: rgba(59,130,246,0.3);
}

.admin-divider {
  height: 1px;
  background: var(--border);
  margin: 12px 0;
}

.admin-options-title {
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-weight: 600;
}

.admin-option-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.admin-option-row:hover {
  background: rgba(59,130,246,0.08);
  border-color: rgba(59,130,246,0.25);
}

.admin-option-icon {
  width: 26px;
  height: 26px;
  background: rgba(59,130,246,0.12);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.admin-option-text {
  flex: 1;
}

.admin-option-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
}

.admin-option-sub {
  font-size: 0.625rem;
  color: var(--text-muted);
}

.admin-status-badge {
  font-size: 0.5625rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 50px;
  background: rgba(239,68,68,0.15);
  color: var(--red);
  border: 1px solid rgba(239,68,68,0.25);
}

.admin-status-badge.unlocked {
  background: rgba(34,197,94,0.12);
  color: var(--green);
  border-color: rgba(34,197,94,0.25);
}

/* ═══════════════════════════════════════════════════════════
   STATS BAR
   ═══════════════════════════════════════════════════════════ */
.stats-bar {
  background: var(--bg-base);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0;
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  padding: 36px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
  position: relative;
  transition: background 0.2s;
}

.stat-item:last-child {
  border-right: none;
}

.stat-item:hover {
  background: rgba(59,130,246,0.04);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-number .stat-accent {
  color: var(--accent);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════
   DOWNLOAD / CTA SECTION
   ═══════════════════════════════════════════════════════════ */
.download {
  padding: 140px 0;
  position: relative;
  overflow: hidden;
}

.download-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(59,130,246,0.15) 0%, transparent 65%);
  pointer-events: none;
  animation: glow-pulse 5s ease-in-out infinite;
}

.download-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}

.download-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 18px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.download-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 48px;
  line-height: 1.6;
}

.download-btn-wrap {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.download-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.sysreq-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.sysreq-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 7px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 50px;
}

.sysreq-item svg {
  display: inline;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer {
  background: var(--bg-base);
  border-top: 1px solid var(--border);
  padding: 48px 0 36px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.footer-logo-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-logo-sub {
  font-size: 0.625rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.footer-link {
  padding: 6px 12px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
}

.footer-link:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

.footer-right {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fadeInUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .hero-content {
    text-align: center;
    max-width: 100%;
  }

  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-trust { justify-content: center; }

  .hero-visual {
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .silent-view-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .security-cols {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 480px;
    margin: 0 auto;
  }

  .security-card {
    padding: 56px 40px;
  }

  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--border); }
  .stat-item:nth-child(4) { border-top: 1px solid var(--border); border-right: none; }
}

/* Mobile */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.nav-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(13,17,23,0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
    gap: 4px;
    z-index: 999;
  }

  .nav-links.nav-open .nav-link {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 1rem;
  }

  .nav-links.nav-open .btn {
    width: 100%;
    justify-content: center;
    border-radius: var(--radius-md);
  }

  .hero { padding: 100px 0 64px; }

  .hero-app-mockup {
    transform: scale(0.78);
    transform-origin: center center;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .screenshots-row {
    flex-direction: column;
    align-items: center;
  }

  .mockup-chat    { width: min(420px, 100%); }
  .mockup-contacts { width: min(280px, 100%); }
  .mockup-screenshare { width: min(380px, 100%); }

  .security-card {
    padding: 40px 24px;
    border-radius: var(--radius-lg);
  }

  .security-lock-bg { display: none; }

  .silent-view-inner {
    grid-template-columns: 1fr;
  }

  .admin-mockup {
    width: 100%;
    max-width: 340px;
  }

  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .download { padding: 100px 0; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
  .hero-app-mockup {
    transform: scale(0.62);
    transform-origin: center center;
  }

  .hero-sidebar { width: 180px; }
  .hero-chat    { width: 240px; }

  .stats-inner {
    grid-template-columns: 1fr;
  }

  .stat-item {
    border-right: none;
    border-top: 1px solid var(--border);
  }

  .stat-item:first-child { border-top: none; }

  .sysreq-row { flex-direction: column; align-items: center; }
}

/* ── Reduced motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html { scroll-behavior: auto; }
}

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-hover);
}

/* ── Selection ───────────────────────────────────────────── */
::selection {
  background: rgba(59,130,246,0.35);
  color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════════════
   MULTI-PAGE ADDITIONS
   ═══════════════════════════════════════════════════════════ */

/* ── Logo image (replaces inline SVG) ───────────────────── */
.nav-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

/* ── Active nav link ─────────────────────────────────────── */
.nav-link.active {
  color: var(--text-primary);
  background: rgba(255,255,255,0.07);
}

/* ── Footer — multi-column grid ──────────────────────────── */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.footer-brand {}

.footer-brand-desc {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 280px;
}

.footer-company {
  color: var(--text-muted);
  font-size: 0.8125rem;
  margin-top: 12px;
}

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── Inner-page hero ─────────────────────────────────────── */
.page-hero {
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(59,130,246,0.14) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.25);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.page-hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.page-hero-subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Content section ─────────────────────────────────────── */
.content-section {
  padding: 80px 0;
}

/* ── Changelog ───────────────────────────────────────────── */
.changelog {
  padding: 0 0 120px;
}

.cl-section {
  max-width: 800px;
  margin: 0 auto 64px;
}

.cl-version-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.cl-version-badge {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.cl-date {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.cl-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cl-tag-new     { background: rgba(34,197,94,0.12);  color: var(--green);  border: 1px solid rgba(34,197,94,0.25); }
.cl-tag-fix     { background: rgba(234,179,8,0.12);  color: var(--yellow); border: 1px solid rgba(234,179,8,0.25); }
.cl-tag-improve { background: rgba(96,165,250,0.12); color: #60A5FA;       border: 1px solid rgba(96,165,250,0.25); }
.cl-tag-roadmap { background: rgba(139,92,246,0.12); color: #A78BFA;       border: 1px solid rgba(139,92,246,0.25); }

.cl-group { margin-bottom: 32px; }

.cl-group-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding: 0 4px;
}

.cl-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cl-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  transition: border-color 0.2s;
}

.cl-item:hover { border-color: var(--border-hover); }

.cl-item-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.cl-item-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-section {
  padding: 0 0 120px;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item:hover { border-color: var(--border-hover); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
}

.faq-question:hover { color: var(--accent); }

.faq-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.25s;
}

.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer-inner {
  padding: 16px 24px 20px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.7;
  border-top: 1px solid var(--border);
}

/* ── Download page ───────────────────────────────────────── */
.dl-card {
  max-width: 620px;
  margin: 0 auto 64px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.dl-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(59,130,246,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.dl-card > * { position: relative; z-index: 1; }

.dl-version {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.25);
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.dl-title {
  font-size: 1.625rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.dl-subtitle {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 32px;
  line-height: 1.6;
}

.dl-btn-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.dl-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 16px;
}

.sysreq-section {
  max-width: 720px;
  margin: 0 auto 64px;
}

.sysreq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.sysreq-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.sysreq-icon {
  width: 36px;
  height: 36px;
  background: rgba(59,130,246,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.sysreq-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.sysreq-value {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.install-steps {
  max-width: 640px;
  margin: 0 auto 80px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.install-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.step-num {
  width: 36px;
  height: 36px;
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.step-body {}

.step-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.step-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Responsive additions ────────────────────────────────── */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .sysreq-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-brand {
    grid-column: auto;
  }
  .sysreq-grid {
    grid-template-columns: 1fr;
  }
  .dl-card {
    padding: 32px 24px;
  }
  .page-hero {
    padding: 120px 0 60px;
  }
}
