/* =========================================
   XORV — styles.css
   Cyber-minimalist premium dark theme
   ========================================= */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: #09090b;
  color: #e2e8f0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* --- CSS Variables --- */
:root {
  --blue: #2563eb;
  --blue-light: #3b82f6;
  --blue-dim: rgba(37,99,235,.15);
  --emerald: #10b981;
  --emerald-dim: rgba(16,185,129,.15);
  --purple: #8b5cf6;
  --purple-dim: rgba(139,92,246,.15);
  --bg: #09090b;
  --bg-card: #0f172a;
  --bg-card2: #111827;
  --border: rgba(255,255,255,.07);
  --border-hover: rgba(255,255,255,.15);
  --text-muted: #64748b;
  --text-secondary: #94a3b8;
  --radius: 16px;
  --radius-sm: 8px;
}

/* --- Typography --- */
.gradient-text {
  background: linear-gradient(135deg, var(--blue-light) 0%, var(--emerald) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Layout --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section-pad { padding: 6rem 0; }

.section-header { text-align: center; margin-bottom: 4rem; }
.section-tag {
  font-size: .8rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue-light);
  margin-bottom: .75rem; display: block;
}
.section-title { font-size: clamp(1.8rem, 4vw, 2.75rem); font-weight: 800; margin-bottom: 1rem; color: #f8fafc; }
.section-desc { color: var(--text-secondary); max-width: 540px; margin: 0 auto; font-size: 1.05rem; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.75rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .95rem; transition: all .2s; cursor: pointer;
}
.btn-primary {
  background: var(--blue); color: #fff;
  box-shadow: 0 0 20px rgba(37,99,235,.35);
}
.btn-primary:hover { background: var(--blue-light); box-shadow: 0 0 30px rgba(37,99,235,.6); transform: translateY(-1px); }
.btn-outline {
  border: 1.5px solid var(--border-hover); color: #f8fafc; background: transparent;
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue-light); background: var(--blue-dim); }
.btn-ghost { color: var(--text-secondary); background: transparent; border: 1.5px solid var(--border); }
.btn-ghost:hover { color: #f8fafc; border-color: var(--border-hover); }
.btn-lg { padding: .9rem 2.25rem; font-size: 1rem; }
.btn-sm { padding: .5rem 1.1rem; font-size: .85rem; }
.btn-block { width: 100%; }

/* --- NAVBAR --- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(9,9,11,.8); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all .3s;
}
.navbar.scrolled { background: rgba(9,9,11,.98); box-shadow: 0 4px 30px rgba(0,0,0,.4); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 2rem;
}
.brand { display: flex; align-items: baseline; gap: .35rem; font-size: 1.5rem; font-weight: 900; letter-spacing: -.02em; }
.brand-x { color: var(--blue-light); }
.brand-orv { color: #f8fafc; }
.brand-arabic { font-size: .7rem; color: var(--text-muted); letter-spacing: .05em; margin-left: .25rem; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { font-size: .9rem; font-weight: 500; color: var(--text-secondary); transition: color .2s; }
.nav-links a:hover { color: #f8fafc; }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: .4rem; }
.hamburger span { display: block; width: 22px; height: 2px; background: #f8fafc; border-radius: 2px; transition: all .3s; }

/* Mobile Menu */
.mobile-menu {
  display: none; padding: 1.5rem; border-top: 1px solid var(--border);
  background: rgba(9,9,11,.98);
}
.mobile-menu ul { display: flex; flex-direction: column; gap: 1.25rem; }
.mobile-link { font-size: 1.1rem; font-weight: 500; color: var(--text-secondary); }
.mobile-link:hover { color: #f8fafc; }

/* --- HERO --- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 8rem 0 5rem; overflow: hidden;
}
.hero-bg-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(37,99,235,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 40%, transparent 100%);
}
.hero-glow {
  position: absolute; border-radius: 50%; filter: blur(120px); pointer-events: none; z-index: 0;
}
.hero-glow-1 {
  width: 600px; height: 400px; top: 10%; left: -10%;
  background: radial-gradient(circle, rgba(37,99,235,.18) 0%, transparent 70%);
}
.hero-glow-2 {
  width: 500px; height: 350px; bottom: 10%; right: -5%;
  background: radial-gradient(circle, rgba(16,185,129,.12) 0%, transparent 70%);
}
.hero-inner { position: relative; z-index: 1; max-width: 780px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--bg-card); border: 1px solid var(--border);
  padding: .45rem 1rem; border-radius: 99px;
  font-size: .82rem; font-weight: 500; color: var(--text-secondary);
  margin-bottom: 2rem;
}
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; } 50% { opacity: .4; }
}
.hero-headline {
  font-size: clamp(2.8rem, 7vw, 5.5rem); font-weight: 900;
  line-height: 1.05; letter-spacing: -.03em; color: #f8fafc;
  margin-bottom: 1.75rem;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem); color: var(--text-secondary);
  max-width: 620px; margin-bottom: 2.5rem; line-height: 1.75;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 4rem; }
.hero-stats { display: flex; align-items: center; gap: 2rem; }
.stat-item { display: flex; flex-direction: column; gap: .2rem; }
.stat-num { font-size: 1.6rem; font-weight: 800; color: #f8fafc; }
.stat-label { font-size: .8rem; color: var(--text-muted); }
.stat-divider { width: 1px; height: 40px; background: var(--border); }
.hero-scroll-indicator {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
}
.scroll-line {
  width: 1.5px; height: 50px; background: linear-gradient(to bottom, var(--blue-light), transparent);
  animation: scroll-line-anim 2s ease infinite;
}
@keyframes scroll-line-anim {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* --- SERVICES --- */
.services { background: var(--bg); }
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem;
}
.service-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  transition: border-color .3s, transform .3s, box-shadow .3s;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0; transition: opacity .3s;
}
.service-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.service-card:hover::before { opacity: 1; }
.service-card-featured { border-color: rgba(37,99,235,.3); }
.service-card-featured::before { opacity: 1; }
.service-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem;
}
.service-icon-blue { background: var(--blue-dim); color: var(--blue-light); }
.service-icon-emerald { background: var(--emerald-dim); color: var(--emerald); }
.service-icon-purple { background: var(--purple-dim); color: var(--purple); }
.service-card h3 { font-size: 1.15rem; font-weight: 700; color: #f8fafc; margin-bottom: .75rem; }
.service-card p { color: var(--text-secondary); font-size: .9rem; line-height: 1.7; margin-bottom: 1.25rem; }
.service-features { display: flex; flex-direction: column; gap: .5rem; }
.service-features li { font-size: .85rem; color: var(--text-muted); padding-left: 1.2rem; position: relative; }
.service-features li::before { content: '—'; position: absolute; left: 0; color: var(--blue); }
.service-badge {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--blue-dim); color: var(--blue-light);
  font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: .3rem .7rem; border-radius: 99px;
  border: 1px solid rgba(37,99,235,.3);
}

/* --- PRICING --- */
.pricing { background: linear-gradient(180deg, var(--bg) 0%, #0a0e1a 100%); }
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem; align-items: stretch; margin-bottom: 3rem;
}
.pricing-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2.25rem;
  display: flex; flex-direction: column; gap: 1.75rem;
  position: relative; transition: border-color .3s, box-shadow .3s;
}
.pricing-card:hover { border-color: var(--border-hover); box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.pricing-card-featured {
  border-color: var(--blue);
  box-shadow: 0 0 50px rgba(37,99,235,.15), 0 0 0 1px rgba(37,99,235,.2);
}
.pricing-popular-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: #fff;
  font-size: .75rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: .35rem 1.1rem; border-radius: 99px;
  white-space: nowrap;
}
.pricing-tier { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: .4rem; }
.pricing-name { font-size: 1.15rem; font-weight: 700; color: #f8fafc; line-height: 1.3; }
.pricing-price { display: flex; align-items: flex-end; gap: .15rem; margin: 1rem 0 .25rem; }
.price-currency { font-size: 1.4rem; font-weight: 700; color: var(--text-secondary); line-height: 1.8; }
.price-amount { font-size: 3rem; font-weight: 900; color: #f8fafc; line-height: 1; letter-spacing: -.03em; }
.price-cents { font-size: 1.4rem; font-weight: 700; color: var(--text-secondary); line-height: 1.8; }
.pricing-type { font-size: .82rem; color: var(--text-muted); }
.pricing-features { display: flex; flex-direction: column; gap: .65rem; flex: 1; }
.pricing-features li { display: flex; align-items: flex-start; gap: .6rem; font-size: .88rem; color: var(--text-secondary); }
.feature-check { color: var(--emerald); font-weight: 700; flex-shrink: 0; margin-top: .05rem; }
.feature-disabled { opacity: .4; }
.feature-disabled span { color: var(--text-muted); }
.pricing-note { font-size: .78rem; color: var(--text-muted); text-align: center; line-height: 1.5; }

/* Trust Bar */
.trust-bar {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 2rem;
  padding: 1.5rem 2rem; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--bg-card);
}
.trust-item {
  display: flex; align-items: center; gap: .6rem;
  font-size: .85rem; color: var(--text-secondary);
}
.trust-item svg { color: var(--emerald); }

/* --- ABOUT --- */
.about { background: var(--bg); }
.about-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
}
.about-text { color: var(--text-secondary); font-size: .95rem; line-height: 1.8; margin-bottom: 1.25rem; }
.about-tags { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.tag {
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-secondary); font-size: .8rem; font-weight: 500;
  padding: .35rem .8rem; border-radius: 6px;
}
.about-visual { position: relative; height: 320px; }
.about-card-stack { position: relative; width: 100%; height: 100%; }
.about-card {
  position: absolute; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem 2rem;
  display: flex; align-items: center; gap: 1rem;
  font-weight: 600; color: #f8fafc;
  transition: transform .3s, box-shadow .3s;
}
.about-card:hover { transform: scale(1.03); box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.about-card-icon { font-size: 1.8rem; }
.about-card-1 { top: 0; left: 0; right: 20%; border-color: rgba(37,99,235,.3); }
.about-card-2 { top: 40%; left: 15%; right: 5%; border-color: rgba(16,185,129,.3); }
.about-card-3 { top: 68%; left: 5%; right: 15%; border-color: rgba(139,92,246,.3); }

/* --- CONTACT --- */
.contact { background: linear-gradient(180deg, #0a0e1a 0%, var(--bg) 100%); }
.contact-form {
  max-width: 680px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 1.25rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: .5rem; }
.form-group label { font-size: .85rem; font-weight: 500; color: var(--text-secondary); }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-card); border: 1px solid var(--border);
  color: #f8fafc; border-radius: var(--radius-sm);
  padding: .8rem 1rem; font-size: .92rem; font-family: inherit;
  transition: border-color .2s, box-shadow .2s; outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
.form-group select { cursor: pointer; }
.form-group select option { background: #1e293b; }
.form-group textarea { resize: vertical; min-height: 130px; }

/* --- FOOTER --- */
.footer { background: #050507; border-top: 1px solid var(--border); padding: 4rem 0 0; }
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem;
}
.footer-tagline { color: var(--text-muted); font-size: .88rem; margin-top: .75rem; line-height: 1.6; }
.footer-legal-entity { color: #374151; font-size: .75rem; margin-top: 1rem; line-height: 1.6; }
.footer-links-group h4 { font-size: .85rem; font-weight: 600; color: #f8fafc; margin-bottom: 1rem; }
.footer-links-group ul { display: flex; flex-direction: column; gap: .65rem; }
.footer-links-group a,
.footer-legal-btn {
  font-size: .85rem; color: var(--text-muted);
  transition: color .2s; text-align: left;
}
.footer-links-group a:hover,
.footer-legal-btn:hover { color: #f8fafc; }
.footer-bottom { border-top: 1px solid var(--border); padding: 1.25rem 0; }
.footer-bottom-inner {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: .8rem; color: var(--text-muted); }
.footer-bottom a { color: var(--blue-light); }
.footer-bottom a:hover { color: #f8fafc; }

/* --- MODALS --- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.85); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.modal-overlay[hidden] { display: none; }
.modal-box {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); width: 100%; max-width: 760px;
  max-height: 90vh; display: flex; flex-direction: column;
  box-shadow: 0 40px 100px rgba(0,0,0,.8);
}
.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.5rem 2rem; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.modal-header h2 { font-size: 1.2rem; font-weight: 700; color: #f8fafc; }
.modal-close {
  color: var(--text-muted); font-size: 1.2rem; line-height: 1;
  padding: .3rem .5rem; border-radius: 6px; transition: color .2s, background .2s;
}
.modal-close:hover { color: #f8fafc; background: rgba(255,255,255,.08); }
.modal-body { overflow-y: auto; padding: 2rem; flex: 1; }
.modal-body h3 { font-size: 1rem; font-weight: 700; color: #f8fafc; margin: 1.75rem 0 .6rem; }
.modal-body h3:first-child { margin-top: 0; }
.modal-body p { font-size: .88rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: .75rem; }
.modal-body ul { padding-left: 1.2rem; list-style: disc; margin-bottom: .75rem; }
.modal-body ul li { font-size: .88rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: .3rem; }
.modal-body .legal-meta { font-size: .8rem; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 1rem; margin-top: 2rem; }

/* --- RECEIPT --- */
.receipt-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,.9); backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center; padding: 1.5rem;
}
.receipt-overlay[hidden] { display: none; }
.receipt-box {
  background: var(--bg-card); border: 1px solid rgba(16,185,129,.3);
  border-radius: var(--radius); padding: 3rem; max-width: 540px; width: 100%;
  text-align: center; box-shadow: 0 0 80px rgba(16,185,129,.1);
}
.receipt-header { margin-bottom: 2rem; }
.receipt-check-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--emerald-dim); border: 2px solid var(--emerald);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: var(--emerald);
  margin: 0 auto 1.25rem;
  animation: check-pop .4s cubic-bezier(.18,.89,.32,1.28);
}
@keyframes check-pop { 0% { transform: scale(0); } 100% { transform: scale(1); } }
.receipt-header h2 { font-size: 1.5rem; font-weight: 800; color: #f8fafc; margin-bottom: .5rem; }
.receipt-header p { color: var(--text-secondary); }
.receipt-details {
  background: rgba(255,255,255,.03); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 1.5rem; margin-bottom: 1.5rem; text-align: left;
}
.receipt-details .detail-row {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .5rem 0; border-bottom: 1px solid var(--border); font-size: .88rem;
}
.receipt-details .detail-row:last-child { border-bottom: none; }
.receipt-details .detail-label { color: var(--text-muted); }
.receipt-details .detail-value { color: #f8fafc; font-weight: 600; font-family: 'JetBrains Mono', monospace; }
.receipt-notice {
  display: flex; align-items: flex-start; gap: .7rem;
  background: var(--emerald-dim); border: 1px solid rgba(16,185,129,.25);
  border-radius: var(--radius-sm); padding: 1rem; text-align: left;
  font-size: .82rem; color: #6ee7b7; line-height: 1.6; margin-bottom: 1.5rem;
}
.receipt-notice svg { color: var(--emerald); flex-shrink: 0; margin-top: .1rem; }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .about-inner { grid-template-columns: 1fr; gap: 3rem; }
  .about-visual { height: 250px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu.open { display: block; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.25rem; }
  .stat-num { font-size: 1.25rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .trust-bar { gap: 1rem; }
  .pricing-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; }
  .btn-lg { width: 100%; text-align: center; }
}
