:root {
  --bg-dark: #060b16;
  --bg-card: rgba(13, 21, 38, 0.78);
  --bg-card-solid: #0b1324;
  --border-subtle: rgba(0, 229, 255, 0.14);
  --border-glow: rgba(0, 229, 255, 0.45);
  --cyan: #00e5ff;
  --purple: #a855f7;
  --green: #10b981;
  --red: #ef4444;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --font-display: 'Orbitron', 'Cairo', sans-serif;
  --font-body: 'Inter', 'Cairo', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
}

html[dir="rtl"] body {
  font-family: 'Cairo', 'Inter', sans-serif;
}

html[dir="rtl"] .hero-title {
  font-family: 'Cairo', 'Orbitron', sans-serif;
  letter-spacing: 0;
}

/* Background Canvas & Grid */
#network-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 20%, rgba(0, 0, 0, 0.9), transparent 85%);
}

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

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 11, 22, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--cyan);
}

.brand-icon {
  display: grid;
  place-items: center;
  color: var(--cyan);
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.55));
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
  text-shadow: 0 0 14px rgba(0, 229, 255, 0.35);
}

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

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

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

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

.lang-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  padding: 5px 11px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

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

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--green);
}

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

.pulse-dot.offline {
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
  animation: none;
}

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

/* Hero Section */
.hero {
  padding: 72px 0 80px;
}

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

.version-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.12), rgba(168, 85, 247, 0.14));
  border: 1px solid rgba(0, 229, 255, 0.5);
  color: #f8fafc;
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.45);
  box-shadow:
    0 0 18px rgba(0, 229, 255, 0.28),
    0 0 38px rgba(168, 85, 247, 0.18),
    inset 0 0 14px rgba(0, 229, 255, 0.12);
  animation: badge-radiant 3s ease-in-out infinite;
}

.version-badge svg {
  width: 18px;
  height: 18px;
  color: var(--cyan);
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.85));
}

@keyframes badge-radiant {
  0%, 100% {
    box-shadow:
      0 0 18px rgba(0, 229, 255, 0.28),
      0 0 38px rgba(168, 85, 247, 0.18),
      inset 0 0 14px rgba(0, 229, 255, 0.12);
    border-color: rgba(0, 229, 255, 0.5);
  }
  50% {
    box-shadow:
      0 0 28px rgba(0, 229, 255, 0.55),
      0 0 56px rgba(168, 85, 247, 0.36),
      inset 0 0 18px rgba(0, 229, 255, 0.22);
    border-color: rgba(0, 229, 255, 0.85);
  }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 4.8vw, 3.85rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0.03em;
  margin-bottom: 22px;
  min-height: 3.4em;
}

.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 0.9em;
  background: var(--cyan);
  margin-inline-start: 6px;
  vertical-align: -0.08em;
  box-shadow: 0 0 12px var(--cyan);
  animation: blink-caret 0.8s steps(2, start) infinite;
}

@keyframes blink-caret {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.text-cyan {
  color: var(--cyan);
}

.text-white {
  color: #ffffff;
}

.text-gradient {
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 540px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(90deg, #00e5ff 0%, #8b5cf6 55%, #a855f7 100%);
  color: #040812;
  box-shadow: 0 8px 28px rgba(0, 229, 255, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 10px 34px rgba(168, 85, 247, 0.35);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.75);
  color: var(--cyan);
  border: 1px solid rgba(0, 229, 255, 0.25);
}

.btn-secondary:hover {
  border-color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
}

.btn-full {
  width: 100%;
}

.hero-metrics {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.metric-value {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: #ffffff;
}

.metric-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.metric-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
}

/* Interactive Tool Window */
.app-window {
  background: linear-gradient(160deg, rgba(14, 22, 40, 0.95), rgba(8, 13, 25, 0.98));
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 16px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.65),
    0 0 40px rgba(0, 229, 255, 0.1);
  overflow: hidden;
}

.window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.window-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--cyan);
}

.window-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bridge-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 10px;
}

.bridge-state {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #34d399;
}

.mono {
  font-family: var(--font-mono);
}

.uptime-badge {
  font-size: 0.78rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 9px;
  border-radius: 6px;
}

.endpoint-box {
  background: rgba(5, 9, 18, 0.8);
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: 10px;
  padding: 14px;
}

.endpoint-label {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.endpoint-value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.endpoint-code {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--cyan);
  word-break: break-all;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: var(--cyan);
  padding: 6px 10px;
  border-radius: 7px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.icon-btn:hover {
  background: rgba(0, 229, 255, 0.22);
}

.hwid-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.license-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: #c084fc;
  background: rgba(168, 85, 247, 0.14);
  border: 1px solid rgba(168, 85, 247, 0.3);
  padding: 3px 8px;
  border-radius: 6px;
}

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

.sim-btn {
  padding: 10px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.sim-btn-stop {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.35);
  color: #f87171;
}

.sim-btn-start {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.sim-btn-refresh {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}

.sim-btn-refresh:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* Tools Strip */
.tools-strip {
  padding: 26px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(10, 17, 32, 0.55);
  text-align: center;
}

.strip-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.tools-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 28px;
}

.tools-logos span {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}

.tools-logos span:hover {
  color: var(--cyan);
}

/* Sections */
.section {
  padding: 88px 0;
}

.section-alt {
  background: rgba(9, 15, 29, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

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

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--cyan);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  font-weight: 800;
  margin-bottom: 14px;
}

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

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 26px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: 0 12px 34px rgba(0, 229, 255, 0.08);
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(0, 229, 255, 0.1);
  color: var(--cyan);
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

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

.step-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 28px;
  position: relative;
}

.step-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}

.step-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.step-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.price-card.featured {
  border-color: var(--cyan);
  box-shadow: 0 0 36px rgba(0, 229, 255, 0.14);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  color: #050a14;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
}

.price-tier {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cyan);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.price-amount span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.price-sub {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 22px;
}

.price-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 28px;
  flex: 1;
}

.price-list li {
  font-size: 0.9rem;
  color: #cbd5e1;
  padding-inline-start: 20px;
  position: relative;
}

.price-list li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  color: var(--cyan);
  font-weight: 700;
}

/* FAQ */
.faq-container {
  max-width: 820px;
}

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

.faq-item {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 18px 22px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

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

.faq-item p {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* Footer */
.footer {
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #040811;
}

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

.footer-brand p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

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

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.86rem;
}

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

.footer-copy {
  font-size: 0.82rem;
  color: #64748b;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(3, 6, 14, 0.78);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-card {
  width: 100%;
  max-width: 460px;
  background: #0c1426;
  border: 1px solid rgba(0, 229, 255, 0.32);
  border-radius: 16px;
  padding: 28px;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
}

.modal-close {
  position: absolute;
  top: 14px;
  inset-inline-end: 16px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.6rem;
  cursor: pointer;
}

.modal-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.modal-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.modal-meta {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.86rem;
  margin-bottom: 20px;
}

.modal-meta div {
  display: flex;
  justify-content: space-between;
}

.modal-meta span {
  color: var(--text-secondary);
}

.download-feedback {
  margin-top: 12px;
  font-size: 0.84rem;
  color: #34d399;
  text-align: center;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .features-grid,
  .steps-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .features-grid,
  .steps-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .hero-metrics {
    flex-wrap: wrap;
    gap: 16px;
  }
  .metric-divider {
    display: none;
  }
}
