/* ============================================================
   NimbusHost — Reusable Section Components
   ============================================================ */

/* -------- Domain search bar (hero) -------- */
.domain-search {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  max-width: 560px;
  backdrop-filter: blur(10px);
}
.domain-search .prefix {
  padding: 0 12px 0 16px;
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 14px;
}
.domain-search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  padding: 12px 8px;
  color: var(--text-0);
  font-size: 15px;
  font-family: var(--font-sans);
  min-width: 0;
}
.domain-search input::placeholder { color: var(--text-3); }
.domain-search .tld-select {
  background: var(--bg-2);
  color: var(--text-1);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  outline: none;
}

/* -------- Live status widget -------- */
.status-widget {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 13px;
}
.status-widget .pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  position: relative;
}
.status-widget .pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--success);
  opacity: 0.4;
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.7); opacity: 0.6; }
  100% { transform: scale(2.2); opacity: 0; }
}
.status-widget .uptime {
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight: 500;
}

/* -------- Pricing card -------- */
.price-card {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: all .25s ease;
}
.price-card:hover { border-color: var(--border-strong); }
.price-card.featured {
  background: linear-gradient(180deg, rgba(194, 245, 66, 0.06), rgba(194, 245, 66, 0.02));
  border-color: rgba(194, 245, 66, 0.4);
  box-shadow: 0 20px 60px -20px var(--accent-glow);
  position: relative;
}
.price-card.featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: -12px;
  left: 32px;
  padding: 5px 12px;
  background: var(--accent);
  color: var(--bg-0);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  border-radius: var(--r-pill);
}
.price-card .plan-name { font-size: 14px; color: var(--text-2); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em; }
.price-card .plan-tag { font-size: 15px; color: var(--text-1); line-height: 1.4; }
.price-card .price {
  display: flex; align-items: baseline; gap: 8px;
  margin-top: 8px;
}
.price-card .price .amount {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 64px;
  line-height: 1;
  color: var(--text-0);
}
.price-card .price .currency { font-size: 24px; color: var(--text-2); align-self: flex-start; }
.price-card .price .period { font-size: 14px; color: var(--text-2); font-family: var(--font-mono); }
.price-card .old-price { color: var(--text-3); text-decoration: line-through; font-size: 14px; }
.price-card .features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px dashed var(--border);
}
.price-card .features li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--text-1);
}
.price-card .features li .check {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  flex-shrink: 0;
  font-size: 10px;
}
.price-card .features li.dim { color: var(--text-3); }
.price-card .features li.dim .check { background: var(--surface-2); color: var(--text-3); }
.price-card .btn { justify-content: center; }

/* -------- Feature card -------- */
.feature-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 220px;
  transition: all .25s ease;
}
.feature-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.feature-card .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(194, 245, 66, 0.25);
  display: grid; place-items: center;
  color: var(--accent);
}
.feature-card h4 { font-size: 18px; }
.feature-card p { color: var(--text-2); font-size: 14px; line-height: 1.55; }

/* -------- Stat block -------- */
.stat-block {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-block .num { font-family: var(--font-display); font-style: italic; font-size: 56px; color: var(--accent); line-height: 1; }
.stat-block .label { color: var(--text-1); font-size: 15px; }
.stat-block .sub { color: var(--text-3); font-size: 13px; margin-top: 6px; font-family: var(--font-mono); }

/* -------- Testimonial card -------- */
.testimonial-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.testimonial-card blockquote {
  font-size: 17px;
  line-height: 1.5;
  color: var(--text-0);
  font-weight: 400;
}
.testimonial-card .author {
  display: flex; align-items: center; gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.testimonial-card .author img {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.testimonial-card .author .name { font-size: 14px; font-weight: 500; color: var(--text-0); }
.testimonial-card .author .role { font-size: 12px; color: var(--text-2); }
.testimonial-card .stars { color: var(--accent); font-size: 13px; letter-spacing: 2px; }

/* -------- FAQ accordion -------- */
.faq-list { border-top: 1px solid var(--border); }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  cursor: pointer;
  transition: all .2s;
}
.faq-item:hover .faq-q { color: var(--accent); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  font-size: 18px;
  font-weight: 500;
  color: var(--text-0);
  transition: color .2s;
}
.faq-q .plus {
  width: 28px; height: 28px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--text-1);
  flex-shrink: 0;
  transition: transform .3s;
  font-size: 14px;
}
.faq-item.open .faq-q .plus { transform: rotate(45deg); background: var(--accent); color: var(--bg-0); border-color: var(--accent); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.6;
  padding-right: 52px;
}
.faq-item.open .faq-a { max-height: 400px; padding-top: 14px; }

/* -------- Comparison table -------- */
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.compare-table th, .compare-table td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.compare-table th {
  background: var(--bg-2);
  font-weight: 500;
  color: var(--text-0);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.compare-table th.us {
  background: var(--accent-soft);
  color: var(--accent);
  border-bottom-color: rgba(194, 245, 66, 0.3);
}
.compare-table td { color: var(--text-1); }
.compare-table td.us { color: var(--accent); font-weight: 500; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .check-yes { color: var(--accent); }
.compare-table .check-no { color: var(--text-3); }

/* -------- Migration / guarantee banner -------- */
.banner-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 32px 40px;
  background: linear-gradient(135deg, rgba(194, 245, 66, 0.08) 0%, transparent 60%);
  border: 1px solid rgba(194, 245, 66, 0.2);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
}
.banner-strip::before {
  content: '';
  position: absolute;
  right: -50px; top: -50px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  pointer-events: none;
}
.banner-strip .banner-content { display: flex; align-items: center; gap: 24px; position: relative; z-index: 1; }
.banner-strip .banner-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--bg-0);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.banner-strip h3 { font-size: 22px; margin-bottom: 4px; }
.banner-strip p { color: var(--text-2); font-size: 14px; }
@media (max-width: 700px) {
  .banner-strip { flex-direction: column; align-items: flex-start; padding: 24px; }
}

/* -------- Logo cloud -------- */
.logo-cloud {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px 60px;
  padding: 40px 0;
  opacity: 0.7;
}
.logo-cloud .logo {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
  color: var(--text-2);
  letter-spacing: -0.02em;
  transition: color .2s;
}
.logo-cloud .logo:hover { color: var(--text-0); }
.logo-cloud .logo.sans {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 700;
  font-size: 22px;
}
.logo-cloud .logo.mono {
  font-family: var(--font-mono);
  font-style: normal;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* -------- Data-center world map -------- */
.dc-map {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-1);
}
.dc-map img { width: 100%; display: block; }
.dc-pin {
  position: absolute;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(194, 245, 66, 0.2), 0 0 20px var(--accent);
  transform: translate(-50%, -50%);
}
.dc-pin::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.3;
  animation: pulse 2s ease-out infinite;
}
.dc-pin .label {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  color: var(--text-0);
  font-size: 11px;
  font-family: var(--font-mono);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.dc-pin:hover .label { opacity: 1; }

/* -------- Uptime bar chart -------- */
.uptime-graph {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 60px;
  padding: 12px 0;
}
.uptime-graph .bar {
  flex: 1;
  background: var(--accent);
  border-radius: 2px;
  min-width: 3px;
  opacity: 0.8;
  transition: opacity .2s;
}
.uptime-graph .bar:hover { opacity: 1; }
.uptime-graph .bar.warn { background: var(--warning); }
.uptime-graph .bar.err { background: var(--danger); }

/* -------- Terminal preview -------- */
.terminal {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 13px;
}
.terminal .term-head {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.terminal .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--text-3); }
.terminal .dot.r { background: #ff5f57; }
.terminal .dot.y { background: #febc2e; }
.terminal .dot.g { background: #28c840; }
.terminal .term-title { margin-left: 12px; color: var(--text-3); font-size: 12px; }
.terminal .term-body { padding: 16px; color: var(--text-1); line-height: 1.7; }
.terminal .term-body .cmd::before { content: '$ '; color: var(--accent); }
.terminal .term-body .ok { color: var(--success); }
.terminal .term-body .comment { color: var(--text-3); }

/* -------- Blog card -------- */
.blog-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all .25s ease;
}
.blog-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.blog-card .cover {
  aspect-ratio: 16/10;
  background: var(--bg-2);
  overflow: hidden;
  position: relative;
}
.blog-card .cover .placeholder {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, transparent 40%, rgba(194, 245, 66, 0.08) 100%),
    repeating-linear-gradient(45deg, var(--bg-2), var(--bg-2) 12px, var(--bg-3) 12px, var(--bg-3) 13px);
  display: grid; place-items: center;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 12px;
}
.blog-card img { width: 100%; height: 100%; object-fit: cover; }
.blog-card .content { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-card .meta { font-family: var(--font-mono); font-size: 11px; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.1em; display: flex; gap: 12px; }
.blog-card h3 { font-size: 20px; }
.blog-card p { color: var(--text-2); font-size: 14px; }
.blog-card .read { color: var(--accent); font-size: 13px; margin-top: auto; padding-top: 10px; }
