/* ============================================================
   SlugHosting – Main Stylesheet
   ============================================================ */

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --accent: #8b5cf6;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;

  --bg: #0a0b0f;
  --bg-2: #0f1117;
  --bg-3: #161822;
  --bg-card: #12141c;
  --bg-card-hover: #1a1d2e;
  --border: rgba(255,255,255,0.07);
  --border-hover: rgba(99,102,241,0.4);

  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 40px rgba(99,102,241,0.15);
  --transition: all 0.2s ease;

  --font: 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
ul { list-style: none; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

/* ============================================================
   UTILITIES
   ============================================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.gradient-text {
  background: linear-gradient(135deg, var(--primary-light), #a78bfa, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: var(--font);
  white-space: nowrap;
}
.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: 14px; }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; border-radius: 8px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 20px rgba(99,102,241,0.35); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 6px 28px rgba(99,102,241,0.5); }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); background: var(--bg-3); }
.btn-outline { background: transparent; border: 2px solid rgba(255,255,255,0.2); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-white { background: #fff; color: var(--bg); }
.btn-white:hover { background: #e0e7ff; }
.btn-outline-white { background: transparent; border: 2px solid rgba(255,255,255,0.4); color: #fff; }
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #059669; }
.btn-block { width: 100%; justify-content: center; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
  background: transparent;
  transition: background 0.3s, box-shadow 0.3s;
}
.navbar.scrolled {
  background: rgba(10,11,15,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 70px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 700;
  flex-shrink: 0;
}
.logo-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
}
.nav-links {
  display: flex;
  gap: 4px;
  flex: 1;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}
.nav-links a:hover { color: var(--text); background: var(--bg-3); }
.nav-actions { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 100px 0 60px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
}
.glow-1 { width: 600px; height: 600px; top: -200px; left: 50%; transform: translateX(-70%); background: radial-gradient(circle, #6366f1, transparent); }
.glow-2 { width: 400px; height: 400px; bottom: -100px; right: 10%; background: radial-gradient(circle, #8b5cf6, transparent); }

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.3);
  color: var(--primary-light);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  padding: 24px 36px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(12px);
  display: inline-flex;
}
.stat-item { padding: 0 32px; text-align: center; }
.stat-num { display: block; font-size: 1.6rem; font-weight: 800; color: var(--text); }
.stat-label { display: block; font-size: 0.8rem; color: var(--text-muted); }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 96px 0; }
.section-dark { background: var(--bg-2); }
.section-header { text-align: center; margin-bottom: 60px; }
.section-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.25);
  color: var(--primary-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.section-sub { color: var(--text-muted); font-size: 1.05rem; max-width: 520px; margin: 0 auto; }

/* ============================================================
   PRODUCTS GRID (homepage service cards)
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.product-cat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.product-cat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cat-color, #6366f1), transparent);
  opacity: 0;
  transition: var(--transition);
}
.product-cat-card:hover { border-color: var(--border-hover); background: var(--bg-card-hover); transform: translateY(-3px); box-shadow: var(--shadow-glow); }
.product-cat-card:hover::before { opacity: 1; }
.cat-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
  background: rgba(99,102,241,0.12);
  color: var(--cat-color, #6366f1);
}
.product-cat-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.product-cat-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; }
.cat-price { font-size: 0.85rem; color: var(--text-dim); }
.cat-price strong { color: var(--success); font-size: 1.1rem; }
.cat-arrow { margin-left: auto; color: var(--text-dim); transition: var(--transition); }
.product-cat-card:hover .cat-arrow { color: var(--primary-light); transform: translateX(4px); }
.card-footer-row { display: flex; align-items: center; }

/* ============================================================
   FEATURES GRID
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
}
.feature-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 18px;
  background: color-mix(in srgb, var(--c, #6366f1) 15%, transparent);
  color: var(--c, #6366f1);
}
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 0.88rem; }

/* ============================================================
   PRICING
   ============================================================ */
.pricing-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.tab-btn {
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font);
}
.tab-btn:hover { border-color: var(--primary); color: var(--primary); }
.tab-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: var(--transition);
}
.pricing-card.featured {
  border-color: var(--primary);
  background: linear-gradient(160deg, rgba(99,102,241,0.1), var(--bg-card));
  box-shadow: 0 0 40px rgba(99,102,241,0.15);
}
.pricing-card:hover { transform: translateY(-3px); }
.popular-badge {
  position: absolute;
  top: -1px; left: 50%; transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 0 0 10px 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.plan-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.plan-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 20px; }
.plan-price { margin-bottom: 24px; }
.plan-price .amount { font-size: 2.4rem; font-weight: 900; }
.plan-price .period { color: var(--text-muted); font-size: 0.85rem; }
.plan-features { list-style: none; margin-bottom: 28px; display: flex; flex-direction: column; gap: 10px; }
.plan-features li { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: var(--text-muted); }
.plan-features li i { color: var(--success); font-size: 0.8rem; flex-shrink: 0; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.stars { color: #f59e0b; font-size: 1.1rem; margin-bottom: 14px; }
.testimonial-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; line-height: 1.7; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.avatar-circle {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: 0.9rem; }
.testimonial-author span { font-size: 0.8rem; color: var(--text-dim); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.faq-item[open] { border-color: var(--primary); }
.faq-item summary {
  padding: 20px 24px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  transition: var(--transition);
  font-size: 0.95rem;
}
.faq-item summary::after { content: '+'; font-size: 1.3rem; color: var(--text-dim); flex-shrink: 0; }
.faq-item[open] summary::after { content: '−'; color: var(--primary); }
.faq-item summary:hover { color: var(--primary-light); }
.faq-body { padding: 0 24px 20px; color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section { padding: 80px 0; }
.cta-box {
  position: relative;
  text-align: center;
  padding: 72px 40px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #1a1d2e, #12141c);
  border: 1px solid rgba(99,102,241,0.3);
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.2), transparent);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  pointer-events: none;
}
.cta-box h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; margin-bottom: 12px; position: relative; }
.cta-box p { color: var(--text-muted); margin-bottom: 32px; font-size: 1.05rem; position: relative; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo { margin-bottom: 16px; display: inline-flex; }
.footer-brand p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.7; margin-bottom: 20px; }
.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
  font-size: 1rem;
}
.social-links a:hover { border-color: var(--primary); color: var(--primary); }
.footer-col h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 16px; letter-spacing: 0.03em; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { color: var(--text-muted); font-size: 0.88rem; transition: var(--transition); }
.footer-col ul a:hover { color: var(--primary-light); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-dim);
  font-size: 0.83rem;
  flex-wrap: wrap;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 0; padding: 20px 20px; }
  .stat-item { padding: 8px 20px; }
}
@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .nav-links.open { display: flex; flex-direction: column; gap: 4px; position: fixed; top: 70px; left: 0; right: 0; background: rgba(10,11,15,0.98); backdrop-filter: blur(12px); padding: 20px; border-bottom: 1px solid var(--border); z-index: 999; }
  .nav-links.open + .nav-actions { display: flex; position: fixed; top: calc(70px + 220px); left: 0; right: 0; background: rgba(10,11,15,0.98); padding: 16px 24px; justify-content: center; gap: 12px; z-index: 999; border-bottom: 1px solid var(--border); }
  .hamburger { display: flex; }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--radius-lg); }
  .stat-divider { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .section { padding: 64px 0; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .cta-box { padding: 40px 20px; }
}
