/* TTA site layer — sits on top of nocturne.css tokens */

:root {
  /* ground: near-black, with surfaces lifted just enough to separate */
  --color-bg: #08090c;
  --color-surface: #14161c;
  --color-divider: color-mix(in srgb, #e9e9ed 13%, transparent);

  --color-accent: #2f6fe0;
  --color-accent-100: #eaf1fd;
  --color-accent-200: #cadcfb;
  --color-accent-300: #96b8f2;
  --color-accent-400: #6d9bec;
  --color-accent-500: #2f6fe0;
  --color-accent-600: #1d54b8;
  --color-accent-700: #17418f;
  --color-accent-800: #162d55;
  --color-accent-900: #101c31;
  --color-accent-2: #2f6fe0;
  --color-accent-2-100: #eaf1fd;
  --color-accent-2-300: #96b8f2;
  --color-accent-2-400: #6d9bec;
  --color-accent-2-500: #2f6fe0;
  --color-accent-2-800: #162d55;
  --color-accent-2-900: #101c31;
  --ink-80: color-mix(in srgb, var(--color-text) 74%, transparent);
  --ink-70: color-mix(in srgb, var(--color-text) 66%, transparent);
  --ink-60: color-mix(in srgb, var(--color-text) 58%, transparent);
  --ink-50: color-mix(in srgb, var(--color-text) 48%, transparent);
  --ink-40: color-mix(in srgb, var(--color-text) 42%, transparent);
  --head-h: 63px;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-400); }
::selection { background: rgba(47, 111, 224, 0.32); }
*:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
img, svg, iframe { display: block; max-width: 100%; }

h1, h2, h3 { font-family: var(--font-heading); font-weight: 500; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 40px; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--color-bg) 84%, transparent);
  border-bottom: 1px solid var(--color-divider);
}
.head-inner { display: flex; align-items: center; gap: 28px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; color: var(--color-text); }
.brand:hover { color: var(--color-text); }
.logo { height: 26px; width: auto; fill: currentColor; }
.brand-rule { width: 1px; height: 26px; background: var(--color-divider); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-heading); font-size: 14px; letter-spacing: -0.01em; white-space: nowrap; }
.brand-sub { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-50); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 7px 12px; border-radius: 8px; font-size: 14px;
  color: color-mix(in srgb, var(--color-text) 62%, transparent);
}
.nav-links a:hover { background: rgba(233, 233, 237, 0.06); color: var(--color-text); }
.nav-links a.is-active { color: var(--color-text); }
.head-cta { padding: 8px 16px; font-size: 13px; white-space: nowrap; flex: none; }

/* ---------- shared type ---------- */
.kicker { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-accent-400); }
.display { font-size: clamp(40px, 5.2vw, 66px); line-height: 1.04; letter-spacing: -0.03em; margin: 22px 0 0; max-width: 15ch; }
.em { color: var(--color-accent); }
.h-xl { font-size: clamp(36px, 4.6vw, 58px); letter-spacing: -0.03em; margin: 16px 0 0; max-width: 22ch; }
.h-lg { font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -0.025em; margin: 14px 0 0; }
.h-lg.tight { max-width: 20ch; margin: 0; }
.h-md { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.025em; margin: 0; }
.h-sm { font-size: 24px; letter-spacing: -0.02em; margin: 0 0 16px; }
.h-xs { font-size: 20px; letter-spacing: -0.015em; margin: 0 0 14px; }
.lede { margin: 18px 0 0; font-size: 17px; line-height: 1.6; max-width: 56ch; color: var(--ink-70); }
.body { margin: 0 0 14px; font-size: 16px; line-height: 1.65; color: var(--ink-80); text-wrap: pretty; }
.fineprint { margin: 16px 4px 0; font-size: 12px; line-height: 1.5; color: color-mix(in srgb, var(--color-text) 45%, transparent); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.tagrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.tagrow .tag { border: 1px solid var(--color-divider); display: inline-flex; align-items: center; gap: 7px; }
.tagrow .tag i { font-size: 13px; color: var(--color-accent-400); }

/* ---------- sections ---------- */
.sec { padding: 88px 0; border-top: 1px solid var(--color-divider); }
.sec.no-rule { border-top: 0; }
.sec.pt-0 { padding-top: 0; }
.sec-intro { max-width: 52ch; margin-bottom: 48px; }
.page-head {
  padding: 76px 0 40px; position: relative;
  /* let the glow bleed past the section instead of being cropped at its edges */
  overflow: clip;
  overflow-clip-margin: 420px;
}
.hero { position: relative; padding: 96px 0 88px; overflow: hidden; }

.glow { position: absolute; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(47, 111, 224, 0.20), transparent 65%); }
.glow-tl { top: -180px; left: -140px; width: 620px; height: 620px; }
.glow-tr { top: -220px; right: -120px; width: 560px; height: 560px; }
.glow-tc { top: -200px; left: 50%; transform: translateX(-50%); width: 720px; height: 620px; }

.grid { display: grid; }
.split-a { grid-template-columns: 1.15fr 0.85fr; gap: 72px; align-items: center; position: relative; }
.split-b { grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.split-c { grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.gap-lg { gap: 20px; }
.gap-xl { gap: 56px; }

@keyframes ttaRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes ttaFade { from { opacity: 0; } to { opacity: 1; } }
.rise { animation: ttaRise 0.7s cubic-bezier(0.4, 0, 0.2, 1) both; }
.fade { animation: ttaFade 1s ease 0.15s both; }
@media (prefers-reduced-motion: reduce) { .rise, .fade { animation: none; } }

/* ---------- hero pieces ---------- */
.tag-accent .dot { font-size: 7px; background-color: #00ff33; border-radius: 50px; color: #4be50d; }
.tag-accent { display: inline-flex; gap: 8px; align-items: center; }
.statrow {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
  margin-top: 56px; background: var(--color-divider); border-radius: 10px; overflow: hidden;
}
.stat { background: var(--color-bg); padding: 18px 20px; }
.stat-v { font-family: var(--font-heading); font-size: 26px; letter-spacing: -0.02em; color: var(--color-accent-400); }
.stat-l { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 6px; color: var(--ink-60); }

.bundle { padding: 8px; gap: 0; border-radius: 14px; background: var(--color-surface); }
.bundle-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 16px; }
.bundle-kicker { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-60); }
.bundle-count { font-size: 11px; color: var(--color-accent-400); }
.bundle-row { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-top: 1px solid var(--color-divider); }
.bundle-title { flex: 1; font-family: var(--font-heading); font-size: 14px; }
.tick { font-size: 14px; color: var(--color-accent); }

.ico {
  width: 32px; height: 32px; flex: none; border-radius: 8px;
  background: var(--color-accent-900); display: grid; place-items: center;
  color: var(--color-accent-400); font-size: 17px;
}
.ico-lg { width: 40px; height: 40px; border-radius: 10px; font-size: 21px; }
.ico-xl { width: 52px; height: 52px; border-radius: 12px; font-size: 27px; }

/* ---------- service cards ---------- */
.svc-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 26px 24px 24px; border-radius: 12px;
  background: var(--color-surface); box-shadow: var(--shadow-sm); color: var(--color-text);
  transition: box-shadow 0.18s ease;
}
.svc-card:hover { color: var(--color-text); box-shadow: 0 0 0 1px var(--color-accent-700), 0 8px 24px rgba(0, 0, 0, 0.45); }
.svc-card-top { display: flex; align-items: center; justify-content: space-between; }
.svc-n { font-family: var(--font-heading); font-size: 12px; letter-spacing: 0.1em; color: var(--color-accent-400); }
.svc-card h3 { font-size: 18px; margin: 6px 0 0; }
.svc-card p { margin: 0; font-size: 14px; line-height: 1.55; color: color-mix(in srgb, var(--color-text) 62%, transparent); }
.more { font-size: 13px; color: var(--color-accent); margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- panels, why, band ---------- */
.panel { padding: 36px 34px; border-radius: 14px; background: var(--color-surface); box-shadow: var(--shadow-sm); }
.panel-sm { padding: 28px 26px; border-radius: 12px; }
.panel i { font-size: 22px; color: var(--color-accent-400); }
.panel-ico { font-size: 26px; color: var(--color-accent-400); }
.panel-h { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; margin: 20px 0 14px; color: var(--ink-60); }
.panel-p { margin: 0; font-size: 19px; line-height: 1.5; letter-spacing: -0.01em; }
.val-h { font-size: 17px; margin: 18px 0 10px; }
.val-p { margin: 0; font-size: 14px; line-height: 1.6; color: color-mix(in srgb, var(--color-text) 66%, transparent); }
.val-p.mb { margin-bottom: 22px; }

.whygrid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px; margin-top: 44px; background: var(--color-divider);
}
.why { background: var(--color-bg); padding: 30px 24px 8px; }
.why i { font-size: 22px; color: var(--color-accent-400); }
.why h3 { font-size: 16px; margin: 18px 0 10px; }
.why p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-60); }

.band {
  position: relative; padding: 76px 0;
  border-top: 1px solid var(--color-divider); border-bottom: 1px solid var(--color-divider);
  background-color: #101c3199;
}
.band-v { font-family: var(--font-heading); font-size: 40px; letter-spacing: -0.03em; line-height: 1; color: var(--color-accent-400); }
.band .stat-l { margin-top: 12px; letter-spacing: 0.1em; }

/* ---------- services page ---------- */
.tabs {
  position: sticky; top: var(--head-h); z-index: 40;
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  border-top: 1px solid var(--color-divider); border-bottom: 1px solid var(--color-divider);
}
.tabs-inner { display: flex; gap: 2px; overflow-x: auto; }
.tabs-inner a {
  padding: 14px; font-size: 13px; white-space: nowrap;
  border-bottom: 2px solid transparent;
  color: color-mix(in srgb, var(--color-text) 62%, transparent);
}
.tabs-inner a.is-active { color: var(--color-accent-400); border-bottom-color: var(--color-accent); }
.svc-sec { padding: 84px 0; border-top: 0; border-bottom: 1px solid var(--color-divider); scroll-margin-top: calc(var(--head-h) + 57px); }
.svc-grid { grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; }
.svc-aside { position: sticky; top: 140px; }
.svc-aside .ico { margin-top: 0; }
.svc-aside-t { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 20px; color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.prose { max-width: 68ch; }
.prose p { margin: 16px 0 0; font-size: 16px; line-height: 1.65; color: var(--ink-80); text-wrap: pretty; }
.prose h2 + p { margin-top: 22px; }

/* ---------- cta band ---------- */
.cta { position: relative; padding: 84px 0; background: radial-gradient(80% 160% at 15% 10%, #16263f, #0a0b10 70%); }
.cta-inner { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-end; justify-content: space-between; }
.cta .h-lg { margin: 0; max-width: 24ch; }
.cta .btn-row { margin-top: 0; }

/* ---------- contact ---------- */
.clines { display: flex; flex-direction: column; gap: 2px; margin-top: 32px; }
.cline {
  display: flex; gap: 14px; align-items: center; padding: 16px 0;
  border-top: 1px solid var(--color-divider); color: var(--color-text);
}
.cline:hover { color: var(--color-accent-400); }
.cline i { font-size: 18px; color: var(--color-accent-400); }
.cline span { display: flex; flex-direction: column; }
.cline-l { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.cline-v { font-size: 14px; }
.portal { margin-top: 28px; }
.portal .btn { padding: 9px 16px; font-size: 13px; margin-top: 14px; }

/* ---------- form (HubSpot embed) ----------
   HubSpot's current form editor renders the form inside an iframe, so rules
   here cannot reach the fields and custom properties are not inherited.
   The form's own styling lives in assets/site.js as a literal-value string
   and is injected into the form document via the onFormReady callback.
   Only the card around the embed is styled from here. */
.tta-form {
  padding: 32px 30px; border-radius: 14px; background: var(--color-surface);
  box-shadow: var(--shadow-md);
}
.hs-embed { position: relative; }
/* reserve height so the page does not jump while HubSpot loads */
.hs-embed:not(.is-ready) { min-height: 420px; }
.hs-embed iframe { width: 100% !important; border: 0; display: block; }
.hs-fallback { margin: 0; font-size: 15px; color: var(--ink-80); }

/* ---------- conference ---------- */
.conf { position: relative; padding: 64px 40px 88px; overflow: hidden; }
.conf-col { max-width: 620px; margin: 0 auto; position: relative; }
.h-conf { font-size: clamp(34px, 6vw, 48px); line-height: 1.06; letter-spacing: -0.03em; margin: 20px 0 0; }
.conf-card {
  margin-top: 32px; padding: 26px 24px; border-radius: 14px;
  background: linear-gradient(165deg, #16263f, var(--color-surface) 60%);
  box-shadow: 0 0 0 1px var(--color-accent-700), 0 16px 40px rgba(0, 0, 0, 0.5);
}
.conf-card .h-sm { margin: 12px 0 8px; }
.conf-card .val-p { margin-bottom: 20px; }
.conf-cta { padding: 15px; font-size: 16px; }
.conf-call { padding: 13px; font-size: 15px; margin-top: 10px; }
.conf-note { margin: 16px 0 0; font-size: 12px; text-align: center; color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.conf-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 40px;
  background: var(--color-divider); border-radius: 12px; overflow: hidden;
}
.conf-svc { background: var(--color-bg); display: flex; align-items: center; gap: 12px; padding: 16px 18px; }
.conf-svc i { font-size: 19px; color: var(--color-accent-400); flex: none; }
.conf-svc span { font-family: var(--font-heading); font-size: 14px; letter-spacing: -0.01em; }
.conf-form { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--color-divider); }
.conf-form .h-sm { margin-bottom: 6px; }

/* ---------- legal ---------- */
.legal { padding: 76px 0 88px; }
.legal-col { max-width: 820px; margin: 0 auto; padding: 0 40px; }
.legal .h-lg { margin: 16px 0 0; }
.updated { margin: 14px 0 0; font-size: 13px; color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.legal-sec { border-top: 1px solid var(--color-divider); padding-top: 26px; margin-top: 36px; }
.legal-sec:first-of-type { margin-top: 48px; }
.legal-sec p { margin: 0 0 14px; font-size: 15px; line-height: 1.7; color: var(--ink-80); }
.legal-sec p:last-child { margin-bottom: 0; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--color-divider); padding: 64px 0 28px; }
.site-foot-bare { padding: 40px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; }
.brand-foot .logo { height: 24px; }
.brand-foot .brand-rule { height: 22px; }
.foot-blurb { margin: 18px 0 0; font-size: 13px; line-height: 1.6; max-width: 38ch; color: var(--ink-60); }
.foot-h { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-40); margin-bottom: 14px; }
.foot-col { display: flex; flex-direction: column; gap: 9px; font-size: 13px; color: color-mix(in srgb, var(--color-text) 70%, transparent); }
.foot-col a { color: inherit; }
.foot-col a:hover { color: var(--color-accent-400); }
.foot-bottom {
  margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--color-divider);
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--ink-40);
}
.site-foot-bare .foot-bottom { margin-top: 0; }
.foot-legal { display: flex; gap: 16px; }
.foot-legal a { color: inherit; }
.foot-legal a:hover { color: var(--color-accent-400); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  :root { --head-h: 112px; }
  .split-a, .split-b, .split-c, .svc-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .svc-aside { position: static; }
  .cols-4, .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .head-inner { flex-wrap: wrap; gap: 14px; }
  .nav-links { order: 3; width: 100%; margin: 0 -12px; }
  .brand-text { display: none; }
  .brand-rule { display: none; }
}
@media (max-width: 680px) {
  .wrap, .conf, .legal-col { padding-left: 22px; padding-right: 22px; }
  .conf { padding-top: 48px; }
  .cols-2, .cols-3, .cols-4, .statrow, .conf-grid, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .hs-embed .form-columns-2, .hs-embed .form-columns-3 { grid-template-columns: minmax(0, 1fr); }
  .sec, .hero { padding: 64px 0; }
  .panel { padding: 28px 24px; }
  .tta-form { padding: 26px 22px; }
  .foot-bottom { margin-top: 36px; }
}
