/* =========================================================
   Hostio.in HTML Template — style.css
   Bootstrap 5.3 + Custom Brand Styles
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600&display=swap');

/* ── CSS Variables ────────────────────────────────────── */
:root {
  --primary: #2563EB;
  --primary-rgb: 37, 99, 235;
  --purple: #7C3AED;
  --sky: #0EA5E9;
  --green: #10B981;
  --amber: #F59E0B;
  --red: #EF4444;

  --bg: #ffffff;
  --bg-muted: #f8fafc;
  --bg-card: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow: rgba(0,0,0,0.06);

  --nav-bg: transparent;
  --nav-text: #0f172a;
  --footer-bg: #020617;

  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

[data-theme="dark"] {
  --bg: #0f172a;
  --bg-muted: #1e293b;
  --bg-card: #1e293b;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --border: #334155;
  --shadow: rgba(0,0,0,0.3);
  --nav-text: #f1f5f9;
}

/* ── Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  transition: background-color .3s, color .3s;
  overflow-x: hidden;
}

h1,h2,h3,h4,h5,h6,.font-display { font-family: var(--font-display); }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary); }

/* ── Promo Banner ─────────────────────────────────────── */
.promo-banner {
  background: linear-gradient(90deg, var(--primary), var(--purple), var(--primary));
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 48px;
  text-align: center;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1060;
  transition: transform .3s;
}
.promo-banner code {
  background: rgba(255,255,255,.2);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: monospace;
  font-weight: 700;
  letter-spacing: .05em;
}
.promo-close {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: rgba(255,255,255,.7);
  cursor: pointer; padding: 4px;
  font-size: 14px;
  transition: color .2s;
}
.promo-close:hover { color: #fff; }
body.banner-hidden .promo-banner { transform: translateY(-100%); }
body.banner-hidden { --banner-h: 0px; }

/* ── Navbar ───────────────────────────────────────────── */
.hostio-nav {
  position: fixed;
  top: 40px; left: 0; right: 0;
  z-index: 1050;
  padding: 18px 0;
  transition: all .3s;
  background: transparent;
}
body.banner-hidden .hostio-nav { top: 0; }
.hostio-nav.scrolled {
  background: rgba(var(--bg-rgb, 255,255,255), 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 12px var(--shadow);
  padding: 12px 0;
}
[data-theme="dark"] .hostio-nav.scrolled {
  background: rgba(15,23,42, 0.85);
}
.hostio-nav .navbar-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text) !important;
}
.hostio-nav .nav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
  font-size: 14px;
  padding: 6px 12px !important;
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.hostio-nav .nav-link:hover { color: var(--text) !important; background: var(--bg-muted); }
.status-dot {
  display: inline-block; width: 7px; height: 7px;
  background: #22c55e; border-radius: 50%;
  margin-right: 4px; position: relative; top: -1px;
  animation: pulse-green 2s infinite;
}
@keyframes pulse-green {
  0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,.5); }
  50% { box-shadow: 0 0 0 5px rgba(34,197,94,0); }
}

/* ── Hosting Mega-dropdown ────────────────────────────── */
.hosting-menu {
  width: 480px !important;
  border-radius: 16px !important;
  border: 1px solid var(--border) !important;
  background: var(--bg-card) !important;
  box-shadow: 0 20px 60px rgba(0,0,0,.12) !important;
  padding: 12px !important;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.hosting-menu .dropdown-item {
  border-radius: 12px !important;
  padding: 12px !important;
  color: var(--text) !important;
  transition: background .15s !important;
}
.hosting-menu .dropdown-item:hover { background: var(--bg-muted) !important; }
.menu-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  font-size: 16px;
  flex-shrink: 0;
  background: rgba(var(--primary-rgb),.1);
}
.text-purple { color: var(--purple) !important; }
.text-sky { color: var(--sky) !important; }

/* Theme toggle */
.theme-btn {
  width: 36px; height: 36px;
  padding: 0;
  border-radius: 50% !important;
  display: flex; align-items: center; justify-content: center;
  border-color: var(--border) !important;
  color: var(--text-muted) !important;
  transition: all .2s !important;
}
.theme-btn:hover { background: var(--bg-muted) !important; color: var(--text) !important; }

/* ── Main content offset ──────────────────────────────── */
main { padding-top: calc(40px + 72px); }
body.banner-hidden main { padding-top: 72px; }

/* ── Hero Sections ────────────────────────────────────── */
.hero-section {
  padding: 80px 0 100px;
  background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 50%, #faf5ff 100%);
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .hero-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero-blob-1 {
  width: 600px; height: 600px;
  background: rgba(37,99,235,.08);
  top: -200px; right: -200px;
}
.hero-blob-2 {
  width: 400px; height: 400px;
  background: rgba(124,58,237,.06);
  bottom: -100px; left: -100px;
}

/* ── Badges ───────────────────────────────────────────── */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 99px;
  border: 1px solid rgba(var(--primary-rgb),.2);
  background: rgba(var(--primary-rgb),.08);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

/* ── Cards ────────────────────────────────────────────── */
.card-host {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  height: 100%;
}
.card-host:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px var(--shadow);
  border-color: rgba(var(--primary-rgb),.3);
}
.card-host.popular {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb),.1);
}

/* Pricing Card */
.pricing-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  transition: transform .25s, box-shadow .25s;
  height: 100%;
}
.pricing-card.popular-plan {
  border-color: var(--primary);
  position: relative;
}
.pricing-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px var(--shadow); }
.plan-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 99px;
  white-space: nowrap;
}
.price-amount {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li .check { color: var(--green); font-size: 16px; }
.feature-list li .cross { color: #cbd5e1; font-size: 16px; }

/* ── Comparison Table ─────────────────────────────────── */
.comparison-wrapper { overflow-x: auto; }
.comparison-table { width: 100%; border-collapse: collapse; min-width: 700px; }
.comparison-table thead th {
  padding: 24px 16px;
  text-align: center;
  border-radius: 16px 16px 0 0;
  position: sticky; top: 72px;
  background: var(--bg);
  z-index: 10;
}
.comparison-table thead th:first-child { text-align: left; }
.comparison-table .cat-row td {
  padding: 14px 16px 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  background: var(--bg-muted);
  border-radius: 8px;
}
.comparison-table tbody tr td {
  padding: 13px 16px;
  font-size: 14px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text);
}
.comparison-table tbody tr td:first-child { text-align: left; color: var(--text-muted); }
.comparison-table tbody tr:hover td { background: var(--bg-muted); }
.col-highlighted { background: rgba(14,165,233,.04) !important; }
.check-icon { color: var(--green); font-size: 18px; }
.cross-icon { color: #cbd5e1; font-size: 18px; }
.col-header-highlight {
  background: rgba(14,165,233,.06);
  border: 2px solid var(--sky);
  border-radius: 16px;
  padding: 20px 16px;
  position: relative;
}
.best-badge {
  display: inline-block;
  background: var(--sky);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  margin-bottom: 6px;
}

/* ── Stat Cards ───────────────────────────────────────── */
.stat-card {
  text-align: center;
  padding: 24px;
  border-right: 1px solid var(--border);
}
.stat-card:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}
.stat-label { font-size: 13px; color: var(--text-muted); font-weight: 500; margin-top: 4px; }

/* ── Section styles ───────────────────────────────────── */
.section-bg { background: var(--bg-muted); }
.section-dark {
  background: #020617;
  color: #fff;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--text);
  line-height: 1.15;
}
.section-subtitle { color: var(--text-muted); font-size: 17px; }
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Service Icons ────────────────────────────────────── */
.icon-wrap {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

/* ── Buttons ──────────────────────────────────────────── */
.btn-primary {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
  font-weight: 600;
  border-radius: 10px !important;
  padding: 10px 24px !important;
  transition: all .2s !important;
}
.btn-primary:hover {
  background: #1d4ed8 !important;
  border-color: #1d4ed8 !important;
  box-shadow: 0 8px 20px rgba(var(--primary-rgb),.3) !important;
}
.btn-outline-primary { color: var(--primary) !important; border-color: var(--primary) !important; border-radius: 10px !important; font-weight: 600; padding: 10px 24px !important; }
.btn-outline-primary:hover { background: var(--primary) !important; color: #fff !important; }
.btn-lg { padding: 14px 32px !important; font-size: 16px !important; }

/* ── Domain Search ────────────────────────────────────── */
.domain-search {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 2px solid var(--primary);
  border-radius: 99px;
  padding: 6px 6px 6px 24px;
  box-shadow: 0 12px 40px rgba(var(--primary-rgb),.15);
  max-width: 560px;
}
.domain-search input {
  flex: 1;
  border: none; outline: none;
  background: transparent;
  font-size: 15px;
  color: var(--text);
}
.domain-search .btn {
  border-radius: 99px !important;
  padding: 10px 24px !important;
}

/* ── Testimonial ──────────────────────────────────────── */
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
}
.avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-muted);
}
.stars { color: #f59e0b; font-size: 14px; }

/* ── Accordion FAQ ────────────────────────────────────── */
.accordion-item {
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  margin-bottom: 8px;
  background: var(--bg-card) !important;
  overflow: hidden;
}
.accordion-button {
  background: var(--bg-card) !important;
  color: var(--text) !important;
  font-weight: 600;
  border-radius: 12px !important;
  box-shadow: none !important;
}
.accordion-button:not(.collapsed) { color: var(--primary) !important; }
.accordion-body { color: var(--text-muted); background: var(--bg-card); }

/* ── Footer ───────────────────────────────────────────── */
.footer-dark { background: #020617; color: #94a3b8; }
.footer-links { }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #94a3b8; transition: color .2s; font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-divider { border-color: #1e293b !important; }
.social-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #1e293b;
  color: #94a3b8;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  transition: background .2s, color .2s;
  text-decoration: none;
}
.social-btn:hover { background: var(--primary); color: #fff; }

/* ── Back to Top ──────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 90px; right: 16px;
  width: 44px; height: 44px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  cursor: pointer;
  opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s;
  box-shadow: 0 6px 20px rgba(var(--primary-rgb),.35);
  z-index: 999;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); }

/* ── Live Chat ────────────────────────────────────────── */
.chat-bubble-wrapper {
  position: fixed;
  bottom: 16px; right: 16px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.chat-btn {
  width: 56px; height: 56px;
  background: var(--primary);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(var(--primary-rgb),.4);
  transition: transform .2s;
  position: relative;
}
.chat-btn:hover { transform: scale(1.08); }
.online-indicator {
  position: absolute;
  top: 2px; right: 2px;
  width: 14px; height: 14px;
  background: #22c55e;
  border-radius: 50%;
  border: 2px solid #fff;
}
.online-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  margin-right: 4px;
  animation: pulse-green 2s infinite;
}
.chat-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  width: 280px;
  box-shadow: 0 20px 60px rgba(0,0,0,.15);
}
.chat-panel-header {
  background: linear-gradient(135deg, var(--primary), var(--purple));
  color: #fff;
  padding: 16px;
}
.chat-panel-body { padding: 16px; }
.chat-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: var(--bg-muted);
  color: var(--text);
  text-decoration: none;
  margin-bottom: 8px;
  transition: background .2s;
  font-size: 14px;
}
.chat-option:hover { background: rgba(var(--primary-rgb),.08); color: var(--text); }
.primary-option { background: rgba(var(--primary-rgb),.08); }
.primary-option i { color: var(--primary); }
.chat-option i { font-size: 18px; color: var(--text-muted); }

/* ── Status ───────────────────────────────────────────── */
.status-operational { color: var(--green); }
.status-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 8px;
  background: var(--bg-card);
}
.status-badge {
  font-size: 12px; font-weight: 600;
  padding: 4px 12px;
  border-radius: 99px;
  background: rgba(16,185,129,.1);
  color: var(--green);
}
.uptime-bar { width: 100%; height: 32px; display: flex; gap: 2px; align-items: flex-end; }
.uptime-bar .bar {
  flex: 1; border-radius: 2px;
  background: var(--green);
  height: 100%;
  transition: height .3s;
}
.uptime-bar .bar.degraded { background: var(--amber); height: 60%; }

/* ── Scroll animations ────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left { opacity: 0; transform: translateX(-24px); transition: opacity .6s, transform .6s; }
.reveal-left.revealed { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(24px); transition: opacity .6s, transform .6s; }
.reveal-right.revealed { opacity: 1; transform: translateX(0); }

/* staggered children */
.stagger-children > * { opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .5s; }
.stagger-children.revealed > *:nth-child(1) { opacity:1; transform:none; transition-delay:.05s; }
.stagger-children.revealed > *:nth-child(2) { opacity:1; transform:none; transition-delay:.1s; }
.stagger-children.revealed > *:nth-child(3) { opacity:1; transform:none; transition-delay:.15s; }
.stagger-children.revealed > *:nth-child(4) { opacity:1; transform:none; transition-delay:.2s; }
.stagger-children.revealed > *:nth-child(5) { opacity:1; transform:none; transition-delay:.25s; }
.stagger-children.revealed > *:nth-child(6) { opacity:1; transform:none; transition-delay:.3s; }

/* ── Glass card (dark sections) ───────────────────────── */
.glass-dark {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: blur(10px);
}

/* ── Misc helpers ─────────────────────────────────────── */
.divider-muted { border-color: var(--border) !important; }
.bg-card { background: var(--bg-card) !important; }
.bg-muted-section { background: var(--bg-muted) !important; }
.border-custom { border: 1px solid var(--border) !important; }
.text-primary-brand { color: var(--primary) !important; }
.text-purple { color: var(--purple) !important; }
.text-sky { color: var(--sky) !important; }
.text-muted-custom { color: var(--text-muted) !important; }
.rounded-xl { border-radius: 16px !important; }
.rounded-2xl { border-radius: 20px !important; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 768px) {
  .hosting-menu { width: 100% !important; grid-template-columns: 1fr; }
  .stat-card { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-card:last-child { border-bottom: none; }
  .comparison-table thead th { position: static; }
  main { padding-top: calc(40px + 62px); }
}

/* ── Placeholder image styles ─────────────────────────── */
.placeholder-img {
  background: linear-gradient(135deg, #eff6ff, #e0e7ff);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-size: 32px;
  font-family: var(--font-display);
  font-weight: 700;
}
[data-theme="dark"] .placeholder-img {
  background: linear-gradient(135deg, #1e293b, #1e1b4b);
  color: #60a5fa;
}
