/* ========== NonLag landing — dark, minimal, premium ========== */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-deep: #050508;
  --bg-base: #0a0a10;
  --bg-card: rgba(255, 255, 255, 0.025);
  --bg-card-hover: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.1);

  --text: #f5f5fa;
  --text-muted: #9b9bb0;
  --text-faint: #5a5a72;

  --cyan: #00f5ff;
  --magenta: #ff00aa;
  --purple: #8a2be2;
  --green: #1cff8a;
  --yellow: #ffd43b;
  --red: #ff5470;

  --grad-primary: linear-gradient(135deg, #00f5ff 0%, #8a2be2 50%, #ff00aa 100%);
  --grad-text: linear-gradient(135deg, #00f5ff 0%, #ff00aa 100%);
  --grad-card: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Cairo', -apple-system, 'Segoe UI', Tahoma, sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== Background effects ========== */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

.bg-glow-1 {
  top: -200px;
  left: -150px;
  background: radial-gradient(circle, rgba(0, 245, 255, 0.4), transparent 70%);
  animation: float-glow 20s ease-in-out infinite;
}

.bg-glow-2 {
  top: 30%;
  right: -200px;
  background: radial-gradient(circle, rgba(255, 0, 170, 0.4), transparent 70%);
  animation: float-glow 25s ease-in-out infinite reverse;
}

@keyframes float-glow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, 60px); }
}

/* ========== Header ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(5, 5, 8, 0.7);
  border-bottom: 1px solid var(--border);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 22px;
}

.logo-icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--grad-primary);
  color: white;
  font-size: 18px;
  box-shadow: 0 4px 20px rgba(138, 43, 226, 0.4);
}

.logo-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav a {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 14px;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--text);
}

.nav-admin {
  padding: 8px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
}

@media (max-width: 700px) {
  .nav { gap: 16px; font-size: 13px; }
  .nav a:not(.nav-admin) { display: none; }
}

/* ========== Hero ========== */
.hero {
  position: relative;
  z-index: 1;
  padding: 80px 0 100px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  margin-bottom: 32px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg-card);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero h1 {
  font-size: clamp(36px, 7vw, 78px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--grad-primary);
  color: white;
  box-shadow: 0 4px 24px rgba(138, 43, 226, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 32px rgba(138, 43, 226, 0.55);
}

.btn-secondary {
  background: var(--bg-card-hover);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-large {
  padding: 18px 36px;
  font-size: 17px;
  border-radius: 14px;
}

/* ========== Hero stats ========== */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 700px;
  margin: 0 auto;
}

.stat {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(8px);
}

.stat-num {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.stat-num span {
  font-size: 0.45em;
  color: var(--text-muted);
  -webkit-text-fill-color: var(--text-muted);
  font-weight: 700;
  margin-inline-start: 4px;
}

.stat-label {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ========== Section heads ========== */
.section-head {
  text-align: center;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 17px;
}

/* ========== Features ========== */
.features {
  position: relative;
  z-index: 1;
  padding: 80px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.feature-card {
  padding: 28px;
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  color: white;
  margin-bottom: 18px;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--c1) 30%, transparent);
}

.feature-card h3 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

/* ========== Pricing ========== */
.pricing {
  position: relative;
  z-index: 1;
  padding: 80px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}

.price-card {
  position: relative;
  padding: 32px 28px;
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
}

.price-card-popular {
  border-color: rgba(138, 43, 226, 0.4);
  background: linear-gradient(180deg, rgba(138, 43, 226, 0.06), rgba(255,255,255,0.02));
  box-shadow: 0 8px 40px rgba(138, 43, 226, 0.15);
  transform: scale(1.03);
}

.popular-badge {
  position: absolute;
  top: -12px;
  inset-inline-start: 50%;
  transform: translateX(50%);
  padding: 4px 14px;
  background: var(--grad-primary);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.05em;
}

[dir="rtl"] .popular-badge { transform: translateX(-50%); }

.price-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}

.price-amount .currency {
  font-size: 24px;
  color: var(--text-muted);
  font-weight: 700;
}

.price-amount .num {
  font-size: 56px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.price-amount .per {
  font-size: 16px;
  color: var(--text-muted);
  margin-inline-start: 4px;
}

.price-save {
  display: inline-block;
  padding: 3px 10px;
  margin-bottom: 20px;
  background: rgba(28, 255, 138, 0.1);
  border: 1px solid rgba(28, 255, 138, 0.3);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
}

.price-card ul {
  list-style: none;
  margin-bottom: 24px;
  flex: 1;
}

.price-card li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
  position: relative;
  padding-inline-start: 22px;
}

.price-card li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  color: var(--green);
  font-weight: 900;
}

.price-card li:last-child { border-bottom: 0; }

.pricing-note {
  text-align: center;
  margin-top: 40px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 2;
}

/* ========== FAQ ========== */
.faq {
  position: relative;
  z-index: 1;
  padding: 80px 0;
  max-width: 800px;
  margin: 0 auto;
}

.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 24px;
  transition: border-color 0.2s;
}

.faq-item:hover {
  border-color: var(--border-strong);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 24px;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 0 20px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* ========== CTA ========== */
.cta {
  position: relative;
  z-index: 1;
  padding: 100px 0;
  text-align: center;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(138, 43, 226, 0.15), transparent);
  pointer-events: none;
}

.cta h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  position: relative;
}

.cta-meta {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-faint);
  position: relative;
}

/* ========== Footer ========== */
.footer {
  position: relative;
  z-index: 1;
  padding: 60px 0 32px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.3);
}

.footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

@media (max-width: 700px) {
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 32px; }
}

.logo-footer { margin-bottom: 12px; }

.footer-tagline {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 280px;
}

.footer h4 {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer a {
  display: block;
  color: var(--text-muted);
  font-size: 14px;
  padding: 6px 0;
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--text);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-faint);
  font-size: 13px;
}
