/* =========================================================
   InsightsKV — Modern one-page site
   Palette: Deep blue + white. Light theme. Mobile-first responsive.
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* brand blues */
  --blue-900: #061a3a;
  --blue-800: #0a2540;
  --blue-700: #0f3a6b;
  --blue-600: #1657b0;
  --blue-500: #1e63ff;
  --blue-400: #4f8cff;
  --blue-300: #8fb6ff;
  --sky: #38bdf8;

  --grad: linear-gradient(120deg, var(--blue-500), var(--sky));
  --grad-soft: linear-gradient(120deg, rgba(30,99,255,.12), rgba(56,189,248,.12));

  --radius-lg: 26px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 4px 16px rgba(10, 37, 64, .06);
  --shadow: 0 18px 50px -20px rgba(10, 37, 64, .28);
  --shadow-blue: 0 18px 40px -16px rgba(30, 99, 255, .45);
  --container: 1200px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --t: .45s var(--ease);

  /* Light palette (single theme) */
  --bg: #ffffff;
  --bg-2: #f3f7fd;
  --bg-3: #eaf1fb;
  --surface: #ffffff;
  --surface-2: #f7faff;
  --ink: #081a33;
  --ink-2: #33475f;
  --muted: #61748d;
  --border: #e3ecf8;
  --border-strong: #d2e0f3;
  --hero-ink: #081a33;
  --nav-bg: rgba(255,255,255,.82);
  --shadow-card: 0 14px 40px -22px rgba(10,37,64,.35);
  --stat-bg: linear-gradient(135deg, var(--blue-800), var(--blue-600));
}

/* ---------- Reset / base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink-2);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background var(--t), color var(--t);
}
h1,h2,h3,h4,h5 { font-family: "Sora", "Inter", sans-serif; color: var(--ink); line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
section { position: relative; }

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

/* ---------- Buttons (one consistent system) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 28px;
  border-radius: 100px; font-weight: 600; font-size: .95rem; line-height: 1;
  border: 1.5px solid transparent; cursor: pointer;
  font-family: inherit; white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: translateY(-1px) scale(.98); }

.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-blue); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 22px 48px -16px rgba(30,99,255,.6); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--bg-3); transform: translateY(-3px); border-color: var(--blue-400); }

.btn-light { background: #fff; color: var(--blue-800); border-color: #fff; }
.btn-light:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.btn-block { width: 100%; }
/* compact variant — same shape & weight, just a touch tighter for dense spots */
.btn-sm { height: 44px; padding: 0 22px; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--grad); z-index: 1000; transition: width .1s linear;
  box-shadow: 0 0 12px rgba(56,189,248,.6);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; inset-inline: 0; z-index: 900;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  background: var(--nav-bg);
  border-bottom: 1px solid transparent;
  transition: background var(--t), border-color var(--t), box-shadow var(--t), padding var(--t);
  padding: 8px 0;
}
.site-header.scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: "Sora"; font-weight: 800; font-size: 1.35rem; color: var(--ink); letter-spacing: -.03em; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--grad); box-shadow: var(--shadow-blue); }
.brand-mark svg { fill: #fff; }
.brand-accent { color: var(--blue-500); }

/* Logo image — full colour on light surfaces, white on the dark footer */
.brand { gap: 0; }
.logo-img { height: 46px; width: auto; display: block; transition: transform .35s var(--ease); }
.brand:hover .logo-img { transform: scale(1.04); }
.site-footer .logo-img { height: 50px; filter: brightness(0) invert(1); }

.main-nav { display: flex; align-items: center; gap: 6px; }
.nav-link { position: relative; padding: 9px 15px; font-weight: 500; font-size: .95rem; color: var(--ink-2); border-radius: 100px; transition: color .25s; }
.nav-link::after { content: ""; position: absolute; left: 15px; right: 15px; bottom: 4px; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); border-radius: 2px; }
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--ink); }
.nav-cta { display: none; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-btn { display: inline-flex; }

.nav-burger { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; border: 1px solid var(--border-strong); background: var(--surface-2); border-radius: 12px; cursor: pointer; align-items: center; justify-content: center; }
.nav-burger span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease), opacity .25s; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 150px 0 60px; position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.blob-1 { width: 540px; height: 540px; background: radial-gradient(circle, var(--blue-400), transparent 70%); top: -160px; right: -120px; animation: float 14s ease-in-out infinite; }
.blob-2 { width: 460px; height: 460px; background: radial-gradient(circle, var(--sky), transparent 70%); bottom: -180px; left: -140px; opacity: .35; animation: float 18s ease-in-out infinite reverse; }
.blob { opacity: .3; }
.grid-overlay { position: absolute; inset: 0; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 54px 54px; mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%); opacity: .5; }
@keyframes float { 0%,100% { transform: translate(0,0) scale(1);} 50% { transform: translate(20px,-30px) scale(1.08);} }

.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px; border-radius: 100px; background: var(--grad-soft); border: 1px solid var(--border-strong); color: var(--ink); font-weight: 600; font-size: .82rem; letter-spacing: .02em; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-500); box-shadow: 0 0 0 4px rgba(30,99,255,.18); animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: .4; } }
.hero-title { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 800; margin: 22px 0 18px; letter-spacing: -.04em; }
.hero-sub { font-size: 1.12rem; color: var(--muted); max-width: 540px; }
.hero-actions { display: flex; gap: 14px; margin: 32px 0; flex-wrap: wrap; }

.hero-trust { display: flex; align-items: center; gap: 26px; padding-top: 18px; border-top: 1px solid var(--border); }
.trust-item strong { display: block; font-family: "Sora"; font-size: 2rem; font-weight: 800; color: var(--ink); line-height: 1; }
.trust-item span { font-size: .82rem; color: var(--muted); }
.trust-divider { width: 1px; height: 38px; background: var(--border-strong); }

.hero-visual { position: relative; }
.hero-img-wrap { position: relative; border-radius: var(--radius-lg); overflow: visible; }
.hero-img-wrap img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; height: 460px; object-fit: cover; border: 1px solid var(--border); }
.hero-img-wrap.img-fallback { aspect-ratio: 4/5; background: var(--grad); border-radius: var(--radius-lg); box-shadow: var(--shadow-blue); }
.hero-img-wrap.img-fallback img { display: none; }
.floating-card { position: absolute; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); padding: 14px 18px; display: flex; align-items: center; gap: 12px; font-size: .9rem; color: var(--ink); }
.card-stat { left: -26px; top: 36px; animation: bob 4s ease-in-out infinite; }
.card-stat .fc-icon { font-size: 1.5rem; }
.card-stat strong { display: block; font-family: "Sora"; font-size: 1.2rem; }
.card-stat small { color: var(--muted); font-size: .78rem; }
.card-pill { right: -20px; bottom: 34px; font-weight: 500; animation: bob 5s ease-in-out infinite reverse; }
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.5); animation: pulse 1.8s infinite; }
@keyframes bob { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-12px);} }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.5);} 70% { box-shadow: 0 0 0 10px rgba(34,197,94,0);} 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0);} }

.hero-marquee { margin-top: 56px; overflow: hidden; border-block: 1px solid var(--border); padding: 16px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 30px; white-space: nowrap; width: max-content; animation: marquee 28s linear infinite; }
.marquee-track span { font-family: "Sora"; font-weight: 600; font-size: 1.05rem; color: var(--muted); }
.marquee-track span:nth-child(even) { color: var(--blue-500); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Section heads ---------- */
.section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 54px; }
.section-head.center { margin-inline: auto; text-align: center; }
.sub-title { display: inline-block; font-weight: 700; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-500); margin-bottom: 14px; position: relative; padding-left: 30px; }
.sub-title::before { content: ""; position: absolute; left: 0; top: 50%; width: 22px; height: 2px; background: var(--grad); }
.section-head.center .sub-title { padding-left: 0; }
.section-head.center .sub-title::before { display: none; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.section-head p { color: var(--muted); margin-top: 16px; font-size: 1.05rem; }

/* ---------- Services ---------- */
.services { background: var(--bg-2); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s; position: relative; overflow: hidden;
}
.service-card::before { content: ""; position: absolute; inset: 0; background: var(--grad-soft); opacity: 0; transition: opacity .4s; }
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-card); border-color: var(--blue-400); }
.service-card:hover::before { opacity: 1; }
.service-card > * { position: relative; z-index: 1; }
.svc-icon { width: 62px; height: 62px; border-radius: 16px; display: grid; place-items: center; background: var(--grad); margin-bottom: 20px; transition: transform .45s var(--ease); }
.svc-icon svg { fill: #fff; }
.service-card:hover .svc-icon { transform: rotate(-8deg) scale(1.08); }
.service-card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: .96rem; }
.learn { display: inline-flex; gap: 7px; margin-top: 18px; font-weight: 600; color: var(--blue-500); font-size: .92rem; }
.learn span { transition: transform .3s var(--ease); }
.learn:hover span { transform: translateX(5px); }

/* ---------- Quant ---------- */
.quant-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.quant-card { padding: 30px 26px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); transition: transform .4s var(--ease), background .4s, color .4s; }
.quant-card:hover { transform: translateY(-6px); background: var(--stat-bg); color: #fff; }
.quant-card:hover h4 { color: #fff; }
.quant-card:hover p { color: rgba(255,255,255,.82); }
.quant-no { font-family: "Sora"; font-weight: 800; font-size: 1.7rem; color: var(--blue-300); display: block; margin-bottom: 14px; }
.quant-card:hover .quant-no { color: var(--sky); }
.quant-card h4 { font-size: 1.1rem; margin-bottom: 8px; transition: color .4s; }
.quant-card p { color: var(--muted); font-size: .9rem; transition: color .4s; }

/* ---------- About ---------- */
.about { background: var(--bg-2); }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.about-media { position: relative; }
.about-img-main { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
.about-img-main img { width: 100%; height: 420px; object-fit: cover; }
.about-img-sub { position: absolute; right: -24px; bottom: -34px; width: 200px; border-radius: var(--radius); overflow: hidden; border: 5px solid var(--bg-2); box-shadow: var(--shadow); }
.about-img-sub img { height: 150px; width: 100%; object-fit: cover; }
.img-fallback { background: var(--grad); }
.img-fallback img { opacity: 0; }
.about-badge { position: absolute; left: -22px; top: 30px; background: var(--stat-bg); color: #fff; padding: 16px 22px; border-radius: 16px; box-shadow: var(--shadow-blue); text-align: center; }
.about-badge strong { font-family: "Sora"; font-size: 1.9rem; display: block; }
.about-badge span { font-size: .76rem; opacity: .85; }
.about-content .lead { color: var(--ink-2); font-size: 1.05rem; margin: 16px 0 26px; }
.about-features { display: grid; gap: 16px; margin-bottom: 28px; }
.about-feature { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); transition: transform .3s var(--ease), border-color .3s; }
.about-feature:hover { transform: translateX(6px); border-color: var(--blue-400); }
.af-ic { font-size: 1.5rem; }
.about-feature h4 { font-size: 1.02rem; margin-bottom: 3px; }
.about-feature p { font-size: .9rem; color: var(--muted); }
.about-accordion details { border-top: 1px solid var(--border); }
.about-accordion summary { cursor: pointer; font-family: "Sora"; font-weight: 600; color: var(--ink); padding: 16px 0; list-style: none; position: relative; padding-right: 30px; }
.about-accordion summary::-webkit-details-marker { display: none; }
.about-accordion summary::after { content: "+"; position: absolute; right: 0; top: 13px; font-size: 1.3rem; color: var(--blue-500); transition: transform .3s; }
.about-accordion details[open] summary::after { transform: rotate(45deg); }
.about-accordion p { color: var(--muted); font-size: .95rem; padding-bottom: 16px; }

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.why-card { padding: 36px 30px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); position: relative; overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s; }
.why-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-card); }
.why-num { font-family: "Sora"; font-weight: 800; font-size: 3rem; color: transparent; -webkit-text-stroke: 1.5px var(--blue-400); opacity: .4; margin-bottom: 12px; }
.why-card:hover .why-num { opacity: .8; }
.why-card h4 { font-size: 1.15rem; margin-bottom: 10px; }
.why-card p { color: var(--muted); font-size: .95rem; }

/* ---------- Stats ---------- */
.stats-wrap { background: var(--stat-bg); border-radius: var(--radius-lg); padding: 56px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.stats-wrap::before { content: ""; position: absolute; right: -80px; top: -80px; width: 360px; height: 360px; background: radial-gradient(circle, rgba(56,189,248,.4), transparent 70%); }
.stats-intro { position: relative; }
.stats-intro h2 { color: #fff; font-size: 2rem; }
.stats-intro h2 .gradient-text { background: linear-gradient(120deg, #8fd0ff, #fff); -webkit-background-clip: text; background-clip: text; }
.stats-intro p { color: rgba(255,255,255,.78); margin: 12px 0 24px; }
.stats-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 26px; position: relative; }
.stat { padding: 22px 24px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); backdrop-filter: blur(6px); transition: transform .35s var(--ease), background .35s; }
.stat:hover { transform: translateY(-5px); background: rgba(255,255,255,.14); }
.stat strong { font-family: "Sora"; font-weight: 800; font-size: 2.6rem; color: #fff; line-height: 1; }
.stat span { display: block; color: rgba(255,255,255,.75); margin-top: 6px; font-size: .92rem; }

/* ---------- Process ---------- */
.process-line { display: grid; grid-template-columns: repeat(5,1fr); gap: 18px; position: relative; }
.process-line::before { content: ""; position: absolute; top: 28px; left: 6%; right: 6%; height: 2px; background: linear-gradient(90deg, var(--blue-400), var(--sky)); opacity: .35; }
.process-step { position: relative; padding-top: 0; }
.ps-no { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--blue-400); color: var(--blue-500); font-family: "Sora"; font-weight: 800; font-size: 1.1rem; margin-bottom: 20px; position: relative; z-index: 1; transition: transform .4s var(--ease), background .4s, color .4s; }
.process-step:hover .ps-no { background: var(--grad); color: #fff; transform: scale(1.1); border-color: transparent; }
.process-step h4 { font-size: 1.05rem; margin-bottom: 8px; }
.process-step p { color: var(--muted); font-size: .9rem; }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--bg-2); }
.tsm-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.tsm-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; transition: transform .4s var(--ease), box-shadow .4s; position: relative; }
.tsm-card::before { content: "\201C"; position: absolute; top: 14px; right: 26px; font-family: Georgia, serif; font-size: 5rem; color: var(--blue-400); opacity: .14; line-height: 1; }
.tsm-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.tsm-stars { color: #fbbf24; letter-spacing: 3px; margin-bottom: 14px; font-size: 1rem; }
.tsm-card blockquote { color: var(--ink-2); font-size: 1.02rem; line-height: 1.7; }
.tsm-card figcaption { display: flex; align-items: center; gap: 14px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.tsm-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-family: "Sora"; font-weight: 700; font-size: .95rem; }
.tsm-card figcaption strong { display: block; color: var(--ink); font-family: "Sora"; }
.tsm-card figcaption small { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 50px; align-items: start; }
.faq-head { position: sticky; top: 110px; }
.faq-head h2 { font-size: 2rem; margin-top: 12px; }
.faq-head p { color: var(--muted); margin: 16px 0 24px; }
.faq-list { display: grid; gap: 14px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.faq-item[open] { border-color: var(--blue-400); box-shadow: var(--shadow-card); }
.faq-item summary { cursor: pointer; list-style: none; padding: 22px 24px; font-family: "Sora"; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 1.02rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-ic { flex: 0 0 24px; width: 24px; height: 24px; position: relative; }
.faq-ic::before, .faq-ic::after { content: ""; position: absolute; background: var(--blue-500); border-radius: 2px; transition: transform .3s var(--ease); }
.faq-ic::before { width: 14px; height: 2px; top: 11px; left: 5px; }
.faq-ic::after { width: 2px; height: 14px; top: 5px; left: 11px; }
.faq-item[open] .faq-ic::after { transform: scaleY(0); }
.faq-body { padding: 0 24px 22px; }
.faq-body p { color: var(--muted); font-size: .96rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; }
.contact-info { display: grid; gap: 22px; align-content: start; }
.ci-item { display: flex; gap: 16px; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: transform .3s var(--ease), border-color .3s; }
.ci-item:hover { transform: translateY(-4px); border-color: var(--blue-400); }
.ci-ic { font-size: 1.5rem; flex: 0 0 auto; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--grad-soft); }
.ci-item h4 { font-size: 1.02rem; margin-bottom: 6px; }
.ci-item a { display: block; color: var(--blue-500); font-weight: 500; font-size: .94rem; }
.ci-item a:hover { text-decoration: underline; }
.ci-item p { color: var(--muted); font-size: .92rem; }

.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-card); }
.field { position: relative; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field input, .field textarea {
  width: 100%; padding: 18px 16px 8px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--ink); font-family: inherit; font-size: .98rem; resize: vertical; transition: border-color .3s, box-shadow .3s;
}
.field textarea { padding-top: 22px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(30,99,255,.14); }
.field label { position: absolute; left: 16px; top: 15px; color: var(--muted); font-size: .98rem; pointer-events: none; transition: all .22s var(--ease); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  top: 6px; font-size: .72rem; color: var(--blue-500); font-weight: 600;
}
.form-note { margin-top: 14px; font-size: .9rem; text-align: center; min-height: 20px; }
.form-note.ok { color: #16a34a; }
.form-note.err { color: #dc2626; }

/* ---------- Footer ---------- */
.site-footer { background: linear-gradient(180deg, #081a33, #0a2540); color: #c9d8ef; padding-top: 72px; margin-top: 30px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .brand { color: #fff; margin-bottom: 18px; }
.footer-brand .brand-text { color: #fff; }
.footer-brand p { color: #9fb4d4; font-size: .94rem; max-width: 320px; margin-bottom: 20px; }
.social { display: flex; gap: 10px; }
.social a { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); transition: transform .3s var(--ease), background .3s; }
.social a svg { fill: #fff; stroke: #fff; stroke-width: 0; }
.social a[aria-label="X"] svg { stroke-width: 2; fill: none; }
.social a:hover { transform: translateY(-4px); background: var(--grad); border-color: transparent; }
.footer-col h5 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.footer-col ul { list-style: none; display: grid; gap: 11px; }
.footer-col a { color: #9fb4d4; font-size: .93rem; transition: color .25s, padding-left .25s; }
.footer-col a:hover { color: #fff; padding-left: 5px; }
.footer-cta .footer-phone { display: block; color: #fff; font-family: "Sora"; font-size: 1.3rem; font-weight: 700; margin: 6px 0 16px; }
.footer-bottom { display: flex; justify-content: space-between; padding: 24px; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { color: #8198b9; font-size: .88rem; }

/* ---------- Back to top ---------- */
.back-to-top { position: fixed; right: 26px; bottom: 26px; width: 48px; height: 48px; border-radius: 14px; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-blue); opacity: 0; visibility: hidden; transform: translateY(16px); transition: all .4s var(--ease); z-index: 800; }
.back-to-top svg { stroke: #fff; fill: none; }
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); }

/* ---------- Mobile nav drawer ---------- */
.nav-overlay { position: fixed; inset: 0; background: rgba(5,13,31,.5); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity .3s; z-index: 880; }
.nav-overlay.show { opacity: 1; visibility: visible; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.services-grid .reveal.in, .why-grid .reveal.in, .quant-grid .reveal.in, .tsm-grid .reveal.in, .process-line .reveal.in { transition-delay: var(--d, 0s); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   RESPONSIVE — mobile-first polish (every section audited)
   Breakpoints: 1024 (tablet) · 860 (nav drawer) · 680 (stack) · 480 (phone) · 380 (small phone)
   ========================================================= */

/* ---- Tablet ---- */
@media (max-width: 1024px) {
  .hero { padding: 140px 0 50px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-content { max-width: 640px; }
  .hero-visual { max-width: 460px; width: 100%; margin-inline: auto; }
  .services-grid, .why-grid, .quant-grid { grid-template-columns: repeat(2,1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 80px; }
  .stats-wrap { grid-template-columns: 1fr; gap: 30px; padding: 42px; }
  .process-line { grid-template-columns: repeat(3,1fr); gap: 34px 20px; }
  .process-line::before { display: none; }
  .faq-grid, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .faq-head { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---- Nav collapses to a drawer ---- */
@media (max-width: 860px) {
  .main-nav { position: fixed; top: 0; right: 0; height: 100dvh; width: min(82vw, 330px); flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 6px; background: var(--surface); padding: 96px 24px 28px; box-shadow: -20px 0 60px rgba(0,0,0,.2); transform: translateX(110%); transition: transform .4s var(--ease); z-index: 890; border-left: 1px solid var(--border); overflow-y: auto; }
  .main-nav.open { transform: translateX(0); }
  .main-nav .nav-link { width: 100%; font-size: 1.05rem; padding: 14px 12px; }
  .main-nav .nav-link::after { display: none; }
  .nav-cta { display: inline-flex !important; background: var(--grad); color: #fff !important; margin-top: 14px; justify-content: center; }
  .nav-burger { display: flex; }
  .header-btn { display: none; }
  .section { padding: 84px 0; }
  .hero { padding: 122px 0 44px; }
}

/* ---- Everything stacks to a single column ---- */
@media (max-width: 680px) {
  .section { padding: 66px 0; }
  .section-head { margin-bottom: 38px; }
  .services-grid, .why-grid, .quant-grid, .tsm-grid, .process-line, .field-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand { grid-column: auto; }
  .footer-brand p { max-width: 100%; }
  .hero-visual { max-width: 520px; }
  .hero-img-wrap img { height: 320px; }
  .hero-trust { flex-wrap: wrap; gap: 14px 22px; }
  .trust-divider { display: none; }
  .about-img-main img { height: 300px; }
  .about-img-sub { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stats-intro h2 { font-size: 1.7rem; }
  .contact-form { padding: 26px; }
  .stats-wrap { padding: 30px; }
}

/* ---- Phones ---- */
@media (max-width: 480px) {
  .container { padding-inline: 18px; }
  .section { padding: 52px 0; }
  .hero { padding: 102px 0 30px; }
  html { scroll-padding-top: 76px; }
  .logo-img { height: 38px; }
  .header-inner { gap: 12px; }

  .eyebrow { font-size: .76rem; padding: 7px 13px; }
  .hero-title { font-size: 2.25rem; margin: 18px 0 14px; }
  .hero-sub { font-size: 1rem; }
  .hero-actions { gap: 10px; margin: 26px 0; }
  .hero-actions .btn { width: 100%; }
  .hero-img-wrap img { height: 250px; }
  .card-stat { left: 8px; top: 10px; padding: 9px 12px; transform: scale(.88); transform-origin: left top; }
  .card-stat .fc-icon { font-size: 1.2rem; }
  .card-pill { right: 8px; bottom: 10px; font-size: .76rem; padding: 9px 12px; }
  .hero-trust { gap: 12px 18px; }
  .trust-item strong { font-size: 1.65rem; }
  .hero-marquee { margin-top: 40px; }
  .marquee-track span { font-size: .95rem; }

  .section-head h2 { font-size: 1.7rem; }
  .section-head p { font-size: .98rem; }
  .service-card, .why-card { padding: 26px 22px; }
  .quant-card { padding: 26px 22px; }
  .tsm-card { padding: 24px; }

  .stats-wrap { padding: 26px 20px; }
  .stats-grid { grid-template-columns: 1fr; gap: 14px; }
  .stat { padding: 18px 20px; }
  .stat strong { font-size: 2.2rem; }
  .stats-intro h2 { font-size: 1.55rem; }

  .about-content .lead { font-size: 1rem; }
  .about-img-main img { height: 250px; }
  .about-badge { left: 10px; top: 12px; padding: 11px 15px; }
  .about-badge strong { font-size: 1.5rem; }
  .about-feature { padding: 14px; }

  .ci-item { padding: 16px; gap: 13px; }
  .ci-ic { width: 42px; height: 42px; font-size: 1.3rem; }
  .contact-form { padding: 20px; }

  .footer-bottom { flex-direction: column; text-align: center; padding: 22px 18px; }
  .back-to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
}

/* ---- Small phones ---- */
@media (max-width: 380px) {
  .hero-title { font-size: 2rem; }
  .section-head h2 { font-size: 1.55rem; }
  .brand .logo-img { height: 34px; }
  .btn { padding: 0 22px; font-size: .9rem; }
  .card-pill { display: none; }
}
