:root{
  --bg: #0c0a07;
  --bg-surface: #161209;
  --bg-elevated: #201808;
  --border: #3a2c14;
  --accent: #e3b23c;
  --accent-dim: rgba(227,178,60,0.14);
  --amber: #f4d67a;
  --amber-dim: rgba(244,214,122,0.14);
  --text: #ffffff;
  --text-dim: #b9b2a3;
  --text-faint: #746b58;
  --radius: 14px;
}

*{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; }

body{
  background: var(--bg);
  color: var(--text);
  font-family:'Inter', sans-serif;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

h1,h2,h3{ font-family:'Space Grotesk', sans-serif; letter-spacing:-0.02em; }
.mono{ font-family:'JetBrains Mono', monospace; }
a{ color:inherit; text-decoration:none; }
.wrap{ max-width:1180px; margin:0 auto; padding:0 28px; }

body::before{
  content:'';
  position:fixed; inset:0;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,0.012) 0px, rgba(255,255,255,0.012) 1px, transparent 1px, transparent 3px);
  pointer-events:none;
  z-index:1;
}

/* ============ NAV ============ */
nav{
  position:sticky; top:0; z-index:100;
  background: rgba(9,13,18,0.85);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
}
nav .wrap{ display:flex; align-items:center; justify-content:space-between; height:72px; }
.logo{ display:flex; align-items:center; gap:10px; font-family:'Space Grotesk'; font-weight:700; font-size:19px; }
.logo-dot{ width:9px; height:9px; border-radius:50%; background:var(--accent); box-shadow:0 0 10px var(--accent); flex-shrink:0; }
.logo-dot.blink{ animation: blink 2.2s ease-in-out infinite; }
@keyframes blink{ 0%,100%{opacity:1;} 50%{opacity:0.35;} }

.nav-links{ display:flex; align-items:center; gap:26px; }
.nav-links a.nav-item{ color:var(--text-dim); font-size:14.5px; font-weight:500; transition:color 0.2s; }
.nav-links a.nav-item:hover{ color:var(--text); }
.nav-links a.nav-item.active{ color:var(--accent); }

.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:11px 20px; border-radius:9px;
  font-weight:600; font-size:14.5px;
  border:1px solid transparent;
  cursor:pointer; transition:all 0.2s;
  white-space:nowrap;
}
.btn-primary{ background:var(--accent); color:#191204; }
.btn-primary:hover{ background:#f0c458; transform:translateY(-1px); }
.btn-ghost{ background:transparent; border-color:var(--border); color:var(--text); }
.btn-ghost:hover{ border-color:var(--accent); color:var(--accent); }
.btn-sm{ padding:8px 14px; font-size:13px; }

.wa-icon{ width:16px; height:16px; flex-shrink:0; }

/* ============ HERO ============ */
.hero{ position:relative; padding:88px 0 76px; overflow:hidden; }
.hero .wrap{ display:grid; grid-template-columns:1.05fr 0.95fr; gap:56px; align-items:center; position:relative; z-index:2; }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family:'JetBrains Mono'; font-size:12.5px; font-weight:600;
  color:var(--accent); letter-spacing:0.08em; text-transform:uppercase;
  background:var(--accent-dim); border:1px solid rgba(227,178,60,0.3);
  padding:7px 13px; border-radius:100px; margin-bottom:22px;
}
.hero h1{ font-size:52px; font-weight:700; line-height:1.06; margin-bottom:20px; }
.hero h1 .hl{ color:var(--accent); }
.hero p.lead{ font-size:17px; color:var(--text-dim); max-width:490px; margin-bottom:34px; }
.hero-ctas{ display:flex; gap:14px; flex-wrap:wrap; }

.hero-visual{ position:relative; aspect-ratio:1/1; max-width:440px; margin:0 auto; }
.tile-grid{ display:grid; grid-template-columns:repeat(6,1fr); grid-template-rows:repeat(6,1fr); gap:6px; width:100%; height:100%; }
.tile{ background:var(--bg-elevated); border:1px solid var(--border); border-radius:4px; animation: tileflux 5s ease-in-out infinite; }
@keyframes tileflux{
  0%, 100%{ background:var(--bg-elevated); border-color:var(--border); }
  45%{ background:var(--bg-elevated); border-color:var(--border); }
  55%{ background:var(--accent-dim); border-color:var(--accent); box-shadow:0 0 12px rgba(227,178,60,0.25); }
  75%{ background:var(--accent-dim); border-color:var(--accent); box-shadow:0 0 12px rgba(227,178,60,0.25); }
}
.hero-visual .center-label{
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  text-align:center; background:rgba(9,13,18,0.92); border:1px solid var(--accent);
  border-radius:10px; padding:14px 22px; backdrop-filter:blur(4px);
}
.center-label .mono{ font-size:11px; color:var(--accent); letter-spacing:0.1em; }
.center-label .big{ font-size:22px; font-weight:700; font-family:'Space Grotesk'; margin-top:2px; }

@media (prefers-reduced-motion: reduce){ .tile, .logo-dot.blink{ animation:none !important; } }

/* ============ FEATURE STRIP ============ */
.feature-strip{ border-top:1px solid var(--border); border-bottom:1px solid var(--border); background:var(--bg-surface); }
.feature-strip .wrap{ display:grid; grid-template-columns:repeat(4,1fr); gap:0; }
.feature-item{ padding:26px 24px; border-right:1px solid var(--border); }
.feature-item:last-child{ border-right:none; }
.feature-item .f-title{ font-weight:600; font-size:14.5px; margin-bottom:5px; }
.feature-item .f-sub{ font-size:13px; color:var(--text-faint); }

/* ============ SECTION HEADERS ============ */
section{ padding:88px 0; position:relative; z-index:2; }
.sec-head{ max-width:560px; margin-bottom:52px; }
.sec-eyebrow{ font-family:'JetBrains Mono'; font-size:12px; color:var(--text-faint); letter-spacing:0.1em; text-transform:uppercase; margin-bottom:12px; }
.sec-head h2{ font-size:34px; font-weight:700; margin-bottom:12px; }
.sec-head p{ color:var(--text-dim); font-size:15.5px; }

/* ============ PACKAGES ============ */
.pkg-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-bottom:20px; }
.pkg-card{ background:var(--bg-surface); border:1px solid var(--border); border-radius:var(--radius); padding:30px 26px; position:relative; transition: border-color 0.2s, transform 0.2s; }
.pkg-card:hover{ transform:translateY(-3px); }
.pkg-card.featured{ border-color:var(--accent); background:linear-gradient(180deg, var(--bg-elevated), var(--bg-surface)); }
.pkg-card.featured::before{
  content:'BEST VALUE'; position:absolute; top:-11px; left:26px;
  background:var(--accent); color:#191204;
  font-family:'JetBrains Mono'; font-size:10.5px; font-weight:700;
  padding:4px 10px; border-radius:5px; letter-spacing:0.05em;
}
.pkg-streams{ font-size:15px; color:var(--text-dim); margin-bottom:4px; }
.pkg-count{ font-family:'Space Grotesk'; font-size:40px; font-weight:700; margin-bottom:18px; }
.pkg-count .unit{ font-size:16px; color:var(--text-dim); font-weight:500; }
.pkg-price{ display:flex; align-items:baseline; gap:6px; margin-bottom:6px; }
.pkg-price .amount{ font-family:'JetBrains Mono'; font-size:30px; font-weight:700; color:var(--accent); }
.pkg-price .period{ font-size:13px; color:var(--text-faint); }
.pkg-per{ font-size:12.5px; color:var(--text-faint); margin-bottom:22px; font-family:'JetBrains Mono'; }
.pkg-cta{ display:block; text-align:center; width:100%; }

.small-vol{
  background:var(--bg-surface); border:1px solid var(--border); border-radius:var(--radius);
  padding:26px 28px; display:flex; align-items:center; justify-content:space-between; gap:24px;
  flex-wrap:wrap; margin-bottom:20px;
}
.small-vol-info h3{ font-size:17px; margin-bottom:4px; }
.small-vol-info p{ font-size:13.5px; color:var(--text-dim); }
.small-vol-price{ text-align:right; }
.small-vol-price .amount{ font-family:'JetBrains Mono'; font-size:24px; font-weight:700; color:var(--amber); }
.small-vol-price .note{ font-size:12px; color:var(--text-faint); }

.custom-banner{
  border:1px dashed var(--border); border-radius:var(--radius);
  padding:24px 28px; display:flex; align-items:center; justify-content:space-between;
  flex-wrap:wrap; gap:16px;
}
.custom-banner h3{ font-size:16px; margin-bottom:3px; }
.custom-banner p{ font-size:13.5px; color:var(--text-dim); }

/* ============ HOW IT WORKS ============ */
.steps{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.step{ padding:26px; border-left:2px solid var(--border); position:relative; }
.step .step-num{ font-family:'JetBrains Mono'; font-size:13px; color:var(--accent); font-weight:700; margin-bottom:10px; }
.step h3{ font-size:17px; margin-bottom:8px; }
.step p{ font-size:14px; color:var(--text-dim); }

/* ============ CTA STRIP ============ */
.cta-strip{ background:var(--bg-surface); border-top:1px solid var(--border); border-bottom:1px solid var(--border); text-align:center; padding:64px 0; }
.cta-strip h2{ font-size:28px; margin-bottom:14px; }
.cta-strip p{ color:var(--text-dim); font-size:14.5px; margin-bottom:24px; max-width:520px; margin-left:auto; margin-right:auto; }

/* ============ PAGE HERO (secondary pages) ============ */
.page-hero{ padding:72px 0 40px; text-align:center; }
.page-hero h1{ font-size:44px; font-weight:700; line-height:1.08; margin:0 auto 16px; max-width:720px; }
.page-hero h1 .hl{ color:var(--accent); }
.page-hero p.lead{ font-size:16px; color:var(--text-dim); max-width:580px; margin:0 auto 26px; }

/* ============ FILTER TABS ============ */
.filter-bar{
  position:sticky; top:72px; z-index:90;
  background: rgba(9,13,18,0.92);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
  padding:16px 0;
}
.filter-tabs{ display:flex; gap:8px; flex-wrap:wrap; }
.filter-tab{
  display:inline-flex; align-items:center; gap:6px;
  background:transparent; border:1px solid var(--border); color:var(--text-dim);
  font-family:'Inter'; font-size:13px; font-weight:600;
  padding:8px 15px; border-radius:100px; cursor:pointer; transition:all 0.2s;
}
.filter-tab:hover{ border-color:var(--accent); color:var(--text); }
.filter-tab.active{ background:var(--accent); border-color:var(--accent); color:#191204; }

/* ============ COUNTRY / RESTREAM GRID ============ */
.country-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-bottom:36px; }
.country-card{
  background:var(--bg-surface); border:1px solid var(--border); border-radius:12px;
  padding:20px 18px; display:flex; align-items:center; gap:12px;
  transition: border-color 0.2s, transform 0.2s, background 0.2s; cursor:pointer;
}
.country-card:hover{ border-color:var(--accent); transform:translateY(-2px); background:var(--bg-elevated); }
.country-flag{ font-size:24px; line-height:1; flex-shrink:0; }
.country-name{ font-weight:600; font-size:14.5px; }
.country-card.wide{ grid-column: span 2; }

.why-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.why-card{ background:var(--bg-surface); border:1px solid var(--border); border-radius:var(--radius); padding:26px; }
.why-card .why-num{ font-family:'JetBrains Mono'; color:var(--accent); font-size:13px; font-weight:700; margin-bottom:12px; }
.why-card h3{ font-size:16.5px; margin-bottom:8px; }
.why-card p{ font-size:13.5px; color:var(--text-dim); }

/* ============ CHANNELS ============ */
.country-block{ margin-bottom:56px; }
.country-title{ font-size:24px; font-weight:700; margin-bottom:6px; display:flex; align-items:center; gap:10px; }
.country-title .flag{ font-size:26px; }
.country-sub{ font-size:13.5px; color:var(--text-faint); margin-bottom:24px; }
.cat-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
.cat-card{ background:var(--bg-surface); border:1px solid var(--border); border-radius:var(--radius); padding:20px 22px; }
.cat-card h3{ font-size:14px; font-weight:600; color:var(--accent); text-transform:uppercase; letter-spacing:0.05em; margin-bottom:12px; display:flex; align-items:center; gap:8px; }
.chip-list{ display:flex; flex-wrap:wrap; gap:8px; }
.chip{ background:var(--bg-elevated); border:1px solid var(--border); border-radius:100px; padding:6px 13px; font-size:13px; color:var(--text-dim); }
.country-cta{ margin-top:18px; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; padding:16px 20px; border:1px dashed var(--border); border-radius:var(--radius); }
.country-cta p{ font-size:13px; color:var(--text-dim); }

/* ============ SERVER TABLE ============ */
section.servers{ padding:44px 0 30px; }
.cat-block{ margin-bottom:52px; }
.cat-title{ font-size:22px; font-weight:700; margin-bottom:4px; display:flex; align-items:center; gap:10px; }
.cat-title .cat-count{ font-family:'JetBrains Mono'; font-size:12px; color:var(--text-faint); font-weight:500; border:1px solid var(--border); padding:2px 9px; border-radius:100px; }
.server-table{ background:var(--bg-surface); border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; }
.server-row{ display:grid; grid-template-columns: 2.3fr 1fr 1.2fr 1fr auto; gap:16px; align-items:center; padding:18px 22px; border-bottom:1px solid var(--border); transition: background 0.15s; }
.server-row:last-child{ border-bottom:none; }
.server-row:hover{ background:var(--bg-elevated); }
.server-row.head{ padding:12px 22px; font-family:'JetBrains Mono'; font-size:11px; color:var(--text-faint); text-transform:uppercase; letter-spacing:0.06em; background:var(--bg-elevated); }
.s-name{ font-weight:600; font-size:14.5px; line-height:1.4; }
.s-name .s-sub{ display:block; font-weight:400; font-size:12.5px; color:var(--text-faint); margin-top:2px; }
.s-spec{ font-size:13px; color:var(--text-dim); }
.s-price{ text-align:right; }
.s-price .amount{ font-family:'JetBrains Mono'; font-weight:700; font-size:17px; color:var(--accent); }
.s-price .period{ font-size:11.5px; color:var(--text-faint); display:block; }

@media (max-width: 900px){
  .server-row{ grid-template-columns:1fr; gap:6px; padding:16px 18px; }
  .server-row.head{ display:none; }
  .s-price{ text-align:left; margin-top:4px; }
  .s-price .amount{ font-size:19px; }
  .server-row .s-order{ margin-top:8px; }
}

/* ============ FOOTER ============ */
footer{ padding:44px 0 36px; }
footer .wrap{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px; border-top:1px solid var(--border); padding-top:28px; }
.footer-links{ display:flex; gap:22px; flex-wrap:wrap; }
.footer-links a{ color:var(--text-dim); font-size:13.5px; transition:color 0.2s; }
.footer-links a:hover{ color:var(--accent); }
.footer-brand{ font-family:'JetBrains Mono'; font-size:12.5px; color:var(--text-faint); }
.footer-note{ font-size:11.5px; color:var(--text-faint); text-align:center; padding-top:18px; }

/* ============ LIVE CHAT WIDGET ============ */
.chat-widget{ position:fixed; bottom:26px; right:26px; z-index:200; }
.chat-bubble{
  width:60px; height:60px; border-radius:50%; background:var(--accent); color:#191204;
  display:flex; align-items:center; justify-content:center; cursor:pointer; border:none;
  box-shadow:0 8px 24px rgba(227,178,60,0.35); position:relative; transition: transform 0.2s;
}
.chat-bubble:hover{ transform:scale(1.06); }
.chat-bubble svg{ width:26px; height:26px; }
.chat-bubble .ping{ position:absolute; inset:-4px; border-radius:50%; border:2px solid var(--accent); animation: ping 2.4s ease-out infinite; }
@keyframes ping{ 0%{ transform:scale(1); opacity:0.7; } 100%{ transform:scale(1.5); opacity:0; } }
.chat-bubble .dot-badge{ position:absolute; top:-2px; right:-2px; width:14px; height:14px; border-radius:50%; background:#37d67a; border:2px solid var(--bg); }
.chat-panel{
  position:absolute; bottom:74px; right:0; width:320px;
  background:var(--bg-surface); border:1px solid var(--border); border-radius:var(--radius);
  box-shadow:0 20px 50px rgba(0,0,0,0.5); overflow:hidden;
  opacity:0; visibility:hidden; transform:translateY(12px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.chat-panel.open{ opacity:1; visibility:visible; transform:translateY(0); }
.chat-head{ background:linear-gradient(135deg, var(--bg-elevated), var(--bg-surface)); padding:18px 20px; border-bottom:1px solid var(--border); display:flex; align-items:center; gap:12px; }
.chat-head .avatar{ width:38px; height:38px; border-radius:50%; background:var(--accent); color:#191204; display:flex; align-items:center; justify-content:center; font-family:'Space Grotesk'; font-weight:700; font-size:14px; flex-shrink:0; }
.chat-head .who{ font-weight:600; font-size:14.5px; }
.chat-head .status{ font-size:12px; color:#37d67a; display:flex; align-items:center; gap:5px; }
.chat-head .status::before{ content:''; width:6px; height:6px; border-radius:50%; background:#37d67a; }
.chat-head .close-x{ margin-left:auto; cursor:pointer; color:var(--text-faint); font-size:20px; line-height:1; background:none; border:none; padding:4px; }
.chat-head .close-x:hover{ color:var(--text); }
.chat-body{ padding:18px 20px 8px; }
.chat-msg{ background:var(--bg-elevated); border:1px solid var(--border); border-radius:10px 10px 10px 3px; padding:12px 14px; font-size:13.5px; color:var(--text-dim); margin-bottom:14px; line-height:1.5; }
.chat-quick{ display:flex; flex-direction:column; gap:8px; margin-bottom:16px; }
.chat-quick button{ text-align:left; background:transparent; border:1px solid var(--border); color:var(--text); font-size:13px; padding:10px 12px; border-radius:8px; cursor:pointer; transition:border-color 0.2s, background 0.2s; font-family:'Inter'; }
.chat-quick button:hover{ border-color:var(--accent); background:var(--accent-dim); }
.chat-footer{ padding:14px 20px 20px; }
.chat-footer .btn{ width:100%; justify-content:center; }

@media (max-width: 860px){
  .hero .wrap{ grid-template-columns:1fr; }
  .hero-visual{ order:-1; max-width:300px; }
  .hero h1{ font-size:36px; }
  .page-hero h1{ font-size:30px; }
  .feature-strip .wrap{ grid-template-columns:repeat(2,1fr); }
  .feature-item:nth-child(2){ border-right:none; }
  .pkg-grid{ grid-template-columns:1fr; }
  .steps{ grid-template-columns:1fr; }
  .nav-links{ display:none; }
  .sec-head h2{ font-size:27px; }
  .small-vol{ flex-direction:column; align-items:flex-start; }
  .small-vol-price{ text-align:left; }
  .country-grid{ grid-template-columns:repeat(2,1fr); }
  .country-card.wide{ grid-column: span 2; }
  .why-grid{ grid-template-columns:1fr; }
  .cat-grid{ grid-template-columns:1fr; }
  .filter-bar{ top:0; }
  .chat-widget{ right:16px; bottom:16px; }
  .chat-panel{ width:calc(100vw - 32px); right:-6px; }
}
