/* ===== Telvex — global styles ===== */
:root {
  --bg: #040b1a;
  --bg-2: #071330;
  --surface: #0b1b3a;
  --surface-2: #10244a;
  --line: rgba(120, 190, 255, 0.14);
  --text: #e8f1ff;
  --muted: #9fb3d1;
  --cyan: #22d3ee;
  --blue: #1e88ff;
  --grad: linear-gradient(90deg, #22d3ee 0%, #1e88ff 100%);
  --accent: #22d3ee;
  --header-bg: rgba(4, 11, 26, .78);
  --stat-bg: rgba(7, 19, 48, .85);
  --card-end: rgba(11, 27, 58, .6);
  --card-shadow: none;
  --hero-base: #061230;
  --glow-1: rgba(30, 136, 255, .28);
  --glow-2: rgba(34, 211, 238, .16);
  --shadow: rgba(0, 0, 0, .45);
  --radius: 16px;
  --max: 1180px;
  --head: "Montserrat", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  color-scheme: dark;
}

/* ===== Light theme ===== */
:root[data-theme="light"] {
  --bg: #f6f9fe;
  --bg-2: #edf3fb;
  --surface: #ffffff;
  --surface-2: #f2f7ff;
  --line: rgba(16, 56, 120, 0.12);
  --text: #0b1d3a;
  --muted: #4b5f7f;
  --grad: linear-gradient(90deg, #06a6cc 0%, #1e6fff 100%);
  --accent: #0784a8;
  --header-bg: rgba(255, 255, 255, .85);
  --stat-bg: #ffffff;
  --card-end: #ffffff;
  --card-shadow: 0 4px 20px rgba(16, 56, 120, .06);
  --hero-base: #e6f0fd;
  --glow-1: rgba(30, 136, 255, .16);
  --glow-2: rgba(34, 211, 238, .18);
  --shadow: rgba(16, 56, 120, .14);
  color-scheme: light;
}
/* footer and CTA band stay dark navy in both themes */
:root[data-theme="light"] .site-footer,
:root[data-theme="light"] .cta {
  --surface: #0b1b3a;
  --line: rgba(120, 190, 255, 0.14);
  --text: #e8f1ff;
  --muted: #9fb3d1;
  --grad: linear-gradient(90deg, #22d3ee 0%, #1e88ff 100%);
  --accent: #22d3ee;
}
.site-footer, .cta { color: var(--text); }
.logo-light { display: none; }
:root[data-theme="light"] .nav-logo .logo-dark { display: none; }
:root[data-theme="light"] .nav-logo .logo-light { display: block; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--muted); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow {
  display: inline-block; font-family: var(--head); font-size: .78rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-family: var(--head); font-weight: 600; font-size: .95rem;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.btn-primary { background: var(--grad); color: #03122b; box-shadow: 0 8px 30px rgba(34, 211, 238, .25); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(34, 211, 238, .4); }
.btn-ghost { border: 1px solid rgba(34, 211, 238, .45); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); background: rgba(34, 211, 238, .08); }
.btn svg { width: 16px; height: 16px; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav-logo img { height: 46px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav-links > li { position: relative; }
.nav-links a { display: block; padding: 10px 16px; border-radius: 10px; font-weight: 500; color: var(--muted); transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active { background: rgba(34, 211, 238, .08); }
.dropdown {
  position: absolute; top: 100%; right: 0; min-width: 230px; padding: 8px; list-style: none; margin: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 20px 50px var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { padding: 9px 12px; font-size: .93rem; }
.dropdown a:hover { background: rgba(34, 211, 238, .08); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); padding: 8px; cursor: pointer; }
.nav-toggle svg { width: 28px; height: 28px; }
.nav-actions { display: flex; align-items: center; gap: 6px; }
.theme-toggle {
  display: grid; place-items: center; width: 40px; height: 40px; margin-left: 8px; border-radius: 50%;
  background: none; border: 1px solid var(--line); color: var(--text); cursor: pointer; transition: border-color .2s;
}
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .sun { display: block; }
:root[data-theme="light"] .theme-toggle .moon { display: none; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 20px 20px; background: var(--bg-2); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: none; padding: 0 0 0 14px; }
  .nav-logo img { height: 38px; }
}

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: 110px 0 120px; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 70% at 85% 30%, var(--glow-1), transparent 70%),
    radial-gradient(45% 60% at 10% 90%, var(--glow-2), transparent 70%),
    linear-gradient(180deg, var(--hero-base) 0%, var(--bg) 100%);
}
.hero-bg svg { position: absolute; width: 100%; height: 100%; }
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero p.lead { font-size: 1.15rem; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-globe { position: relative; aspect-ratio: 1; max-width: 440px; justify-self: end; width: 100%; }
.hero-globe canvas { width: 100%; height: 100%; }
.globe-t {
  position: absolute; width: 34%; height: auto; left: 69%; top: 50%; transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 28px rgba(34, 211, 238, .45));
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translate(-50%, calc(-50% - 10px)); } }
@media (prefers-reduced-motion: reduce) { .globe-t { animation: none; } }
@media (max-width: 860px) {
  .hero { padding: 70px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-globe { max-width: 300px; justify-self: center; order: -1; }
}

/* Page hero (inner pages) */
.page-hero { position: relative; overflow: hidden; padding: 90px 0 70px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); max-width: 820px; }
.page-hero p.lead { font-size: 1.12rem; max-width: 680px; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a:hover { color: var(--accent); }

/* ===== Stats ===== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 60px; }
.stat { background: var(--stat-bg); padding: 26px 24px; }
.stat strong { display: block; font-family: var(--head); font-size: 1.9rem; font-weight: 700; }
.stat span { color: var(--muted); font-size: .92rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ===== Sections ===== */
section.block { padding: 96px 0; }
section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 44px; flex-wrap: wrap; }
.section-head p { max-width: 560px; margin: 0; }
.center { text-align: center; }
.center .section-head { justify-content: center; }

/* ===== Cards ===== */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1020px) { .cards, .cards.three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards, .cards.three, .cards.two { grid-template-columns: 1fr; } }

.card {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--surface) 0%, var(--card-end) 100%);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--card-shadow);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
a.card:hover { transform: translateY(-4px); border-color: rgba(34, 211, 238, .5); box-shadow: 0 18px 50px rgba(30, 136, 255, .15); }
.card p { font-size: .95rem; }
.card .more { margin-top: auto; padding-top: 10px; color: var(--accent); font-family: var(--head); font-weight: 600; font-size: .9rem; }
.icon {
  width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 20px;
  background: rgba(34, 211, 238, .1); border: 1px solid rgba(34, 211, 238, .25); color: var(--accent);
}
.icon svg { width: 24px; height: 24px; }

/* Feature list */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 32px; color: var(--text); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(34, 211, 238, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322d3ee' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--card-shadow); }

/* Region chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(34, 211, 238, .06); font-size: .9rem; }

/* CTA band */
.cta {
  position: relative; overflow: hidden; border-radius: 22px; padding: 56px 48px;
  background: radial-gradient(70% 120% at 100% 0%, rgba(30, 136, 255, .35), transparent 60%), var(--surface);
  border: 1px solid rgba(34, 211, 238, .25);
  display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap;
}
.cta h2 { margin-bottom: .3em; }
.cta p { margin: 0; }
@media (max-width: 620px) { .cta { padding: 38px 24px; } }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 28px; background: #030817; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-grid h4 { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a, .footer-grid li { color: var(--muted); font-size: .95rem; }
.footer-grid a:hover { color: var(--text); }
.footer-logo img { height: 50px; width: auto; margin-bottom: 16px; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .88rem; color: var(--muted); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
