:root {
  --bg: #070a11;
  --bg-elevated: #0d121d;
  --surface: #121826;
  --surface-2: #171f31;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #eef2f9;
  --text-muted: #98a4bc;
  --text-dim: #6f7c95;
  --accent: #7c6cff;
  --accent-bright: #9588ff;
  --teal: #00c2a8;
  --green: #2ed47a;
  --amber: #ffb547;
  --red: #ff5d6c;
  --grad: linear-gradient(135deg, #7c6cff 0%, #00c2a8 100%);
  --grad-soft: linear-gradient(135deg, rgba(124, 108, 255, 0.18) 0%, rgba(0, 194, 168, 0.14) 100%);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --shadow-lg: 0 24px 60px -15px rgba(0, 0, 0, 0.65);
  --font-ar: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ar);
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

/* Ambient background mesh */
.bg-ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.bg-ambient::before {
  content: '';
  position: absolute;
  top: -18%;
  right: -8%;
  width: 680px;
  height: 680px;
  background: radial-gradient(circle, rgba(124, 108, 255, 0.16) 0%, rgba(124, 108, 255, 0) 70%);
  filter: blur(20px);
}

.bg-ambient::after {
  content: '';
  position: absolute;
  top: 10%;
  left: -10%;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(0, 194, 168, 0.13) 0%, rgba(0, 194, 168, 0) 70%);
  filter: blur(24px);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 35%, transparent 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

code,
.mono {
  font-family: var(--font-mono);
  direction: ltr;
  unicode-bidi: embed;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 22px;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(7, 10, 17, 0.78);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  box-shadow: 0 6px 20px rgba(124, 108, 255, 0.3);
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--teal);
  background: rgba(0, 194, 168, 0.12);
  border: 1px solid rgba(0, 194, 168, 0.28);
  padding: 2px 8px;
  border-radius: 999px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 8px 13px;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 0.94rem;
  font-weight: 600;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.96rem;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--grad);
  border: none;
  color: #fff;
  box-shadow: 0 10px 30px -6px rgba(124, 108, 255, 0.55);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #8b7dff 0%, #14d4ba 100%);
  box-shadow: 0 14px 36px -6px rgba(0, 194, 168, 0.52);
}

.btn-lg {
  padding: 15px 28px;
  font-size: 1.06rem;
  border-radius: 15px;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.86rem;
  border-radius: 10px;
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-muted);
}

.btn-ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

/* Badges / Pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.pill-live {
  background: rgba(46, 212, 122, 0.1);
  border-color: rgba(46, 212, 122, 0.28);
  color: #82f0b2;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(46, 212, 122, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 212, 122, 0.7); }
  70% { box-shadow: 0 0 0 9px rgba(46, 212, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 212, 122, 0); }
}

/* Hero */
.hero {
  padding: 54px 0 42px;
}

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

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.1rem, 4.1vw, 3.25rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 26px;
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 570px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(124, 108, 255, 0.12);
  border: 1px solid rgba(124, 108, 255, 0.25);
  color: var(--accent-bright);
  flex-shrink: 0;
}

.hero-stat-icon.teal {
  background: rgba(0, 194, 168, 0.12);
  border-color: rgba(0, 194, 168, 0.26);
  color: var(--teal);
}

.hero-stat-icon.green {
  background: rgba(46, 212, 122, 0.12);
  border-color: rgba(46, 212, 122, 0.26);
  color: var(--green);
}

.hero-stat-val {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
}

.hero-stat-lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Interactive TV Subtitle Mockup */
.tv-stage {
  position: relative;
}

.tv-bezel {
  background: linear-gradient(160deg, #1b2234 0%, #0d111a 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  padding: 12px;
  box-shadow: 0 32px 70px -15px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(124, 108, 255, 0.18);
  position: relative;
}

.tv-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 15px;
  overflow: hidden;
  background: radial-gradient(circle at 75% 22%, #31255a 0%, #151b30 45%, #090d16 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
}

.tv-scene-art {
  position: absolute;
  inset: 0;
  opacity: 0.85;
  pointer-events: none;
}

.tv-hud-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hud-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(9, 13, 22, 0.72);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.75rem;
  font-weight: 700;
  color: #dce4f5;
}

.hud-chip.encrypted {
  color: #7df2b2;
  border-color: rgba(46, 212, 122, 0.35);
}

.tv-overlay-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: auto;
  padding-bottom: 6px;
}

.sub-box {
  max-width: 94%;
  text-align: center;
  transition: all 0.25s ease;
  padding: 11px 18px;
  border-radius: 14px;
}

.sub-speaker {
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 2px;
  letter-spacing: 0.02em;
}

.sub-ar {
  font-size: 1.16rem;
  font-weight: 800;
  line-height: 1.45;
  color: #fff;
}

.sub-en {
  font-size: 0.76rem;
  color: rgba(232, 236, 243, 0.72);
  margin-top: 3px;
  direction: ltr;
}

/* 5 Real Tarjem Live Subtitle Presets */
.sub-box[data-preset="cinematic"] {
  background: rgba(7, 10, 17, 0.58);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.sub-box[data-preset="cinematic"] .sub-speaker { color: #00e0c2; }

.sub-box[data-preset="classic"] {
  background: rgba(0, 0, 0, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}
.sub-box[data-preset="classic"] .sub-speaker { color: #9c8eff; }

.sub-box[data-preset="bar"] {
  width: 100%;
  max-width: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.85) 15%, rgba(0, 0, 0, 0.85) 85%, transparent);
  border-radius: 0;
  border: none;
}
.sub-box[data-preset="bar"] .sub-speaker { color: #ffb547; }

.sub-box[data-preset="yellow"] {
  background: transparent;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95), 0 0 2px #000, 1px 1px 0 #000, -1px -1px 0 #000;
}
.sub-box[data-preset="yellow"] .sub-ar { color: #ffe052; }
.sub-box[data-preset="yellow"] .sub-speaker { color: #ffffff; }

.sub-box[data-preset="stream"] {
  background: linear-gradient(135deg, rgba(124, 108, 255, 0.28), rgba(0, 194, 168, 0.24));
  backdrop-filter: blur(12px);
  border: 1px solid rgba(124, 108, 255, 0.55);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}
.sub-box[data-preset="stream"] .sub-speaker { color: #7df2b2; }

.tv-stand {
  width: 120px;
  height: 8px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, #293349, transparent);
  border-radius: 0 0 8px 8px;
}

.tv-controls {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
}

.preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  transition: all 0.16s ease;
}

.chip:hover {
  border-color: rgba(124, 108, 255, 0.5);
  color: #fff;
}

.chip.active {
  background: rgba(124, 108, 255, 0.22);
  border-color: var(--accent);
  color: #fff;
}

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

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

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(124, 108, 255, 0.12);
  border: 1px solid rgba(124, 108, 255, 0.28);
  color: #b7adff;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-kicker.green {
  background: rgba(46, 212, 122, 0.12);
  border-color: rgba(46, 212, 122, 0.3);
  color: #7df2b2;
}

.section-kicker.teal {
  background: rgba(0, 194, 168, 0.12);
  border-color: rgba(0, 194, 168, 0.3);
  color: #6df2de;
}

.section-header h2 {
  margin: 0 0 12px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 900;
  line-height: 1.25;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.03rem;
}

/* Cards */
.card {
  background: linear-gradient(180deg, rgba(22, 29, 44, 0.9) 0%, rgba(16, 22, 34, 0.92) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: var(--border-strong);
}

/* Architecture Flow */
.arch-diagram {
  background: linear-gradient(180deg, rgba(18, 24, 38, 0.95) 0%, rgba(12, 17, 27, 0.98) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 32px 26px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.arch-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 16px;
  align-items: center;
}

.arch-node {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 22px 18px;
  text-align: center;
  position: relative;
}

.arch-node.highlight {
  border-color: rgba(0, 194, 168, 0.45);
  box-shadow: 0 0 0 1px rgba(0, 194, 168, 0.14), 0 18px 40px -15px rgba(0, 194, 168, 0.22);
}

.arch-icon {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  background: rgba(124, 108, 255, 0.14);
  border: 1px solid rgba(124, 108, 255, 0.3);
  color: #b7adff;
}

.arch-node.highlight .arch-icon {
  background: rgba(0, 194, 168, 0.14);
  border-color: rgba(0, 194, 168, 0.35);
  color: var(--teal);
}

.arch-node h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
  font-weight: 800;
}

.arch-node p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.arch-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
  min-width: 112px;
}

.arch-arrow-line {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--accent));
  position: relative;
  border-radius: 2px;
}

.arch-arrow-badge {
  background: rgba(124, 108, 255, 0.14);
  border: 1px solid rgba(124, 108, 255, 0.3);
  color: #d0caff;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.73rem;
}

.arch-hdmi-bar {
  margin-top: 20px;
  padding: 13px 18px;
  border-radius: 14px;
  background: rgba(46, 212, 122, 0.08);
  border: 1px dashed rgba(46, 212, 122, 0.35);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.92rem;
  color: #b9f7d4;
}

/* Requirements Grid */
.req-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.req-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
}

.req-card h4 {
  margin: 10px 0 6px;
  font-size: 1rem;
  font-weight: 800;
}

.req-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.warn-note {
  margin-top: 10px;
  padding: 8px 11px;
  border-radius: 10px;
  background: rgba(255, 181, 71, 0.1);
  border: 1px solid rgba(255, 181, 71, 0.28);
  color: #ffd591;
  font-size: 0.81rem;
  line-height: 1.5;
}

/* Setup Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-card.wide {
  grid-column: 1 / -1;
}

.step-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.step-num {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
  font-weight: 900;
  font-size: 1.05rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(124, 108, 255, 0.35);
}

.step-head h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
}

.step-list {
  margin: 0;
  padding: 0 20px 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.step-list li {
  margin-bottom: 7px;
}

.step-list strong {
  color: var(--text);
}

.tip-box {
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(124, 108, 255, 0.09);
  border: 1px solid rgba(124, 108, 255, 0.24);
  font-size: 0.88rem;
  color: #d6d0ff;
}

.tip-box.amber {
  background: rgba(255, 181, 71, 0.09);
  border-color: rgba(255, 181, 71, 0.25);
  color: #ffe0a8;
}

/* Tabs inside Step 2 */
.tabs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.tab-btn {
  padding: 8px 15px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.88rem;
  transition: all 0.16s ease;
}

.tab-btn.active {
  background: rgba(124, 108, 255, 0.22);
  border-color: var(--accent);
  color: #fff;
}

.tab-panel {
  display: none;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
}

.tab-panel.active {
  display: block;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--grad-soft);
  border: 1px solid rgba(124, 108, 255, 0.26);
  color: #c2baff;
}

.feature-card h3 {
  margin: 4px 0 0;
  font-size: 1.1rem;
  font-weight: 800;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.93rem;
}

.kbd-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.kbd {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  font-size: 0.78rem;
  color: #dce4f5;
}

.kbd code {
  color: var(--teal);
  font-weight: 700;
}

/* Privacy & Security Fortress */
.security-shell {
  background:
    radial-gradient(circle at 15% 15%, rgba(46, 212, 122, 0.12), transparent 50%),
    radial-gradient(circle at 85% 85%, rgba(0, 194, 168, 0.1), transparent 50%),
    linear-gradient(180deg, #0f1822 0%, #0b111b 100%);
  border: 1px solid rgba(46, 212, 122, 0.28);
  border-radius: var(--radius-xl);
  padding: 38px 32px;
  box-shadow: 0 28px 65px -20px rgba(0, 0, 0, 0.75);
}

.security-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 26px;
  margin-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.security-badge-big {
  display: flex;
  align-items: center;
  gap: 16px;
}

.shield-orb {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: rgba(46, 212, 122, 0.14);
  border: 1px solid rgba(46, 212, 122, 0.38);
  color: var(--green);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 0 32px rgba(46, 212, 122, 0.22);
}

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

.sec-item {
  background: rgba(7, 11, 18, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px;
}

.sec-item h4 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sec-item p {
  margin: 0;
  font-size: 0.89rem;
  color: var(--text-muted);
}

.sec-check {
  color: var(--green);
  flex-shrink: 0;
}

/* Downloads Matrix */
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.dl-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}

.dl-card.recommended {
  border-color: rgba(124, 108, 255, 0.55);
  background: linear-gradient(180deg, rgba(28, 31, 58, 0.85) 0%, rgba(16, 22, 34, 0.96) 100%);
  box-shadow: 0 22px 50px -18px rgba(124, 108, 255, 0.38);
}

.dl-ribbon {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
}

.dl-title {
  margin: 0;
  font-size: 1.22rem;
  font-weight: 800;
}

.dl-filename {
  font-size: 0.8rem;
  color: var(--teal);
  background: rgba(0, 194, 168, 0.09);
  border: 1px solid rgba(0, 194, 168, 0.22);
  padding: 4px 9px;
  border-radius: 8px;
  display: inline-block;
  width: fit-content;
}

.dl-desc {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  flex-grow: 1;
}

.dl-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 0.85rem;
}

.dl-meta strong {
  color: #fff;
}

.hash-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(7, 10, 17, 0.7);
  border: 1px solid var(--border);
  font-size: 0.72rem;
  color: var(--text-dim);
}

.hash-val {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 7px;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}

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

.verify-bar {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.9rem;
}

/* FAQ Accordion */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  background: transparent;
  border: none;
  color: #fff;
  padding: 18px 22px;
  text-align: right;
  font-size: 1.02rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.faq-q svg {
  transition: transform 0.2s ease;
  flex-shrink: 0;
  color: var(--text-muted);
}

.faq-item.open .faq-q svg {
  transform: rotate(180deg);
  color: var(--teal);
}

.faq-a {
  display: none;
  padding: 0 22px 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.faq-item.open .faq-a {
  display: block;
}

/* Dashboard Promo Banner */
.dash-cta-box {
  background: linear-gradient(135deg, rgba(124, 108, 255, 0.16) 0%, rgba(0, 194, 168, 0.14) 100%);
  border: 1px solid rgba(124, 108, 255, 0.35);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.dash-mini-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.dash-mini-item {
  background: rgba(7, 10, 17, 0.55);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 18px;
  min-width: 130px;
}

.dash-mini-item .num {
  font-size: 1.45rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
}

.dash-mini-item .lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 34px 0 42px;
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a:hover {
  color: #fff;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 100;
  background: #141c2c;
  border: 1px solid rgba(0, 194, 168, 0.45);
  color: #fff;
  padding: 13px 18px;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

/* ================= DASHBOARD STYLES ================= */
.dash-page {
  padding: 34px 0 64px;
}

.dash-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.dash-top h1 {
  margin: 0 0 4px;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 900;
}

.dash-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.seg-group {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}

.seg-btn {
  padding: 7px 13px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.84rem;
  transition: all 0.15s ease;
}

.seg-btn.active {
  background: var(--accent);
  color: #fff;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
}

.kpi-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle, rgba(124, 108, 255, 0.14), transparent 70%);
  pointer-events: none;
}

.kpi-card.teal::after {
  background: radial-gradient(circle, rgba(0, 194, 168, 0.16), transparent 70%);
}

.kpi-card.green::after {
  background: radial-gradient(circle, rgba(46, 212, 122, 0.16), transparent 70%);
}

.kpi-card.amber::after {
  background: radial-gradient(circle, rgba(255, 181, 71, 0.16), transparent 70%);
}

.kpi-label {
  font-size: 0.86rem;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kpi-value {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 6px;
}

.kpi-sub {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.dash-grid-main {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.dash-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.panel-head h3 {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 800;
}

.panel-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.chart-wrap {
  width: 100%;
  height: 260px;
  position: relative;
}

.chart-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.bar-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bar-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.bar-track {
  width: 100%;
  height: 9px;
  border-radius: 999px;
  background: var(--bg-elevated);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--grad);
  transition: width 0.45s ease;
}

.bar-fill.teal { background: linear-gradient(90deg, #00c2a8, #2ed47a); }
.bar-fill.amber { background: linear-gradient(90deg, #ffb547, #ff8847); }

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.data-table th {
  text-align: right;
  padding: 11px 12px;
  color: var(--text-muted);
  font-weight: 700;
  border-bottom: 1px solid var(--border-strong);
  white-space: nowrap;
}

.data-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  background: rgba(124, 108, 255, 0.16);
  color: #c5bcff;
}

.tag.portable {
  background: rgba(0, 194, 168, 0.15);
  color: #6df2de;
}

.tag.apk {
  background: rgba(255, 181, 71, 0.15);
  color: #ffd591;
}

.empty-state {
  text-align: center;
  padding: 34px 16px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid,
  .dash-grid-main {
    grid-template-columns: 1fr;
  }
  .req-grid,
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid,
  .security-grid,
  .downloads-grid,
  .dash-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .arch-flow {
    grid-template-columns: 1fr;
  }
  .arch-arrow {
    flex-direction: row;
    justify-content: center;
  }
  .arch-arrow-line {
    width: 40px;
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }
  .req-grid,
  .steps-grid,
  .features-grid,
  .security-grid,
  .downloads-grid,
  .kpi-grid,
  .dash-grid-3 {
    grid-template-columns: 1fr;
  }
  .security-shell {
    padding: 24px 18px;
  }
  .hero {
    padding-top: 32px;
  }
  .section {
    padding: 46px 0;
  }
}
