/* ═══════════════════════════════════════════
   NexCloak — Ethereal Veil Landing
   ═══════════════════════════════════════════ */

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  background: var(--surface-glass);
  transition: background var(--transition);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo svg { width: 36px; height: 36px; filter: drop-shadow(0 2px 12px rgba(0,88,190,.3)); }
.logo span { font-size: 20px; font-weight: 800; letter-spacing: -.3px; }

.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: var(--text-secondary); font-size: 14px; font-weight: 500;
  text-decoration: none; transition: color .15s; letter-spacing: .01em;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

.header-actions { display: flex; gap: 10px; align-items: center; }
.header-actions .btn { padding: 10px 24px; font-size: 14px; }

.theme-toggle {
  background: none; border: none; cursor: pointer; color: var(--hint);
  padding: 6px; border-radius: 8px; display: flex; align-items: center; transition: color .15s;
}
.theme-toggle:hover { color: var(--text); }

.hamburger { display: none; background: none; border: none; cursor: pointer; color: var(--text); padding: 4px; }

/* ── Hero ── */
.hero {
  position: relative;
  padding: 160px 24px 120px;
  text-align: center;
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  background: var(--gradient-hero);
}
.hero-bg .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .4;
  animation: blobFloat 16s ease-in-out infinite alternate;
}
.hero-bg .blob-1 { width: 600px; height: 600px; background: rgba(0,88,190,.2); top: -15%; left: -10%; animation-delay: 0s; }
.hero-bg .blob-2 { width: 500px; height: 500px; background: rgba(59,130,246,.18); bottom: -10%; right: -8%; animation-delay: -5s; }
.hero-bg .blob-3 { width: 350px; height: 350px; background: rgba(34,197,94,.1); top: 35%; right: 15%; animation-delay: -10s; }

@keyframes blobFloat {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.06); }
  66% { transform: translate(-25px, 25px) scale(.94); }
  100% { transform: translate(15px, -15px) scale(1.03); }
}

.hero-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }

.hero-shield {
  width: 88px; height: 88px;
  margin: 0 auto 32px;
  filter: drop-shadow(0 4px 24px rgba(0,88,190,.35));
  animation: heroFloat 5s ease-in-out infinite;
}
@keyframes heroFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.hero-label {
  font-size: var(--label-md);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, var(--display-lg));
  font-weight: 300;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--text);
}
.hero h1 strong {
  font-weight: 700;
}
.hero p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-buttons .btn { padding: 16px 36px; font-size: 16px; }

/* ── Section Heading ── */
.section-heading {
  text-align: center;
  margin-bottom: 56px;
}
.section-heading h2 {
  font-size: clamp(1.6rem, 4vw, var(--headline-md));
  font-weight: 500;
  letter-spacing: -.5px;
  margin-bottom: 14px;
}
.section-heading h2 strong { font-weight: 700; }
.section-heading p { color: var(--text-secondary); font-size: 1rem; max-width: 500px; margin: 0 auto; line-height: 1.6; }

/* ── News / The Pulse ── */
.news { padding: 80px 24px 100px; }
.news .container { max-width: 1100px; }
.news-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 40px; gap: 16px; flex-wrap: wrap;
}
.news-header h2 { font-size: var(--headline-md); font-weight: 500; }
.news-header p { color: var(--text-secondary); font-size: var(--body-md); margin-top: 4px; }
.news-header a {
  font-size: var(--body-md); font-weight: 600; color: var(--accent);
  text-decoration: none; white-space: nowrap;
}
.news-header a:hover { text-decoration: underline; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.news-card {
  background: var(--surface-glass-strong);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--ghost-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
  animation: glassIn .6s ease both;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.news-card-img {
  width: 100%; height: 180px; object-fit: cover;
  background: var(--bg-secondary);
}
.news-card-body { padding: 20px 22px 24px; }
.news-card-badge {
  display: inline-block;
  font-size: var(--label-md); font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--accent); margin-bottom: 10px;
}
.news-card-badge.promo { color: var(--green); }
.news-card-badge.alert { color: var(--red); }
.news-card-title { font-size: var(--title-sm); font-weight: 600; margin-bottom: 8px; line-height: 1.4; }
.news-card-text { font-size: var(--body-md); color: var(--text-secondary); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card-date { font-size: var(--label-md); color: var(--hint); margin-top: 12px; }

.news-empty { text-align: center; color: var(--hint); padding: 40px 0; font-size: var(--body-md); }

/* ── Features ── */
.features { padding: 100px 24px; }
.features .container { max-width: 1100px; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--surface-glass-strong);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--ghost-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform .3s ease, box-shadow .3s ease;
  opacity: 0;
  transform: translateY(24px);
}
.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .6s ease, transform .6s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.feature-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  background: rgba(0,88,190,.06);
  color: var(--accent);
}
.feature-card:nth-child(2) .feature-icon { background: rgba(59,130,246,.06); color: var(--accent-light); }
.feature-card:nth-child(3) .feature-icon { background: rgba(34,197,94,.06); color: var(--green); }
.feature-card:nth-child(4) .feature-icon { background: rgba(245,158,11,.06); color: var(--yellow); }

.feature-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: var(--body-md); color: var(--text-secondary); line-height: 1.7; }

/* ── Steps ── */
.steps { padding: 100px 24px; background: var(--bg-secondary); }
.steps .container { max-width: 800px; }

.steps-list { position: relative; padding-left: 52px; }
.steps-list::before {
  content: '';
  position: absolute;
  left: 21px; top: 28px; bottom: 28px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  border-radius: 1px;
}

.step-item {
  position: relative;
  padding: 24px 0;
  opacity: 0;
  transform: translateX(-20px);
}
.step-item.visible {
  opacity: 1;
  transform: translateX(0);
  transition: opacity .5s ease, transform .5s ease;
}
.step-item + .step-item { margin-top: 8px; }

.step-num {
  position: absolute;
  left: -52px; top: 24px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,88,190,.25);
}
.step-item h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 6px; }
.step-item p { font-size: var(--body-md); color: var(--text-secondary); line-height: 1.7; }

/* ── Pricing ── */
.pricing { padding: 100px 24px; }
.pricing .container { max-width: 960px; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  align-items: start;
}
.pricing-card {
  background: var(--surface-glass-strong);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--ghost-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  transition: transform .3s, box-shadow .3s;
  position: relative;
  overflow: hidden;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card.popular {
  border: 1.5px solid var(--accent);
  box-shadow: var(--glow);
  transform: scale(1.03);
}
.pricing-card.popular:hover { transform: scale(1.03) translateY(-4px); }
.pricing-badge {
  display: inline-block;
  background: var(--gradient-primary);
  color: #fff;
  font-size: var(--label-md);
  font-weight: 700;
  letter-spacing: .06em;
  padding: 4px 14px;
  border-radius: var(--radius-xl);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.pricing-emoji {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 16px;
  background: rgba(0,88,190,.06); margin: 0 auto 16px;
}
.pricing-name { font-size: 1.1rem; font-weight: 600; margin-bottom: 4px; }
.pricing-details { font-size: var(--body-md); color: var(--hint); margin-bottom: 20px; }
.pricing-amount {
  font-size: 2.2rem; font-weight: 300; color: var(--accent);
  margin-bottom: 4px; letter-spacing: -1px;
}
.pricing-amount.free { color: var(--green); }
.pricing-per { font-size: 13px; color: var(--hint); margin-bottom: 24px; }
.pricing-card .btn { width: 100%; }

/* ── CTA Section ── */
.cta-section {
  padding: 100px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: 0;
}
.cta-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}
.cta-content h2 {
  font-size: clamp(1.6rem, 4vw, var(--headline-md));
  font-weight: 300;
  margin-bottom: 12px;
}
.cta-content h2 strong { font-weight: 700; }
.cta-content p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 32px;
  line-height: 1.6;
}

/* ── FAQ ── */
.faq { padding: 100px 24px; background: var(--bg-secondary); }
.faq .container { max-width: 760px; }

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

.faq-item {
  background: var(--surface-glass-strong);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--ghost-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .25s ease;
}
.faq-item:hover { box-shadow: var(--shadow); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text);
  width: 100%;
  text-align: left;
  font-family: var(--font);
  transition: color .15s;
}
.faq-question:hover { color: var(--accent); }
.faq-arrow {
  width: 20px; height: 20px;
  flex-shrink: 0;
  transition: transform .3s;
  color: var(--hint);
}
.faq-item.open .faq-arrow { transform: rotate(180deg); color: var(--accent); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: var(--body-md);
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ── Footer ── */
.site-footer {
  padding: 60px 24px 40px;
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand svg { width: 28px; height: 28px; }
.footer-brand span { font-weight: 700; font-size: 16px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--hint); font-size: var(--body-md); text-decoration: none; transition: color .15s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--hint); font-size: 13px; width: 100%; text-align: center; margin-top: 20px; }

/* ── Auth Modal ── */
.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--overlay);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity .25s;
}
.auth-overlay.open { display: flex; opacity: 1; }

.auth-modal {
  background: var(--surface-glass-strong);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid var(--ghost-border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: modalIn .3s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: none; } }

.auth-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none; border: none; cursor: pointer;
  color: var(--hint); padding: 4px;
  border-radius: 8px; transition: color .15s;
}
.auth-close:hover { color: var(--text); }

.auth-header { text-align: center; margin-bottom: 28px; }
.auth-header svg { margin-bottom: 12px; }
.auth-header h2 { font-size: 1.25rem; font-weight: 700; }
.auth-header p { color: var(--hint); font-size: var(--body-md); margin-top: 6px; }

.auth-divider {
  text-align: center;
  color: var(--hint);
  font-size: var(--label-md);
  margin: 16px 0 8px;
  letter-spacing: .02em;
}

/* ── Mobile Nav ── */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--overlay);
  backdrop-filter: blur(12px);
}
.mobile-nav.open { display: flex; }
.mobile-nav-content {
  position: absolute;
  top: 0; right: 0;
  width: 280px; height: 100%;
  background: var(--surface-glass-strong);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border-left: 1px solid var(--ghost-border);
  padding: 80px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  animation: slideIn .25s ease;
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: none; } }
.mobile-nav-content a {
  font-size: 18px; font-weight: 600;
  color: var(--text); text-decoration: none;
}
.mobile-nav-close {
  position: absolute;
  top: 20px; right: 20px;
  background: none; border: none; cursor: pointer;
  color: var(--hint); padding: 4px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .features-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .hero { min-height: 80vh; padding: 130px 16px 70px; }
  .hero h1 { font-size: 2rem; }
  .hero-buttons .btn { padding: 14px 28px; font-size: 15px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.popular { transform: none; }
  .pricing-card.popular:hover { transform: translateY(-4px); }
  .site-footer .container { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .auth-modal { padding: 28px 20px; margin: 16px; }
  .news-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-buttons .btn { width: 100%; max-width: 300px; }
  .steps-list { padding-left: 44px; }
  .steps-list::before { left: 17px; }
  .step-num { left: -44px; width: 36px; height: 36px; font-size: 14px; }
}
