/* ============================================================
   SenseOr — Luminous Premium Light.
   Near-white canvas · one deep-blue accent · hairline borders
   · precise typography · restrained motion.
   ============================================================ */

:root {
  --bg:        #ffffff;
  --bg-alt:    #f6f8fc;   /* warm off-white band */
  --bg-tint:   #eef2fb;
  --ink:       #0b1220;   /* headings */
  --ink-2:     #33405c;   /* strong body */
  --ink-3:     #5a6684;   /* body */
  --muted:     #8a93aa;   /* labels */
  --line:      #e7ecf5;   /* hairline */
  --line-2:    #dbe2ef;

  --accent:    #2447e6;   /* the single accent */
  --accent-ink:#1c39c4;
  --accent-soft:#eaefff;

  /* heritage gold + turquoise (echoes the SenseOr swirl) */
  --gold:      #d99b12;
  --gold-soft: #f2c85b;

  /* data-as-light stream palette - turquoise flows to gold, in harmony */
  --stream-cool: #17c8bd;
  --stream-mid:  #46cf8f;
  --stream-warm: #eab02f;

  --shadow-sm: 0 1px 2px rgba(18,32,70,.04), 0 6px 20px rgba(18,32,70,.05);
  --shadow-md: 0 12px 40px rgba(18,42,110,.10);

  --radius:    16px;
  --radius-sm: 11px;
  --maxw:      1140px;

  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-display: 'Inter Tight', var(--font);
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font); color: var(--ink-3); background: var(--bg);
  line-height: 1.62; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
svg { display: block; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 26px; }

h1, h2, h3 { font-family: var(--font-display); color: var(--ink); font-weight: 700; line-height: 1.08; letter-spacing: -0.032em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.7rem); }
h3 { font-size: 1.16rem; letter-spacing: -0.02em; }

/* ---------- kicker / labels ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: .7em;
  font-family: var(--font-mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink);
  margin-bottom: 1.1rem;
}
.kicker-line { width: 26px; height: 1px; background: var(--accent); opacity: .55; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-weight: 600; font-size: .95rem; padding: .8em 1.5em; border-radius: 10px;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-primary { color: #fff; background: var(--accent); box-shadow: 0 6px 18px rgba(36,71,230,.24); }
.btn-primary:hover { background: var(--accent-ink); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(36,71,230,.32); }
.btn-ghost { color: var(--ink); background: var(--bg); border-color: var(--line-2); }
.btn-ghost:hover { transform: translateY(-2px); border-color: #c3cee4; box-shadow: var(--shadow-sm); }
.btn-nav { color: #fff; background: var(--ink); padding: .58em 1.1em; font-size: .88rem; border-radius: 9px; }
.btn-nav:hover { background: var(--accent-ink); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.78); backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 1px 20px rgba(18,42,110,.05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }

.brand { display: inline-flex; align-items: center; gap: .5em; }
.brand-mark { color: var(--accent); width: 28px; height: 28px; }
.brand-mark svg { width: 28px; height: 28px; }
.brand-name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.24rem; letter-spacing: -0.03em;
  background: linear-gradient(95deg, var(--stream-cool) 0%, #2fb59f 40%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.brand-accent { color: inherit; }
.brand-img { height: 30px; width: auto; display: block; }
.brand-img-footer { height: 32px; }

.nav { display: flex; align-items: center; gap: 2.1rem; }
.nav a:not(.btn) { position: relative; font-size: .93rem; font-weight: 500; color: var(--ink-3); transition: color .2s; }
.nav a:not(.btn):hover { color: var(--ink); }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 1.5px; width: 0; background: var(--accent); transition: width .25s ease; }
.nav a:not(.btn):hover::after { width: 100%; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(76px, 12vw, 140px) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.hero-glow {
  position: absolute; top: -280px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 620px; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(36,71,230,.14), rgba(36,71,230,.05) 40%, transparent 70%);
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 32%, #000 20%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 32%, #000 20%, transparent 72%);
  opacity: .32;
}
/* living current of light-data particles behind the hero */
.hero-stream {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 92% 78% at 50% 46%, #000 30%, transparent 82%);
  mask-image: radial-gradient(ellipse 92% 78% at 50% 46%, #000 30%, transparent 82%);
}
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 860px; margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55em; font-size: .82rem; font-weight: 500;
  color: var(--ink-2); background: var(--bg); border: 1px solid var(--line-2);
  padding: .42em 1em; border-radius: 999px; margin-bottom: 1.6rem; box-shadow: var(--shadow-sm);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.hero-title { font-size: clamp(2.5rem, 6.2vw, 4.4rem); letter-spacing: -0.04em; color: var(--ink); }
.accent-underline { position: relative; color: var(--accent-ink); white-space: nowrap; }
.accent-underline::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .16em; background: var(--accent); opacity: .16; border-radius: 4px; }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-3); margin: 1.5rem auto 0; max-width: 640px; }
.hero-cta { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-top: 2.2rem; }

.hero-stats { display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(1.4rem, 5vw, 3.4rem); margin-top: 3.6rem; padding-top: 2.6rem; border-top: 1px solid var(--line); }
.stat { display: flex; flex-direction: column; align-items: center; gap: .45rem; }
.stat-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 2.8vw, 2.3rem); color: var(--ink); letter-spacing: -0.03em; line-height: 1; }
.stat-label { font-size: .8rem; color: var(--muted); max-width: 120px; text-align: center; }

/* ---------- clients strip ---------- */
.clients-strip { padding: 34px 0 44px; border-bottom: 1px solid var(--line); }
.strip-caption { text-align: center; font-size: .82rem; color: var(--muted); margin-bottom: 22px; }
.logo-row { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(1.6rem, 5vw, 3.6rem); }
.logo-row li { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.05rem, 2vw, 1.4rem); letter-spacing: -0.02em; color: #aab3c8; transition: color .25s ease; }
.logo-row li:hover { color: var(--ink); }

/* ---------- section rhythm ---------- */
.section { padding: clamp(64px, 8.5vw, 112px) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin: 0 auto clamp(40px, 5vw, 62px); text-align: center; }
.section-head .kicker { justify-content: center; }
.section-lead { color: var(--ink-3); font-size: 1.06rem; margin-top: 1rem; }

/* ---------- flagship feature ---------- */
.feature-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.feature-copy h2 { margin-bottom: 1.2rem; }
.feature-copy p { color: var(--ink-3); font-size: 1.06rem; margin-top: 1rem; }
.feature-copy strong { color: var(--ink); font-weight: 600; }
.feature-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.metric { background: var(--bg); padding: 26px 24px; }
.metric-num { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--accent-ink); letter-spacing: -0.03em; }
.metric-label { display: block; font-size: .84rem; color: var(--ink-3); margin-top: .4rem; }

/* ---------- case grid ---------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-sm);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.case:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.case-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.case-top h3 { font-size: 1.35rem; }
.case-year { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); white-space: nowrap; }
.case-tag { display: inline-block; font-size: .76rem; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft); padding: .3em .85em; border-radius: 6px; margin: .8rem 0 1rem; }
.case p:last-child { color: var(--ink-3); font-size: .96rem; }
.case strong { color: var(--ink); font-weight: 600; }

/* ---------- services (editorial list) ---------- */
.services-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.services-head { position: sticky; top: 100px; text-align: left; margin: 0; }
.services-head h2 { margin-bottom: 1rem; }
.service-list { list-style: none; }
.service { display: grid; grid-template-columns: auto 1fr; gap: 22px; padding: 24px 0; border-top: 1px solid var(--line); }
.service:last-child { border-bottom: 1px solid var(--line); }
.service-index { font-family: var(--font-mono); font-size: .82rem; color: var(--accent); padding-top: .2rem; }
.service h3 { margin-bottom: .35rem; }
.service p { color: var(--ink-3); font-size: .98rem; }
.service:hover h3 { color: var(--accent-ink); }
.service h3 { transition: color .2s ease; }

/* ---------- stack ---------- */
.stack-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pill { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.pill:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.pill strong { font-family: var(--font-display); font-size: 1.08rem; color: var(--ink); letter-spacing: -0.02em; }
.pill span { font-size: .82rem; color: var(--muted); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; list-style: none; }
.step { padding: 26px 24px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .28s ease, box-shadow .28s ease; }
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.step-num { font-family: var(--font-mono); font-weight: 500; font-size: 1rem; color: var(--accent); }
.step h3 { margin: .8rem 0 .5rem; }
.step p { color: var(--ink-3); font-size: .94rem; }

/* ---------- featured "gold" testimonial ---------- */
.quote-featured {
  position: relative; overflow: hidden; margin-bottom: 22px;
  background:
    linear-gradient(90deg, var(--stream-cool), var(--stream-mid), var(--stream-warm)) top/100% 3px no-repeat,
    var(--ink);
  color: #fff;
  border-radius: var(--radius); padding: clamp(32px, 4.5vw, 52px);
  box-shadow: var(--shadow-md);
}
.quote-featured::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 80% at 100% 0%, rgba(234,176,47,.26), transparent 60%),
    radial-gradient(ellipse 60% 90% at 0% 100%, rgba(23,200,189,.24), transparent 60%),
    radial-gradient(ellipse 50% 70% at 60% 10%, rgba(70,207,143,.22), transparent 65%);
}
.quote-featured::after {
  content: "\201C"; position: absolute; top: 6px; left: 26px; font-family: var(--font-display);
  font-size: 5rem; line-height: 1; color: #fff; opacity: .12;
}
.qf-tag {
  position: relative; display: inline-block; font-family: var(--font-mono); font-size: .72rem;
  letter-spacing: .1em; text-transform: uppercase; color: #9fb2ff;
  border: 1px solid rgba(159,178,255,.3); padding: .4em .9em; border-radius: 999px; margin-bottom: 1.4rem;
}
.quote-featured blockquote {
  position: relative; font-size: clamp(1.04rem, 1.5vw, 1.24rem); line-height: 1.6; color: #eef1f8; font-weight: 400;
  max-width: 62ch;
}
.quote-featured blockquote strong { color: #fff; font-weight: 600; }
.quote-featured figcaption { position: relative; margin-top: 1.6rem; display: flex; flex-direction: column; gap: 2px; }
.quote-featured figcaption strong { color: #fff; font-size: .98rem; }
.quote-featured figcaption span { font-size: .84rem; color: #9aa6c8; }

/* ---------- quotes ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { padding: 30px 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); box-shadow: var(--shadow-sm); position: relative; }
.quote::before { content: "\201C"; position: absolute; top: 8px; right: 22px; font-family: var(--font-display); font-size: 3.4rem; color: var(--accent); opacity: .12; line-height: 1; }
.quote blockquote { font-size: 1.02rem; color: var(--ink); line-height: 1.55; }
.quote figcaption { margin-top: 1.2rem; display: flex; flex-direction: column; gap: 2px; }
.quote figcaption strong { color: var(--ink); font-size: .92rem; }
.quote figcaption span { font-size: .82rem; color: var(--muted); }

/* ---------- about ---------- */
.about-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(36px, 5vw, 64px); align-items: center; }
.about-copy { text-align: left; }
.about-copy p { color: var(--ink-3); margin-top: 1.1rem; font-size: 1.04rem; }
.about-copy strong { color: var(--ink); font-weight: 600; }
.about-values { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 1.8rem; }
.about-values span { font-size: .82rem; font-weight: 500; color: var(--ink-2); background: var(--bg-alt); border: 1px solid var(--line-2); padding: .48em 1em; border-radius: 999px; }
.about-panel { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-md); }
.panel-row { display: flex; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.panel-key { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.panel-val { color: var(--ink-2); text-align: right; font-weight: 500; }
.panel-chart { display: flex; align-items: flex-end; gap: 8px; height: 90px; margin-top: 22px; }
.panel-chart span { flex: 1; height: var(--h); background: linear-gradient(var(--accent), #6f8bff); border-radius: 4px 4px 1px 1px; transform-origin: bottom; animation: grow 1s cubic-bezier(.2,.7,.2,1) backwards; opacity: .9; }
.panel-chart span:nth-child(1){animation-delay:.05s}.panel-chart span:nth-child(2){animation-delay:.11s}.panel-chart span:nth-child(3){animation-delay:.17s}.panel-chart span:nth-child(4){animation-delay:.23s}.panel-chart span:nth-child(5){animation-delay:.29s}.panel-chart span:nth-child(6){animation-delay:.35s}.panel-chart span:nth-child(7){animation-delay:.41s}.panel-chart span:nth-child(8){animation-delay:.47s}
@keyframes grow { from { transform: scaleY(0); opacity: .2; } to { transform: scaleY(1); opacity: .9; } }

/* ---------- contact ---------- */
.section-contact { background: var(--bg-alt); border-top: 1px solid var(--line); }
.contact-inner {
  position: relative; overflow: hidden; text-align: center; max-width: 760px; margin-inline: auto;
  background:
    linear-gradient(90deg, var(--stream-cool), var(--stream-mid), var(--stream-warm)) top/100% 3px no-repeat,
    var(--bg);
  border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(44px, 6vw, 68px); box-shadow: var(--shadow-md);
}
.contact-inner::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 40% 60% at 12% 0%, rgba(23,200,189,.16), transparent 60%),
    radial-gradient(ellipse 40% 60% at 88% 100%, rgba(234,176,47,.16), transparent 60%),
    radial-gradient(ellipse 50% 70% at 50% -10%, rgba(70,207,143,.12), transparent 70%);
}
.contact-inner .kicker { justify-content: center; position: relative; }
.contact-lead { color: var(--ink-3); font-size: 1.08rem; margin-top: 1rem; position: relative; }
.contact-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; position: relative; }
.contact-jobs { margin-top: 2rem; font-size: .9rem; color: var(--muted); position: relative; }
.contact-jobs a { color: var(--accent-ink); font-weight: 600; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-top: 52px; background: var(--bg); }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 34px; }
.footer-brand .brand-name { font-size: 1.28rem; }
.footer-brand p { color: var(--muted); margin-top: .6rem; font-size: .94rem; }
.footer-meta { text-align: right; font-size: .92rem; color: var(--ink-3); }
.footer-meta p { margin-top: .2rem; }
.footer-meta a:hover { color: var(--accent-ink); }
.footer-social { margin-top: .6rem; display: flex; gap: 1rem; justify-content: flex-end; }
.footer-social a { font-weight: 600; color: var(--ink-2); }
.footer-legal { border-top: 1px solid var(--line); padding: 22px 26px; }
.footer-legal p { font-size: .82rem; color: var(--muted); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s cubic-bezier(.2,.7,.2,1), transform .65s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.case-grid .case, .stack-grid .pill, .steps .step, .quotes .quote, .service-list .service { transition-delay: var(--d, 0s); }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .feature-inner { grid-template-columns: 1fr; gap: 32px; }
  .case-grid, .quotes { grid-template-columns: repeat(2, 1fr); }
  .stack-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .services-inner { grid-template-columns: 1fr; }
  .services-head { position: static; }
  .about-inner { grid-template-columns: 1fr; }
  .about-panel { order: -1; }
}
@media (max-width: 720px) {
  .nav {
    position: fixed; inset: 66px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(255,255,255,.98); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
    padding: 12px 26px 22px; transform: translateY(-145%); transition: transform .35s ease; box-shadow: var(--shadow-md);
  }
  .nav.open { transform: translateY(0); }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .btn-nav { margin-top: 14px; }
  .nav-toggle { display: flex; }
  .footer-inner { flex-direction: column; }
  .footer-meta { text-align: left; }
  .footer-social { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .case-grid, .quotes, .stack-grid, .steps, .feature-metrics { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.4rem 2rem; }
  .stat { flex: 1 1 38%; }
}

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