/* Smartsphere Technologies — Site Styles */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #F6F3EC;
  --bg-2: #FBF9F4;
  --paper: #FFFFFF;
  --ink: #14161B;
  --ink-2: #383B43;
  --ink-3: #6B6E78;
  --ink-4: #9CA0AB;
  --line: #E5E0D5;
  --line-2: #EFEBE0;
  --accent: #1F3FB8;       /* deep cobalt */
  --accent-soft: #DDE3F6;
  --amber: #C97A35;        /* warm secondary */
  --amber-soft: #F2E2CC;
  --green: #2F6E4A;
  --green-soft: #D9E8DE;
  --max: 1320px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(20, 22, 27, 0.04), 0 2px 6px rgba(20, 22, 27, 0.04);
  --shadow: 0 10px 30px -12px rgba(20, 22, 27, 0.18);
  --shadow-lg: 0 30px 60px -24px rgba(20, 22, 27, 0.22);
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Geist', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--ink); color: var(--bg); }

/* ------------- Typography ------------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}
.eyebrow.plain::before { display: none; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; margin: 0; line-height: 1.05; }
h1 { font-size: clamp(48px, 6.5vw, 92px); }
h2 { font-size: clamp(36px, 4.5vw, 64px); }
h3 { font-size: clamp(24px, 2.4vw, 34px); }
h4 { font-size: 22px; }

p { margin: 0; color: var(--ink-2); }
.lead { font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 60ch; }

em { font-style: italic; font-family: var(--serif); color: var(--ink); font-weight: 400; }

/* ------------- Layout ------------- */

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
section { padding: 120px 0; position: relative; }
section.tight { padding: 80px 0; }

@media (max-width: 720px) {
  section { padding: 80px 0; }
  .wrap { padding: 0 20px; }
}

/* ------------- Buttons ------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform 150ms ease, background 150ms ease, color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
  background: none;
  white-space: nowrap;
}
.btn.primary { background: var(--ink); color: var(--bg); }
.btn.primary:hover { background: #25272F; transform: translateY(-1px); box-shadow: 0 8px 18px -8px rgba(20,22,27,0.4); }
.btn.ghost { color: var(--ink); border-color: var(--line); background: rgba(255,255,255,0.4); }
.btn.ghost:hover { background: var(--paper); border-color: var(--ink-4); }
.btn.link { padding: 6px 0; color: var(--ink); border-bottom: 1px solid var(--ink); border-radius: 0; }
.btn.link:hover { color: var(--accent); border-color: var(--accent); }
.btn .arr { transition: transform 200ms ease; }
.btn:hover .arr { transform: translateX(3px); }

/* ------------- Hero (home) ------------- */

.hero {
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: end;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}

.hero h1 .ser { font-style: italic; }
.hero-sub { margin-top: 28px; max-width: 56ch; font-size: 19px; color: var(--ink-2); }
.hero-cta { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }

.hero-meta {
  margin-top: 60px;
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}
.hero-meta .kv { display: flex; flex-direction: column; gap: 4px; }
.hero-meta .kv b {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
}
.hero-meta .kv span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }

/* Hero device card */
.device {
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 22px;
  position: relative;
  border: 1px solid var(--line-2);
  transform-origin: center;
}
.device .device-head {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-2);
  margin-bottom: 16px;
}
.device .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.device .dot.live { background: #4AB773; box-shadow: 0 0 0 4px rgba(74, 183, 115, 0.18); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 183, 115, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(74, 183, 115, 0); }
}
.device .head-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-left: 4px; }
.device .head-right { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }

/* Chat bubbles */
.bubbles { display: flex; flex-direction: column; gap: 10px; }
.bubble {
  max-width: 78%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 14.5px;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(8px);
  animation: rise 500ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.bubble.in { align-self: flex-start; background: var(--bg-2); color: var(--ink); border-bottom-left-radius: 6px; }
.bubble.out { align-self: flex-end; background: var(--ink); color: var(--bg-2); border-bottom-right-radius: 6px; }
.bubble small { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.bubble.out small { color: var(--ink-4); }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* Hero ambient blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.blob.a { width: 360px; height: 360px; background: var(--accent-soft); top: -80px; right: 6%; animation: float 14s ease-in-out infinite; }
.blob.b { width: 280px; height: 280px; background: var(--amber-soft); bottom: -60px; left: 4%; animation: float 18s ease-in-out -6s infinite; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.05); }
}

/* ------------- Customer ribbon ------------- */

.ribbon {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  overflow: hidden;
}
.ribbon-inner { display: flex; align-items: center; gap: 64px; flex-wrap: wrap; justify-content: center; }
.ribbon-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.logo-text {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  opacity: 0.75;
  font-style: italic;
}
.logo-text.bold { font-family: var(--sans); font-style: normal; font-weight: 600; letter-spacing: -0.02em; }
.logo-text.mono { font-family: var(--mono); font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; }

/* ------------- Section header ------------- */

.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; margin-bottom: 64px; }
@media (max-width: 880px) { .section-head { grid-template-columns: 1fr; gap: 24px; } }
.section-head h2 { max-width: 16ch; }
.section-head .desc { color: var(--ink-2); font-size: 18px; max-width: 50ch; }

/* ------------- Feature cards ------------- */

.features {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.feature {
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line); }
.feature h3 { font-size: 28px; line-height: 1.1; }
.feature p { font-size: 15px; }
.feature .num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--accent); text-transform: uppercase; }
.feature.tall { grid-column: span 6; min-height: 380px; }
.feature.wide { grid-column: span 12; }
.feature.third { grid-column: span 4; }
.feature.half { grid-column: span 6; }
@media (max-width: 880px) {
  .feature.tall, .feature.wide, .feature.third, .feature.half { grid-column: span 12; }
}

/* ------------- Globe / coverage ------------- */

.coverage {
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-2);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
}
@media (max-width: 980px) { .coverage { grid-template-columns: 1fr; } }
.coverage-info { padding: 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.coverage-info h2 { font-size: clamp(32px, 3.6vw, 48px); }
.coverage-info p { font-size: 16px; max-width: 42ch; }

.country-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  background: var(--bg-2);
  padding: 36px;
  border-left: 1px solid var(--line-2);
}
.country {
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.country .region { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--ink-3); text-transform: uppercase; min-width: 50px; }
.country .nums { font-family: var(--mono); font-size: 12px; color: var(--ink); }

/* ------------- Languages ------------- */

.lang-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 880px) { .lang-grid { grid-template-columns: repeat(2, 1fr); } }
.lang {
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 200ms ease, border-color 200ms ease;
}
.lang:hover { transform: translateY(-2px); border-color: var(--line); }
.lang .native { font-family: var(--serif); font-size: 32px; line-height: 1; }
.lang .label { display: flex; flex-direction: column; }
.lang .label b { font-size: 15px; font-weight: 500; }
.lang .label span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--ink-3); text-transform: uppercase; margin-top: 2px; }

/* ------------- Analytics card ------------- */

.analytics {
  background: var(--ink);
  color: var(--bg-2);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
@media (max-width: 880px) { .analytics { grid-template-columns: 1fr; } }
.analytics h2 { color: var(--bg-2); }
.analytics .desc { color: rgba(251, 249, 244, 0.7); font-size: 17px; }
.dash {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.dash-head { display: flex; align-items: center; gap: 12px; }
.dash-head .live-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: #B8D8C4;
}
.dash-head .live-pill .ld { width: 8px; height: 8px; background: #4AB773; border-radius: 50%; animation: pulse 1.8s ease-in-out infinite; }
.dash-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.dash-kpi { display: flex; flex-direction: column; gap: 4px; }
.dash-kpi b { font-family: var(--serif); font-size: 26px; font-weight: 400; }
.dash-kpi span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(251,249,244,0.5); }

.chart {
  height: 120px;
  display: flex;
  align-items: end;
  gap: 4px;
}
.chart .bar {
  flex: 1;
  background: linear-gradient(180deg, rgba(255,255,255,0.5), rgba(255,255,255,0.15));
  border-radius: 4px 4px 0 0;
  min-height: 6px;
  transform-origin: bottom;
  animation: grow 800ms cubic-bezier(0.2,0.7,0.2,1) backwards;
}
@keyframes grow {
  from { transform: scaleY(0); }
}

/* ------------- Quote / Testimonials ------------- */

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 980px) { .quotes { grid-template-columns: 1fr; } }
.quote {
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-height: 320px;
}
.quote .q-mark {
  font-family: var(--serif);
  font-size: 64px;
  line-height: 0.4;
  color: var(--accent);
  font-style: italic;
  margin-top: 16px;
}
.quote p { font-family: var(--serif); font-size: 22px; line-height: 1.3; color: var(--ink); }
.quote .who { margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
.quote .who b { font-weight: 500; font-size: 14px; }
.quote .who span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }

/* ------------- CTA ------------- */

.cta {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 80px 48px;
  text-align: center;
  border: 1px solid var(--line-2);
  position: relative;
  overflow: hidden;
}
.cta h2 { max-width: 22ch; margin: 0 auto 24px; }
.cta .lead { margin: 0 auto 32px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ------------- Footer ------------- */

footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 64px 0 32px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 880px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-col h5 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 16px; font-weight: 500; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-col a { font-size: 14.5px; color: var(--ink-2); }
.foot-col a:hover { color: var(--ink); }
.foot-brand p { font-size: 14px; max-width: 32ch; margin-top: 16px; }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3);
}

/* ------------- Reveal on scroll ------------- */

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal:nth-child(2) { transition-delay: 80ms; }
.reveal:nth-child(3) { transition-delay: 160ms; }
.reveal:nth-child(4) { transition-delay: 240ms; }

/* ------------- Internal page heros ------------- */

.page-hero { padding: 80px 0 60px; }
.page-hero .eyebrow { margin-bottom: 24px; }
.page-hero h1 { font-size: clamp(48px, 6vw, 80px); max-width: 18ch; }
.page-hero .lead { margin-top: 24px; font-size: 20px; }

/* ------------- Platform page ------------- */

.arch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 880px) { .arch { grid-template-columns: 1fr; } }
.arch .layer {
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}
.arch .layer .num {
  font-family: var(--mono); font-size: 11px; color: var(--accent);
  letter-spacing: 0.12em; text-transform: uppercase;
}
.arch .layer h3 { font-size: 24px; line-height: 1.15; }
.arch .layer p { font-size: 14.5px; }

.flow {
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-2);
  padding: 48px;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 32px 24px;
  position: relative;
}
.flow .step-n { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--ink-3); text-transform: uppercase; padding-top: 6px; }
.flow .step-content h4 { font-family: var(--serif); font-size: 26px; font-weight: 400; margin-bottom: 6px; }
.flow .step-content p { font-size: 15px; max-width: 60ch; }
.flow .step-line { grid-column: 1; width: 1px; background: var(--line); margin-left: 30px; }
.flow .step-content { padding-bottom: 4px; }

/* ------------- Solutions ------------- */

.solutions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 880px) { .solutions { grid-template-columns: 1fr; } }
.solution {
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 380px;
  transition: transform 250ms ease, box-shadow 250ms ease;
}
.solution:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.solution .badge {
  align-self: flex-start;
  padding: 4px 10px;
  background: var(--accent-soft); color: var(--accent);
  border-radius: 999px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
}
.solution.amber .badge { background: var(--amber-soft); color: var(--amber); }
.solution.green .badge { background: var(--green-soft); color: var(--green); }
.solution h3 { font-size: 32px; line-height: 1.1; }
.solution .stats { margin-top: auto; display: flex; gap: 32px; padding-top: 24px; border-top: 1px dashed var(--line); }
.solution .stat b { font-family: var(--serif); font-size: 32px; font-weight: 400; line-height: 1; }
.solution .stat span { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-top: 6px; }

/* ------------- Image placeholders ------------- */

.imgph {
  background:
    repeating-linear-gradient(45deg, rgba(20,22,27,0.025) 0 8px, transparent 8px 16px),
    linear-gradient(180deg, var(--bg-2), var(--paper));
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  position: relative;
  overflow: hidden;
}
.imgph::after {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(20,22,27,0.1);
  border-radius: 8px;
  pointer-events: none;
}

/* ------------- About / company ------------- */

.story {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 880px) { .story { grid-template-columns: 1fr; gap: 32px; } }
.story h2 { font-size: clamp(36px, 4vw, 56px); }
.story-body p { font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.story-body p + p { margin-top: 18px; }
.story-body p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 64px;
  line-height: 0.9;
  float: left;
  margin: 6px 14px -4px 0;
  color: var(--ink);
}

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 880px) { .values { grid-template-columns: 1fr; } }
.value {
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 28px;
}
.value .num { font-family: var(--serif); font-size: 32px; color: var(--accent); font-style: italic; }
.value h4 { margin: 12px 0 8px; font-family: var(--serif); font-size: 22px; font-weight: 400; }
.value p { font-size: 14.5px; }

/* ------------- Contact form ------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }
.contact-form {
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.field input, .field textarea, .field select {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 10px;
  color: var(--ink);
  transition: border-color 150ms ease, background 150ms ease;
  outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); background: var(--paper); }
.field textarea { resize: vertical; min-height: 100px; }

.contact-info .item { padding: 24px 0; border-top: 1px dashed var(--line); }
.contact-info .item:first-child { border-top: none; padding-top: 0; }
.contact-info .item h5 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 8px; font-weight: 500; }
.contact-info .item p { font-size: 17px; color: var(--ink); }

/* ------------- Compliance grid ------------- */

.compliance {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
@media (max-width: 880px) { .compliance { grid-template-columns: repeat(2, 1fr); } }
.region {
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.region h5 { font-family: var(--serif); font-size: 22px; margin: 0; font-weight: 400; }
.region ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.region li { font-family: var(--mono); font-size: 12px; color: var(--ink-2); padding-left: 14px; position: relative; }
.region li::before { content: '·'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* ------------- Big number marquee ------------- */

.big-stat {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.big-stat .b {
  padding: 48px 32px;
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px;
}
.big-stat .b:first-child { border-left: none; }
.big-stat .b b { font-family: var(--serif); font-size: clamp(48px, 5vw, 72px); font-weight: 400; line-height: 1; letter-spacing: -0.01em; }
.big-stat .b span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 880px) {
  .big-stat { grid-template-columns: 1fr; }
  .big-stat .b { border-left: none; border-top: 1px solid var(--line); }
  .big-stat .b:first-child { border-top: none; }
}

/* ------------- Animated blob mark ------------- */

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}
.spin-slow { animation: spin-slow 60s linear infinite; }

/* ------------- Brand tiles (integration logos) ------------- */

.brand-tile {
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 130px;
  position: relative;
  overflow: hidden;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.brand-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line); }
.brand-tile::after {
  content: '';
  position: absolute;
  inset: auto -30% -50% auto;
  width: 180px; height: 180px;
  background: radial-gradient(closest-side, var(--accent-soft) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
}
.brand-tile:hover::after { opacity: 0.7; }

.brand-tile .glyph {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--paper);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.brand-tile .glyph.sq { border-radius: 8px; }
.brand-tile .glyph.cir { border-radius: 50%; }
.brand-tile .glyph.tri { border-radius: 4px; transform: rotate(45deg); }
.brand-tile .glyph.tri span { transform: rotate(-45deg); }

.brand-tile .meta { display: flex; flex-direction: column; gap: 4px; margin-top: auto; position: relative; z-index: 1; }
.brand-tile .meta b { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.brand-tile .meta span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }

/* color variants */
.bg-cobalt { background: linear-gradient(135deg, #2E50CC, #1F3FB8); }
.bg-ink    { background: linear-gradient(135deg, #2A2D36, #14161B); }
.bg-amber  { background: linear-gradient(135deg, #E0944A, #C97A35); }
.bg-green  { background: linear-gradient(135deg, #3D8961, #2F6E4A); }
.bg-rose   { background: linear-gradient(135deg, #C46A6A, #A04E4E); }
.bg-teal   { background: linear-gradient(135deg, #3E8E92, #2A6F73); }
.bg-violet { background: linear-gradient(135deg, #6E58B8, #4F3E97); }
.bg-sand   { background: linear-gradient(135deg, #C4B187, #9E8C66); }
.bg-sky    { background: linear-gradient(135deg, #5E96CF, #3F77B0); }
.bg-coral  { background: linear-gradient(135deg, #DC8567, #BB6849); }
.bg-moss   { background: linear-gradient(135deg, #6E8662, #556B4B); }
.bg-plum   { background: linear-gradient(135deg, #8F5070, #6E3852); }

/* ------------- Media / images ------------- */

.media {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: var(--bg-2);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.media:hover img { transform: scale(1.03); }
.media .tag {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  padding: 6px 10px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.media .grad {
  position: absolute;
  inset: auto 0 0 0;
  height: 50%;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.55));
  pointer-events: none;
}
.media .caption {
  position: absolute;
  bottom: 16px; left: 16px; right: 16px;
  color: white;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 500;
  z-index: 1;
}

/* ------------- Diagram blocks (replacing imgph) ------------- */

.diagram {
  background: var(--bg-2);
  border-radius: 14px;
  padding: 24px;
  border: 1px solid var(--line-2);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.flow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.flow-pill .dotc { width: 6px; height: 6px; border-radius: 50%; }

.channel-diagram {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  gap: 12px;
  align-items: center;
}
.channel-col { display: flex; flex-direction: column; gap: 8px; }
.channel-pipe {
  height: 1px; background: var(--line);
  position: relative;
}
.channel-pipe::before, .channel-pipe::after {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%);
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.channel-pipe::before { top: -3px; }
.channel-pipe::after { display: none; }

/* state-graph diagram */
.graph-nodes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  position: relative;
}
.graph-node {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: flex; flex-direction: column; gap: 4px;
  text-align: center;
}
.graph-node b { font-family: var(--serif); font-size: 18px; font-weight: 400; color: var(--ink); text-transform: none; letter-spacing: -0.01em; }
.graph-node.accent { border-color: var(--accent); color: var(--accent); }
.graph-edges { height: 24px; position: relative; }
.graph-edges svg { width: 100%; height: 100%; }

/* policy clauses */
.clauses { display: flex; flex-direction: column; gap: 6px; }
.clause {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 10px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12.5px;
}
.clause .check {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: grid; place-items: center;
  font-size: 11px;
  font-weight: 700;
}
.clause .id { font-family: var(--mono); font-size: 10px; color: var(--ink-3); letter-spacing: 0.06em; }

/* audit ledger rows */
.ledger { display: flex; flex-direction: column; }
.led-row {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--ink-2);
}
.led-row:last-child { border-bottom: none; }
.led-row .ts { color: var(--ink-3); }
.led-row .ok { color: var(--green); }

/* doc preview */
.doc-preview {
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-2);
}
.doc-preview .doc-line {
  height: 6px; background: var(--line-2); border-radius: 3px;
}
.doc-preview .doc-line.w70 { width: 70%; }
.doc-preview .doc-line.w50 { width: 50%; }
.doc-preview .doc-line.w90 { width: 90%; }
.doc-preview .doc-head { display: flex; justify-content: space-between; padding-bottom: 6px; border-bottom: 1px dashed var(--line); }
.doc-preview .doc-amt { font-family: var(--serif); font-size: 22px; color: var(--ink); margin-top: 4px; }

/* mini dashboard mockup (customers page) */
.mock-dash {
  background: var(--paper);
  border-left: 1px solid var(--line-2);
  padding: 32px;
  display: flex; flex-direction: column; gap: 18px;
  min-height: 480px;
}
.mock-dash .md-head {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line-2);
}
.mock-dash .md-head .ic {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 14px;
}
.mock-dash .md-head b { font-size: 14px; font-weight: 500; }
.mock-dash .md-head span { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; }
.md-kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.md-kpis .k {
  background: var(--bg-2); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 4px;
}
.md-kpis .k b { font-family: var(--serif); font-size: 24px; line-height: 1; }
.md-kpis .k span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.md-kpis .k .delta { font-family: var(--mono); font-size: 10.5px; color: var(--green); margin-top: 2px; }
.md-rows { display: flex; flex-direction: column; gap: 6px; }
.md-row {
  display: grid; grid-template-columns: 1fr auto auto auto; gap: 14px;
  font-size: 12.5px; padding: 10px 12px; background: var(--bg-2); border-radius: 8px;
  align-items: center;
}
.md-row .nm { font-weight: 500; }
.md-row .meta-tag {
  padding: 2px 8px; border-radius: 999px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--accent-soft); color: var(--accent);
}
.md-row .meta-tag.ok { background: var(--green-soft); color: var(--green); }
.md-row .meta-tag.warn { background: var(--amber-soft); color: var(--amber); }
.md-row .amt { font-family: var(--mono); font-size: 12px; color: var(--ink); }
.md-row .when { font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }

/* World map dots */
.world {
  background: var(--bg-2);
  border-radius: 10px;
  padding: 24px;
  position: relative;
  min-height: 200px;
  overflow: hidden;
}
.world svg { width: 100%; height: 100%; }
.world .pin {
  position: absolute;
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(31, 63, 184, 0.18);
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(31, 63, 184, 0.18); }
  50% { box-shadow: 0 0 0 9px rgba(31, 63, 184, 0); }
}

/* solution card image header */
.solution { padding: 0; overflow: hidden; }
.solution > .badge { margin: 28px 28px 0; }
.solution > h3, .solution > p { margin-left: 28px; margin-right: 28px; }
.solution > .stats { margin: auto 28px 28px; }
.solution .sol-img {
  position: relative;
  height: 180px;
  overflow: hidden;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--bg-2), var(--line-2));
}
.solution .sol-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms ease; }
.solution:hover .sol-img img { transform: scale(1.04); }
.solution .sol-img .vignette {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(20,22,27,0.4));
  pointer-events: none;
}
.solution .sol-img .corner {
  position: absolute;
  bottom: 12px; right: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: white;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(6px);
  padding: 4px 10px;
  border-radius: 999px;
}

/* in-production strip */
.scene-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 880px) { .scene-grid { grid-template-columns: 1fr; } }
.scene {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-2), var(--line-2));
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.scene img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.2,0.7,0.2,1);
}
.scene:hover img { transform: scale(1.05); }
.scene .scene-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(20,22,27,0.85));
}
.scene .scene-body {
  position: relative;
  z-index: 1;
  padding: 28px;
  color: white;
}
.scene .scene-body .eyebrow {
  color: rgba(255,255,255,0.7);
}
.scene .scene-body .eyebrow::before { background: white; }
.scene .scene-body h3 {
  color: white;
  font-size: 28px;
  margin-top: 14px;
}

/* office cards with imagery */
.office-card {
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.office-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.office-card .office-img {
  height: 140px;
  background: linear-gradient(135deg, var(--bg-2), var(--line-2));
  position: relative;
  overflow: hidden;
}
.office-card .office-img img { width: 100%; height: 100%; object-fit: cover; }
.office-card .office-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(20,22,27,0.35));
}
.office-card .office-img .code {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  color: white; background: rgba(0,0,0,0.4); backdrop-filter: blur(6px);
  padding: 4px 10px; border-radius: 999px;
}
.office-card .office-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.office-card .office-body h4 { font-family: var(--serif); font-size: 22px; font-weight: 400; }
.office-card .office-body p { font-size: 13.5px; color: var(--ink-3); }

/* ------------- Animated rolling chat (hero) ------------- */

.chat-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  perspective: 1200px;
  min-height: 380px;
  position: relative;
}

.msg-card {
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 4px 16px -8px rgba(20, 22, 27, 0.12);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform-origin: center top;
  opacity: 0;
  transform: translateY(30px) scale(0.94);
  transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1),
              opacity 500ms ease,
              filter 500ms ease;
  will-change: transform, opacity;
}
.msg-card.in {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.msg-card.out {
  opacity: 0;
  transform: translateY(-40px) scale(0.88);
  filter: blur(2px);
}
.msg-card.aged-1 { transform: translateY(0) scale(0.97); opacity: 0.88; }
.msg-card.aged-2 { transform: translateY(0) scale(0.94); opacity: 0.62; }

.msg-card .avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 14px;
  color: var(--paper);
  flex-shrink: 0;
}
.msg-card.from-user .avatar { background: linear-gradient(135deg, #B4823F, #8E5F25); }
.msg-card.from-ai .avatar {
  background: var(--ink);
  position: relative;
}
.msg-card.from-ai .avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

.msg-card .head { display: flex; align-items: center; gap: 10px; }
.msg-card .who { display: flex; flex-direction: column; gap: 1px; }
.msg-card .who b { font-size: 13.5px; font-weight: 500; }
.msg-card .who span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.msg-card .stamp { margin-left: auto; font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; color: var(--ink-3); }
.msg-card .stamp .live-d {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: #4AB773; margin-right: 4px;
  vertical-align: 1px;
  animation: pulse 1.6s ease-in-out infinite;
}
.msg-card .body { font-size: 15px; line-height: 1.45; color: var(--ink); padding-left: 38px; }

.msg-card.from-ai { background: var(--ink); border-color: var(--ink); color: var(--bg-2); }
.msg-card.from-ai .who b { color: var(--bg-2); }
.msg-card.from-ai .who span { color: rgba(255,255,255,0.5); }
.msg-card.from-ai .stamp { color: rgba(255,255,255,0.5); }
.msg-card.from-ai .body { color: var(--bg-2); }

/* typing dots */
.typing {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  margin-left: 4px;
}
.typing span {
  width: 5px; height: 5px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  animation: bounce 1.2s ease-in-out infinite;
}
.typing span:nth-child(2) { animation-delay: 0.18s; }
.typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
  40% { transform: translateY(-3px); opacity: 1; }
}

/* ------------- Hero device tilt / 3D ------------- */

.tilt-stage { perspective: 1400px; perspective-origin: 50% 30%; }
.tilt {
  transform-style: preserve-3d;
  transform: rotateY(var(--rx, -6deg)) rotateX(var(--ry, 3deg));
  transition: transform 400ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.tilt-layer {
  transform: translateZ(40px);
}

/* ------------- Dark section base ------------- */

section.dark {
  background: #0E0F13;
  color: #E5E2DA;
  position: relative;
  overflow: hidden;
}
section.dark h2, section.dark h3, section.dark h4 { color: #F2EFE7; }
section.dark p, section.dark .desc { color: rgba(229, 226, 218, 0.66); }
section.dark .eyebrow { color: rgba(229, 226, 218, 0.5); }
section.dark .eyebrow::before { background: #6F8AF0; }
section.dark .btn.primary { background: #F2EFE7; color: #14161B; }
section.dark .btn.primary:hover { background: white; }
section.dark .btn.ghost { color: #F2EFE7; border-color: rgba(255,255,255,0.16); background: rgba(255,255,255,0.04); }
section.dark .btn.ghost:hover { background: rgba(255,255,255,0.08); }

/* Dark section ambient glow */
section.dark .glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
section.dark .glow-blob.a { width: 420px; height: 420px; background: rgba(120, 140, 240, 0.16); top: -80px; right: -120px; }
section.dark .glow-blob.b { width: 320px; height: 320px; background: rgba(220, 140, 80, 0.12); bottom: -120px; left: -80px; }

/* Dark grid backdrop */
section.dark .grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  pointer-events: none;
}

/* Dark card / panel */
.dark-card {
  background: linear-gradient(180deg, #14161B, #0E0F13);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  color: #E5E2DA;
}
.dark-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(120,140,240,0.4), transparent 40%, transparent 60%, rgba(220,140,80,0.3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0.6;
  pointer-events: none;
}
.dark-card h3, .dark-card h4 { color: #F2EFE7; }
.dark-card p { color: rgba(229,226,218,0.62); }

/* Dark feature card */
.dark-feature {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 250ms ease, background 250ms ease, border-color 250ms ease;
}
.dark-feature:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.14);
}
.dark-feature h3 { font-size: 26px; }
.dark-feature .num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: #8FA6F5; text-transform: uppercase; }
.dark-feature p { font-size: 14.5px; color: rgba(229,226,218,0.66); }

/* ------------- Brand tile w/ real logo ------------- */

.brand-tile .logo-img {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  padding: 6px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.brand-tile .logo-img img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: grayscale(0.1);
}

/* ------------- Charts: line, donut, sparkline ------------- */

.linechart {
  position: relative;
  width: 100%;
  height: 140px;
}
.linechart svg { width: 100%; height: 100%; overflow: visible; }
.linechart .grid line { stroke: rgba(20,22,27,0.06); stroke-width: 1; }
.linechart .area { fill: url(#area-grad); opacity: 0.6; }
.linechart .line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.linechart .dot { fill: var(--accent); }
.linechart .axis { font-family: var(--mono); font-size: 9px; fill: var(--ink-3); letter-spacing: 0.04em; }

section.dark .linechart .line { stroke: #8FA6F5; }
section.dark .linechart .dot { fill: #8FA6F5; }
section.dark .linechart .grid line { stroke: rgba(255,255,255,0.06); }
section.dark .linechart .axis { fill: rgba(255,255,255,0.4); }

.donut { width: 140px; height: 140px; position: relative; }
.donut svg { transform: rotate(-90deg); }
.donut .center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.donut .center b { font-family: var(--serif); font-size: 30px; line-height: 1; }
.donut .center span { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }
section.dark .donut .center b { color: #F2EFE7; }
section.dark .donut .center span { color: rgba(229,226,218,0.5); }

.sparkline {
  display: inline-block;
  width: 80px; height: 24px;
  vertical-align: middle;
}
.sparkline path { fill: none; stroke: currentColor; stroke-width: 1.5; }

/* Stat tile with mini sparkline */
.stat-tile {
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.stat-tile .row1 { display: flex; align-items: center; justify-content: space-between; }
.stat-tile .row1 b { font-family: var(--serif); font-size: 36px; line-height: 1; font-weight: 400; }
.stat-tile .delta {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--green);
  background: var(--green-soft); padding: 3px 8px; border-radius: 999px;
}
.stat-tile .delta.down { color: var(--amber); background: var(--amber-soft); }
.stat-tile .label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.stat-tile .spark { color: var(--accent); margin-top: 4px; }

/* ------------- Tilt-3D card ------------- */

.tilt3d { transition: transform 300ms cubic-bezier(0.2,0.7,0.2,1); transform-style: preserve-3d; }
.tilt3d:hover { transform: rotateX(2deg) rotateY(-3deg) translateZ(8px); box-shadow: 0 30px 60px -25px rgba(20,22,27,0.25); }

/* ------------- Hero floating mark (3D feel) ------------- */

.hero-mark {
  position: absolute;
  width: 360px; height: 360px;
  top: 60px; right: -80px;
  z-index: 0;
  opacity: 0.06;
  pointer-events: none;
}
.hero-mark img { width: 100%; height: 100%; }

/* Dark overrides for shared components */
section.dark .layer,
section.dark .arch .layer {
  background: rgba(255,255,255,0.025);
  border-color: rgba(255,255,255,0.07);
  color: rgba(229,226,218,0.85);
}
section.dark .layer h3 { color: #F2EFE7; }
section.dark .layer p { color: rgba(229,226,218,0.66); }
section.dark .layer .num { color: #8FA6F5; }
section.dark .diagram {
  background: rgba(0,0,0,0.2);
  border-color: rgba(255,255,255,0.06);
}
section.dark .graph-node {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
  color: rgba(229,226,218,0.7);
}
section.dark .graph-node b { color: #F2EFE7; }
section.dark .graph-node.accent {
  background: rgba(143,166,245,0.12);
  border-color: rgba(143,166,245,0.3);
  color: #8FA6F5;
}
section.dark .clause {
  background: rgba(255,255,255,0.025);
  border-color: rgba(255,255,255,0.07);
  color: rgba(229,226,218,0.85);
}
section.dark .clause .check { background: rgba(74,183,115,0.18); color: #9FE0B4; }
section.dark .clause .id { color: rgba(229,226,218,0.4); }
section.dark .led-row {
  border-color: rgba(255,255,255,0.08);
  color: rgba(229,226,218,0.7);
}
section.dark .led-row .ts { color: rgba(229,226,218,0.4); }
section.dark .led-row .ok { color: #9FE0B4; }
section.dark .feature {
  background: rgba(255,255,255,0.025);
  border-color: rgba(255,255,255,0.07);
}
section.dark .feature h3 { color: #F2EFE7; }
section.dark .feature p { color: rgba(229,226,218,0.66); }
section.dark .feature .num { color: #8FA6F5; }
section.dark .value, section.dark .values .value {
  background: rgba(255,255,255,0.025);
  border-color: rgba(255,255,255,0.07);
}
section.dark .value h4 { color: #F2EFE7; }
section.dark .value p { color: rgba(229,226,218,0.66); }
section.dark .value .num { color: #8FA6F5; }
section.dark .flow {
  background: rgba(255,255,255,0.025);
  border-color: rgba(255,255,255,0.07);
}
section.dark .flow .step-n { color: rgba(229,226,218,0.4); }
section.dark .flow .step-content h4 { color: #F2EFE7; }
section.dark .flow .step-content p { color: rgba(229,226,218,0.66); }
section.dark .flow .step-line { background: rgba(255,255,255,0.08); }

/* ------------- Office map (contact) ------------- */

.office-map {
  position: relative;
  background: linear-gradient(180deg, #0E0F13, #14161B);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  width: 100%;
}
.office-map .map-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.office-map .map-svg path,
.office-map .map-svg circle.land {
  fill: rgba(255,255,255,0.045);
  stroke: rgba(255,255,255,0.1);
  stroke-width: 0.4;
}
.office-map .grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}
.office-map .map-glow {
  position: absolute;
  width: 320px; height: 320px;
  background: radial-gradient(closest-side, rgba(143,166,245,0.18), transparent 70%);
  pointer-events: none;
  border-radius: 50%;
  top: 20%; left: 55%;
  filter: blur(12px);
}
.map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.map-pin .dot {
  width: 14px; height: 14px;
  background: #8FA6F5;
  border-radius: 50%;
  box-shadow:
    0 0 0 4px rgba(143,166,245,0.25),
    0 0 16px rgba(143,166,245,0.55);
  position: relative;
}
.map-pin .dot::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(143,166,245,0.4);
  animation: ping 2.4s ease-out infinite;
}
.map-pin .dot::after {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px solid rgba(143,166,245,0.2);
  animation: ping 2.4s ease-out infinite;
  animation-delay: 0.8s;
}
@keyframes ping {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(2.2); opacity: 0; }
}
.map-pin .label {
  position: absolute;
  left: 22px;
  top: -8px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 6px 10px;
  border-radius: 999px;
  color: #F2EFE7;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.map-pin .label b { font-weight: 500; }
.map-pin .label span { color: rgba(229,226,218,0.5); margin-left: 6px; }
.map-pin.below .label { left: -8px; top: 20px; }

/* Office summary list under map */
.office-list-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 20px;
}
@media (max-width: 720px) { .office-list-row { grid-template-columns: repeat(2, 1fr); } }
.office-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.office-item .code {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: #8FA6F5;
}
.office-item .city {
  font-family: var(--serif); font-size: 20px; color: #F2EFE7; font-weight: 400; line-height: 1;
}
.office-item .meta {
  font-family: var(--mono); font-size: 10px; color: rgba(229,226,218,0.5); letter-spacing: 0.06em;
  text-transform: uppercase; margin-top: 4px;
}

/* ------------- Testimonial star upgrades ------------- */

.quote {
  position: relative;
}
.quote .star,
.dark-feature .star {
  position: absolute;
  top: 22px;
  right: 22px;
  display: flex;
  gap: 2px;
  color: #E5B07E;
}
.quote .star svg,
.dark-feature .star svg {
  width: 14px; height: 14px;
  fill: currentColor;
}

/* ------------- Blog cards ------------- */

.blog-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 20px;
}
@media (max-width: 980px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 250ms ease, border-color 250ms ease, background 250ms ease;
}
.blog-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.04);
}
.blog-card .blog-img {
  height: 200px;
  background: linear-gradient(135deg, #1A1C22, #0E0F13);
  position: relative;
  overflow: hidden;
}
.blog-card .blog-img img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.86;
  transition: transform 700ms cubic-bezier(0.2,0.7,0.2,1), opacity 300ms ease;
}
.blog-card:hover .blog-img img { transform: scale(1.04); opacity: 1; }
.blog-card .blog-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(14,15,19,0.85));
  pointer-events: none;
}
.blog-card .blog-img .topic {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: #F2EFE7;
  background: rgba(0,0,0,0.42);
  backdrop-filter: blur(8px);
  padding: 5px 10px; border-radius: 999px;
  z-index: 1;
  border: 1px solid rgba(255,255,255,0.12);
}
.blog-card .blog-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.blog-card .blog-meta {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(229,226,218,0.5);
  display: flex; gap: 12px;
}
.blog-card .blog-meta .sep { color: rgba(229,226,218,0.3); }
.blog-card h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.15;
  color: #F2EFE7;
}
.blog-card.featured h3 { font-size: 34px; }
.blog-card p {
  font-size: 14.5px;
  color: rgba(229,226,218,0.66);
}
.blog-card .blog-read {
  margin-top: auto;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: #8FA6F5;
  display: inline-flex; align-items: center; gap: 6px;
}
.blog-card .blog-read .arr { transition: transform 200ms ease; }
.blog-card:hover .blog-read .arr { transform: translateX(4px); }

/* ------------- Top Tape (live ops strip) ------------- */

.tape {
  background: var(--ink);
  color: var(--bg-2);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  overflow: hidden;
  position: relative;
  z-index: 51;
}
.tape-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 32px;
  display: flex;
  align-items: center;
  gap: 22px;
  white-space: nowrap;
}
.tape .live-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #9FE0B4;
  font-weight: 500;
}
.tape .live-tag .lv {
  width: 6px; height: 6px;
  background: #4AB773;
  border-radius: 50%;
  animation: pulse 1.6s ease-in-out infinite;
}
.tape .sep { color: rgba(229,226,218,0.18); }
.tape .city { display: inline-flex; align-items: center; gap: 8px; color: rgba(229,226,218,0.55); }
.tape .city b { color: var(--bg-2); font-weight: 500; }
.tape .city .clk { color: rgba(229,226,218,0.85); }
.tape .right {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 18px;
  color: rgba(229,226,218,0.5);
}
.tape .right a { color: rgba(229,226,218,0.78); transition: color 150ms ease; }
.tape .right a:hover { color: var(--bg-2); }
.tape .right .arrow { font-size: 10px; vertical-align: 1px; margin-left: 3px; }
.tape .right .badge {
  font-family: var(--mono);
  padding: 2px 8px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  font-size: 10px;
  color: var(--bg-2);
}

@media (max-width: 980px) {
  .tape .city.opt { display: none; }
}
@media (max-width: 720px) {
  .tape-inner { padding: 8px 20px; gap: 14px; }
  .tape .right .badge { display: none; }
}

/* ------------- New nav row ------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246,243,236,0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, background 200ms ease;
}
.nav.scrolled {
  border-bottom-color: var(--line);
  background: rgba(246,243,236,0.95);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 32px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 500;
  font-size: 16.5px;
  letter-spacing: -0.01em;
}
.brand .mark {
  width: 38px; height: 38px;
  background: var(--ink);
  border-radius: 12px;
  overflow: hidden;
  display: grid; place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px -4px rgba(20,22,27,0.2);
}
.brand .mark img { width: 76%; height: 76%; object-fit: contain; }
.brand .name {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 4px;
}
.brand .name b {
  font-weight: 500;
  font-size: 17px;
  font-family: var(--serif);
  letter-spacing: -0.005em;
}
.brand .name .tld {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--ink-3);
  letter-spacing: 0.18em;
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav-links a {
  padding: 8px 18px;
  position: relative;
  color: var(--ink-3);
  transition: color 150ms ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a + a::before {
  content: '';
  position: absolute;
  left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--ink-4);
  opacity: 0.5;
}
.nav-links a.active {
  color: var(--ink);
  font-weight: 500;
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 18px; right: 18px;
  bottom: 0;
  height: 1.5px;
  background: var(--ink);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-cta .meta-mini {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

@media (max-width: 860px) {
  .nav-inner { grid-template-columns: auto auto; }
  .nav-links { display: none; }
}
@media (max-width: 720px) {
  .nav-inner { padding: 18px 20px; }
  .nav-cta .meta-mini { display: none; }
  .brand .name .tld { display: none; }
}

/* ------------- Utility ------------- */

.spacer-sm { height: 32px; }
.spacer-md { height: 64px; }
.spacer-lg { height: 100px; }
.center { text-align: center; }
.muted { color: var(--ink-3); }
