/* ===========================================================
   TVP ThinkVisionPro — Design System
   =========================================================== */

:root {
  --bg: #060911;
  --bg-soft: #0a0e18;
  --surface: #0d1420;
  --surface-2: #121b2c;
  --border: #1e2c42;
  --border-soft: #16202f;

  --blue: #2e8bff;
  --cyan: #22d3ee;
  --gold: #f0b429;

  --text: #eaf1fb;
  --muted: #90a0bd;
  --muted-2: #5b6c8a;

  --font-display: 'Sora', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --container: 1160px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* ambient grid + glow, matches product family */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(46,139,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46,139,255,0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  z-index: 0;
}

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

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }

::selection { background: var(--cyan); color: #05070d; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}

h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.08; }
h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15; }
h3 { font-size: 20px; line-height: 1.3; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: '';
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

p.lead { font-size: 17px; color: var(--muted); max-width: 60ch; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 14.5px;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #05070d;
  box-shadow: 0 8px 24px rgba(46,139,255,0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(46,139,255,0.35); }
.btn-ghost {
  background: transparent; color: var(--text); border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6,9,17,0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px;
  max-width: var(--container); margin: 0 auto;
}
.nav-brand { display: flex; align-items: center; gap: 11px; }
.nav-brand img { width: 34px; height: 34px; object-fit: contain; }
.nav-brand .brand-text { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: #fff; line-height: 1.1; }
.nav-brand .brand-text span { display: block; font-family: var(--font-mono); font-size: 10px; color: var(--muted-2); letter-spacing: 0.08em; font-weight: 400; margin-top: 2px; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--muted);
  padding: 9px 16px; border-radius: 999px; transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a.active { color: #05070d; background: linear-gradient(135deg, var(--blue), var(--cyan)); }

.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; color: var(--text); cursor: pointer; }

@media (max-width: 880px) {
  .nav-links { position: fixed; top: 68px; left: 0; right: 0; background: var(--bg-soft); border-bottom: 1px solid var(--border); flex-direction: column; align-items: stretch; padding: 10px 20px 20px; gap: 4px; transform: translateY(-130%); transition: transform 0.25s ease; }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 12px 14px; }
  .nav-toggle { display: block; }
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border-soft);
  margin-top: 120px;
  padding: 56px 0 28px;
  background: var(--bg-soft);
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { width: 32px; height: 32px; }
.footer-brand span { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 15px; }
.footer-col h4 { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 14px; font-weight: 600; }
.footer-col a, .footer-col p { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 10px; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border-soft); font-size: 12.5px; color: var(--muted-2); flex-wrap: wrap; gap: 10px; }

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Section utilities ---------- */

.section { padding: 96px 0; position: relative; }
.section-tight { padding: 64px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 { margin-bottom: 14px; }

.divider-line { height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); }

/* ---------- Cards ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: rgba(34,211,238,0.35); transform: translateY(-3px); }

.tag {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border);
  color: var(--muted); display: inline-block;
}

/* ---------- Stats strip ---------- */

.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; margin-top: 56px;
}
.stat-strip .stat { background: var(--surface); padding: 22px 24px; }
.stat .stat-num { font-family: var(--font-mono); font-size: 22px; font-weight: 700; color: var(--cyan); }
.stat .stat-label { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

@media (max-width: 720px) {
  .stat-strip { grid-template-columns: 1fr 1fr; }
}

/* ---------- Fade-up reveal ---------- */

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

/* ---------- Gradient mesh (ambient, dynamic backdrop) ---------- */

.mesh-blob {
  position: absolute; border-radius: 50%; filter: blur(90px);
  pointer-events: none; z-index: 0; opacity: 0.35;
  animation: meshFloat 14s ease-in-out infinite alternate;
}
@keyframes meshFloat {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(24px,-18px) scale(1.08); }
}

/* ---------- Glass card (elevated, for feature/bento surfaces) ---------- */

.glass {
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.glass::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(34,211,238,0.10), transparent 60%);
  opacity: 0; transition: opacity 0.3s ease;
  pointer-events: none;
}
.glass:hover::before { opacity: 1; }

/* ---------- Bento grid ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.bento-item { grid-column: span 3; }
.bento-item.wide { grid-column: span 4; }
.bento-item.narrow { grid-column: span 2; }
.bento-item.full { grid-column: span 6; }
@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr; }
  .bento-item, .bento-item.wide, .bento-item.narrow, .bento-item.full { grid-column: span 1; }
}

/* ---------- Micro-interaction: magnetic hover tilt ---------- */

.tilt { transition: transform 0.25s ease, border-color 0.25s ease; will-change: transform; }

/* ---------- Marquee trust strip ---------- */

.trust-strip {
  overflow: hidden; white-space: nowrap;
  border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft);
  padding: 20px 0; background: var(--bg-soft);
}
.trust-strip .track {
  display: inline-flex; gap: 56px; animation: trustScroll 26s linear infinite;
}
.trust-strip .track span {
  font-family: var(--font-mono); font-size: 13px; color: var(--muted-2);
  letter-spacing: 0.06em; text-transform: uppercase;
}
@keyframes trustScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Animated gradient underline (for active/hover states) ---------- */

.underline-fx { position: relative; }
.underline-fx::after {
  content: ''; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transition: width 0.3s ease;
}
.underline-fx:hover::after { width: 100%; }

/* ---------- Progress / status pill (dynamic feel) ---------- */

.pill-row { display: flex; gap: 10px; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px;
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }

/* ---------- Page-load progress bar ---------- */

#pageLoadBar {
  position: fixed; top: 0; left: 0; height: 2.5px; width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  z-index: 9999; box-shadow: 0 0 12px rgba(34,211,238,0.6);
  transition: width 0.25s ease, opacity 0.4s ease;
}

/* ---------- Animated stat counters ---------- */

.counter { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---------- FAQ accordion ---------- */

.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); margin-bottom: 12px; overflow: hidden;
}
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; cursor: pointer; font-family: var(--font-display);
  font-weight: 600; font-size: 15px; color: #fff; user-select: none;
}
.faq-q .faq-icon {
  font-family: var(--font-mono); font-size: 18px; color: var(--cyan);
  transition: transform 0.3s ease; flex-shrink: 0;
}
.faq-item.open .faq-q .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height 0.35s ease;
  padding: 0 20px; color: var(--muted); font-size: 14px; line-height: 1.7;
}
.faq-item.open .faq-a { padding: 0 20px 20px; }

/* ---------- Process / how-we-work steps ---------- */

.process-line {
  position: relative; display: flex; flex-direction: column; gap: 0;
}
.process-step {
  display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding-bottom: 40px; position: relative;
}
.process-step:last-child { padding-bottom: 0; }
.process-step::before {
  content: ''; position: absolute; left: 27px; top: 56px; bottom: 0; width: 1px;
  background: linear-gradient(var(--border), transparent);
}
.process-step:last-child::before { display: none; }
.process-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 17px; color: var(--cyan);
  flex-shrink: 0; position: relative; z-index: 1;
}
.process-step h3 { margin-bottom: 6px; }
.process-step p { color: var(--muted); font-size: 14px; max-width: 56ch; }

/* ---------- Custom link underline for inline text links ---------- */

.text-link { color: var(--cyan); text-decoration: none; border-bottom: 1px solid rgba(34,211,238,0.35); transition: border-color 0.2s; }
.text-link:hover { border-color: var(--cyan); }
