/* =============================================================
   host-affiliates.com — styles
   ============================================================= */
:root {
  --bg: #0b1120;
  --bg-soft: #111a2e;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #2563eb;
  --primary-2: #7c3aed;
  --accent: #10b981;
  --border: #e5e7eb;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
  --shadow-hover: 0 18px 40px rgba(37, 99, 235, 0.18);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: #f7f9fc;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

a { text-decoration: none; color: inherit; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 17, 32, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: #fff;
}
.brand-mark { font-size: 22px; }
.brand-accent { color: #60a5fa; }
.main-nav { display: flex; gap: 8px; }
.main-nav a {
  color: #cbd5e1;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background .2s, color .2s;
}
.main-nav a:hover { color: #fff; background: rgba(255,255,255,0.08); }

/* ===== Hero ===== */
.hero {
  background: radial-gradient(1200px 400px at 50% -50%, #1e3a8a 0%, var(--bg) 60%);
  color: #fff;
  padding: 64px 0 40px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.grad {
  background: linear-gradient(90deg, #60a5fa, #a78bfa, #34d399);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  max-width: 640px;
  margin: 14px auto 28px;
  color: #cbd5e1;
  font-size: clamp(15px, 2vw, 18px);
}
.hero-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  background: rgba(255,255,255,0.06);
  padding: 8px;
  border-radius: 999px;
}
.tab-btn {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  color: #cbd5e1;
  background: transparent;
  padding: 10px 20px;
  border-radius: 999px;
  transition: all .2s;
}
.tab-btn:hover { color: #fff; }
.tab-btn.active {
  color: #fff;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  box-shadow: 0 6px 18px rgba(37,99,235,0.4);
}

/* ===== Panels ===== */
main { padding: 40px 0 20px; }
.panel { display: block; margin-bottom: 56px; scroll-margin-top: 80px; }
.panel:last-child { margin-bottom: 0; }

.panel-head { text-align: center; margin-bottom: 28px; }
.panel-head h2 { font-size: 26px; font-weight: 800; }
.panel-head p { color: var(--muted); margin-top: 6px; }

/* ===== Grid & cards ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: #c7d2fe;
}
.card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.logo-wrap {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.logo-wrap img { width: 100%; height: 100%; object-fit: contain; }
.logo-fallback {
  font-weight: 800;
  font-size: 20px;
  color: var(--primary);
}
.card-title { font-size: 18px; font-weight: 800; }
.badge {
  display: inline-block;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 700;
  color: #065f46;
  background: #d1fae5;
  padding: 2px 8px;
  border-radius: 999px;
}
.card-offer {
  color: #374151;
  font-size: 15px;
  flex-grow: 1;
  margin-bottom: 14px;
}
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.price {
  font-weight: 800;
  color: var(--accent);
  font-size: 15px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 10px;
  white-space: nowrap;
  transition: transform .15s, box-shadow .15s, opacity .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(37,99,235,0.35); }
.btn:active { transform: translateY(0); }

/* ===== Footer ===== */
.site-footer {
  margin-top: 40px;
  background: var(--bg);
  color: #94a3b8;
  padding: 30px 0;
}
.disclosure { font-size: 13px; max-width: 820px; margin: 0 auto 12px; text-align: center; }
.disclosure strong { color: #cbd5e1; }
.copy { font-size: 12px; text-align: center; color: #64748b; }

/* ===== Responsive ===== */
@media (max-width: 560px) {
  .main-nav { display: none; }
  .hero { padding: 44px 0 30px; }
  .grid { grid-template-columns: 1fr; }
  .card-foot { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
}
