/* --- CSS RESET & BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.7);
  --border-color: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(56, 189, 248, 0.25);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent-cyan: #38bdf8;
  --accent-blue: #3b82f6;
  --accent-indigo: #6366f1;
  --accent-purple: #a855f7;
  --accent-green: #10b981;

  --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", sans-serif;
}

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

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

/* Background Ambient Glows */
.glow-bg {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}
.glow-bg.top-left {
  top: -150px;
  left: -150px;
  background: radial-gradient(circle, var(--accent-cyan), var(--accent-indigo));
}
.glow-bg.bottom-right {
  top: 600px;
  right: -200px;
  background: radial-gradient(circle, var(--accent-purple), var(--accent-blue));
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10, 14, 23, 0.75);
  border-bottom: 1px solid var(--border-color);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}
.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.brand-arabic {
  font-size: 14px;
  color: var(--accent-cyan);
  opacity: 0.9;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a:hover {
  color: var(--text-primary);
}
.nav-github {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  border-radius: 20px;
}
.nav-github:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Hero Section */
.hero {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px 60px;
  text-align: center;
}
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 9999px;
  font-size: 13px;
  color: var(--accent-cyan);
  margin-bottom: 24px;
}
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: pulse 2s infinite ease-in-out;
}
@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
}

.hero-title {
  font-size: 52px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}
.gradient-text {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-desc {
  max-width: 720px;
  margin: 0 auto 36px;
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-primary {
  background: linear-gradient(135deg, #0284c7, #4f46e5);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(79, 70, 229, 0.45);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  position: relative;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}
.copy-tip {
  font-size: 11px;
  color: var(--accent-cyan);
  margin-left: 6px;
}

.hero-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}
.dot-separator {
  opacity: 0.5;
}

/* Demo Simulation Window */
.demo-section {
  margin-top: 60px;
}
.demo-window {
  max-width: 820px;
  margin: 0 auto;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--border-glow);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(56, 189, 248, 0.15);
  overflow: hidden;
  text-align: left;
}
.window-titlebar {
  background: rgba(30, 41, 59, 0.5);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.window-buttons {
  display: flex;
  gap: 8px;
}
.window-buttons span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.btn-close { background: #ff5f56; }
.btn-min { background: #ffbd2e; }
.btn-max { background: #27c93f; }

.window-title {
  flex: 1;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}
.window-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}
.live-dot {
  width: 6px;
  height: 6px;
  background: #ef4444;
  border-radius: 50%;
  animation: pulse 1s infinite alternate;
}

.window-body {
  padding: 24px;
}
.waveform-bar {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 20px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 4px 12px;
}
.wave-column {
  width: 3px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 2px;
  transition: height 0.15s ease;
}

.subtitles-stream {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 170px;
}
.sentence-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 14px;
  transition: all 0.3s ease;
}
.sentence-item.remote {
  border-left: 3px solid var(--accent-cyan);
}
.sentence-item.local {
  border-left: 3px solid var(--accent-green);
}
.tag {
  font-weight: 700;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
}
.tag-remote {
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.15);
}
.tag-local {
  color: var(--accent-green);
  background: rgba(16, 185, 129, 0.15);
}
.cursor-blink {
  display: inline-block;
  width: 6px;
  height: 14px;
  background: var(--accent-cyan);
  margin-left: 4px;
  vertical-align: middle;
  animation: cursor 0.8s infinite;
}
@keyframes cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.demo-control-bar {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.demo-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.demo-btn:hover {
  background: rgba(56, 189, 248, 0.25);
}
.demo-status-text {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Features Grid */
.features-section {
  padding: 100px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px 24px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}
.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-icon-wrapper.cyan { background: rgba(56, 189, 248, 0.15); color: var(--accent-cyan); }
.feature-icon-wrapper.indigo { background: rgba(99, 102, 241, 0.15); color: var(--accent-indigo); }
.feature-icon-wrapper.green { background: rgba(16, 185, 129, 0.15); color: var(--accent-green); }
.feature-icon-wrapper.purple { background: rgba(168, 85, 247, 0.15); color: var(--accent-purple); }

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Architecture Flow */
.arch-section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.arch-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
}
.arch-node {
  flex: 1;
  min-width: 200px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
}
.node-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.node-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pill {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 500;
}
.pill.blue { background: rgba(56, 189, 248, 0.15); color: var(--accent-cyan); }
.pill.green { background: rgba(16, 185, 129, 0.15); color: var(--accent-green); }
.pill.gray { background: rgba(255, 255, 255, 0.08); color: var(--text-secondary); }
.pill.purple { background: rgba(168, 85, 247, 0.15); color: var(--accent-purple); }
.pill.yellow { background: rgba(234, 179, 8, 0.15); color: #eab308; }
.arch-arrow {
  color: var(--accent-cyan);
  font-size: 20px;
  opacity: 0.6;
}

/* Installation CTA */
.install-section {
  padding: 80px 24px;
  max-width: 1000px;
  margin: 0 auto;
}
.cta-box {
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.7), rgba(15, 23, 42, 0.9));
  border: 1px solid var(--border-glow);
  border-radius: 24px;
  padding: 60px 32px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.cta-box h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
}
.cta-box p {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 32px;
}
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.btn-large {
  padding: 14px 32px;
  font-size: 16px;
}

/* Pricing Section */
.pricing-section {
  padding: 100px 24px;
  max-width: 1080px;
  margin: 0 auto;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  align-items: stretch;
  margin-top: 40px;
}
.pricing-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.pricing-card.featured {
  border: 1px solid rgba(168, 85, 247, 0.45);
  background: linear-gradient(180deg, rgba(30, 27, 75, 0.6) 0%, rgba(15, 23, 42, 0.85) 100%);
  box-shadow: 0 16px 48px rgba(124, 58, 237, 0.25);
}
.pricing-tag {
  position: absolute;
  top: -14px;
  right: 28px;
  background: linear-gradient(135deg, #a855f7, #6366f1);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
}
.pricing-plan-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}
.pricing-plan-desc {
  font-size: 13px;
  color: var(--text-secondary);
  min-height: 38px;
}
.pricing-price-box {
  margin: 24px 0 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.pricing-price {
  font-size: 42px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  display: inline-block;
}
.pricing-price-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-left: 8px;
}
.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  flex: 1;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
.check-icon {
  color: var(--accent-cyan);
  font-weight: 700;
}
.check-icon.pro {
  color: #c084fc;
}
.btn-full {
  width: 100%;
}
.btn-pro {
  background: linear-gradient(135deg, #9333ea, #4f46e5);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 24px rgba(147, 51, 234, 0.35);
}
.btn-pro:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(147, 51, 234, 0.5);
  color: #fff;
}
.btn-pro-hero {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.2), rgba(79, 70, 229, 0.3));
  color: #e9d5ff;
  border: 1px solid rgba(168, 85, 247, 0.4);
}
.btn-pro-hero:hover {
  background: linear-gradient(135deg, #9333ea, #4f46e5);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(147, 51, 234, 0.35);
}
.pricing-note {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 12px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 40px 24px;
  font-size: 13px;
  color: var(--text-muted);
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title { font-size: 36px; }
  .arch-arrow { display: none; }
  .arch-flow { flex-direction: column; }
}

