/* ── DOPENTO MOBILE-FIRST LANDING SYSTEM ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --blue: #007AFF;
  --blue-glow: rgba(0, 122, 255, 0.45);
  --blue-subtle: rgba(0, 122, 255, 0.15);
  --bg-deep: #000000;
  --bg-surface: #0a0a0f;
  
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.88);
  --text-muted: rgba(255, 255, 255, 0.65);
  
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-bg-hover: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-focus: rgba(0, 122, 255, 0.5);
  
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --font-family: 'Tajawal', system-ui, -apple-system, sans-serif;
}

html, body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-family);
  direction: rtl;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── SVG Global Constraints ── */
svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
.nav-logo-icon { width: 34px !important; height: 34px !important; }
.nav-svg-icon { width: 16px !important; height: 16px !important; }
.btn-os-icon { width: 28px !important; height: 28px !important; }
.btn-arrow-icon { width: 22px !important; height: 22px !important; }
.sub-icon { width: 22px !important; height: 22px !important; }
.faq-chevron { width: 20px !important; height: 20px !important; }
.footer-logo { width: 24px !important; height: 24px !important; }
.feature-icon-circle svg { width: 24px !important; height: 24px !important; }

/* ── Canvas Background (Preserved Exactly) ── */
#particle-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

#page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Splash Screen ── */
#splash {
  position: fixed;
  inset: 0;
  background: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#splash.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.splash-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.splash-logo {
  width: 68px;
  height: 68px;
  z-index: 2;
}
.splash-pulse {
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--blue-glow) 0%, transparent 70%);
  animation: splashAura 1.8s infinite ease-in-out alternate;
}
@keyframes splashAura {
  0% { transform: scale(0.85); opacity: 0.4; }
  100% { transform: scale(1.3); opacity: 0.9; }
}

/* ── Fixed Glass Navbar (Pinned to Top) ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}
.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}
.nav-logo-icon {
  filter: drop-shadow(0 0 8px var(--blue-glow));
}
.nav-brand-text {
  display: flex;
  flex-direction: column;
}
.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
}
.brand-subtitle {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue);
}
.nav-actions {
  display: flex;
  align-items: center;
}
.nav-link-web {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.25s ease;
}
.nav-link-web:hover {
  background: var(--blue-subtle);
  border-color: var(--blue);
  color: #ffffff;
}
.nav-svg-icon {
  color: var(--blue);
}

/* ── Main Layout ── */
.main-wrap {
  flex: 1;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 95px 20px 60px;
}

/* ── Hero Section ── */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 36px;
  padding: 20px 0 40px;
}
@media (min-width: 900px) {
  .hero-section {
    flex-direction: row;
    text-align: right;
    align-items: center;
    justify-content: space-between;
    padding: 30px 0 60px;
  }
  .hero-content {
    flex: 1;
    max-width: 530px;
  }
  .hero-model-wrap {
    flex: 1;
    display: flex;
    justify-content: center;
  }
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 122, 255, 0.12);
  border: 1px solid rgba(0, 122, 255, 0.35);
  color: #64b5f6;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--blue);
}

.hero-title {
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 16px;
}
@media (min-width: 600px) {
  .hero-title {
    font-size: 2.65rem;
  }
}
.highlight-text {
  background: linear-gradient(135deg, #007AFF 0%, #00d2ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-strong {
  color: var(--blue);
  font-weight: 700;
}
.hero-desc {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

/* ── Primary Download Hub ── */
.download-hub {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.download-btn-main {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #007AFF 0%, #0056b3 100%);
  color: #ffffff;
  text-decoration: none;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 122, 255, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.download-btn-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 122, 255, 0.5);
}
.download-btn-main:active {
  transform: translateY(0);
}
.btn-icon-box {
  background: rgba(255, 255, 255, 0.15);
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.btn-os-icon {
  fill: #ffffff;
}
.btn-text-content {
  flex: 1;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.btn-main-label {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.2px;
}
.btn-meta-info {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}
.btn-arrow-box {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.btn-arrow-icon {
  fill: #ffffff;
}

/* Secondary Actions */
.secondary-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}
.sub-action-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  text-decoration: none;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  text-align: right;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}
.sub-action-btn:hover {
  background: var(--glass-bg-hover);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}
.sub-icon {
  color: var(--blue);
  flex-shrink: 0;
}
.sub-text {
  display: flex;
  flex-direction: column;
}
.sub-title {
  font-size: 0.92rem;
  font-weight: 700;
}
.sub-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Operational Metrics Bar */
.version-specs-bar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  margin-top: 4px;
}
.spec-pill {
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 5px;
}
.spec-label {
  color: var(--text-muted);
}
.spec-val {
  color: #64b5f6;
  font-weight: 700;
}

/* ── 3D Miner Hardware Model ── */
.hero-model-wrap {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (min-width: 900px) {
  .hero-model-wrap {
    max-width: 440px;
  }
}
.model-rig-image {
  position: relative;
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 25px rgba(0, 122, 255, 0.35));
  animation: modelFloat 4s ease-in-out infinite alternate;
  z-index: 2;
}
@keyframes modelFloat {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-10px) rotate(-1deg); }
}
.model-glow-aura {
  position: absolute;
  inset: 15%;
  background: radial-gradient(circle, var(--blue-glow) 0%, transparent 65%);
  filter: blur(50px);
  z-index: 1;
  pointer-events: none;
}

/* ── Streamlined Capabilities Section ── */
.features-section {
  padding: 40px 0 20px;
}
.section-header {
  text-align: center;
  margin-bottom: 24px;
}
.section-heading {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.section-subheading {
  font-size: 0.95rem;
  color: var(--text-muted);
}
.features-grid-mobile {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 650px) {
  .features-grid-mobile {
    grid-template-columns: 1fr 1fr;
  }
}
.mobile-feature-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: right;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.mobile-feature-card:hover {
  border-color: rgba(0, 122, 255, 0.4);
  transform: translateY(-2px);
}
.feature-icon-circle {
  width: 44px;
  height: 44px;
  background: rgba(0, 122, 255, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}
.card-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
}
.card-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ── FAQ Section ── */
.faq-section {
  padding: 30px 0;
}
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-item.open {
  border-color: rgba(0, 122, 255, 0.4);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-align: right;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.faq-chevron {
  fill: var(--text-muted);
  transition: transform 0.3s ease;
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  fill: var(--blue);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-answer-content {
  padding: 0 18px 16px;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-secondary);
  text-align: right;
}

/* ── Footer ── */
.footer-wrap {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--glass-border);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-brand-title {
  font-weight: 800;
  font-size: 1rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}
.footer-link:hover {
  color: var(--blue);
}
.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
}
