/* Reset & base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; }
a[aria-label="Telegram"], a[aria-label="Max"] { cursor: pointer; }

/* ── Header ──────────────────────────────────────────────── */
.header-nav { display: none; align-items: center; gap: 24px; }
.nav-link { color: #94A3B8; font-size: 14px; font-weight: 500; text-decoration: none; transition: color 0.2s; white-space: nowrap; }
.nav-link:hover { color: #F8FAFC; }
.header-cta { display: none; align-items: center; gap: 10px; }
.hamburger-btn { display: flex; }

@media (min-width: 768px) {
  .header-nav { display: flex; }
  .header-cta { display: flex; align-items: center; gap: 10px; }
  .hamburger-btn { display: none; }
}

/* ── Backgrounds ─────────────────────────────────────────── */
.dark-grid-bg {
  background-color: #0B1220;
}
.hero-glow {
  position: absolute; top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.13) 0%, transparent 70%);
  pointer-events: none;
}
.hero-glow-left {
  position: absolute; bottom: -100px; left: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Scroll reveal ───────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Hero illustration (hidden on mobile, flex on desktop) ── */
.hero-illustration { display: none; }
@media (min-width: 1024px) { .hero-illustration { display: flex; } }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: #2563EB; color: #fff;
  padding: 16px 32px; border-radius: 12px;
  font-weight: 700; font-size: 16px;
  border: none; cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
  text-decoration: none;
}
.btn-primary:hover { background: #1d4ed8; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: #F8FAFC;
  padding: 15px 32px; border-radius: 12px;
  font-weight: 600; font-size: 16px;
  border: 1.5px solid rgba(248, 250, 252, 0.25); cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  text-decoration: none;
}
.btn-secondary:hover { background: rgba(248, 250, 252, 0.07); border-color: rgba(248, 250, 252, 0.5); transform: translateY(-2px); }

/* ── Metric / stat cards ─────────────────────────────────── */
.metric-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 28px 32px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.metric-card:hover { transform: translateY(-4px); border-color: rgba(37, 99, 235, 0.35); }
.metric-value {
  font-size: 40px; font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #06B6D4 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1.1;
}
.metric-label { font-size: 14px; color: #94A3B8; margin-top: 6px; font-weight: 500; }

/* ── Product cards ───────────────────────────────────────── */
.product-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 20px;
  padding: 32px 28px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(37,99,235,0.4);
  box-shadow: 0 20px 48px rgba(37,99,235,0.12);
}
.product-card.featured {
  border-color: rgba(37,99,235,0.5);
  background: rgba(37,99,235,0.06);
}
.product-badge {
  display: inline-block;
  font-size: 10px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px; border-radius: 6px;
  margin-bottom: 16px;
}
.badge-entry   { background: rgba(16,185,129,0.12); color: #10B981; }
.badge-main    { background: rgba(37,99,235,0.15); color: #60A5FA; }
.badge-scale   { background: rgba(139,92,246,0.12); color: #A78BFA; }
.badge-support { background: rgba(248,196,69,0.12); color: #F59E0B; }

.product-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, #2563EB, #06B6D4);
  display: flex; align-items: center; justify-content: center;
  color: #fff; margin-bottom: 20px;
  box-shadow: 0 6px 20px rgba(37,99,235,0.3);
}
.product-name { font-size: 18px; font-weight: 700; color: #F8FAFC; margin-bottom: 8px; }
.product-desc { font-size: 14px; color: #94A3B8; line-height: 1.7; margin-bottom: 20px; }
.product-price { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.product-hours { font-size: 12px; color: #64748B; font-weight: 500; }
.product-features { list-style: none; margin-top: 20px; border-top: 1px solid rgba(255,255,255,0.07); padding-top: 20px; }
.product-features li { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; font-size: 13px; color: #CBD5E1; }
.product-features li::before { content: '→'; color: #06B6D4; font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.product-features li.metric { color: #10B981; font-weight: 600; border-top: 1px solid rgba(16,185,129,0.12); margin-top: 4px; padding-top: 10px; }
.product-features li.metric::before { content: '↗'; color: #10B981; }

/* ── Process steps ───────────────────────────────────────── */
.process-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 28px 24px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.process-card:hover { border-color: rgba(37,99,235,0.35); box-shadow: 0 16px 40px rgba(37,99,235,0.1); }
.process-card-num {
  position: absolute; top: -10px; right: 12px;
  font-size: 72px; font-weight: 900; line-height: 1;
  background: linear-gradient(135deg, #2563EB, #06B6D4);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  opacity: 0.1; user-select: none; pointer-events: none;
}
.process-card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, #2563EB, #06B6D4);
  display: flex; align-items: center; justify-content: center;
  color: #fff; margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(37,99,235,0.3);
}
.process-card-title { font-size: 16px; font-weight: 700; color: #F8FAFC; margin-bottom: 8px; }
.process-card-text { font-size: 13px; color: #94A3B8; line-height: 1.7; }

/* ── Pricing icons ───────────────────────────────────────── */
.pricing-icon {
  width: 72px; height: 72px;
  border-radius: 16px;
  background: linear-gradient(140deg, rgba(37,99,235,0.18) 0%, rgba(6,182,212,0.1) 100%);
  border: 1.5px solid rgba(96,165,250,0.35);
  box-shadow: 0 0 0 4px rgba(59,130,246,0.08), 0 0 28px rgba(59,130,246,0.28), 0 6px 14px rgba(0,0,0,0.18);
  display: flex; align-items: center; justify-content: center;
}

/* ── Case cards ──────────────────────────────────────────── */
.case-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 28px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}
.case-card:hover {
  transform: translateY(-5px);
  border-color: rgba(37,99,235,0.35);
  box-shadow: 0 16px 40px rgba(37,99,235,0.1);
}
.case-card-top {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; margin-bottom: 14px;
}
.case-icon {
  position: static !important;
  flex-shrink: 0;
}
.case-tag {
  display: inline-block; font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 6px;
  background: rgba(6,182,212,0.12); color: #22D3EE;
  margin-bottom: 0;
}
.case-company { font-size: 13px; color: #64748B; margin-bottom: 6px; }
.case-title { font-size: 17px; font-weight: 700; color: #F8FAFC; margin-bottom: 12px; line-height: 1.4; }
.case-result {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  padding: 12px 16px; border-radius: 12px;
  background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.15);
  transition: border-color 0.3s ease, background 0.3s ease;
}
.case-card:hover .case-result {
  border-color: rgba(16,185,129,0.3);
  background: rgba(16,185,129,0.13);
}
.case-result-num { font-size: 24px; font-weight: 800; color: #10B981; line-height: 1.2; }
.case-result-text { font-size: 12px; color: #94A3B8; line-height: 1.4; }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.07); }
.faq-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; text-align: left; background: none; border: none; cursor: pointer;
  font-family: 'Inter', sans-serif;
}
.faq-question { font-size: 16px; font-weight: 600; color: #F8FAFC; line-height: 1.4; }
.faq-icon {
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(255,255,255,0.06); flex-shrink: 0; margin-left: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.3s;
}
.faq-item.open .faq-icon { background: rgba(37,99,235,0.2); transform: rotate(45deg); }
.faq-answer { display: none; padding-bottom: 20px; }
.faq-item.open .faq-answer { display: block; }
.faq-answer p { font-size: 14px; color: #94A3B8; line-height: 1.8; }

/* ── Forms ───────────────────────────────────────────────── */
.form-group { position: relative; margin-bottom: 14px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 14px 16px;
  border: 1.5px solid rgba(255,255,255,0.12); border-radius: 12px;
  font-family: 'Inter', sans-serif; font-size: 15px;
  background: rgba(255,255,255,0.05); color: #F8FAFC;
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none; appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #64748B; }
.form-group select option { background: #111827; color: #F8FAFC; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea { border-color: #EF4444; }
.field-error { display: none; color: #EF4444; font-size: 12px; margin-top: 4px; }
.form-group.has-error .field-error { display: block; }
.hidden-field { position: absolute; left: -9999px; }

.consent-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.consent-row input[type=checkbox] { margin-top: 3px; flex-shrink: 0; accent-color: #2563EB; width: 16px; height: 16px; }
.consent-row label { font-size: 13px; color: #64748B; line-height: 1.5; }
.consent-row label a { color: #2563EB; text-decoration: underline; }

/* ── Modal ───────────────────────────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: #111827; border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px; padding: 40px 36px; width: 100%; max-width: 480px;
  position: relative; max-height: 90vh; overflow-y: auto;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255,255,255,0.07); border: none; cursor: pointer;
  color: #94A3B8; font-size: 18px; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.modal-close:hover { background: rgba(255,255,255,0.12); }

/* ── Success message ─────────────────────────────────────── */
.success-message { text-align: center; padding: 20px 0; }
.success-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(16,185,129,0.1); border: 2px solid rgba(16,185,129,0.3);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; font-size: 28px;
}

/* ── Trust badges ────────────────────────────────────────── */
.trust-badge {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 10px 16px;
  font-size: 13px; color: #94A3B8; white-space: nowrap;
}
.trust-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: #10B981; flex-shrink: 0; }

/* ── Section labels ──────────────────────────────────────── */
.section-label {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: #06B6D4;
  padding: 6px 14px; border-radius: 8px;
  background: rgba(6,182,212,0.1); border: 1px solid rgba(6,182,212,0.2);
  margin-bottom: 16px;
}

/* ── Case illustration container ────────────────────────── */
.case-illus {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  border-radius: 22px;
  border: 1.5px solid rgba(96,165,250,0.35);
  background: linear-gradient(140deg, rgba(37,99,235,0.18) 0%, rgba(6,182,212,0.1) 100%);
  box-shadow: 0 0 0 4px rgba(59,130,246,0.08), 0 0 40px rgba(59,130,246,0.32), 0 8px 20px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Why cards (problems / solutions) ───────────────────── */
.why-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px; padding: 24px;
  transition: border-color 0.3s;
}
.why-card:hover { border-color: rgba(37,99,235,0.25); }

/* ── Comparison table ────────────────────────────────────── */
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td {
  padding: 14px 20px; text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 14px;
}
.compare-table th { font-size: 12px; font-weight: 700; color: #64748B; text-transform: uppercase; letter-spacing: 0.06em; }
.compare-table td:first-child { color: #94A3B8; }
.compare-table td.bad { color: #EF4444; }
.compare-table td.good { color: #10B981; font-weight: 600; }

/* ── Mobile menu ─────────────────────────────────────────── */
.mobile-menu { display: none; }
.mobile-menu.open { display: block; }
.hamburger { width: 24px; height: 18px; display: flex; flex-direction: column; justify-content: space-between; cursor: pointer; }
.hamburger span { display: block; height: 2px; background: #F8FAFC; border-radius: 2px; transition: all 0.3s; }

/* ── Mobile sticky CTA ───────────────────────────────────── */
#mobile-cta {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  padding: 12px 16px; background: #0B1220;
  border-top: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 768px) { #mobile-cta { display: block; } }
@media (min-width: 769px) { #mobile-cta { display: none !important; } }

/* ── Scroll to top ───────────────────────────────────────── */
#scroll-top {
  position: fixed; bottom: 172px; right: 42px; z-index: 80;
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(37,99,235,0.8); border: none; cursor: pointer;
  color: #fff; font-size: 18px; display: none;
  align-items: center; justify-content: center;
  transition: opacity 0.3s, background 0.2s;
  box-shadow: 0 4px 16px rgba(37,99,235,0.3);
}
#scroll-top.visible { display: flex; }
#scroll-top:hover { background: #2563EB; }
@media (max-width: 768px) { #scroll-top { bottom: 172px; right: 16px; } }

/* ── Cookie banner ───────────────────────────────────────── */
#cookie-banner {
  position: fixed; bottom: 80px; left: 16px; right: 16px; z-index: 95;
  background: #1E293B; border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px; padding: 16px 20px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  opacity: 0; transform: translateY(20px); transition: opacity 0.4s, transform 0.4s;
  pointer-events: none;
}
#cookie-banner.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
#cookie-banner.hiding { opacity: 0; transform: translateY(20px); }
@media (min-width: 768px) { #cookie-banner { max-width: 520px; left: 24px; bottom: 24px; right: auto; } }

/* ── Utility ─────────────────────────────────────────────── */
.hidden { display: none !important; }
.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #06B6D4 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.gradient-text-blue {
  background: linear-gradient(135deg, #60A5FA 0%, #06B6D4 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ── Hero illustration node hover ────────────────────────── */
.hero-illustration .inode,
.hero-illustration .onode {
  cursor: default;
  transition: filter 0.22s ease, transform 0.22s ease;
  transform-box: fill-box;
  transform-origin: center;
}
.hero-illustration .inode:hover {
  filter: drop-shadow(0 0 10px rgba(37,99,235,0.65));
  transform: scale(1.06);
}
.hero-illustration .onode:hover {
  filter: drop-shadow(0 0 10px rgba(16,185,129,0.65));
  transform: scale(1.06);
}

/* ── Responsive tweaks ───────────────────────────────────── */
@media (max-width: 768px) {
  .metric-value { font-size: 28px; }
  .metric-card { padding: 18px 20px; }
  .product-card { padding: 24px 20px; }
  .modal-box { padding: 28px 20px; }
}
