:root {
  --bg-void: #060913;
  --bg-deep: #0b1120;
  --bg-card: #0f172a;
  --bg-elevated: #162036;
  --border-subtle: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.28);

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;

  --cyan: #06b6d4;
  --cyan-bright: #22d3ee;
  --emerald: #10b981;
  --emerald-bright: #34d399;
  --red: #ef4444;
  --red-soft: rgba(239, 68, 68, 0.14);
  --purple: #8b5cf6;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --font-sans: 'Inter', 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --shadow-card: 0 20px 50px -15px rgba(0, 0, 0, 0.65);
  --shadow-glow-cyan: 0 0 38px rgba(6, 182, 212, 0.32);
}

[dir="rtl"] {
  --font-sans: 'Cairo', 'Inter', 'Segoe UI', Tahoma, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

img {
  max-width: 100%;
  display: block;
}

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

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

code, pre {
  font-family: var(--font-mono);
}

.hidden {
  display: none !important;
}

/* Ambient Cyberpunk / Control Background */
.bg-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 15%, #000 35%, transparent 100%);
}

.glow-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(110px);
  opacity: 0.28;
}

.orb-cyan {
  width: 520px;
  height: 520px;
  background: var(--cyan);
  top: -180px;
  inset-inline-start: -120px;
}

.orb-emerald {
  width: 460px;
  height: 460px;
  background: var(--emerald);
  top: 220px;
  inset-inline-end: -140px;
  opacity: 0.18;
}

.container {
  position: relative;
  z-index: 2;
  width: min(1180px, 92%);
  margin-inline: auto;
}

.container-narrow {
  width: min(860px, 92%);
}

/* Sticky Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(6, 9, 19, 0.82);
  border-bottom: 1px solid var(--border-subtle);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
}

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

.brand-text strong {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-text small {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.accent-cyan {
  color: var(--cyan-bright);
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.18s ease;
}

.nav-links a:hover {
  color: var(--cyan-bright);
}

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

/* Top-Corner Language Trigger */
.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.lang-trigger:hover {
  border-color: var(--cyan-bright);
  background: var(--bg-elevated);
  box-shadow: 0 0 18px rgba(6, 182, 212, 0.2);
}

.lang-trigger .icon-globe {
  color: var(--cyan-bright);
}

.lang-trigger-code {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(6, 182, 212, 0.16);
  color: var(--cyan-bright);
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-md);
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.22s ease, background 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
}

.btn:active {
  transform: translateY(1px);
}

.btn-nav-cta {
  padding: 9px 16px;
  font-size: 0.86rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #0891b2, #06b6d4);
  color: #03151d;
  box-shadow: 0 4px 18px rgba(6, 182, 212, 0.28);
}

.btn-nav-cta:hover {
  box-shadow: 0 6px 26px rgba(34, 211, 238, 0.45);
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
}

.mobile-menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
}

.mobile-drawer {
  display: none;
  flex-direction: column;
  padding: 12px 20px 18px;
  gap: 10px;
  background: var(--bg-deep);
  border-top: 1px solid var(--border-subtle);
}

.mobile-drawer.open {
  display: flex;
}

/* Translation Status Banner */
.trans-banner {
  background: rgba(6, 182, 212, 0.1);
  border-bottom: 1px solid rgba(34, 211, 238, 0.25);
  font-size: 0.86rem;
  padding: 8px 0;
}

.trans-banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(34, 211, 238, 0.3);
  border-top-color: var(--cyan-bright);
  animation: spin 0.75s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.trans-reset-btn {
  background: rgba(15, 23, 42, 0.8);
  color: var(--cyan-bright);
  border: 1px solid rgba(34, 211, 238, 0.35);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

/* HERO SECTION */
.hero {
  padding: 58px 0 72px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 44px;
  align-items: center;
}

.hero-copy,
.hero-simulator-wrap {
  min-width: 0;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(34, 211, 238, 0.28);
  color: var(--cyan-bright);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 18px;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(1.25); }
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(2.1rem, 4.1vw, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.hero-title span {
  display: block;
}

.gradient-text {
  background: linear-gradient(120deg, #22d3ee 0%, #34d399 60%, #67e8f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin: 0 0 28px;
  font-size: 1.08rem;
  color: var(--text-secondary);
  max-width: 58ch;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 14px;
  margin-bottom: 24px;
}

.btn-primary {
  background: linear-gradient(135deg, #06b6d4 0%, #10b981 100%);
  color: #04131a;
  padding: 13px 22px;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.btn-hero-glow {
  box-shadow: var(--shadow-glow-cyan);
}

.btn-hero-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 44px rgba(6, 182, 212, 0.48);
}

.btn-main-row {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 1rem;
  font-weight: 800;
}

.btn-sub-row {
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.85;
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  padding: 13px 20px;
  font-size: 0.94rem;
}

.btn-secondary:hover {
  background: var(--bg-elevated);
  border-color: var(--cyan);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Interactive Hero Simulator */
.sim-card {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(11, 17, 32, 0.98));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 18px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.sim-card[data-state="enabled"] {
  border-color: rgba(6, 182, 212, 0.42);
  box-shadow: 0 24px 60px -15px rgba(6, 182, 212, 0.25);
}

.sim-card[data-state="disabled"] {
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 24px 60px -15px rgba(239, 68, 68, 0.24);
}

.sim-top-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.sim-app-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(6, 9, 19, 0.7);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.sim-app-tab.active {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.tab-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tab-dot.amber { background: #fbbf24; }
.tab-dot.cyan { background: var(--cyan-bright); }
.tab-dot.emerald { background: var(--emerald-bright); }

.sim-screen-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #060913;
}

.sim-preview-img {
  width: 100%;
  height: auto;
  cursor: zoom-in;
  transition: opacity 0.2s ease;
}

.sim-controls {
  margin-top: 14px;
}

.sim-state-readout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 8px 10px 8px 12px;
  border-radius: 9px;
  background: rgba(6, 9, 19, 0.85);
  border: 1px solid var(--border-subtle);
  margin-bottom: 10px;
}

.sim-state-readout code {
  flex: 1;
  min-width: 0;
  font-size: 0.75rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  direction: ltr;
  text-align: left;
}

.zoom-inline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 7px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  transition: border-color 0.18s, color 0.18s;
}

.zoom-inline-btn:hover {
  border-color: var(--cyan-bright);
  color: var(--cyan-bright);
}

.sim-state-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--emerald-bright);
  box-shadow: 0 0 10px var(--emerald-bright);
}

.sim-card[data-state="disabled"] .sim-state-dot {
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
}

.sim-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sim-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  transition: all 0.18s ease;
}

.sim-toggle-btn .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.sim-enable .dot { background: var(--emerald-bright); }
.sim-disable .dot { background: var(--red); }

.sim-enable.active {
  background: rgba(16, 185, 129, 0.16);
  border-color: var(--emerald);
  color: #fff;
}

.sim-disable.active {
  background: rgba(239, 68, 68, 0.18);
  border-color: var(--red);
  color: #fff;
}

.sim-hint {
  margin: 10px 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

/* SECTIONS COMMON */
.section {
  padding: 76px 0;
  position: relative;
}

.section-alt {
  background: linear-gradient(180deg, rgba(11, 17, 32, 0.65), rgba(6, 9, 19, 0.85));
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 46px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan-bright);
  margin-bottom: 10px;
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.section-subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

/* PSYCHOLOGICAL CONTRAST GRID */
.contrast-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}

.contrast-card {
  min-width: 0;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 28px;
  border: 1px solid var(--border-subtle);
}

.card-pain {
  border-color: rgba(239, 68, 68, 0.25);
  background: linear-gradient(180deg, rgba(127, 29, 29, 0.14), rgba(15, 23, 42, 0.95));
}

.card-relief {
  border-color: rgba(16, 185, 129, 0.32);
  background: linear-gradient(180deg, rgba(6, 78, 59, 0.18), rgba(15, 23, 42, 0.96));
  box-shadow: 0 20px 50px -20px rgba(16, 185, 129, 0.2);
}

.contrast-head {
  margin-bottom: 20px;
}

.contrast-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.badge-pain {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

.badge-relief {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
}

.contrast-head h3 {
  margin: 0;
  font-size: 1.32rem;
  font-weight: 800;
}

.contrast-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contrast-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.x-mark, .check-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.76rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.x-mark {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
}

.check-mark {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

/* FLAGSHIP AIO FEATURED CARD */
.tool-card-featured {
  min-width: 0;
  background: radial-gradient(circle at top right, rgba(6, 182, 212, 0.14), rgba(15, 23, 42, 0.98) 65%);
  border: 1px solid rgba(34, 211, 238, 0.48);
  border-top: 3px solid #fbbf24;
  border-radius: var(--radius-xl);
  padding: 30px;
  margin-bottom: 28px;
  box-shadow: 0 24px 60px -15px rgba(6, 182, 212, 0.24);
}

.featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 28px;
  align-items: center;
}

.featured-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tool-pill.amber {
  background: rgba(245, 158, 11, 0.18);
  color: #fcd34d;
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.featured-dl-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* TOOL CARDS */
.tools-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
}

.tool-card {
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-card);
}

.tool-dc {
  border-top: 3px solid var(--cyan);
}

.tool-dbc {
  border-top: 3px solid var(--emerald);
}

.tool-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.tool-pill {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.tool-pill.cyan {
  background: rgba(6, 182, 212, 0.14);
  color: var(--cyan-bright);
}

.tool-pill.emerald {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-bright);
}

.tool-name {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.size-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--bg-void);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  white-space: nowrap;
}

.tool-desc {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.96rem;
}

.tool-previews {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.preview-thumb {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-void);
  cursor: zoom-in;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.preview-thumb:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
}

.preview-thumb figcaption {
  padding: 7px 10px;
  font-size: 0.76rem;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border-subtle);
}

.tool-features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.tool-features li {
  position: relative;
  padding-inline-start: 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.tool-features li::before {
  content: "▸";
  position: absolute;
  inset-inline-start: 0;
  color: var(--cyan-bright);
  font-weight: 800;
}

.tool-dbc .tool-features li::before {
  color: var(--emerald-bright);
}

.tool-downloads {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 10px;
  margin-top: auto;
}

.btn-cyan {
  background: linear-gradient(135deg, #0891b2, #06b6d4);
  color: #03151d;
  padding: 13px 16px;
  font-size: 0.92rem;
}

.btn-cyan:hover {
  box-shadow: 0 8px 28px rgba(6, 182, 212, 0.35);
  transform: translateY(-1px);
}

.btn-emerald {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #021a12;
  padding: 13px 16px;
  font-size: 0.92rem;
}

.btn-emerald:hover {
  box-shadow: 0 8px 28px rgba(16, 185, 129, 0.35);
  transform: translateY(-1px);
}

.btn-outline {
  background: var(--bg-void);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  padding: 13px 14px;
  font-size: 0.86rem;
}

.btn-outline:hover {
  border-color: var(--cyan-bright);
  background: var(--bg-elevated);
}

.hash-box {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(6, 9, 19, 0.85);
  border: 1px solid var(--border-subtle);
}

.hash-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.hash-val {
  font-size: 0.72rem;
  color: var(--cyan-bright);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  direction: ltr;
  text-align: left;
}

.copy-mini-btn {
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-size: 0.74rem;
  font-weight: 600;
  flex-shrink: 0;
}

.copy-mini-btn:hover {
  border-color: var(--cyan-bright);
  color: var(--cyan-bright);
}

/* 3-STEP GUIDE + DOCS TABS */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 36px;
}

.step-card {
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.step-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--cyan-bright);
  padding: 4px 10px;
  border-radius: 7px;
  background: rgba(6, 182, 212, 0.12);
  margin-bottom: 14px;
}

.step-card h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
}

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

.docs-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.docs-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(6, 9, 19, 0.65);
  overflow-x: auto;
}

.doc-tab {
  padding: 15px 24px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
}

.doc-tab.active {
  color: var(--cyan-bright);
  border-bottom-color: var(--cyan-bright);
  background: rgba(6, 182, 212, 0.06);
}

.doc-content {
  display: none;
  padding: 28px;
}

.doc-content.active {
  display: block;
}

.doc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}

.doc-item {
  min-width: 0;
  background: rgba(6, 9, 19, 0.55);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
}

.doc-item h4 {
  margin: 0 0 6px;
  color: var(--text-primary);
  font-size: 1rem;
}

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

.doc-heading {
  margin: 0 0 8px;
  font-size: 1.16rem;
}

.doc-lead {
  margin: 0 0 16px;
  color: var(--text-secondary);
}

.code-block-wrap {
  position: relative;
  background: #050811;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 18px;
  overflow-x: auto;
  direction: ltr;
  text-align: left;
}

.code-block-wrap pre {
  margin: 0;
  font-size: 0.86rem;
  color: #a5f3fc;
}

.copy-code-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 11px;
  border-radius: 7px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-size: 0.76rem;
  font-weight: 600;
}

.doc-note {
  margin: 12px 0 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

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

.tech-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.tech-table th, .tech-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border-subtle);
  text-align: start;
}

.tech-table th {
  color: var(--cyan-bright);
  width: 240px;
  font-weight: 700;
}

.tech-table td code {
  background: rgba(6, 9, 19, 0.8);
  padding: 2px 6px;
  border-radius: 5px;
  color: #6ee7b7;
  font-size: 0.82rem;
}

/* SECURITY PANEL */
.sec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 26px;
}

.sec-card {
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.sec-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.sec-icon.cyan { background: rgba(6, 182, 212, 0.14); color: var(--cyan-bright); }
.sec-icon.emerald { background: rgba(16, 185, 129, 0.15); color: var(--emerald-bright); }
.sec-icon.purple { background: rgba(139, 92, 246, 0.16); color: #c4b5fd; }

.sec-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

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

.verify-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.verify-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  font-weight: 700;
}

.sums-link {
  color: var(--cyan-bright);
  font-size: 0.86rem;
}

.verify-cmd-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #050811;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 14px;
  direction: ltr;
}

.verify-cmd-row code {
  flex: 1;
  min-width: 0;
  color: #a5f3fc;
  font-size: 0.84rem;
  overflow-x: auto;
  white-space: nowrap;
}

/* FAQ ACCORDION */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 4px 20px;
}

.faq-item[open] {
  border-color: rgba(34, 211, 238, 0.35);
}

.faq-item summary {
  padding: 16px 0;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--cyan-bright);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0 0 18px;
  color: var(--text-secondary);
  font-size: 0.94rem;
}

/* FINAL CTA BANNER */
.final-cta-sec {
  padding-top: 20px;
  padding-bottom: 84px;
}

.final-cta-card {
  text-align: center;
  background: radial-gradient(circle at top center, rgba(6, 182, 212, 0.16), rgba(15, 23, 42, 0.98) 70%);
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: var(--radius-xl);
  padding: 50px 28px;
  box-shadow: var(--shadow-glow-cyan);
}

.final-cta-card h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
  font-weight: 800;
}

.final-cta-card p {
  margin: 0 auto 26px;
  max-width: 58ch;
  color: var(--text-secondary);
}

.final-actions {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.final-actions .btn-primary {
  flex-direction: row;
  align-items: center;
  padding: 15px 28px;
  font-size: 1rem;
}

.final-meta {
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* SCENARIO & GUIDES HUB */
.scen-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.scen-card {
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.scen-card:hover {
  transform: translateY(-2px);
  border-color: var(--cyan-bright);
}

.scen-card h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
}

.scen-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  flex: 1;
}

.scen-link {
  color: var(--cyan-bright);
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 6px;
}

.scen-link:hover {
  text-decoration: underline;
}

/* SUBPAGES & KNOWLEDGE BASE */
.sub-hero {
  padding: 52px 0 36px;
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.08), transparent);
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.breadcrumb a:hover {
  color: var(--cyan-bright);
}

.article-shell {
  padding: 46px 0 74px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 32px;
  margin-bottom: 24px;
}

.article-card h2 {
  margin-top: 0;
  font-size: 1.45rem;
}

.article-card h3 {
  color: var(--cyan-bright);
  font-size: 1.1rem;
  margin-top: 24px;
}

.article-card p,
.article-card li {
  color: var(--text-secondary);
}

.article-card code {
  background: #050811;
  padding: 2px 7px;
  border-radius: 5px;
  color: #6ee7b7;
  font-size: 0.84rem;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.compare-table th,
.compare-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border-subtle);
  text-align: start;
  font-size: 0.92rem;
}

.compare-table th {
  color: var(--cyan-bright);
  font-weight: 700;
  background: rgba(6, 9, 19, 0.45);
}

.kb-controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.kb-search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 12px 16px;
}

.kb-search-box input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
}

.kb-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.kb-filter-btn {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.83rem;
  font-weight: 700;
}

.kb-filter-btn.active,
.kb-filter-btn:hover {
  border-color: var(--cyan-bright);
  background: rgba(6, 182, 212, 0.14);
  color: #fff;
}

.kb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 16px;
}

.kb-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kb-tag {
  display: inline-block;
  width: fit-content;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(6, 182, 212, 0.14);
  color: var(--cyan-bright);
}

.kb-card h3 {
  margin: 0;
  font-size: 1.04rem;
}

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

.kb-keys {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 9px;
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: #04070f;
  padding: 48px 0 26px;
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 34px;
}

.brand-line {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.footer-brand p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 34ch;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  margin: 0 0 4px;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-col a:hover {
  color: var(--cyan-bright);
}

.footer-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  width: fit-content;
}

.footer-lang-btn:hover {
  border-color: var(--cyan-bright);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
  text-align: center;
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* MODALS (WORLD LANGUAGE SELECTOR, DOWNLOAD ONBOARDING, LIGHTBOX) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(3, 6, 14, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  width: 100%;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.75);
  overflow: hidden;
}

.lang-modal-panel {
  max-width: 780px;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  padding: 22px;
}

.dl-modal-panel {
  max-width: 520px;
  padding: 24px;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.modal-head h3 {
  margin: 0;
  font-size: 1.2rem;
}

.modal-head small {
  color: var(--text-muted);
}

.modal-close {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 34px;
  height: 34px;
  border-radius: 9px;
  font-size: 1.35rem;
  line-height: 1;
}

.modal-close:hover {
  border-color: var(--cyan-bright);
  color: var(--cyan-bright);
}

.lang-search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-void);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 16px;
  color: var(--text-muted);
}

.lang-search-wrap input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
}

.lang-section-label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.popular-lang-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}

.lang-chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
}

.lang-chip:hover, .lang-chip.active {
  border-color: var(--cyan-bright);
  color: #fff;
  background: rgba(6, 182, 212, 0.16);
}

.lang-chip-auto {
  border-color: rgba(16, 185, 129, 0.45);
  color: #a7f3d0;
}

.lang-chip-auto:hover, .lang-chip-auto.active {
  border-color: #10b981;
  color: #fff;
  background: rgba(16, 185, 129, 0.2);
}

.world-lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 8px;
  overflow-y: auto;
  padding-inline-end: 4px;
  max-height: 360px;
}

.world-lang-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 9px 11px;
  border-radius: 10px;
  background: rgba(6, 9, 19, 0.65);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  text-align: start;
  transition: border-color 0.15s, background 0.15s;
}

.world-lang-item:hover, .world-lang-item.active {
  border-color: var(--cyan-bright);
  background: rgba(6, 182, 212, 0.14);
}

.world-lang-native {
  font-size: 0.88rem;
  font-weight: 700;
}

.world-lang-en {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.dl-head-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dl-check-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  color: var(--emerald-bright);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.dl-sub {
  margin: 0 0 12px;
  color: var(--text-secondary);
}

.dl-steps {
  margin: 0 0 16px;
  padding-inline-start: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.dl-sha-note {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
  font-size: 0.82rem;
  color: var(--cyan-bright);
  margin-bottom: 18px;
}

.dl-modal-actions {
  display: flex;
  justify-content: flex-end;
}

.zoom-panel {
  position: relative;
  max-width: 720px;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--bg-void);
}

.zoom-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .hero-grid,
  .featured-grid,
  .contrast-grid,
  .tools-grid,
  .steps-grid,
  .sec-grid,
  .scen-grid,
  .doc-grid,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero {
    padding-top: 34px;
  }
}

@media (max-width: 540px) {
  .nav-inner {
    gap: 8px;
  }
  .brand {
    gap: 8px;
    min-width: 0;
  }
  .brand-icon {
    width: 32px;
    height: 32px;
  }
  .brand-text strong {
    font-size: 0.94rem;
  }
  .brand-text small {
    display: none;
  }
  .lang-trigger {
    padding: 6px 10px;
    gap: 5px;
  }
  .lang-trigger-name,
  .btn-nav-cta {
    display: none;
  }
  .docs-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow-x: hidden;
  }
  .doc-tab {
    padding: 12px 6px;
    font-size: 0.78rem;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
  }
  .tool-downloads {
    grid-template-columns: minmax(0, 1fr);
  }
  .sim-app-tab {
    font-size: 0.76rem;
    padding: 8px 6px;
  }
}
