/* ==========================================================================
   TecSolus — site styles
   Brand: blue #4562F9 (primary), coral #F95B4C (secondary), sampled from logo
   Themes: light (default) and dark, via html[data-theme] set in <head>.
   ========================================================================== */

:root {
  /* brand */
  --blue: #4562F9;
  --blue-600: #3450E6;
  --coral: #F95B4C;
  --coral-600: #E8483A;
  --grad: linear-gradient(100deg, var(--blue) 0%, #8B5CF6 50%, var(--coral) 100%);

  /* theme: light */
  --bg: #FFFFFF;
  --bg-soft: #F7F8FC;
  --surface: #FFFFFF;
  --surface-2: #F2F4FA;
  --ink: #0B0D1A;
  --ink-2: #2A2E45;
  --muted: #5D6382;
  --line: #E6E8F0;
  --line-strong: #D5D9EA;
  --accent-text: #3450E6;
  --blue-soft: #EEF1FF;
  --coral-soft: #FFF0EE;
  --header-bg: rgba(255, 255, 255, .8);
  --hero-bg: #F5F6FF;
  --hero-grid: rgba(11, 13, 26, .055);
  --pill-bg: rgba(255, 255, 255, .7);
  --glow-opacity: .22;
  --footer-bg: #F7F8FC;
  --marquee-filter: grayscale(1) opacity(.55);
  --shadow: 0 1px 2px rgba(11, 13, 26, .04), 0 8px 24px -8px rgba(11, 13, 26, .10);
  --shadow-lg: 0 2px 4px rgba(11, 13, 26, .04), 0 24px 48px -16px rgba(11, 13, 26, .18);
  color-scheme: light;

  /* always-dark surfaces (process band, CTA, product mockup) */
  --night: #06081A;
  --night-line: rgba(255, 255, 255, .09);
  --night-text: #C9CDE8;
  --night-muted: #8A90B4;

  --radius: 16px;
  --radius-sm: 10px;
  --container: 1200px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Plus Jakarta Sans", var(--font);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

:root[data-theme="dark"] {
  --bg: #070919;
  --bg-soft: #0B0E24;
  --surface: #10142F;
  --surface-2: #181D42;
  --ink: #F3F4FB;
  --ink-2: #D3D6EC;
  --muted: #9AA0C3;
  --line: #1E2348;
  --line-strong: #2D3366;
  --accent-text: #8FA2FF;
  --blue-soft: rgba(69, 98, 249, .16);
  --coral-soft: rgba(249, 91, 76, .14);
  --header-bg: rgba(7, 9, 25, .72);
  --hero-bg: #06081A;
  --hero-grid: rgba(255, 255, 255, .045);
  --pill-bg: rgba(255, 255, 255, .06);
  --glow-opacity: .5;
  --footer-bg: #04061A;
  --marquee-filter: grayscale(1) brightness(1.8) contrast(.7) opacity(.7);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -8px rgba(0, 0, 0, .5);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 24px 48px -16px rgba(0, 0, 0, .6);
  color-scheme: dark;
}
/* No-JS fallback: follow the OS setting */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #070919; --bg-soft: #0B0E24; --surface: #10142F; --surface-2: #181D42;
    --ink: #F3F4FB; --ink-2: #D3D6EC; --muted: #9AA0C3; --line: #1E2348; --line-strong: #2D3366;
    --accent-text: #8FA2FF; --blue-soft: rgba(69, 98, 249, .16); --coral-soft: rgba(249, 91, 76, .14);
    --header-bg: rgba(7, 9, 25, .72); --hero-bg: #06081A; --hero-grid: rgba(255, 255, 255, .045);
    --pill-bg: rgba(255, 255, 255, .06); --glow-opacity: .5; --footer-bg: #04061A;
    --marquee-filter: grayscale(1) brightness(1.8) contrast(.7) opacity(.7);
    color-scheme: dark;
  }
  :root:not([data-theme]) .logo-light { display: none; }
  :root:not([data-theme]) .logo-dark { display: block; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .25s ease, color .25s ease;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
@media (max-width: 480px) { .container { padding: 0 18px; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.skip-link:focus { position: fixed; top: 12px; left: 12px; width: auto; height: auto; clip: auto; margin: 0; padding: 10px 16px; background: var(--blue); color: #fff; border-radius: 8px; z-index: 100; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Logo per theme */
.logo-dark { display: none; }
[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px -8px rgba(69, 98, 249, .7), inset 0 1px 0 rgba(255,255,255,.2); }
.btn-primary:hover { background: var(--blue-600); }
.btn-coral { background: var(--coral); color: #fff; box-shadow: 0 8px 20px -8px rgba(249, 91, 76, .7); }
.btn-coral:hover { background: var(--coral-600); }
.btn-ghost { background: var(--pill-bg); border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost-dark { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: #fff; }
.btn-ghost-dark:hover { background: rgba(255,255,255,.12); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand img { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 13px; border-radius: 999px;
  font-size: 15px; font-weight: 500; color: var(--ink-2);
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: transparent; color: var(--ink-2); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: block; }
[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.nav-toggle { display: none; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s ease, background .2s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px 16px 20px; background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg); max-height: calc(100vh - 72px); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
  }
  .nav-links a { padding: 12px 14px; font-size: 16px; border-radius: 10px; }
  .nav-open .nav-links { transform: none; opacity: 1; pointer-events: auto; }
}
@media (max-width: 560px) { .nav-cta .btn-desktop { display: none; } }

/* ---------- Sections ---------- */
.section { padding: 112px 0; position: relative; }
.section-sm { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--night); color: #fff; }
.section-dark p { color: var(--night-text); }
@media (max-width: 640px) { .section { padding: 80px 0; } .section-sm { padding: 56px 0; } }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 52px); }
.section-head p { font-size: 18px; color: var(--muted); margin: 0; }
.section-dark .section-head p { color: var(--night-text); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-text); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
.section-dark .eyebrow { color: #8FA2FF; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--hero-bg); color: var(--ink);
  margin-top: -72px; padding-top: 168px;
  transition: background-color .25s ease;
}
.hero::before, .page-hero::before { /* grid */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--hero-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: var(--glow-opacity); pointer-events: none; }
.glow-blue { width: 560px; height: 560px; background: var(--blue); top: -180px; left: -120px; }
.glow-coral { width: 460px; height: 460px; background: var(--coral); top: 40px; right: -160px; opacity: calc(var(--glow-opacity) * .75); }
.hero-inner { position: relative; text-align: center; max-width: 920px; margin: 0 auto; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px; border-radius: 999px;
  background: var(--pill-bg); border: 1px solid var(--line-strong);
  font-size: 14px; color: var(--ink-2); margin-bottom: 28px;
}
.pill b { white-space: nowrap; background: var(--coral); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
@media (max-width: 480px) { .pill { font-size: 13px; text-align: left; } }
.hero h1 { font-size: clamp(40px, 7vw, 84px); font-weight: 800; letter-spacing: -0.04em; margin-bottom: 24px; }
.hero-sub { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 700px; margin: 0 auto 36px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 20px; font-size: 14px; color: var(--muted); }

/* hero visual (product mockup: always dark) */
.hero-visual { position: relative; margin: 72px auto 0; max-width: 1080px; }
.hero-visual::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px;
  background: linear-gradient(to bottom, transparent, var(--hero-bg));
}
.window {
  border-radius: 18px 18px 0 0; overflow: hidden;
  background: linear-gradient(180deg, #13173A 0%, #0B0E26 100%);
  border: 1px solid rgba(255,255,255,.12); border-bottom: 0;
  box-shadow: 0 -20px 80px -20px rgba(69, 98, 249, .45);
}
.window-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--night-line); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2C3159; }
.window-bar i:nth-child(1) { background: var(--coral); }
.window-bar i:nth-child(2) { background: #F7B84B; }
.window-bar i:nth-child(3) { background: #3DD68C; }
.window-bar span { margin-left: 14px; font-size: 13px; color: var(--night-muted); font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.window-body { display: grid; grid-template-columns: 200px 1fr 1fr; min-height: 340px; text-align: left; }
.w-side { border-right: 1px solid var(--night-line); padding: 18px 14px; display: flex; flex-direction: column; gap: 4px; }
.w-side div { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: 13px; color: var(--night-muted); }
.w-side div.on { background: rgba(69,98,249,.16); color: #fff; }
.w-side div::before { content: ""; width: 14px; height: 14px; border-radius: 4px; background: currentColor; opacity: .5; }
.w-main { padding: 22px; border-right: 1px solid var(--night-line); min-width: 0; }
.w-main h4 { font-family: var(--font); font-size: 13px; font-weight: 500; color: var(--night-muted); letter-spacing: 0; margin-bottom: 6px; }
.w-stat { font-family: var(--font-display); font-size: 34px; font-weight: 700; color: #fff; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.w-stat small { font-size: 13px; font-weight: 600; color: #3DD68C; margin-left: 8px; letter-spacing: 0; }
.w-chart { margin-top: 18px; height: 150px; width: 100%; }
.w-chart path.area { fill: url(#chartFill); }
.w-chart path.line { fill: none; stroke: var(--blue); stroke-width: 2.5; }
.w-chart path.line2 { fill: none; stroke: var(--coral); stroke-width: 2; stroke-dasharray: 4 5; }
.w-code { padding: 22px; font-family: var(--mono); font-size: 13px; line-height: 1.9; color: #A9B0D8; overflow: hidden; min-width: 0; }
.w-code .k { color: #FF8C7F; } .w-code .s { color: #7EE2B8; } .w-code .f { color: #8FA2FF; } .w-code .c { color: #5C6290; }
.w-code .ok { display: inline-block; margin-top: 10px; padding: 2px 10px; border-radius: 6px; background: rgba(61,214,140,.12); color: #3DD68C; font-size: 12px; }
@media (max-width: 860px) {
  .window-body { grid-template-columns: 1fr; }
  .w-side, .w-code { display: none; }
  .w-main { border-right: 0; }
}

/* ---------- Logo marquee ---------- */
.marquee-wrap { background: var(--hero-bg); padding: 8px 0 72px; color: var(--muted); position: relative; transition: background-color .25s ease; }
.marquee-label { text-align: center; font-size: 14px; margin-bottom: 26px; padding: 0 16px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img { height: 34px; width: auto; filter: var(--marquee-filter); transition: filter .2s; }
.marquee-track img:hover { filter: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.stat { padding: 32px 28px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--font-display); font-size: 40px; letter-spacing: -0.035em; line-height: 1; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 15px; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 24px 20px; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.card h3 { font-size: 20px; margin: 20px 0 10px; }
.card p { color: var(--muted); font-size: 15.5px; margin: 0; }
@media (max-width: 480px) { .card { padding: 24px; } }
.icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: var(--blue-soft); color: var(--blue);
}
.icon svg { width: 24px; height: 24px; }
.icon.coral { background: var(--coral-soft); color: var(--coral); }
.card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tag { font-size: 12.5px; font-weight: 500; color: var(--ink-2); background: var(--bg-soft); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; }

/* ---------- Why TecSolus ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.why { padding: 32px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.why:nth-child(4n) { border-right: 0; }
.why:nth-last-child(-n+4) { border-bottom: 0; }
.why h3 { font-size: 18px; margin: 18px 0 8px; }
.why p { color: var(--muted); font-size: 15px; margin: 0; }
.why .icon { width: 42px; height: 42px; border-radius: 10px; }
.why .icon svg { width: 21px; height: 21px; }
@media (max-width: 980px) {
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why:nth-child(4n) { border-right: 1px solid var(--line); }
  .why:nth-child(2n) { border-right: 0; }
  .why:nth-last-child(-n+4) { border-bottom: 1px solid var(--line); }
  .why:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 600px) {
  .why-grid { grid-template-columns: 1fr; }
  .why, .why:nth-child(4n) { border-right: 0; }
  .why:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .why:last-child { border-bottom: 0; }
  .why { padding: 24px; }
}

/* ---------- Process (always dark) ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--night-line); border-radius: var(--radius); overflow: hidden; }
.step { padding: 34px 28px; border-right: 1px solid var(--night-line); position: relative; background: linear-gradient(180deg, rgba(255,255,255,.02), transparent); }
.step:last-child { border-right: 0; }
.step-num { font-family: var(--mono); font-size: 13px; color: var(--coral); margin-bottom: 40px; display: block; }
.step h3 { font-size: 21px; color: #fff; }
.step p { font-size: 15px; margin: 0; }
@media (max-width: 900px) {
  .process { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(-n+2) { border-bottom: 1px solid var(--night-line); }
}
@media (max-width: 560px) {
  .process { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--night-line); }
  .step:last-child { border-bottom: 0; }
  .step-num { margin-bottom: 20px; }
}
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split > * { min-width: 0; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- AI & SEO ---------- */
.feature-list { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 18px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list .icon { width: 40px; height: 40px; border-radius: 10px; }
.feature-list .icon svg { width: 20px; height: 20px; }
.feature-list strong { display: block; font-size: 16.5px; margin-bottom: 2px; }
.feature-list span { color: var(--muted); font-size: 15px; }
.ai-visual { position: relative; border-radius: 20px; padding: 28px; background: var(--night); border: 1px solid var(--night-line); overflow: hidden; box-shadow: var(--shadow-lg); }
.ai-visual .glow-blue { width: 380px; height: 380px; top: -180px; left: auto; right: -140px; opacity: .45; }
.ai-visual .glow-coral { width: 300px; height: 300px; top: auto; bottom: -160px; left: -120px; right: auto; opacity: .3; }
.ai-visual > *:not(.glow) { position: relative; }
.ai-head { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; font-size: 15px; margin-bottom: 22px; }
.ai-head .dot { width: 9px; height: 9px; border-radius: 50%; background: #3DD68C; box-shadow: 0 0 0 4px rgba(61,214,140,.18); }
.ai-head small { margin-left: auto; font-weight: 500; color: var(--night-muted); font-size: 12.5px; }
.bubble { max-width: 86%; padding: 12px 16px; border-radius: 16px; font-size: 14.5px; line-height: 1.55; margin-bottom: 12px; }
.bubble.user { margin-left: auto; background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.bubble.bot { background: rgba(255,255,255,.07); color: #E4E6F5; border: 1px solid var(--night-line); border-bottom-left-radius: 4px; }
.ai-models { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.ai-models span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; background: rgba(255,255,255,.95); color: #0B0D1A; font-size: 13px; font-weight: 600; }
.ai-models img { width: 18px; height: 18px; }
.seo-meter { margin-top: 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.seo-meter div { text-align: center; padding: 14px 6px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid var(--night-line); }
.seo-meter b { display: block; font-family: var(--font-display); font-size: 24px; color: #3DD68C; font-variant-numeric: tabular-nums; }
.seo-meter span { font-size: 11.5px; color: var(--night-muted); }
@media (max-width: 420px) { .seo-meter { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Technologies ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 40px; }
.filter {
  height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); font-size: 14px; font-weight: 500; color: var(--ink-2); cursor: pointer; transition: all .15s ease;
}
.filter:hover { border-color: var(--ink-2); }
.filter.active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.tech-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 980px) { .tech-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tech-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } }
.tech {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  aspect-ratio: 1 / .92; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 10px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.tech:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tech img { height: 44px; width: 44px; object-fit: contain; }
.tech img.wide { width: 64px; }
.tech span { font-size: 13.5px; font-weight: 500; color: var(--ink-2); text-align: center; line-height: 1.25; }
.tech.hide { display: none; }
[data-theme="dark"] .tech img.on-dark-invert { filter: invert(1) hue-rotate(180deg); }
@media (max-width: 400px) { .tech img { width: 36px; height: 36px; } .tech span { font-size: 12.5px; } }

/* ---------- Work / projects ---------- */
.work-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.work-grid > .project { grid-column: span 2; }
.work-grid > .project.big { grid-column: span 3; }
@media (max-width: 980px) {
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-grid > .project, .work-grid > .project.big { grid-column: span 1; }
  .work-grid > .project:last-child { grid-column: span 2; }
}
@media (max-width: 640px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-grid > .project:last-child { grid-column: span 1; }
}
.project { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.project-shot { position: relative; aspect-ratio: 16 / 10; overflow: hidden; padding: 22px 22px 0; }
.project.big .project-shot { aspect-ratio: 16 / 8.5; padding: 26px 40px 0; }
.work-grid > .project:last-child .project-shot { max-height: 340px; }
.project-shot.p1 { background: linear-gradient(135deg, #4562F9 0%, #7C93FF 100%); }
.project-shot.p2 { background: linear-gradient(135deg, #F95B4C 0%, #FF9A6B 100%); }
.project-shot.p3 { background: linear-gradient(135deg, #0B0D1A 0%, #2A2E66 100%); }
.project-shot.p4 { background: linear-gradient(135deg, #0E9F6E 0%, #34D399 100%); }
.project-shot.p5 { background: linear-gradient(135deg, #7C3AED 0%, #F95B4C 100%); }
.mock { height: 100%; background: #fff; border-radius: 10px 10px 0 0; box-shadow: 0 20px 40px -12px rgba(0,0,0,.35); overflow: hidden; transition: transform .35s ease; transform-origin: bottom center; }
.project:hover .mock { transform: translateY(-6px) scale(1.02); }
.mock-bar { display: flex; align-items: center; gap: 5px; padding: 8px 10px; background: #F2F4F9; border-bottom: 1px solid #E6E8F0; }
.mock-bar i { width: 7px; height: 7px; border-radius: 50%; background: #D3D7E4; }
.mock-bar span { margin-left: 8px; font-size: 10.5px; color: #5D6382; background: #fff; padding: 1px 10px; border-radius: 5px; }
.mock-body { display: grid; gap: 8px; padding: 12px; }
.mock-row { display: flex; gap: 8px; }
.mock-b { height: 8px; border-radius: 4px; background: #E8EBF4; }
.mock-blk { flex: 1; height: 54px; border-radius: 8px; background: #F2F4FA; display: flex; align-items: flex-end; padding: 8px; }
.mock-blk .mock-b { width: 60%; }
/* phone mockups for mobile apps */
.phones { display: flex; justify-content: center; align-items: flex-end; gap: 14px; height: 100%; }
.phone { width: 34%; max-width: 150px; height: 92%; background: #fff; border-radius: 18px 18px 0 0; border: 5px solid #0B0D1A; border-bottom: 0; padding: 14px 10px 0; display: grid; align-content: start; gap: 7px; box-shadow: 0 20px 40px -12px rgba(0,0,0,.35); transition: transform .35s ease; }
.phone:nth-child(2) { height: 80%; }
.project:hover .phone { transform: translateY(-6px); }
.phone .notch { width: 36%; height: 6px; border-radius: 6px; background: #0B0D1A; margin: -6px auto 6px; }
.ring { width: 64%; aspect-ratio: 1; margin: 4px auto; border-radius: 50%; }
.project-body { padding: 26px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.project-body h3 { margin: 0 0 4px; font-size: 22px; }
.project-url { font-size: 14px; color: var(--accent-text); font-weight: 500; margin-bottom: 12px; display: inline-flex; align-items: center; gap: 6px; }
.project-url svg { width: 14px; height: 14px; }
.project-body p { color: var(--muted); font-size: 15.5px; }
.project-body .tags { margin-top: auto; padding-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Testimonials ---------- */
.quotes { columns: 3; column-gap: 20px; }
@media (max-width: 980px) { .quotes { columns: 2; } }
@media (max-width: 640px) { .quotes { columns: 1; } }
.quote { break-inside: avoid; margin: 0 0 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.stars { display: flex; gap: 2px; color: #F7B84B; margin-bottom: 14px; }
.stars svg { width: 16px; height: 16px; }
.quote blockquote { margin: 0 0 22px; font-size: 16px; color: var(--ink-2); line-height: 1.65; }
.who { display: flex; align-items: center; gap: 12px; }
.who strong { display: block; font-size: 15px; line-height: 1.3; }
.who span { font-size: 13.5px; color: var(--muted); }
.who .avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: #fff; flex: none; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
.faq-wrap > * { min-width: 0; }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; gap: 32px; } }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0; font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: linear-gradient(var(--ink), var(--ink)) center / 10px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 10px no-repeat;
  transition: transform .2s ease, background-color .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--surface-2); }
.faq summary:hover { color: var(--accent-text); }
.faq .answer { padding: 0 48px 22px 0; color: var(--muted); font-size: 16px; }
.faq .answer p { margin: 0; }

/* ---------- Social ---------- */
.social-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .social-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .social-grid { grid-template-columns: 1fr; } }
.social-card { display: flex; align-items: center; gap: 16px; padding: 22px; }
.social-card .s-ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; flex: none; color: #fff; }
.social-card .s-ico svg { width: 24px; height: 24px; fill: currentColor; }
.social-card strong { display: block; font-size: 16.5px; line-height: 1.3; }
.social-card span { color: var(--muted); font-size: 14px; }
.social-card .go { margin-left: auto; color: var(--muted); width: 18px; height: 18px; flex: none; transition: transform .2s, color .2s; }
.social-card:hover .go { transform: translate(2px, -2px); color: var(--ink); }
.s-linkedin { background: #0A66C2; } .s-instagram { background: radial-gradient(circle at 30% 107%, #FDF497 0%, #FD5949 45%, #D6249F 60%, #285AEB 90%); }
.s-facebook { background: #1877F2; } .s-tiktok { background: #000; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.footer-social { display: flex; gap: 8px; margin-top: 22px; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--ink-2); transition: all .15s; }
.footer-social a:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.footer-social svg { width: 17px; height: 17px; fill: currentColor; }

/* ---------- CTA band (always dark) ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: 24px; padding: 72px 56px;
  background: var(--night); color: #fff; text-align: center;
}
.cta .glow { opacity: .5; }
.cta .glow-blue { top: -260px; left: -100px; }
.cta .glow-coral { top: auto; bottom: -260px; right: -100px; opacity: .38; }
.cta > *:not(.glow) { position: relative; }
.cta h2 { font-size: clamp(30px, 4.4vw, 50px); max-width: 760px; margin: 0 auto 16px; }
.cta p { color: var(--night-text); font-size: 18px; max-width: 580px; margin: 0 auto 32px; }
@media (max-width: 640px) { .cta { padding: 56px 22px; border-radius: 18px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--ink-2); padding: 80px 0 32px; font-size: 15px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 30px; width: auto; margin-bottom: 20px; }
.footer-brand p { max-width: 320px; color: var(--muted); }
.site-footer h4 { font-family: var(--font); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); margin-bottom: 18px; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--ink-2); transition: color .15s; }
.site-footer a:hover { color: var(--accent-text); }
.footer-contact { display: grid; gap: 12px; margin-top: 20px; font-style: normal; }
.footer-contact div { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); }
.footer-contact svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--coral); }
.footer-bottom { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.footer-bottom nav { display: flex; gap: 20px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--hero-bg); color: var(--ink); margin-top: -72px; padding: 176px 0 96px; text-align: center; transition: background-color .25s ease; }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(36px, 6vw, 68px); font-weight: 800; letter-spacing: -0.04em; max-width: 880px; margin: 0 auto 20px; }
.page-hero p { font-size: 19px; color: var(--muted); max-width: 640px; margin: 0 auto; }
.page-hero .glow-blue { top: -260px; left: -60px; }
.page-hero .glow-coral { top: -120px; right: -120px; }
@media (max-width: 640px) { .page-hero { padding: 140px 0 64px; } .page-hero p { font-size: 17px; } }

/* ---------- About ---------- */
.lead { font-size: 20px; color: var(--ink-2); line-height: 1.65; }
.muted { color: var(--muted); }
.check-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.check-list svg { width: 22px; height: 22px; flex: none; color: var(--blue); margin-top: 1px; }
.panel { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 20px; padding: 36px; }
@media (max-width: 480px) { .panel { padding: 26px; } }
.value-num { font-family: var(--mono); font-size: 13px; color: var(--coral); }
.hq-card { position: relative; overflow: hidden; border-radius: 20px; background: var(--night); color: #fff; padding: 40px; min-height: 100%; border: 1px solid var(--night-line); }
.hq-card .glow-blue { width: 360px; height: 360px; top: -160px; left: auto; right: -120px; opacity: .5; }
.hq-card > *:not(.glow) { position: relative; }
.hq-card h3 { font-size: 26px; }
.hq-card p { color: var(--night-text); }
.hq-flag { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid var(--night-line); margin-bottom: 24px; }
@media (max-width: 480px) { .hq-card { padding: 28px; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 40px; align-items: start; }
.contact-grid > * { min-width: 0; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.info-card { display: flex; gap: 16px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.info-card + .info-card { margin-top: 14px; }
.info-card h3 { font-size: 17px; margin: 0 0 4px; font-family: var(--font); letter-spacing: -0.01em; }
.info-card p, .info-card a { margin: 0; color: var(--muted); font-size: 15.5px; overflow-wrap: anywhere; }
.info-card a:hover { color: var(--accent-text); }
.map { margin-top: 14px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: 240px; background: var(--bg-soft); }
.map iframe { width: 100%; height: 100%; border: 0; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 40px; box-shadow: var(--shadow); }
@media (max-width: 560px) { .form-card { padding: 26px 20px; } }
.form-card h2 { font-size: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; gap: 0; } }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-soft);
  padding: 12px 14px; font-size: 16px; transition: border-color .15s, box-shadow .15s, background .15s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: var(--surface); box-shadow: 0 0 0 4px rgba(69,98,249,.14); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; left: 0; top: 0; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-soft); font-size: 14px; cursor: pointer; transition: all .15s; }
.chip input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.form-note { font-size: 13.5px; color: var(--muted); margin: 14px 0 0; }
.form-note a { color: var(--accent-text); }
.form-status { display: none; margin-top: 16px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--blue-soft); color: var(--accent-text); font-size: 14.5px; }
.form-status.show { display: block; }

/* ---------- Legal ---------- */
.legal { display: grid; grid-template-columns: 240px 1fr; gap: 64px; align-items: start; }
.legal > * { min-width: 0; }
@media (max-width: 900px) { .legal { grid-template-columns: 1fr; gap: 24px; } .toc { position: static !important; } }
.toc { position: sticky; top: 100px; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--bg-soft); }
.toc h4 { font-family: var(--font); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.toc ol { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 14.5px; color: var(--ink-2); }
.toc a:hover { color: var(--accent-text); }
.prose { max-width: 760px; color: var(--ink-2); font-size: 16.5px; line-height: 1.75; }
.prose h2 { font-size: 26px; margin: 48px 0 14px; scroll-margin-top: 100px; color: var(--ink); }
.prose h2:first-of-type { margin-top: 0; }
.prose h3 { font-size: 19px; margin: 28px 0 10px; color: var(--ink); }
.prose ul { padding-left: 22px; margin: 0 0 1em; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.prose .meta { display: inline-block; font-size: 14px; color: var(--muted); background: var(--bg-soft); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; margin-bottom: 32px; }
.prose address { font-style: normal; padding: 20px 24px; background: var(--bg-soft); border-left: 3px solid var(--coral); border-radius: 0 12px 12px 0; }

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