/* Website UI kit — page-level styles. Imports brand foundations. */
@import url("colors_and_type.css");

/* ── Layout ───────────────────────────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }

/* ── Buttons (kit-local copy of canonical styles) ─────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 600; font-size: 14px;
  padding: 10px 18px; border-radius: var(--r-2);
  border: 1px solid transparent; cursor: pointer; line-height: 1;
  text-decoration: none;
  transition: background var(--dur-2) var(--ease-out),
              transform var(--dur-2) var(--ease-out),
              box-shadow var(--dur-2) var(--ease-out),
              color var(--dur-2) var(--ease-out);
}
.btn-lg { font-size: 15px; padding: 14px 22px; }
.btn-primary { background: var(--brand-blue); color: var(--white); }
.btn-primary:hover { background: var(--brand-blue-600); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary:active { background: var(--brand-blue-700); transform: translateY(0); }
.btn-secondary { background: var(--surface); color: var(--fg-display); border-color: var(--cream-300); }
.btn-secondary:hover { background: var(--cream-100); }
.btn-ghost { background: transparent; color: var(--brand-blue); }
.btn-ghost:hover { background: var(--brand-blue-50); }
.btn:focus-visible { outline: none; box-shadow: var(--shadow-glow); }

/* ── Form inputs ──────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 500; color: var(--fg-display); }
.input {
  font-family: var(--font-sans); font-size: 14px;
  padding: 10px 12px; border-radius: var(--r-2);
  border: 1px solid var(--cream-300); background: var(--white);
  color: var(--fg-1); transition: all var(--dur-2) var(--ease-out);
  width: 100%; box-sizing: border-box;
}
.input:focus { outline: none; border-color: var(--brand-blue); box-shadow: var(--shadow-glow); }
textarea.input { resize: vertical; min-height: 96px; font-family: var(--font-sans); }

/* ── Nav ──────────────────────────────────────────────────── */
.e-nav {
  position: sticky; top: 0; z-index: 50;
  padding: 14px 0;
  background: transparent;
  transition: background var(--dur-3) var(--ease-out),
              box-shadow var(--dur-3) var(--ease-out),
              backdrop-filter var(--dur-3) var(--ease-out);
}
.e-nav.is-scrolled {
  background: rgba(251, 248, 242, 0.78);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  box-shadow: 0 1px 0 var(--hairline);
}
.e-nav__inner {
  max-width: var(--container);
  margin: 0 auto; padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 36px;
}
.e-nav__brand img { height: 44px; display: block; }
.e-nav__links { display: flex; gap: 26px; margin-left: auto; }
.e-nav__links a {
  font-size: 14px; color: var(--fg-1); font-weight: 500;
  text-decoration: none; padding: 6px 0;
  transition: color var(--dur-2) var(--ease-out);
}
.e-nav__links a:hover { color: var(--brand-blue); }
.e-nav__links a.is-active { color: var(--brand-blue); }
@media (max-width: 720px) { .e-nav__links { display: none; } }

/* ── Hero ─────────────────────────────────────────────────── */
.e-hero { padding: 64px 0 96px; }
.e-hero__inner {
  max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter);
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 72px; align-items: center;
}
@media (max-width: 920px) { .e-hero__inner { grid-template-columns: 1fr; gap: 48px; } }
.e-hero__copy { display: flex; flex-direction: column; gap: 20px; }
.e-hero__copy .t-eyebrow { margin-bottom: -8px; }
.e-hero__copy h1 em { font-style: normal; color: var(--brand-blue); }
.e-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.e-hero__meta {
  display: flex; gap: 24px; flex-wrap: wrap; margin-top: 24px;
  font-size: 13px; color: var(--fg-2);
}
.e-hero__meta span { display: inline-flex; align-items: center; gap: 6px; }
.e-hero__meta svg { color: var(--brand-blue); }

/* Hero visual stack — main dashboard with two satellite cards */
.e-hero__visual { position: relative; min-height: 520px; }
.e-visual-stack {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 520px;
}
@media (max-width: 920px) {
  .e-hero__visual, .e-visual-stack { min-height: 0; }
}

.e-mock {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-5);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.e-mock--main {
  position: relative;
  z-index: 1;
  transform: rotate(0.6deg);
}

/* Floating KPI card — sits bottom-left, slightly tilted */
.e-mock--kpi {
  position: absolute;
  bottom: -28px;
  left: -56px;
  width: 240px;
  padding: 16px 18px;
  z-index: 2;
  transform: rotate(-3.2deg);
  border-radius: var(--r-4);
}
.e-kpi__head { margin-bottom: 12px; }
.e-kpi__title { font-size: 15px; font-weight: 700; color: var(--fg-display); margin: 2px 0 0; }
.e-kpi__bars { display: flex; flex-direction: column; gap: 8px; }
.e-kpi__row { display: grid; grid-template-columns: 56px 1fr 22px; align-items: center; gap: 8px; }
.e-kpi__label { font-size: 11px; color: var(--fg-2); font-weight: 500; }
.e-kpi__track { height: 6px; background: var(--cream-100); border-radius: 999px; overflow: hidden; }
.e-kpi__fill { height: 100%; border-radius: 999px; transition: width var(--dur-4) var(--ease-out); }
.e-kpi__val { font-family: var(--font-mono); font-size: 11px; color: var(--fg-display); font-weight: 600; text-align: right; }

/* Live sync status — sits top-right of dashboard, peeks off the edge */
.e-mock--sync {
  position: absolute;
  top: -36px;
  right: -40px;
  width: 230px;
  padding: 16px 18px;
  z-index: 2;
  transform: rotate(2.4deg);
  border-radius: var(--r-4);
}
.e-sync__head {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 12px; margin-bottom: 12px;
  border-bottom: 1px solid var(--hairline);
}
.e-sync__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(18, 138, 92, 0.18);
  animation: sync-pulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes sync-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(18, 138, 92, 0.18); }
  50%      { box-shadow: 0 0 0 6px rgba(18, 138, 92, 0.06); }
}
.e-sync__title { font-size: 13px; font-weight: 600; color: var(--fg-display); }
.e-sync__sub { font-family: var(--font-mono); font-size: 10px; color: var(--fg-3); margin-top: 1px; }
.e-sync__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.e-sync__list li {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--fg-1);
}
.e-sync__list li em { margin-left: auto; font-style: normal; font-family: var(--font-mono); font-size: 10px; color: var(--fg-3); }
.e-sync__chk {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--success); color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.e-sync__chk--active {
  background: transparent;
  border: 1.5px solid var(--brand-blue);
  border-top-color: transparent;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 920px) {
  .e-mock--main { transform: none; }
  .e-mock--kpi, .e-mock--sync { position: static; width: 100%; transform: none; margin-top: 16px; }
}
.e-mock__chrome {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px; background: var(--cream-100);
  border-bottom: 1px solid var(--border);
}
.e-mock__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cream-300); }
.e-mock__url {
  flex: 1; text-align: center;
  font-family: var(--font-mono); font-size: 11px; color: var(--fg-3);
  background: var(--white); border: 1px solid var(--border);
  padding: 4px 10px; border-radius: var(--r-pill);
  margin-left: 12px;
}
.e-mock__body { padding: 22px; }
.e-mock__head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 18px; }
.e-mock__pill {
  background: #E5F4EC; color: #0E6B47;
  padding: 4px 10px; border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
}
.e-mock__chart { width: 100%; height: 110px; display: block; }
.e-mock__stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-top: 18px;
  padding-top: 18px; border-top: 1px solid var(--hairline);
}
.e-mock__stats > div { display: flex; flex-direction: column; gap: 4px; }
.e-mock__stats b { font-family: var(--font-display); font-size: 24px; color: var(--fg-display); font-weight: 700; letter-spacing: -0.01em; }

/* ── Services ─────────────────────────────────────────────── */
.e-services { padding: 96px 0; background: var(--cream-100); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.e-services__head { max-width: 720px; margin-bottom: 56px; display: flex; flex-direction: column; gap: 12px; }
.e-services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 920px) { .e-services__grid { grid-template-columns: 1fr; } }
.e-service {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-4); padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.e-service:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.e-service__icon {
  width: 44px; height: 44px; border-radius: var(--r-2);
  background: var(--brand-blue-50); color: var(--brand-blue);
  display: flex; align-items: center; justify-content: center;
}
.e-service h3 { font-size: 19px; margin: 0; color: var(--fg-display); }
.e-service p { font-size: 14px; color: var(--fg-2); margin: 0; flex: 1; }
.e-service__link { color: var(--brand-blue); font-size: 14px; font-weight: 600; cursor: pointer; }

/* ── Process ──────────────────────────────────────────────── */
.e-process { padding: 96px 0; }
.e-process__list { list-style: none; padding: 0; margin: 0; max-width: 820px; }
.e-process__step {
  display: grid; grid-template-columns: 80px 1fr; gap: 24px;
  padding: 28px 0; border-top: 1px solid var(--border);
}
.e-process__step:last-child { border-bottom: 1px solid var(--border); }
.e-process__num {
  font-family: var(--font-mono); font-size: 36px; font-weight: 500;
  color: var(--brand-blue); line-height: 1; letter-spacing: -0.02em;
}
.e-process__content { display: flex; flex-direction: column; gap: 6px; }
.e-process__content h3 { font-size: 22px; margin: 4px 0 0; color: var(--fg-display); }
.e-process__content p { font-size: 16px; color: var(--fg-2); margin: 6px 0 0; max-width: 620px; }

/* ── Case study ───────────────────────────────────────────── */
.e-case { padding: 96px 0; }
.e-case__inner {
  background: var(--brand-navy); border-radius: var(--r-6);
  padding: clamp(32px, 5vw, 64px);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px;
  color: var(--white);
  position: relative; overflow: hidden;
}
.e-case__inner::before {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(8, 88, 216, 0.4), transparent 70%);
  pointer-events: none;
}
@media (max-width: 920px) { .e-case__inner { grid-template-columns: 1fr; gap: 32px; } }
.e-case__copy { display: flex; flex-direction: column; gap: 16px; }
.e-case__stats { display: flex; flex-direction: column; gap: 24px; align-self: center; }
.e-case__stats > div { display: flex; flex-direction: column; gap: 2px; padding-left: 18px; border-left: 2px solid var(--brand-blue); }
.e-case__stats b { font-family: var(--font-display); font-size: 36px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; color: var(--white); }
.e-case__stats span { font-size: 13px; color: var(--brand-blue-300); }

/* ── Contact ──────────────────────────────────────────────── */
.e-contact { padding: 96px 0; background: var(--cream-100); border-top: 1px solid var(--border); }
.e-contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
@media (max-width: 920px) { .e-contact__inner { grid-template-columns: 1fr; gap: 32px; } }
.e-contact__copy { display: flex; flex-direction: column; gap: 16px; }
.e-contact__list { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 10px; }
.e-contact__list li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--fg-1); }
.e-contact__list svg { color: var(--brand-blue); flex-shrink: 0; }
.e-contact__form {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-4); padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
  box-shadow: var(--shadow-sm);
}
.e-contact__form button { align-self: flex-start; margin-top: 4px; }
.e-contact__sent { align-items: center; text-align: center; padding: 56px 28px; }
.e-contact__check {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--success); color: var(--white);
  display: flex; align-items: center; justify-content: center;
}

/* ── Footer ───────────────────────────────────────────────── */
.e-footer { background: var(--brand-navy); color: var(--cream-50); padding: 80px 0 48px; }
.e-footer__inner { display: grid; grid-template-columns: 1.5fr 2fr; gap: 56px; }
@media (max-width: 920px) { .e-footer__inner { grid-template-columns: 1fr; gap: 40px; } }
.e-footer__brand { display: flex; flex-direction: column; gap: 16px; max-width: 320px; }
.e-footer__mark { width: 56px; height: 56px; border-radius: var(--r-2); background: var(--white); padding: 8px; box-sizing: border-box; }
.e-footer__tag { color: var(--brand-blue-300); font-size: 14px; line-height: 1.55; margin: 0; }
.e-footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.e-footer__cols h5 {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--brand-blue-300); margin: 0 0 16px;
}
.e-footer__cols a {
  display: block; font-size: 14px; color: var(--cream-50);
  text-decoration: none; padding: 6px 0;
  transition: color var(--dur-2) var(--ease-out);
}
.e-footer__cols a:hover { color: var(--brand-blue-300); }

/* ── About-page specifics ─────────────────────────────────── */
.e-about-hero { padding: 88px 0 56px; }
.e-about-hero__inner { display: flex; flex-direction: column; gap: 24px; max-width: 880px; }
.e-values { padding: 56px 0 96px; }
.e-values__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 920px) { .e-values__grid { grid-template-columns: 1fr; } }
.e-value {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-4); padding: 32px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: var(--shadow-sm);
}
.e-value__icon { width: 52px; height: 52px; border-radius: var(--r-3); background: var(--brand-blue-50); color: var(--brand-blue); display: flex; align-items: center; justify-content: center; }
.e-value h3 { font-size: 22px; margin: 0; color: var(--fg-display); }
.e-value p { font-size: 15px; color: var(--fg-2); margin: 0; line-height: 1.6; }
