/* ============================================================
   Thinq AI Systems — applied-AI studio
   Space Grotesk + Figtree · cobalt on near-white
   ============================================================ */

:root {
  --bg: #fcfcfe;
  --tint: #f3f6fd;          /* soft section band */
  --surface: #ffffff;
  --ink: #141a2b;           /* deep slate, not black */
  --ink-2: #56607a;
  --ink-3: #8b93a6;
  --line: rgba(20, 26, 43, 0.08);
  --line-2: rgba(20, 26, 43, 0.15);
  --brand: #2f54eb;
  --brand-ink: #1e40d8;
  --brand-soft: #e9edfe;    /* pale cobalt — tags, icon chips */
  --ok: #16a34a;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font: 'Figtree', system-ui, -apple-system, sans-serif;
  --maxw: 1140px;
  --r: 12px;
  --r-lg: 20px;
  --r-pill: 999px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sh-sm: 0 1px 2px rgba(20, 26, 43, 0.06);
  --sh: 0 14px 32px -18px rgba(20, 26, 43, 0.20);
  --sh-lg: 0 32px 60px -30px rgba(20, 30, 70, 0.30);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: var(--brand); color: #fff; }
a { color: var(--brand); text-decoration: none; transition: color 0.2s var(--ease); }
ul, ol { list-style: none; }
svg { display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--r);
  padding: 13px 22px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.2s var(--ease), color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
  white-space: nowrap;
}
.btn svg { transition: transform 0.2s var(--ease); }
.btn-solid { background: var(--brand); color: #fff; box-shadow: 0 12px 26px -14px rgba(47, 84, 235, 0.7); }
.btn-solid:hover { background: var(--brand-ink); color: #fff; transform: translateY(-1px); }
.btn-solid:hover svg { transform: translateX(3px); }
.btn-text { color: var(--brand); padding: 13px 8px; }
.btn-text:hover { color: var(--brand-ink); }
.btn-text:hover svg { transform: translateX(3px); }
.btn-white { background: #fff; color: var(--brand); box-shadow: 0 14px 30px -16px rgba(0, 0, 0, 0.4); }
.btn-white:hover { background: #fff; color: var(--brand-ink); transform: translateY(-1px); }
.btn-white:hover svg { transform: translateX(3px); }

/* ---- tag pill ---- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.005em;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  margin-bottom: 22px;
}
.tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); display: inline-block; }

/* ============================================================
   NAV
   ============================================================ */

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s, backdrop-filter 0.3s;
}
.site-nav.scrolled {
  background: rgba(252, 252, 254, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-row { max-width: var(--maxw); margin: 0 auto; padding: 15px 28px; display: flex; align-items: center; gap: 22px; }

.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.brand-mark { width: 32px; height: 32px; flex-shrink: 0; }
.brand-mark svg { width: 32px; height: 32px; border-radius: 9px; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--ink); letter-spacing: -0.01em; }
.brand-name span { color: var(--ink-3); font-weight: 500; }

.nav-menu { display: flex; gap: 4px; }
.nav-menu a {
  padding: 8px 13px;
  border-radius: 8px;
  color: var(--ink-2);
  font-weight: 500;
  font-size: 14.5px;
  transition: color 0.2s, background-color 0.2s;
}
.nav-menu a:hover { color: var(--ink); background: rgba(20, 26, 43, 0.05); }
.nav-cta { padding: 10px 18px; font-size: 14px; }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  cursor: pointer;
}
.nav-burger span { display: block; width: 18px; height: 2px; margin: 0 auto; background: var(--ink); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  padding: 168px 0 96px;
  background:
    radial-gradient(1000px 520px at 80% -6%, #e7ebfe, transparent 62%),
    radial-gradient(720px 460px at 2% 8%, #e6f7f1, transparent 56%),
    var(--bg);
}
.hero-inner { max-width: 880px; }
.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6.6vw, 76px);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 26px;
}
.accent-text { color: var(--brand); }
.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.3vw, 28px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--ink);
  max-width: 720px;
  margin-bottom: 18px;
}
.hero-tagline b { color: var(--brand); font-weight: 600; }
.hero-lead {
  font-size: clamp(17px, 1.7vw, 20px);
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 660px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 56px; }

.trust { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding-top: 30px; border-top: 1px solid var(--line); }
.trust-label { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.trust-items { display: flex; gap: 26px; flex-wrap: wrap; }
.trust-items span { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--ink-2); letter-spacing: -0.01em; }

/* ============================================================
   SECTION BANDS
   ============================================================ */

.band { padding: 100px 0; }
.band--tint { background: var(--tint); }
.band--flush { padding: 60px 0 100px; }

.sec-head { max-width: 680px; margin-bottom: 52px; }
.sec-head.reveal .tag { margin-bottom: 18px; }
.sec-h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 14px;
}
.sec-lead { font-size: 17px; color: var(--ink-2); line-height: 1.6; max-width: 600px; }

/* ---- services tiles ---- */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.tile {
  background: var(--tint);
  border-radius: var(--r-lg);
  padding: 34px;
  transition: background-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.band--tint .tile { background: var(--surface); box-shadow: var(--sh-sm); }
.tile:hover { transform: translateY(-3px); background: var(--surface); box-shadow: var(--sh-lg); }
.tile-ico {
  display: inline-grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 13px;
  background: var(--surface);
  color: var(--brand);
  box-shadow: var(--sh-sm);
  margin-bottom: 20px;
}
.band--tint .tile-ico { background: var(--brand-soft); box-shadow: none; }
.tile-ico svg { width: 22px; height: 22px; }
.tile h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); margin-bottom: 11px; }
.tile p { font-size: 14.5px; color: var(--ink-2); line-height: 1.62; }

/* ---- process stepper ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.step { position: relative; }
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 19px; left: 50px; right: -18px;
  height: 2px;
  background: var(--line-2);
}
.step-n {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--brand);
  color: var(--brand);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 18px;
}
.band--tint .step-n { background: var(--tint); }
.step h3 { font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); margin-bottom: 9px; }
.step p { font-size: 14px; color: var(--ink-2); line-height: 1.6; }

/* ---- platforms ---- */
.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.platform {
  background: var(--tint);
  border-radius: var(--r-lg);
  padding: 30px 32px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background-color 0.3s;
}
.platform:hover { transform: translateY(-3px); background: var(--surface); box-shadow: var(--sh-lg); }
.platform h3 { font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); margin-bottom: 10px; }
.platform-svcs { font-size: 14px; color: var(--ink-2); line-height: 1.7; }

/* ---- AI architectures ---- */
.archs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.arch {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 30px;
  box-shadow: var(--sh-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.arch:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); border-color: var(--line-2); }
.arch-name { font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.arch-full { display: block; font-size: 12.5px; font-weight: 600; color: var(--brand); margin: 3px 0 13px; }
.arch p { font-size: 14px; color: var(--ink-2); line-height: 1.6; margin-bottom: 11px; }
.arch-best { color: var(--ink); line-height: 1.55; }
.arch-best b { color: var(--brand-ink); font-weight: 700; }

/* ---- statement ---- */
.statement { max-width: 820px; margin: 0 auto; text-align: center; }
.statement-h {
  font-family: var(--font-display);
  font-size: clamp(27px, 3.8vw, 44px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.statement-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 30px; margin-top: 32px; }
.point { display: inline-flex; align-items: center; gap: 9px; font-size: 15.5px; font-weight: 500; color: var(--ink-2); }
.point svg { color: var(--brand); flex-shrink: 0; }

/* ---- CTA block ---- */
.cta {
  background: var(--brand);
  border-radius: 28px;
  padding: 68px 48px;
  text-align: center;
  box-shadow: 0 40px 80px -40px rgba(47, 84, 235, 0.65);
}
.cta-h { font-family: var(--font-display); font-size: clamp(28px, 4vw, 46px); font-weight: 700; line-height: 1.1; letter-spacing: -0.025em; color: #fff; }
.cta p { color: rgba(255, 255, 255, 0.86); font-size: 16.5px; line-height: 1.6; max-width: 560px; margin: 16px auto 30px; }
.cta-actions { display: flex; justify-content: center; }

/* ============================================================
   FOOTER
   ============================================================ */

.foot { padding: 56px 0 36px; border-top: 1px solid var(--line); }
.foot-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; margin-bottom: 40px; }
.foot-tagline { font-size: 14px; color: var(--ink-2); margin-top: 14px; max-width: 340px; line-height: 1.55; }
.foot-links { display: flex; gap: 26px; flex-wrap: wrap; align-items: center; }
.foot-links a { font-size: 14.5px; color: var(--ink-2); font-weight: 500; transition: color 0.2s; }
.foot-links a:hover { color: var(--brand); }
.foot-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-3);
}

/* ============================================================
   REVEAL + MOTION
   ============================================================ */

.reveal { transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }
.js .reveal { opacity: 0; transform: translateY(22px); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 940px) {
  .nav-menu { display: none; }
  .tiles { grid-template-columns: 1fr; }
  .platforms { grid-template-columns: 1fr; }
  .archs { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 32px 26px; }
  .step:nth-child(2)::after { display: none; }
  .band { padding: 84px 0; }
}

@media (max-width: 620px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(252, 252, 254, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 10px 16px 16px;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 13px 10px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav-menu a:last-child { border-bottom: none; }
  .hero { padding: 132px 0 76px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-actions .btn { justify-content: center; }
  .btn-text { padding: 13px 22px; }
  .steps { grid-template-columns: 1fr; gap: 14px; }
  .step { padding-left: 56px; min-height: 40px; }
  .step-n { position: absolute; left: 0; top: 0; margin-bottom: 0; }
  .step:not(:last-child)::after {
    top: 44px; left: 19px; right: auto; bottom: -14px;
    width: 2px; height: auto;
  }
  .step h3 { margin-top: 6px; }
  .cta { padding: 48px 26px; }
  .band { padding: 72px 0; }
  .sec-head { margin-bottom: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
