/* ==========================================================================
   netts.io — Home page visual refresh (terminal aesthetic)
   /css/home.css
   Applies to index.php only (scoped via body.home-page).
   Does NOT touch .hero-section, the rental form, or any text content.
   Re-uses chrome.css design tokens (--nt-*). Self-contained otherwise.
   ========================================================================== */

/* ==========================================================================
   LEGACY OVERRIDES
   style.css applies `-webkit-text-fill-color: transparent` to every h1..h6
   and to `.workspace-card h3` for gradient text. On the refreshed home
   page that makes card icons and headings invisible (the transparent fill
   cascades into child <i> glyphs). Reset everything outside the hero.
   ========================================================================== */
body.home-page :is(
  .integrations-section,
  .bot-highlights-section,
  .telegram-bot-section,
  .enhanced-faq-section,
  .workspace-card,
  .bot-highlight-card,
  .enhanced-faq-card,
  .stats-highlight
) :is(h1,h2,h3,h4,h5,h6,h3 i,.card-features li){
  -webkit-background-clip:initial !important;
  -webkit-text-fill-color:initial !important;
  background-clip:initial !important;
}
body.home-page :is(
  .integrations-section,
  .bot-highlights-section,
  .telegram-bot-section,
  .enhanced-faq-section
) :is(h1,h2,h3,h4,h5,h6){
  background:none !important;
}

/* Local tokens (aligned with terminal.css palette) */
body.home-page{
  --hp-mono:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
  --hp-font:"Urbanist","Inter",system-ui,-apple-system,Arial,sans-serif;
  --hp-ink:#0b1020;
  --hp-ink-soft:#1a2240;
  --hp-text:#3a4366;
  --hp-muted:#8892b8;
  --hp-blue:#2d4bdb;
  --hp-blue-hover:#3e68ff;
  --hp-blue-soft:#eef1ff;
  --hp-line:#e2e6f2;
  --hp-line-soft:#eef0f7;
  --hp-panel:#fbfcff;
  --hp-white:#ffffff;
  --hp-green:#00a86b;
  --hp-amber:#d98a00;
  --hp-red:#d93838;
  --hp-radius:12px;
  --hp-radius-sm:8px;
}

/* ==========================================================================
   SECTION HEADERS (title + subtitle)
   ========================================================================== */
body.home-page .integrations-section .section-header,
body.home-page .bot-highlights-section .section-header,
body.home-page .enhanced-faq-section .section-header{
  margin-bottom:2.25rem;
}
body.home-page .section-title{
  font-family:var(--hp-font);
  font-weight:800;
  letter-spacing:-.01em;
  color:var(--hp-ink);
  font-size:clamp(26px,3.2vw,38px);
  line-height:1.15;
  margin-bottom:.75rem;
}
body.home-page .section-title::before{
  content:"§ ";
  font-family:var(--hp-mono);
  font-weight:500;
  font-size:.65em;
  letter-spacing:.02em;
  color:var(--hp-blue);
  vertical-align:.15em;
  margin-right:.25em;
  opacity:.85;
}
body.home-page .section-subtitle{
  font-family:var(--hp-font);
  color:var(--hp-text);
  font-size:16px;
  line-height:1.55;
  max-width:720px;
  margin:0 auto;
}

/* ==========================================================================
   SECTION BACKGROUNDS (soften gradients/backgrounds set via inline styles)
   Using !important only where inline style specificity forces it.
   ========================================================================== */
body.home-page section.integrations-section[style*="background"]{
  background:var(--hp-panel) !important;
  border-top:1px solid var(--hp-line-soft);
}
body.home-page section.bot-highlights-section{
  background:var(--hp-white) !important;
  border-top:1px solid var(--hp-line-soft) !important;
}

/* ==========================================================================
   STATS HIGHLIGHT (Live Metrics)
   ========================================================================== */
body.home-page .stats-highlight{
  background:var(--hp-white);
  border:1px solid var(--hp-line);
  border-radius:var(--hp-radius);
  padding:28px 32px;
  box-shadow:0 1px 2px rgba(11,16,32,.03);
  max-width:1160px;
  margin:0 auto;
  position:relative;
}
body.home-page .stats-highlight::before{
  content:"live.metrics";
  position:absolute;
  top:-11px;
  left:24px;
  padding:2px 10px;
  background:var(--hp-white);
  color:var(--hp-blue);
  font-family:var(--hp-mono);
  font-size:11px;
  font-weight:500;
  letter-spacing:.08em;
  text-transform:lowercase;
  border:1px solid var(--hp-line);
  border-radius:6px;
}
body.home-page .stats-highlight > h3{
  display:none; /* replaced by the ::before tag label */
}
body.home-page .stats-row{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px 32px;
  margin-top:6px;
}
@media (max-width:900px){
  body.home-page .stats-row{
    grid-template-columns:repeat(2,1fr);
  }
  body.home-page .stats-row .stat-item:nth-child(3){
    border-top:1px dashed var(--hp-line-soft);
  }
}
body.home-page .stats-row .stat-item{
  padding:12px 0 10px;
  border-top:1px dashed var(--hp-line-soft);
  text-align:center;
}
body.home-page .stats-row .stat-item:first-child,
body.home-page .stats-row .stat-item:nth-child(2),
body.home-page .stats-row .stat-item:nth-child(3){
  border-top:none;
}
body.home-page .stats-row .stat-item > div{
  display:flex;
  flex-direction:column;
  gap:6px;
}
body.home-page .stat-number{
  font-family:var(--hp-mono);
  font-size:clamp(19px,1.75vw,24px);
  font-weight:700;
  color:var(--hp-ink);
  line-height:1.1;
  letter-spacing:-.03em;
  min-height:30px;
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:0;
  overflow-wrap:anywhere;
}
body.home-page .stat-number .spinner-border{
  width:18px;
  height:18px;
  border-width:2px;
  color:var(--hp-blue) !important;
}
body.home-page .stat-label{
  font-family:var(--hp-mono);
  font-size:11px;
  letter-spacing:.06em;
  text-transform:lowercase;
  color:var(--hp-muted);
}
@media (max-width:720px){
  body.home-page .stats-row{
    grid-template-columns:repeat(2,1fr);
  }
  body.home-page .stats-row .stat-item{
    border-top:none;
  }
}

/* ==========================================================================
   CATEGORY GRIDS (benefits + features + bot-features)
   ========================================================================== */
body.home-page .category-section{
  max-width:1160px;
  margin:0 auto;
}
body.home-page .core-energy-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:18px;
}
body.home-page .workspace-card{
  background:var(--hp-white);
  border:1px solid var(--hp-line);
  border-radius:var(--hp-radius);
  padding:24px 22px;
  transition:border-color .18s ease, transform .18s ease, box-shadow .18s ease;
  position:relative;
  height:100%;
}
body.home-page .workspace-card:hover{
  border-color:var(--hp-blue);
  transform:translateY(-2px);
  box-shadow:0 6px 20px rgba(45,75,219,.08);
}
body.home-page .workspace-card h3{
  font-family:var(--hp-font);
  font-size:18px;
  font-weight:700;
  color:var(--hp-ink);
  margin:0 0 10px;
  display:flex;
  align-items:center;
  gap:10px;
  line-height:1.3;
}
body.home-page .workspace-card h3 i{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  border-radius:9px;
  background:var(--hp-blue-soft);
  color:var(--hp-blue);
  font-size:18px;
  flex-shrink:0;
}
body.home-page .workspace-card > p{
  font-family:var(--hp-font);
  color:var(--hp-text);
  font-size:14.5px;
  line-height:1.55;
  margin:0 0 14px;
}
body.home-page .workspace-card .card-features{
  list-style:none;
  padding:0;
  margin:14px 0 0;
  border-top:1px dashed var(--hp-line-soft);
  padding-top:14px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
body.home-page .workspace-card .card-features li{
  font-family:var(--hp-mono);
  font-size:12.5px;
  color:var(--hp-text);
  padding-left:18px;
  position:relative;
  line-height:1.5;
}
body.home-page .workspace-card .card-features li::before{
  content:"›";
  position:absolute;
  left:2px;
  top:0;
  color:var(--hp-blue);
  font-weight:700;
  font-family:var(--hp-mono);
}

/* ==========================================================================
   TELEGRAM BOT CTA BANNER
   ========================================================================== */
body.home-page section.telegram-bot-section{
  background:linear-gradient(135deg,#0b1020 0%,#1a2240 60%,#2d4bdb 130%) !important;
  padding:3rem 1rem !important;
  display:flex;
  align-items:center;
  justify-content:center;
  border-top:1px solid var(--hp-line-soft);
  border-bottom:1px solid var(--hp-line-soft);
  position:relative;
  overflow:hidden;
}
body.home-page section.telegram-bot-section::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px);
  background-size:36px 36px;
  pointer-events:none;
}
body.home-page section.telegram-bot-section .btn-hero{
  position:relative;
  z-index:2;
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:16px 32px;
  background:var(--hp-white);
  color:var(--hp-ink);
  border-radius:12px;
  font-family:var(--hp-font);
  font-weight:700;
  font-size:16px;
  letter-spacing:.01em;
  text-decoration:none;
  transition:transform .18s ease, box-shadow .18s ease;
  box-shadow:0 8px 24px rgba(0,0,0,.25);
}
body.home-page section.telegram-bot-section .btn-hero:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 28px rgba(0,0,0,.32);
  color:var(--hp-blue);
}

/* ==========================================================================
   BOT HIGHLIGHTS GRID
   ========================================================================== */
body.home-page .bot-highlights-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:18px;
  max-width:1160px;
  margin:0 auto;
}
body.home-page .bot-highlight-card{
  background:var(--hp-white);
  border:1px solid var(--hp-line);
  border-radius:var(--hp-radius);
  padding:22px 22px 20px;
  transition:border-color .18s ease, transform .18s ease, box-shadow .18s ease;
  position:relative;
  display:flex;
  flex-direction:column;
  gap:12px;
}
body.home-page .bot-highlight-card:hover{
  border-color:var(--hp-blue);
  transform:translateY(-2px);
  box-shadow:0 6px 20px rgba(45,75,219,.08);
}
body.home-page .bot-highlight-header{
  display:flex;
  align-items:center;
  gap:12px;
}
body.home-page .bot-highlight-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  border-radius:10px;
  background:var(--hp-blue-soft);
  color:var(--hp-blue);
  font-size:20px;
  flex-shrink:0;
}
body.home-page .bot-highlight-header h3{
  font-family:var(--hp-font);
  font-size:16px;
  font-weight:700;
  color:var(--hp-ink);
  margin:0;
  line-height:1.3;
}
body.home-page .bot-highlight-card > p{
  font-family:var(--hp-font);
  color:var(--hp-text);
  font-size:14px;
  line-height:1.55;
  margin:0;
  flex-grow:1;
}
body.home-page .bot-highlight-badge{
  align-self:flex-start;
  font-family:var(--hp-mono);
  font-size:11px;
  letter-spacing:.06em;
  text-transform:lowercase;
  color:var(--hp-blue);
  background:var(--hp-blue-soft);
  padding:4px 10px;
  border-radius:6px;
  border:1px solid rgba(45,75,219,.15);
}

/* ==========================================================================
   ENHANCED FAQ SECTION
   ========================================================================== */
body.home-page .enhanced-faq-section{
  background:var(--hp-panel);
  border-top:1px solid var(--hp-line-soft);
  padding:5rem 0;
}
body.home-page .enhanced-faq-badge-container{
  margin-bottom:1.25rem !important;
}
body.home-page .enhanced-faq-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-family:var(--hp-mono);
  font-size:12px;
  font-weight:500;
  letter-spacing:.08em;
  text-transform:lowercase;
  color:var(--hp-blue);
  background:var(--hp-white);
  padding:6px 14px;
  border-radius:999px;
  border:1px solid rgba(45,75,219,.22);
}
body.home-page .enhanced-faq-container{
  max-width:1160px;
  margin:0 auto;
  display:flex;
  flex-direction:column;
  gap:16px;
}
body.home-page .faq-grid-layout{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  gap:16px;
}
body.home-page .enhanced-faq-card{
  background:var(--hp-white);
  border:1px solid var(--hp-line);
  border-radius:var(--hp-radius);
  overflow:hidden;
  transition:border-color .18s ease, box-shadow .18s ease;
}
body.home-page .enhanced-faq-card:hover{
  border-color:var(--hp-blue);
  box-shadow:0 6px 20px rgba(45,75,219,.06);
}
body.home-page .enhanced-faq-card.featured-faq{
  border-color:rgba(45,75,219,.25);
  background:linear-gradient(180deg,var(--hp-blue-soft) 0%,var(--hp-white) 40%);
}
body.home-page .enhanced-faq-header{
  display:flex;
  align-items:center;
  gap:14px;
  padding:18px 22px;
  cursor:pointer;
  user-select:none;
  transition:background .18s ease;
}
body.home-page .enhanced-faq-header:hover{
  background:rgba(45,75,219,.03);
}
body.home-page .enhanced-faq-icon-container{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border-radius:11px;
  background:var(--hp-blue-soft);
  color:var(--hp-blue);
  font-size:20px;
  flex-shrink:0;
  position:relative;
}
body.home-page .enhanced-faq-icon-container.gradient-pricing{
  background:linear-gradient(135deg,#2d4bdb,#3e68ff);
  color:#fff;
}
body.home-page .enhanced-faq-icon-container.gradient-security{
  background:linear-gradient(135deg,#00a86b,#2dd4a0);
  color:#fff;
}
body.home-page .enhanced-faq-icon-container.gradient-energy{
  background:linear-gradient(135deg,#d98a00,#f0b030);
  color:#fff;
}
body.home-page .enhanced-faq-icon-container.gradient-savings{
  background:linear-gradient(135deg,#6b4bdb,#a876ff);
  color:#fff;
}
body.home-page .icon-pulse{
  position:absolute;
  inset:-4px;
  border-radius:inherit;
  border:2px solid currentColor;
  opacity:0;
  animation:hp-pulse 2.2s ease-out infinite;
}
@keyframes hp-pulse{
  0%{opacity:.5;transform:scale(.96)}
  70%{opacity:0;transform:scale(1.12)}
  100%{opacity:0;transform:scale(1.12)}
}
body.home-page .enhanced-faq-title-section{
  flex:1;
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
body.home-page .enhanced-faq-title-section h3,
body.home-page .enhanced-faq-title-section h4{
  font-family:var(--hp-font);
  font-size:16px;
  font-weight:700;
  color:var(--hp-ink);
  margin:0;
  line-height:1.3;
}
body.home-page .faq-priority-badge{
  font-family:var(--hp-mono);
  font-size:10.5px;
  letter-spacing:.06em;
  text-transform:uppercase;
  padding:3px 8px;
  border-radius:5px;
  font-weight:600;
}
body.home-page .faq-priority-badge.popular{
  background:rgba(217,138,0,.12);
  color:var(--hp-amber);
  border:1px solid rgba(217,138,0,.25);
}
body.home-page .faq-priority-badge.savings{
  background:rgba(0,168,107,.12);
  color:var(--hp-green);
  border:1px solid rgba(0,168,107,.25);
}
body.home-page .enhanced-faq-toggle{
  width:30px;
  height:30px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:var(--hp-muted);
  transition:transform .22s ease,color .18s ease;
  flex-shrink:0;
}
body.home-page .enhanced-faq-header[aria-expanded="true"] .enhanced-faq-toggle{
  transform:rotate(180deg);
  color:var(--hp-blue);
}
body.home-page .enhanced-faq-body{
  padding:4px 22px 22px;
  border-top:1px dashed var(--hp-line-soft);
  margin:0 22px;
}
body.home-page .enhanced-faq-body .faq-answer{
  font-family:var(--hp-font);
  color:var(--hp-text);
  font-size:15px;
  line-height:1.65;
  margin:14px 0;
}
body.home-page .enhanced-highlights-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:10px;
  margin-top:14px;
}
body.home-page .highlight-feature{
  display:flex;
  align-items:center;
  gap:8px;
  font-family:var(--hp-mono);
  font-size:12.5px;
  color:var(--hp-text);
  padding:8px 12px;
  background:var(--hp-blue-soft);
  border:1px solid rgba(45,75,219,.12);
  border-radius:8px;
}
body.home-page .highlight-feature i{
  color:var(--hp-green);
  font-size:14px;
  flex-shrink:0;
}
body.home-page .enhanced-privacy-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:12px;
  padding:8px 14px;
  background:rgba(0,168,107,.08);
  border:1px solid rgba(0,168,107,.2);
  border-radius:8px;
  color:var(--hp-green);
  font-family:var(--hp-mono);
  font-size:12.5px;
  font-weight:500;
}
body.home-page .enhanced-energy-options{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:10px;
  margin-top:14px;
}
body.home-page .energy-option-card{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 14px;
  background:var(--hp-white);
  border:1px solid var(--hp-line);
  border-radius:10px;
}
body.home-page .energy-option-card.has-usdt{
  border-left:3px solid var(--hp-green);
}
body.home-page .energy-option-card.no-usdt{
  border-left:3px solid var(--hp-amber);
}
body.home-page .energy-option-card .option-number{
  font-family:var(--hp-mono);
  font-size:20px;
  font-weight:700;
  color:var(--hp-ink);
  line-height:1;
  flex-shrink:0;
}
body.home-page .energy-option-card .option-description{
  display:flex;
  flex-direction:column;
  gap:3px;
}
body.home-page .energy-option-card .option-title{
  font-family:var(--hp-font);
  font-size:13px;
  color:var(--hp-text);
  line-height:1.3;
}
body.home-page .energy-option-card .option-badge{
  font-family:var(--hp-mono);
  font-size:10.5px;
  letter-spacing:.06em;
  text-transform:lowercase;
  color:var(--hp-muted);
}
body.home-page .wide-faq-content{
  display:grid;
  grid-template-columns:1.3fr 1fr;
  gap:22px;
  align-items:center;
}
body.home-page .enhanced-savings-showcase{
  background:linear-gradient(135deg,var(--hp-blue-soft),var(--hp-white));
  border:1px solid rgba(45,75,219,.15);
  border-radius:12px;
  padding:18px 20px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
}
body.home-page .savings-highlight{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
}
body.home-page .savings-percentage{
  font-family:var(--hp-mono);
  font-size:44px;
  font-weight:700;
  color:var(--hp-blue);
  line-height:1;
  letter-spacing:-.02em;
}
body.home-page .savings-description{
  font-family:var(--hp-mono);
  font-size:11.5px;
  letter-spacing:.06em;
  text-transform:lowercase;
  color:var(--hp-muted);
  text-align:center;
}
@media (max-width:720px){
  body.home-page .wide-faq-content{
    grid-template-columns:1fr;
  }
}
