/* ==========================================================================
   STARLINK VIỆT NAM — Stylesheet
   ========================================================================== */

:root {
  --bg: #060a13;
  --bg-alt: #0b111e;
  --surface: #111a2c;
  --surface-2: #16233a;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #e9eef7;
  --text-muted: #93a1ba;
  --text-faint: #5f6c85;
  --primary: #22d3ee;
  --primary-dark: #0891b2;
  --accent: #8b5cf6;
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f87171;
  --gradient: linear-gradient(135deg, #22d3ee 0%, #8b5cf6 100%);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

p { color: var(--text-muted); margin: 0 0 16px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { padding: 0; margin: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(1.5px 1.5px at 20px 30px, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 120px 90px, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 200px 150px, rgba(255,255,255,0.6), transparent),
    radial-gradient(1.5px 1.5px at 300px 60px, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 380px 200px, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 450px 40px, rgba(255,255,255,0.4), transparent);
  background-repeat: repeat;
  background-size: 500px 300px;
  opacity: 0.6;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient);
  color: #071019;
  box-shadow: 0 10px 30px -8px rgba(34, 211, 238, 0.45);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -8px rgba(34, 211, 238, 0.6); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 10, 19, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.logo-badge {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  color: #071019;
  flex-shrink: 0;
}
.logo small {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 10.5px;
  color: var(--text-faint);
  letter-spacing: 0.06em;
  margin-top: 1px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s ease;
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -20px; left: 0; right: 0;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
}
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--text);
}
.mobile-panel {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 10px 24px 20px;
  border-top: 1px solid var(--border);
}
.mobile-panel a {
  padding: 12px 4px;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.mobile-panel.open { display: flex; }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-actions .btn { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: 90px 0 110px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -180px; right: -160px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(34,211,238,0.18), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -220px; left: -160px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(139,92,246,0.16), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  position: relative;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 22px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.18);
}
.hero h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  margin-bottom: 20px;
}
.hero h1 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead { font-size: 17.5px; max-width: 540px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stat b { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 24px; }
.hero-stat span { font-size: 13px; color: var(--text-faint); }

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.orbit-ring {
  position: absolute;
  border: 1px dashed var(--border-strong);
  border-radius: 50%;
}
.orbit-ring.r1 { width: 92%; height: 92%; animation: spin 40s linear infinite; }
.orbit-ring.r2 { width: 68%; height: 68%; animation: spin 28s linear infinite reverse; }
.orbit-ring.r3 { width: 44%; height: 44%; animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit-dot {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 14px 3px rgba(34,211,238,0.7);
  top: -5px; left: 50%;
}
.hero-core {
  width: 30%; height: 30%;
  border-radius: 50%;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 70px 10px rgba(139,92,246,0.35);
  color: #071019;
  position: relative;
  z-index: 2;
}

/* ---- Sections ---- */
.section { padding: 88px 0; position: relative; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head.left { margin: 0 0 44px; text-align: left; }
.section-tag {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.section h2 { font-size: clamp(26px, 3.2vw, 36px); }

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 320px; margin: 0 auto; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.card-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(34,211,238,0.16), rgba(139,92,246,0.16));
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  margin-bottom: 18px;
}
.card h3 { font-size: 17.5px; margin-bottom: 8px; }
.card p { font-size: 14.5px; margin: 0; }

/* ---- Steps ---- */
.steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: flex;
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }
.step-num {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--primary);
}
.step h4 { margin-bottom: 4px; font-size: 16.5px; }
.step p { margin: 0; font-size: 14.5px; }

/* ---- CTA band ---- */
.cta-band {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(34,211,238,0.12), rgba(139,92,246,0.14));
  border: 1px solid var(--border-strong);
  padding: 54px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { margin: 0; }

/* ---- Footer ---- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 64px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 44px;
}
@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-grid h5 { font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text); margin-bottom: 18px; }
.footer-grid li { margin-bottom: 11px; }
.footer-grid a, .footer-grid span { font-size: 14px; color: var(--text-muted); }
.footer-grid a:hover { color: var(--primary); }
.footer-about p { font-size: 14px; max-width: 320px; }
.social-row { display: flex; gap: 10px; margin-top: 18px; }
.social-row a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
}
.social-row a:hover { border-color: var(--primary); color: var(--primary); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-faint);
}
.disclaimer {
  font-size: 12px;
  color: var(--text-faint);
  max-width: 900px;
  margin: 0 0 20px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.02);
}

/* ---- Page header (inner pages) ---- */
.page-hero {
  padding: 60px 0 50px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-hero .section-tag { margin-bottom: 14px; }
.page-hero h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; }
.page-hero p { max-width: 600px; margin: 0 auto; }
.breadcrumb { font-size: 13px; color: var(--text-faint); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--primary); }

/* ---- Pricing ---- */
.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan.featured { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), 0 20px 50px -20px rgba(34,211,238,0.35); }
.plan-badge {
  position: absolute; top: -13px; left: 30px;
  background: var(--gradient);
  color: #071019;
  font-size: 11.5px; font-weight: 700;
  padding: 5px 13px;
  border-radius: 999px;
}
.plan-name { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--primary); margin-bottom: 10px; }
.plan-price { font-family: 'Space Grotesk', sans-serif; font-size: 34px; font-weight: 700; margin-bottom: 2px; }
.plan-price span { font-size: 14px; font-weight: 500; color: var(--text-faint); }
.plan-sub { font-size: 13.5px; color: var(--text-faint); margin-bottom: 24px; }
.plan-features { margin-bottom: 28px; flex-grow: 1; }
.plan-features li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
  align-items: flex-start;
}
.plan-features svg { flex-shrink: 0; margin-top: 2px; color: var(--success); }
.price-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-faint);
  margin-top: 36px;
}

/* ---- Compare table ---- */
.compare-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
table.compare th, table.compare td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
table.compare th { background: var(--surface); font-family: 'Space Grotesk', sans-serif; color: var(--text); }
table.compare td { color: var(--text-muted); }
table.compare tr:last-child td { border-bottom: none; }

/* ---- FAQ ---- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  padding: 20px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15.5px;
  font-weight: 600;
  font-family: inherit;
  text-align: left;
}
.faq-q svg { flex-shrink: 0; transition: transform 0.2s ease; color: var(--primary); }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-item.open .faq-a { max-height: 240px; }
.faq-a p { padding: 0 4px 20px; font-size: 14.5px; margin: 0; }

/* ---- Coverage checker ---- */
.coverage-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.field select, .field input, .field textarea {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  color: var(--text);
  font-size: 14.5px;
  font-family: inherit;
}
.field select:focus, .field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.field textarea { resize: vertical; min-height: 100px; }
.result-box {
  margin-top: 22px;
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  display: none;
  gap: 14px;
  align-items: flex-start;
}
.result-box.show { display: flex; }
.result-box.ok { background: rgba(52, 211, 153, 0.08); border-color: rgba(52,211,153,0.4); }
.result-box.soon { background: rgba(251, 191, 36, 0.08); border-color: rgba(251,191,36,0.4); }
.result-box strong { display: block; margin-bottom: 4px; font-size: 15px; }
.result-box p { margin: 0; font-size: 13.5px; }
.result-icon.ok { color: var(--success); }
.result-icon.soon { color: var(--warning); }
.map-note {
  margin-top: 26px;
  font-size: 12.5px;
  color: var(--text-faint);
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

/* ---- Form ---- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.form-grid .full { grid-column: 1 / -1; }
.radio-row { display: flex; gap: 12px; flex-wrap: wrap; }
.radio-chip {
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 13.5px;
  cursor: pointer;
  transition: all .15s ease;
}
.radio-chip input { display: none; }
.radio-chip.checked { border-color: var(--primary); background: rgba(34,211,238,0.1); color: var(--primary); }
.success-panel {
  display: none;
  text-align: center;
  padding: 60px 20px;
}
.success-panel.show { display: block; }
.success-icon {
  width: 70px; height: 70px;
  border-radius: 50%;
  background: rgba(52,211,153,0.12);
  border: 1px solid rgba(52,211,153,0.4);
  color: var(--success);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
}

/* ---- Contact page ---- */
.contact-info-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 16px;
}
.contact-info-card .card-icon { margin-bottom: 0; }
.contact-info-card h4 { margin-bottom: 4px; font-size: 15px; }
.contact-info-card p { margin: 0; font-size: 14px; }
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16/10;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.4) invert(0.92) contrast(0.85); }

/* ---- Badges / misc ---- */
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.mini-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--text-faint);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 12px;
}

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (max-width: 780px) {
  .cta-band { flex-direction: column; text-align: center; padding: 40px 28px; }
}
