:root {
  --bg-dark: #07090e;
  --bg-surface: #0e131f;
  --bg-surface-elevated: #141b2d;
  --bg-card: rgba(16, 23, 42, 0.75);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 242, 254, 0.3);
  
  --primary: #00f2fe;
  --primary-glow: rgba(0, 242, 254, 0.15);
  --secondary: #0066ff;
  --accent-cyan: #38bdf8;
  --accent-green: #10b981;
  --accent-amber: #f59e0b;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, Menlo, Monaco, monospace;
  
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(0, 102, 255, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 90% 20%, rgba(0, 242, 254, 0.07) 0%, transparent 40%),
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 64px 64px, 64px 64px;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 9, 14, 0.85);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  height: 48px;
}

.nav-brand img {
  height: 44px;
  width: auto;
}

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 8px 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(0, 242, 254, 0.6);
  opacity: 0;
  transform: scaleX(0);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-link.active {
  color: var(--primary);
  font-weight: 600;
}

.nav-link.active::after {
  opacity: 1;
  transform: scaleX(1);
}

/* Navigation Dropdown */
.nav-item.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.nav-dropdown-trigger .dropdown-chevron {
  transition: transform 0.2s ease, color 0.2s ease;
  color: var(--text-dim);
  flex-shrink: 0;
}

.nav-dropdown:hover .nav-dropdown-trigger .dropdown-chevron,
.nav-dropdown.is-open .nav-dropdown-trigger .dropdown-chevron,
.nav-dropdown-trigger.active .dropdown-chevron {
  color: var(--primary);
}

.nav-dropdown:hover .nav-dropdown-trigger .dropdown-chevron,
.nav-dropdown.is-open .nav-dropdown-trigger .dropdown-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 360px;
  background: #0c1222;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 1px 1px rgba(255, 255, 255, 0.06);
  padding: 10px;
  z-index: 1000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.18s ease-out, transform 0.18s ease-out, visibility 0.18s;
}

/* Hover bridge between trigger and menu */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-header-row {
  margin-bottom: 4px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background var(--transition-fast), border-color var(--transition-fast);
  border: 1px solid transparent;
}

.dropdown-item:hover,
.dropdown-item:focus-visible {
  background: rgba(0, 210, 255, 0.08);
  border-color: rgba(0, 210, 255, 0.2);
  outline: none;
}

.dropdown-item.active {
  background: rgba(0, 210, 255, 0.12);
  border-color: rgba(0, 210, 255, 0.35);
}

.dropdown-item.active .dropdown-item-title {
  color: var(--primary);
}

.dropdown-item-overview {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 9px 12px;
}

.dropdown-item-overview:hover {
  background: rgba(0, 210, 255, 0.1);
  border-color: rgba(0, 210, 255, 0.3);
}

.dropdown-item-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dropdown-item-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.25;
  transition: color var(--transition-fast);
}

.dropdown-item:hover .dropdown-item-title {
  color: var(--primary);
}

.dropdown-item-desc {
  font-size: 0.74rem;
  color: var(--text-dim);
  line-height: 1.2;
}

.dropdown-arrow {
  color: var(--primary);
  font-size: 0.95rem;
  transition: transform var(--transition-fast);
  margin-left: 8px;
}

.dropdown-item-overview:hover .dropdown-arrow {
  transform: translateX(3px);
}

.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin: 5px 0;
}

.dropdown-venues-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  padding: 4px 12px 2px;
}

.dropdown-grid {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.dropdown-footer-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 2px;
}

.dropdown-badge {
  display: inline-block;
  padding: 1px 6px;
  background: rgba(0, 210, 255, 0.12);
  border: 1px solid rgba(0, 210, 255, 0.3);
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.dropdown-footer-text {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.3;
}

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

/* Mobile Navigation Elements (Hidden on Desktop) */
.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 38px;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: all var(--transition-fast);
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 242, 254, 0.4);
  outline: none;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile-divider,
.nav-link-mobile {
  display: none !important;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #00f2fe 0%, #0066ff 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 102, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 25px rgba(0, 242, 254, 0.5);
  filter: brightness(1.1);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  border-color: var(--border-subtle);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(0, 242, 254, 0.06);
  color: var(--primary);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
}

/* Hero Section */
.hero {
  padding: 96px 0 64px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: 9999px;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background-color: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulse 2s infinite;
}

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

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.text-gradient {
  background: linear-gradient(120deg, #ffffff 30%, #38bdf8 70%, #00f2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 36px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 48px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
}

.stat-item h3 {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  color: var(--text-main);
  font-weight: 700;
}

.stat-item h3 span {
  color: var(--primary);
  font-size: 1.1rem;
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Hero Terminal Card */
.terminal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 102, 255, 0.15);
  overflow: hidden;
  font-family: var(--font-mono);
}

.terminal-header {
  background: rgba(0, 0, 0, 0.4);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

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

.terminal-body {
  padding: 20px;
  font-size: 0.84rem;
  line-height: 1.7;
}

.terminal-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 4px 8px;
  border-radius: 4px;
}

.terminal-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.term-label {
  color: var(--text-muted);
}

.term-val {
  color: #38bdf8;
  font-weight: 600;
}

.term-val.fast {
  color: var(--accent-green);
}

/* Section Common */
.section {
  padding: 96px 0;
  position: relative;
}

section[id] {
  scroll-margin-top: 80px;
}

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

.section-tag {
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Products Section */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

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

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  backdrop-filter: blur(12px);
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(0, 242, 254, 0.1);
}

.product-card:hover::before {
  opacity: 1;
}

.product-badge-group {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tech-tag {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 4px;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.tech-tag.highlight {
  color: var(--primary);
  background: rgba(0, 242, 254, 0.08);
  border-color: rgba(0, 242, 254, 0.2);
}

.product-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.15) 0%, rgba(0, 102, 255, 0.15) 100%);
  border: 1px solid rgba(0, 242, 254, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 24px;
}

.product-icon svg {
  width: 26px;
  height: 26px;
}

.product-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}

.product-desc {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 28px;
}

.feature-list {
  list-style: none;
  margin-bottom: 36px;
  flex-grow: 1;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.92rem;
  color: #cbd5e1;
}

.feature-list svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Architecture Showcase */
.code-preview-container {
  background: #060910;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 48px;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-subtle);
}

.code-tabs {
  display: flex;
  gap: 8px;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-btn.active {
  background: rgba(0, 242, 254, 0.12);
  color: var(--primary);
  font-weight: 600;
}

.tab-btn:hover:not(.active) {
  color: var(--text-main);
}

pre code {
  display: block;
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: #e2e8f0;
  overflow-x: auto;
  line-height: 1.6;
}

.token-kw { color: #f43f5e; font-weight: 600; }
.token-type { color: #38bdf8; }
.token-fn { color: #a855f7; }
.token-var { color: #f8fafc; }
.token-str { color: #10b981; }
.token-comment { color: #64748b; font-style: italic; }

/* Specs Matrix */
.specs-table-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow-x: auto;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.specs-table th {
  padding: 18px 24px;
  background: rgba(0, 0, 0, 0.3);
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.specs-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
}

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

.specs-table tr:hover td {
  background: rgba(255, 255, 255, 0.015);
}

.specs-spec {
  font-weight: 600;
  color: var(--text-main);
}

.badge-nanosecond {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-green);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
}

/* Evaluation CTA / Form */
.cta-box {
  background: linear-gradient(135deg, rgba(16, 23, 42, 0.9) 0%, rgba(14, 27, 54, 0.9) 100%);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.cta-box::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.form-input, .form-select, .form-textarea {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.25);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(5, 7, 11, 0.9);
  padding: 64px 0 32px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.footer-about p {
  margin-top: 16px;
  color: var(--text-dim);
  max-width: 340px;
}

.footer-col h4 {
  color: var(--text-main);
  font-size: 0.95rem;
  margin-bottom: 20px;
  font-weight: 600;
}

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

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary);
}

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

.footer-nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.footer-nav-link:hover {
  color: var(--primary);
}

.footer-nav-link.highlight {
  color: var(--primary);
  font-weight: 600;
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.25);
  transition: all var(--transition-fast);
}

.footer-nav-link.highlight:hover {
  background: rgba(0, 242, 254, 0.18);
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.35);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Pillars / Architecture Grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pillar-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  position: relative;
  transition: all var(--transition-normal);
  backdrop-filter: blur(12px);
}

.pillar-item:hover {
  transform: translateY(-3px);
  border-color: var(--border-glow);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.pillar-number {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
  opacity: 0.8;
}

.pillar-item h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}

.pillar-item h3,
.pillar-item h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary);
}

.pillar-item p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Ambient glow accents */
.ambient-glow {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(120px);
}

.ambient-glow-top {
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 350px;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.18) 0%, transparent 70%);
}

.ambient-glow-right {
  top: 300px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.08) 0%, transparent 70%);
}

/* Toast message */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glow);
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-normal);
}

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

/* Animated Feature Carousel Banner */
.tab-carousel-banner {
  position: relative;
  margin-top: 16px;
  margin-bottom: 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0, 242, 254, 0.25);
  background: #090e19;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 242, 254, 0.08);
}

.carousel-bg-glow {
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle at 30% 40%, rgba(0, 242, 254, 0.15) 0%, transparent 40%),
              radial-gradient(circle at 75% 60%, rgba(0, 102, 255, 0.18) 0%, transparent 45%),
              radial-gradient(circle at 50% 80%, rgba(56, 189, 248, 0.12) 0%, transparent 50%);
  filter: blur(40px);
  animation: meshFloat 12s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes meshFloat {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.1) translate(-2%, 3%); }
  100% { transform: scale(1) translate(3%, -2%); }
}

.carousel-scanline {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 242, 254, 0.06), rgba(0, 242, 254, 0.15), rgba(0, 242, 254, 0.06), transparent);
  transform: skewX(-25deg);
  animation: scanSweep 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
}

@keyframes scanSweep {
  0% { left: -100%; }
  35%, 100% { left: 200%; }
}

.carousel-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.6;
  pointer-events: none;
}

.carousel-slides-wrap {
  position: relative;
  min-height: 210px;
  z-index: 2;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  padding: 24px 76px;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(100%, 0, 0);
  pointer-events: none;
  box-sizing: border-box;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
  position: absolute;
  height: 100%;
}

.slide-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: calc(100% - 310px);
}

.slide-badge-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.slide-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 6px 0;
  letter-spacing: -0.01em;
}

.slide-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
}

.slide-cta-btn {
  position: absolute;
  right: 76px;
  bottom: 24px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 0.90rem;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.4);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.slide-cta-btn:hover {
  background: var(--primary);
  color: #050b14;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.5);
  border-color: var(--primary);
}

.carousel-watermark {
  position: absolute;
  right: 76px;
  top: 24px;
  height: 52px;
  max-width: 220px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
  user-select: none;
  opacity: 0.65;
  filter: brightness(0) invert(1) drop-shadow(0 0 14px rgba(0, 242, 254, 0.35));
  transition: opacity var(--transition-normal), transform var(--transition-normal);
  z-index: 2;
}

.carousel-watermark img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.carousel-banner:hover .carousel-slide.active .carousel-watermark {
  opacity: 0.90;
  transform: scale(1.02);
}

/* Venue Page Hero Exchange Logo */
.venue-hero-logo {
  height: 80px;
  min-width: 130px;
  max-width: 250px;
  width: auto;
  border-radius: var(--radius-md);
  background: rgba(14, 19, 31, 0.85);
  border: 1px solid var(--border-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.venue-hero-logo:hover {
  border-color: rgba(0, 210, 255, 0.4);
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.2);
}

.venue-hero-logo img {
  max-width: 200px;
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  transition: opacity var(--transition-normal), filter var(--transition-normal), transform var(--transition-normal);
}

.venue-hero-logo:hover img {
  opacity: 1;
  filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(0, 242, 254, 0.5));
  transform: scale(1.04);
}

/* Navigation Arrows on Main Banner */
.carousel-banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(10, 16, 28, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all var(--transition-fast);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.carousel-banner-arrow.prev {
  left: 18px;
}

.carousel-banner-arrow.next {
  right: 18px;
}

.carousel-banner-arrow:hover {
  background: rgba(0, 242, 254, 0.2);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 18px rgba(0, 242, 254, 0.5);
  transform: translateY(-50%) scale(1.08);
}

.carousel-banner-arrow:active {
  transform: translateY(-50%) scale(0.94);
  background: rgba(0, 242, 254, 0.3);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .products-grid,
  .products-grid-3 {
    grid-template-columns: 1fr;
  }
  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .cta-inner {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  body.mobile-nav-active {
    overflow: hidden;
  }

  .nav {
    height: 70px;
  }

  .nav-brand img {
    height: 38px;
  }

  .nav-actions {
    gap: 10px;
  }

  .locale-switcher {
    order: 1;
  }

  .nav-toggle {
    display: inline-flex;
    order: 2;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(8, 12, 22, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 1px 1px rgba(255, 255, 255, 0.05);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 20px 24px;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    z-index: 999;
  }

  .nav-links.is-open {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    border-left: 3px solid transparent;
    transition: all var(--transition-fast);
  }

  .nav-link::after {
    display: none;
  }

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

  .nav-link.active {
    color: var(--primary);
    background: rgba(0, 242, 254, 0.08);
    border-left-color: var(--primary);
    font-weight: 600;
  }

  /* Mobile Navigation Dropdown */
  .nav-item.nav-dropdown {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .nav-dropdown-trigger {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }

  .nav-dropdown.is-open .nav-dropdown-trigger,
  .nav-dropdown-trigger.active {
    color: var(--primary);
    background: rgba(0, 242, 254, 0.06);
    border-left-color: var(--primary);
  }

  .nav-dropdown-menu {
    position: static;
    background: rgba(6, 10, 18, 0.95);
    border: none;
    border-left: 2px solid rgba(0, 210, 255, 0.3);
    border-radius: var(--radius-sm);
    box-shadow: none;
    padding: 6px 8px 10px 10px;
    margin: 4px 0 8px 12px;
    width: calc(100% - 12px);
    display: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .nav-dropdown.is-open .nav-dropdown-menu {
    display: flex;
    flex-direction: column;
  }

  .nav-dropdown-menu::before {
    display: none;
  }

  .nav-mobile-divider {
    display: block !important;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 8px 0;
  }

  .nav-link-mobile {
    display: flex !important;
  }

  .nav-link-mobile.highlight {
    background: rgba(0, 242, 254, 0.12);
    color: var(--primary);
    border: 1px solid rgba(0, 242, 254, 0.3);
    font-weight: 600;
    justify-content: center;
    margin-top: 4px;
  }

  .nav-link-mobile.highlight:hover {
    background: rgba(0, 242, 254, 0.2);
    color: #fff;
  }

  .hero-title {
    font-size: 2.5rem;
  }
  .carousel-banner-arrow {
    width: 36px;
    height: 36px;
  }
  .carousel-banner-arrow.prev {
    left: 8px;
  }
  .carousel-banner-arrow.next {
    right: 8px;
  }
  .carousel-slide {
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: 22px 50px;
    gap: 16px;
    min-height: auto;
  }
  .slide-content {
    max-width: 100%;
  }
  .slide-cta-btn {
    position: relative;
    right: auto;
    bottom: auto;
    align-self: flex-end;
    margin-top: auto;
  }
  .carousel-watermark {
    right: 50px;
    top: 18px;
    height: 38px;
    max-width: 140px;
    opacity: 0.45;
  }
  .venue-hero-logo {
    height: 70px;
    padding: 12px 18px;
    min-width: 110px;
    max-width: 210px;
  }
  .venue-hero-logo img {
    max-width: 170px;
    max-height: 44px;
  }
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-combined {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .footer-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .footer-nav-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* ==========================================================================
   Locale Switcher & Multi-Language Dropdown
   ========================================================================== */
.locale-switcher {
  position: relative;
  display: inline-block;
}

.locale-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.locale-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 242, 254, 0.4);
  color: #fff;
}

.locale-btn-inner {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.locale-flag-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 13px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  line-height: 0;
}

.locale-flag {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.locale-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 480px;
  max-width: calc(100vw - 32px);
  background: #0c1222;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 1px 1px rgba(255, 255, 255, 0.05);
  padding: 10px;
  z-index: 1000;
  backdrop-filter: blur(12px);
  animation: localeFadeIn 0.15s ease-out;
}

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

.locale-column {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.locale-column:first-child {
  padding-right: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.locale-section-title {
  padding: 6px 8px 3px;
  font-size: 0.66rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.75px;
  font-weight: 700;
  margin-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.locale-column .locale-section-title:first-child {
  border-top: none;
  margin-top: 0;
  padding-top: 2px;
}

@media (max-width: 580px) {
  .locale-menu {
    width: 280px;
    max-height: 440px;
    overflow-y: auto;
  }
  .locale-columns {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .locale-column:first-child {
    padding-right: 0;
    border-right: none;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }
}

.locale-menu::-webkit-scrollbar {
  width: 5px;
}

.locale-menu::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
}

.locale-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.locale-menu::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 242, 254, 0.4);
}

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

.locale-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 10px;
  background: transparent;
  border: none;
  border-radius: 4px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.locale-item-content {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.locale-item:hover:not(:disabled) {
  background: rgba(0, 242, 254, 0.1);
  color: var(--text-main);
}

.locale-item.active {
  color: var(--primary);
  font-weight: 600;
  background: rgba(0, 242, 254, 0.08);
}

.locale-check {
  font-size: 0.85rem;
  opacity: 0;
  color: var(--primary);
  font-weight: bold;
}

.locale-item.active .locale-check {
  opacity: 1;
}

.locale-item:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.coming-soon-tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  border: 1px solid rgba(255, 255, 255, 0.1);
}



@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  .section-title {
    font-size: 1.75rem;
  }
  .carousel-slide {
    padding: 20px 40px;
  }
  .slide-cta-btn {
    align-self: stretch;
    justify-content: center;
  }
  .carousel-watermark {
    right: 40px;
    top: 14px;
    height: 30px;
    max-width: 100px;
    opacity: 0.35;
  }
}

/* ==========================================================================
   Roadmap Robinson Map Watermark
   ========================================================================== */
.roadmap-hero-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  padding: 56px 28px;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 48px;
  background: radial-gradient(ellipse at center, rgba(14, 23, 42, 0.4) 0%, rgba(8, 12, 22, 0.95) 100%);
  border: 1px solid rgba(0, 210, 255, 0.2);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), inset 0 0 60px rgba(0, 210, 255, 0.03);
  text-align: center;
}

.roadmap-watermark-wrap {
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 18px;
  right: 18px;
  pointer-events: none;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.68;
}

.roadmap-watermark-img {
  width: 100%;
  height: 100%;
  display: block;
}

.roadmap-hero-content {
  position: relative;
  z-index: 2;
  margin-bottom: 0;
  max-width: 780px;
  background: radial-gradient(ellipse at center, rgba(8, 12, 22, 0.88) 0%, rgba(8, 12, 22, 0.6) 55%, rgba(8, 12, 22, 0) 100%);
  padding: 24px 32px;
  border-radius: 16px;
}

@media (max-width: 768px) {
  .roadmap-hero-banner {
    padding: 44px 16px;
    min-height: 340px;
    margin-bottom: 32px;
  }
  .roadmap-hero-content {
    padding: 16px 12px;
  }
  .roadmap-watermark-wrap {
    top: 12px;
    bottom: 12px;
    left: 12px;
    right: 12px;
    opacity: 0.6;
  }
}

/* ==========================================================================
   Hebrew & Arabic Typography & RTL Layout Support
   ========================================================================== */

/* Modern clean sans-serif typography for Hebrew */
html[lang="he"],
html[lang="he"] body,
html[lang="he"] input,
html[lang="he"] button,
html[lang="he"] select,
html[lang="he"] textarea {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, 'Noto Sans Hebrew', sans-serif;
}

/* Ensure Hebrew headings, titles, stats, badges, and tags strictly use the clean sans-serif font */
html[lang="he"] h1,
html[lang="he"] h2,
html[lang="he"] h3,
html[lang="he"] h4,
html[lang="he"] h5,
html[lang="he"] h6,
html[lang="he"] .hero-title,
html[lang="he"] .section-title,
html[lang="he"] .slide-title,
html[lang="he"] .hero-stat-card .stat-value,
html[lang="he"] .badge,
html[lang="he"] .tech-tag,
html[lang="he"] code,
html[lang="he"] pre {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, 'Noto Sans Hebrew', sans-serif !important;
  font-weight: 700 !important; /* Prevents 800/900 weight which triggers Windows serif fallback (Frank Ruehl/David) */
  letter-spacing: normal !important; /* Avoids letter-spacing fallback artifacts in Hebrew */
}

/* Modern clean sans-serif typography for Arabic */
html[lang="ar"],
html[lang="ar"] body,
html[lang="ar"] input,
html[lang="ar"] button,
html[lang="ar"] select,
html[lang="ar"] textarea {
  font-family: 'Segoe UI', Tahoma, -apple-system, BlinkMacSystemFont, Arial, 'Noto Sans Arabic', sans-serif;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] h5,
html[lang="ar"] h6,
html[lang="ar"] .hero-title,
html[lang="ar"] .section-title,
html[lang="ar"] .slide-title,
html[lang="ar"] .hero-stat-card .stat-value,
html[lang="ar"] .badge,
html[lang="ar"] .tech-tag,
html[lang="ar"] code,
html[lang="ar"] pre {
  font-family: 'Segoe UI', Tahoma, -apple-system, BlinkMacSystemFont, Arial, 'Noto Sans Arabic', sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: normal !important; /* Arabic requires continuous cursive connections */
}

/* RTL Layout Alignment & Collision Prevention */
[dir="rtl"] .carousel-watermark {
  right: auto;
  left: 76px;
  justify-content: flex-start;
}

[dir="rtl"] .slide-cta-btn {
  right: auto;
  left: 76px;
}

[dir="rtl"] .slide-cta-btn svg {
  transform: scaleX(-1);
}

[dir="rtl"] .nav-dropdown-menu {
  left: auto;
  right: 0;
}

[dir="rtl"] .locale-menu {
  right: auto;
  left: 0;
}

@media (max-width: 768px) {
  [dir="rtl"] .carousel-watermark {
    right: auto;
    left: 50px;
  }
  [dir="rtl"] .slide-cta-btn {
    align-self: flex-start;
  }
}

@media (max-width: 480px) {
  [dir="rtl"] .carousel-watermark {
    right: auto;
    left: 40px;
  }
}

