/* ===================== HTTVerse — Global Styles ===================== */
:root {
  --navy-950: #070b14;
  --navy-900: #0b1220;
  --navy-800: #101a2e;
  --navy-700: #16213b;
  --navy-600: #1c2b4a;
  --line: rgba(255, 255, 255, 0.08);
  --blue-500: #1e6ff0;
  --blue-400: #2f8bff;
  --blue-300: #4fa6ff;
  --cyan-300: #38d9ff;
  --text-100: #f5f8ff;
  --text-300: #c4cede;
  --text-500: #8b96ad;
  --text-700: #5d6785;
  --success: #2ecf8e;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-1: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 0 1px rgba(47, 139, 255, 0.15), 0 20px 60px -20px rgba(30, 111, 240, 0.45);
  --maxw: 1200px;
  --gradient-brand: linear-gradient(120deg, #103a7a 0%, #1e6ff0 45%, #38d9ff 100%);
  --gradient-text: linear-gradient(90deg, #4fa6ff, #38d9ff);
  --header-bg: rgba(7, 11, 20, 0.75);
  --tint-soft: rgba(255, 255, 255, 0.03);
  --bg-glow-1: rgba(30, 111, 240, 0.20);
  --bg-glow-2: rgba(56, 217, 255, 0.12);
  --ink-fixed: #0b1220;
  font-size: 16px;
}

:root[data-theme="light"] {
  --navy-950: #eef1f7;
  --navy-900: #f7f9fc;
  --navy-800: #ffffff;
  --navy-700: #eef1f7;
  --navy-600: #e2e7f0;
  --line: rgba(15, 23, 42, 0.10);
  --text-100: #0d1526;
  --text-300: #3a4560;
  --text-500: #667089;
  --text-700: #94a0b8;
  --shadow-1: 0 10px 30px -10px rgba(15, 23, 42, 0.18);
  --shadow-glow: 0 0 0 1px rgba(47, 139, 255, 0.12), 0 20px 60px -20px rgba(30, 111, 240, 0.25);
  --header-bg: rgba(255, 255, 255, 0.78);
  --tint-soft: rgba(15, 23, 42, 0.035);
  --bg-glow-1: rgba(30, 111, 240, 0.10);
  --bg-glow-2: rgba(56, 217, 255, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--navy-950);
  color: var(--text-300);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.25s ease, color 0.25s ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60vw 60vw at 85% -10%, var(--bg-glow-1), transparent 60%),
    radial-gradient(50vw 50vw at -10% 20%, var(--bg-glow-2), transparent 60%);
  pointer-events: none;
  transition: background 0.25s ease;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 { color: var(--text-100); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { font-size: 1.02rem; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-300);
  background: rgba(56, 217, 255, 0.08);
  border: 1px solid rgba(56, 217, 255, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head { max-width: 700px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: 14px; font-size: 1.08rem; color: var(--text-500); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.96rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -12px rgba(30, 111, 240, 0.6); }
.btn-ghost {
  background: var(--tint-soft);
  border-color: var(--line);
  color: var(--text-100);
}
.btn-ghost:hover { border-color: var(--blue-400); background: rgba(47, 139, 255, 0.08); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 0.86rem; }

/* ===================== Header ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  transition: background 0.25s ease, border-color 0.25s ease;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 40px; width: auto; }
.brand-name { font-weight: 800; color: var(--text-100); font-size: 1.15rem; letter-spacing: -0.02em; }
.site-header .brand-name { display: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text-300);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-100); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--gradient-text);
  border-radius: 2px;
}
.dropdown { position: relative; }
.dropdown-panel {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy-800);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 10px;
  min-width: 260px;
  box-shadow: var(--shadow-1);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(8px);
  transition: all 0.2s ease;
  display: grid;
  gap: 2px;
}
.dropdown:hover .dropdown-panel { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown-panel a { padding: 10px 12px; border-radius: 8px; font-size: 0.88rem; }
.dropdown-panel a:hover { background: rgba(47, 139, 255, 0.1); color: var(--text-100); }

.nav-cta { display: flex; align-items: center; gap: 14px; }

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--tint-soft);
  color: var(--text-100);
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.theme-toggle:hover { border-color: var(--blue-400); transform: translateY(-1px); }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text-100); border-radius: 2px; }

/* ===================== Hero ===================== */
.hero {
  padding: 90px 0 70px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { margin-bottom: 20px; }
.hero .lead { font-size: 1.15rem; color: var(--text-500); max-width: 540px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-size: 1.6rem; color: var(--text-100); font-weight: 800; }
.hero-stats div span { font-size: 0.82rem; color: var(--text-700); text-transform: uppercase; letter-spacing: 0.06em; }

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(30, 111, 240, 0.12), rgba(56, 217, 255, 0.04));
  padding: 32px;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(47, 139, 255, 0.5), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.orbit-card {
  background: var(--navy-800);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  width: 100%;
  display: grid;
  gap: 14px;
}
.orbit-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--tint-soft); }
.orbit-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gradient-text); flex-shrink: 0; box-shadow: 0 0 12px rgba(56,217,255,0.7); }
.orbit-row span { color: var(--text-300); font-size: 0.88rem; }

/* ===================== Cards / Grids ===================== */
.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); }

.card {
  background: linear-gradient(180deg, var(--navy-800), var(--navy-900));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}
.card:hover { transform: translateY(-6px); border-color: rgba(47,139,255,0.4); box-shadow: var(--shadow-1); }
.card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient-brand);
  margin-bottom: 18px;
  font-size: 1.3rem;
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.94rem; color: var(--text-500); }
.card ul { margin-top: 14px; display: grid; gap: 8px; }
.card ul li { font-size: 0.86rem; color: var(--text-500); padding-left: 20px; position: relative; }
.card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--cyan-300); font-weight: 700; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 0.86rem; font-weight: 600; color: var(--blue-300); }

/* Badge / tag */
.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(47,139,255,0.12);
  color: var(--blue-300);
  border: 1px solid rgba(47,139,255,0.25);
}

/* Stats strip */
.stats-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 40px 0;
}
.stats-strip .grid-4 { text-align: center; }
.stats-strip strong { display: block; font-size: 2rem; font-weight: 800; color: var(--text-100); }
.stats-strip span { font-size: 0.85rem; color: var(--text-700); }

/* Process / timeline */
.timeline { position: relative; padding-left: 40px; display: grid; gap: 36px; }
.timeline::before { content: ""; position: absolute; left: 13px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--blue-500), var(--cyan-300)); opacity: 0.35; }
.timeline-item { position: relative; }
.timeline-item::before {
  content: attr(data-step);
  position: absolute;
  left: -40px; top: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--navy-800);
  border: 1px solid var(--blue-400);
  color: var(--cyan-300);
  font-size: 0.75rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.timeline-item h4 { color: var(--text-100); margin-bottom: 6px; font-size: 1.02rem; }
.timeline-item p { font-size: 0.9rem; color: var(--text-500); }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { text-align: left; padding: 16px 20px; font-size: 0.9rem; border-bottom: 1px solid var(--line); }
th { color: var(--text-100); background: rgba(255,255,255,0.02); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
td { color: var(--text-500); }
tr:last-child td { border-bottom: none; }

/* Pricing */
.price-card { text-align: center; display: flex; flex-direction: column; }
.price-card .price { font-size: 2.2rem; font-weight: 800; color: var(--text-100); margin: 16px 0 4px; }
.price-card .price span { font-size: 0.9rem; color: var(--text-700); font-weight: 500; }
.price-card.featured { border-color: var(--blue-400); box-shadow: var(--shadow-glow); }
.price-card ul { text-align: left; margin: 20px 0 26px; }
.price-card .btn { margin-top: auto; }

/* CTA band */
.cta-band {
  border-radius: var(--radius-lg);
  background: var(--gradient-brand);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); margin-top: 8px; }
.cta-band .btn-ghost { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.3); color: #fff; }
.cta-band .btn-primary { background: #fff; color: var(--ink-fixed); box-shadow: none; }
.cta-band .btn-primary:hover { transform: translateY(-2px); }

/* Forms */
.form-card {
  background: var(--navy-800);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--text-300); }
.field input, .field select, .field textarea {
  background: var(--navy-900);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text-100);
  font-size: 0.94rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue-400);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.8rem; color: var(--text-700); margin-top: 6px; }
.form-success {
  display: none;
  background: rgba(46, 207, 142, 0.1);
  border: 1px solid rgba(46, 207, 142, 0.35);
  color: var(--success);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-top: 16px;
}

/* Contact info list */
.info-list { display: grid; gap: 18px; }
.info-item { display: flex; gap: 14px; align-items: flex-start; }
.info-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: rgba(47,139,255,0.12);
  border: 1px solid rgba(47,139,255,0.25);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--cyan-300);
  font-size: 1.1rem;
}
.info-item h4 { color: var(--text-100); font-size: 0.95rem; margin-bottom: 3px; }
.info-item p { font-size: 0.87rem; color: var(--text-500); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { font-size: 0.88rem; color: var(--text-700); max-width: 280px; }
.footer-col h4 { color: var(--text-100); font-size: 0.9rem; margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { font-size: 0.86rem; color: var(--text-500); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--cyan-300); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-700);
}
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 34px; height: 34px;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  color: var(--text-500);
  transition: all 0.2s ease;
}
.social-row a:hover { border-color: var(--blue-400); color: var(--cyan-300); }

/* Breadcrumb / page hero */
.page-hero { padding: 56px 0 48px; text-align: center; }
.page-hero .eyebrow { margin: 0 auto 16px; }
.page-hero p { max-width: 600px; margin: 14px auto 0; color: var(--text-500); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Utility */
.mt-0 { margin-top: 0; }
.center { text-align: center; }

/* ===================== Responsive ===================== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--navy-900);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    align-items: flex-start;
  }
  .nav.open .dropdown-panel { position: static; transform: none; opacity: 1; visibility: visible; display: none; box-shadow: none; border: none; padding-left: 12px; }
  .nav.open .dropdown:hover .dropdown-panel,
  .nav.open .dropdown.open .dropdown-panel { display: grid; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-band { padding: 36px; flex-direction: column; text-align: center; }
  .section { padding: 64px 0; }
}
