/* ===================== Base helpers ===================== */
html {
  scroll-behavior: smooth;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #05060f; }
::-webkit-scrollbar-thumb { background: #2b2f4a; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #3b3f66; }

.grid-overlay {
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}

/* ===================== Navbar ===================== */
#navbar.scrolled {
  background: rgba(5, 6, 15, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-link { position: relative; }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: linear-gradient(90deg, #818cf8, #22d3ee);
  transition: width 0.25s ease;
}
.nav-link:hover::after { width: 100%; }

.mobile-link {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: 0.6rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #cbd5e1;
}
.mobile-link:hover { background: rgba(255,255,255,0.06); color: #fff; }

/* ===================== Buttons ===================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #4338ca 55%, #06b6d4);
  background-size: 160% 160%;
  background-position: 0% 50%;
  box-shadow: 0 10px 30px -8px rgba(99,102,241,0.55);
  transition: background-position 0.4s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary:hover {
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -6px rgba(99,102,241,0.65);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 0.85rem;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}

/* ===================== Section headers ===================== */
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a5b4fc;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.25);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}
.section-title {
  margin-top: 1rem;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.section-sub {
  margin-top: 1rem;
  color: #94a3b8;
  font-size: 1.05rem;
  line-height: 1.7;
}
.grad-text {
  background: linear-gradient(90deg, #a5b4fc, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===================== Avatar / logo pills ===================== */
.avatar-badge {
  height: 2.5rem;
  width: 2.5rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  border: 2px solid #05060f;
}

.marquee-wrap {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.marquee-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.logo-pill {
  flex-shrink: 0;
  padding: 0.65rem 1.4rem;
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* ===================== Window / terminal mockup ===================== */
.window-card {
  border-radius: 1.1rem;
  background: linear-gradient(180deg, rgba(21,26,53,0.9), rgba(10,13,31,0.95));
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 20px 60px -20px rgba(2,6,23,0.7);
  overflow: hidden;
}
.window-card.mini { box-shadow: 0 20px 50px -18px rgba(2,6,23,0.75); }
.window-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.window-bar .dot { height: 0.65rem; width: 0.65rem; border-radius: 999px; }

#terminalBody { min-height: 210px; }
#terminalBody .line { margin-top: 0.45rem; }
#terminalBody .prompt { color: #34d399; }
#terminalBody .cmd { color: #e2e8f0; }
#terminalBody .out { color: #94a3b8; }
#terminalBody .ok { color: #34d399; }
#terminalBody .accent { color: #67e8f9; }
.caret {
  display: inline-block;
  width: 7px;
  height: 1em;
  background: #67e8f9;
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ===================== Feature cards ===================== */
.feature-card {
  padding: 1.75rem;
  border-radius: 1.25rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(129,140,248,0.4);
  background: rgba(255,255,255,0.05);
}
.feature-icon {
  height: 3rem;
  width: 3rem;
  border-radius: 0.9rem;
  display: grid;
  place-items: center;
  color: #fff;
  background-image: linear-gradient(135deg, var(--tw-gradient-stops));
  margin-bottom: 1.1rem;
}
.feature-icon svg { height: 1.4rem; width: 1.4rem; }
.feature-title { font-size: 1.1rem; font-weight: 700; color: #fff; }
.feature-desc { margin-top: 0.5rem; font-size: 0.9rem; color: #94a3b8; line-height: 1.65; }

/* ===================== Steps ===================== */
.step-card {
  position: relative;
  padding: 1.75rem;
  border-radius: 1.25rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
}
.step-num {
  display: inline-grid;
  place-items: center;
  height: 2.5rem;
  width: 2.5rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  margin-bottom: 1rem;
  box-shadow: 0 0 0 6px #05060f;
}

/* ===================== Tabs / dashboard preview ===================== */
.tab-btn {
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.2s ease;
}
.tab-btn:hover { color: #e2e8f0; }
.tab-btn.is-active {
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #0891b2);
  border-color: transparent;
}
.tab-panel { display: none; animation: fadeIn 0.35s ease; }
.tab-panel.is-active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px);} to { opacity:1; transform:translateY(0);} }

.mock-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  font-size: 0.9rem;
  color: #e2e8f0;
}
.mock-dot { height: 0.5rem; width: 0.5rem; border-radius: 999px; flex-shrink: 0; }
.mock-tag {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  color: #6ee7b7;
  background: rgba(52,211,153,0.12);
  border: 1px solid rgba(52,211,153,0.25);
}
.mock-tag.amber { color: #fcd34d; background: rgba(252,211,77,0.12); border-color: rgba(252,211,77,0.25); }
.mock-tag.gray { color: #94a3b8; background: rgba(148,163,184,0.1); border-color: rgba(148,163,184,0.2); }

/* ===================== Pricing ===================== */
.price-card {
  position: relative;
  padding: 2rem;
  border-radius: 1.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
}
.price-card.featured {
  background: linear-gradient(180deg, rgba(99,102,241,0.14), rgba(6,182,212,0.06));
  border: 1px solid rgba(129,140,248,0.4);
  box-shadow: 0 25px 60px -20px rgba(99,102,241,0.45);
  transform: scale(1.03);
}
.badge-popular {
  position: absolute;
  top: -0.9rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  white-space: nowrap;
}
.check-item {
  position: relative;
  padding-left: 1.6rem;
}
.check-item::before {
  content: "";
  position: absolute;
  left: 0; top: 0.2rem;
  height: 1rem; width: 1rem;
  border-radius: 999px;
  background: rgba(52,211,153,0.15);
  border: 1px solid rgba(52,211,153,0.4);
}
.check-item::after {
  content: "";
  position: absolute;
  left: 0.3rem; top: 0.45rem;
  height: 0.35rem; width: 0.6rem;
  border-left: 2px solid #34d399;
  border-bottom: 2px solid #34d399;
  transform: rotate(-45deg);
}

/* ===================== Testimonials ===================== */
.testi-card {
  padding: 1.75rem;
  border-radius: 1.25rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
}

/* ===================== FAQ ===================== */
.faq-item {
  border-radius: 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  text-align: left;
  font-weight: 600;
  color: #e2e8f0;
  font-size: 0.95rem;
}
.faq-chevron { height: 1.1rem; width: 1.1rem; color: #818cf8; flex-shrink: 0; transition: transform 0.3s ease; }
.faq-item.is-open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer p { padding: 0 1.4rem 1.15rem; color: #94a3b8; font-size: 0.9rem; line-height: 1.7; }
.faq-item.is-open .faq-answer { max-height: 220px; }

/* ===================== CTA banner ===================== */
.cta-banner {
  background: linear-gradient(135deg, rgba(67,56,202,0.35), rgba(6,182,212,0.15));
}

/* ===================== Footer ===================== */
.footer-heading { font-size: 0.85rem; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 0.04em; }
.footer-links { margin-top: 1.1rem; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-links a { font-size: 0.9rem; color: #94a3b8; transition: color 0.2s ease; }
.footer-links a:hover { color: #e2e8f0; }
.social-icon {
  display: grid;
  place-items: center;
  height: 2.25rem;
  width: 2.25rem;
  border-radius: 0.6rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #94a3b8;
}
.social-icon svg { height: 1rem; width: 1rem; }
.social-icon:hover { color: #fff; background: rgba(255,255,255,0.1); }

/* ===================== Reveal on scroll ===================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
