/* ==========================================================================
   Hosternet — UI Components
   Buttons · Cards · Badges · Pills · Forms · Tables · Accordions
   ========================================================================== */

/* ---- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.35rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.4s var(--ease-quiet);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn-primary {
  color: var(--bg-void);
  background: var(--primary);
  font-weight: 600;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-bright);
  border-color: var(--primary-bright);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -10px rgba(61,224,131,0.55);
}
/* subtle sheen on primary */
.btn-primary::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease-quiet);
}
.btn-primary:hover::after { transform: translateX(120%); }

.btn-ghost {
  color: var(--text);
  background: transparent;
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary-bright);
  background: var(--primary-soft);
}

.btn-outline {
  color: var(--text);
  background: rgba(255,255,255,0.02);
  border-color: var(--border-soft);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary-bright);
  background: var(--primary-soft);
}

.btn-dark {
  color: var(--text);
  background: var(--bg-light);
  border-color: var(--border);
}
.btn-dark:hover { background: #243029; border-color: var(--primary); color: var(--primary-bright); }

.btn-lg { padding: 1.02rem 1.85rem; font-size: 1rem; }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.82rem; }
.btn-block { display: flex; width: 100%; }
.btn-icon { padding: 0.6rem; width: 42px; height: 42px; }

/* ---- Pills / Tags ------------------------------------------------------ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: var(--primary-dim);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  color: var(--primary-bright);
  font-weight: 500;
}
.pill .dot {
  width: 6px; height: 6px;
  background: var(--primary);
  border-radius: 50%;
  position: relative;
}
.pill .dot::before {
  content: ''; position: absolute; inset: -3px;
  background: var(--primary); border-radius: 50%; opacity: 0.5;
  animation: pulse-dot 2s ease-out infinite;
}
@keyframes pulse-dot {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(2.6); opacity: 0; }
}

.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 0.28rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
}
.tag-mono {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary-bright);
  border: 1px solid var(--border-strong);
  padding: 0.3rem 0.7rem;
  border-radius: var(--r-xs);
  background: rgba(6,10,8,0.7);
  backdrop-filter: blur(8px);
}

.badge {
  position: absolute;
  top: -0.7rem;
  inset-inline-end: 1.25rem;
  background: var(--primary);
  color: var(--bg-void);
  font-size: 0.66rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  letter-spacing: 0.08em;
  border-radius: var(--r-pill);
  z-index: 2;
}

/* ---- Cards (generic) --------------------------------------------------- */
.card {
  background: var(--bg-mid);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.75rem;
  position: relative;
  transition: border-color 0.4s var(--ease-quiet), transform 0.4s var(--ease-quiet), box-shadow 0.4s var(--ease-quiet);
}
.card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), var(--glow-soft);
}

/* Feature card with icon */
.feature-card {
  background: var(--bg-mid);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.4s var(--ease-quiet);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: var(--primary-soft);
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 1.2rem; }
.feature-card p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.75; }

/* ---- Service card ------------------------------------------------------ */
.service-card {
  flex-shrink: 0;
  width: 360px;
  background: var(--bg-mid);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.4s var(--ease-quiet), transform 0.4s var(--ease-quiet);
}
.service-card:hover {
  border-color: var(--primary);
  transform: translateY(-6px);
}
.service-card-visual {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--bg-dark);
}
.service-card-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.25) contrast(1.15) brightness(0.55);
  transition: transform 0.7s var(--ease-quiet), filter 0.7s var(--ease-quiet);
}
.service-card:hover .service-card-visual img {
  transform: scale(1.06);
  filter: grayscale(0.05) contrast(1.2) brightness(0.68);
}
.service-card-visual::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg-mid) 0%, transparent 55%);
}
.service-card-num {
  position: absolute;
  bottom: 1rem; inset-inline-end: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--primary);
  letter-spacing: 0.25em;
  z-index: 2;
  direction: ltr;
}
.service-card-body {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex: 1;
}
.service-card-title { font-size: 1.3rem; font-weight: 700; }
.service-card-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.75; flex: 1; }
.service-card-features {
  display: flex; flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
  direction: ltr;
  justify-content: flex-end;
}
.service-card-features li {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  padding: 0.28rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
}
.service-card-cta {
  display: inline-flex; align-items: center;
  gap: 0.5rem;
  color: var(--primary-bright);
  font-weight: 500;
  font-size: 0.88rem;
  margin-top: 0.6rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, gap 0.3s;
  align-self: flex-start;
}
.service-card-cta:hover { border-color: var(--primary); gap: 0.85rem; }
.service-card-cta svg { width: 14px; height: 14px; }

/* ---- Plan card --------------------------------------------------------- */
.plan-card {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 2rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  position: relative;
  transition: all 0.4s var(--ease-quiet);
}
.plan-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.plan-card.featured {
  background: linear-gradient(180deg, var(--bg-dark), rgba(61,224,131,0.05));
  border-color: var(--primary);
  box-shadow: var(--glow-soft);
}
.plan-tag {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--primary-bright);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  direction: ltr;
}
.plan-name { font-size: 1.3rem; font-weight: 700; margin-top: 0.25rem; }
.plan-price {
  display: flex; align-items: baseline;
  gap: 0.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.plan-price .amount {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 500;
  color: var(--text-strong);
  letter-spacing: -0.03em;
  line-height: 1;
  direction: ltr;
}
.plan-price .unit { font-size: 0.78rem; color: var(--text-dim); }
.plan-features { display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.plan-features li {
  display: flex; align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.5;
}
.plan-features li .check {
  width: 14px; height: 14px;
  flex-shrink: 0;
  color: var(--primary);
  margin-top: 3px;
}
.plan-cta {
  display: flex; align-items: center; justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem;
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: var(--r-sm);
  transition: all 0.3s var(--ease-quiet);
}
.plan-cta:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-bright);
}
.plan-card.featured .plan-cta {
  background: var(--primary);
  color: var(--bg-void);
  border-color: var(--primary);
  font-weight: 600;
}
.plan-card.featured .plan-cta:hover { background: var(--primary-bright); }

/* ---- Forms ------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
.input, .textarea, .select {
  width: 100%;
  background: var(--bg-mid);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.8rem 1rem;
  color: var(--text);
  font-size: 0.92rem;
  font-family: var(--font-sans);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.input::placeholder, .textarea::placeholder { color: var(--text-dim); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-dim);
}
.textarea { resize: vertical; min-height: 120px; }

/* Search input (header) */
.search-box {
  display: flex; align-items: center;
  gap: 0.5rem;
  background: var(--bg-mid);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 0.45rem 0.5rem 0.45rem 1rem;
  transition: border-color 0.3s, width 0.4s;
}
.search-box:focus-within { border-color: var(--primary); }
.search-box input {
  background: none; border: none; outline: none;
  color: var(--text);
  font-size: 0.85rem;
  width: 100%;
  min-width: 0;
}
.search-box input::placeholder { color: var(--text-dim); }
.search-box .search-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--bg-void);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.search-box .search-btn svg { width: 14px; height: 14px; }

/* ---- Accordion (FAQ) --------------------------------------------------- */
.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-mid);
  overflow: hidden;
  transition: border-color 0.3s;
}
.accordion-item.open { border-color: var(--primary); }
.accordion-trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 1.5rem;
  text-align: start;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-strong);
  transition: color 0.3s;
}
.accordion-trigger:hover { color: var(--primary-bright); }
.accordion-icon {
  width: 28px; height: 28px;
  flex-shrink: 0;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  transition: transform 0.4s var(--ease-quiet), background 0.3s;
}
.accordion-item.open .accordion-icon {
  transform: rotate(45deg);
  background: var(--primary);
  color: var(--bg-void);
}
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-quiet);
}
.accordion-panel-inner {
  padding: 0 1.5rem 1.4rem;
  color: var(--text-muted);
  line-height: 1.85;
  font-size: 0.94rem;
}

/* ---- Table (comparison) ------------------------------------------------ */
.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-mid);
}
table.cmp { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.cmp th, table.cmp td {
  padding: 1rem 1.25rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
table.cmp th:first-child, table.cmp td:first-child { text-align: start; }
table.cmp thead th {
  background: var(--bg-dark);
  color: var(--text-strong);
  font-weight: 700;
  font-size: 0.92rem;
}
table.cmp thead th.highlight {
  background: var(--primary-soft);
  color: var(--primary-bright);
  border-bottom-color: var(--primary);
}
table.cmp tbody tr { transition: background 0.3s; }
table.cmp tbody tr:hover { background: var(--primary-soft); }
table.cmp td.highlight { background: var(--primary-soft); }
table.cmp .yes { color: var(--primary); }
table.cmp .no { color: var(--text-dim); }
table.cmp .check-icon { width: 16px; height: 16px; }

/* ---- Marquee ----------------------------------------------------------- */
.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 0;
  overflow: hidden;
  background: var(--bg-mid);
}
.marquee-track {
  display: flex; gap: 4rem;
  animation: marquee 38s linear infinite;
  white-space: nowrap;
  width: max-content;
  direction: ltr;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  text-transform: uppercase;
  display: flex; align-items: center; gap: 1rem;
}
.marquee-item::after {
  content: ''; width: 4px; height: 4px;
  background: var(--primary); border-radius: 50%;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- Breadcrumbs ------------------------------------------------------- */
.breadcrumbs { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; font-size: 0.82rem; }
.breadcrumbs a { color: var(--text-muted); transition: color 0.3s; }
.breadcrumbs a:hover { color: var(--primary-bright); }
.breadcrumbs .sep { color: var(--text-dim); }
.breadcrumbs .current { color: var(--primary-bright); }

/* ---- Page hero (secondary pages) -------------------------------------- */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 5rem) 2rem 5rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 70% at 75% 5%, rgba(61,224,131,0.15), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(61,224,131,0.08), transparent 60%),
    linear-gradient(180deg, var(--bg-void) 0%, var(--bg-dark) 100%);
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(180deg, transparent, var(--bg-void));
  pointer-events: none;
  z-index: 1;
}
/* decorative floating orbs */
.page-hero::before {
  content: '';
  position: absolute;
  top: 15%;
  inset-inline-start: -8%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(61,224,131,0.12), transparent 65%);
  border-radius: 50%;
  animation: heroOrb 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes heroOrb {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.7; }
  50% { transform: translate(40px, -30px) scale(1.15); opacity: 1; }
}
.page-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--primary-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--primary-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 50% at center, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at center, black 20%, transparent 75%);
  pointer-events: none;
}

/* ---- CTA band ---------------------------------------------------------- */
.cta-band {
  position: relative;
  padding: 6rem 0;
  background: var(--bg-dark);
  overflow: hidden;
}
.cta-band-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at center, var(--primary-dim), transparent 60%);
  pointer-events: none;
}
.cta-band-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--primary-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--primary-soft) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 50% 50% at center, black 15%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at center, black 15%, transparent 70%);
  pointer-events: none;
}
.cta-band-inner {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}
.cta-band h2 { margin: 1.4rem 0 1.4rem; }
.cta-band p { color: var(--text-muted); margin-bottom: 2.2rem; line-height: 1.8; max-width: 560px; margin-inline: auto; }
.cta-band-buttons { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
