:root {
  --paper: #F3F2EE;
  --paper-2: #fffdf8;
  --ink: #1C2321;
  --muted: #65716d;
  --slate: #35506B;
  --ochre: #C97A2E;
  --ochre-soft: #f4dfcb;
  --site-accent: #4f46e5;
  --site-accent-2: #7c3aed;
  --line: rgba(28, 35, 33, 0.14);
  --dark: #17201d;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(28, 35, 33, 0.1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 250, 248, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid #e8e3da;
}

.nav {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Inter, "IBM Plex Sans", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--site-accent), var(--site-accent-2));
  color: white;
  font-size: 15px;
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #475569;
  font-family: Inter, "IBM Plex Sans", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links .active { color: var(--site-accent); }

.nav-cta {
  background: var(--site-accent);
  color: white !important;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700 !important;
}

.nav-cta:hover {
  background: var(--site-accent-2);
}

.shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  padding: 88px 0 54px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 54px;
  align-items: end;
}

.eyebrow {
  color: var(--ochre);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

h1,
h2,
h3 {
  font-family: "Fraunces", Georgia, serif;
  margin: 0;
  line-height: 1.04;
  font-weight: 650;
}

h1 {
  max-width: 790px;
  font-size: clamp(46px, 8vw, 92px);
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -0.035em;
}

h3 {
  font-size: 25px;
  letter-spacing: -0.025em;
}

.lead {
  margin: 24px 0 0;
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
}

.hero-panel,
.card,
.stat,
.diagram,
.rail,
.note {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 28px;
}

.panel-title {
  margin: 0 0 14px;
  color: var(--slate);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.metric {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.metric strong {
  color: var(--ochre);
  font-family: "Fraunces", Georgia, serif;
  font-size: 30px;
  line-height: 1;
}

.metric span { color: var(--muted); font-size: 14px; }

.section {
  padding: 66px 0;
}

.solution-tabs {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.solution-tabs a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.66);
  color: var(--muted);
}

.solution-tabs a:hover,
.solution-tabs a.active {
  background: var(--paper-2);
  color: var(--ink);
  border-color: rgba(201, 122, 46, 0.44);
  box-shadow: 0 16px 45px rgba(28, 35, 33, 0.08);
}

.solution-tabs span {
  font-weight: 800;
}

.solution-tabs small {
  color: var(--muted);
  font-size: 12px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 28px;
}

.section-head p {
  max-width: 440px;
  color: var(--muted);
  margin: 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  padding: 28px;
}

.case-card {
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 90px rgba(28, 35, 33, 0.14);
}

.kicker {
  color: var(--ochre);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-card p,
.card p,
.note p {
  color: var(--muted);
  margin: 12px 0 0;
}

.company-visual {
  min-height: 168px;
  margin-bottom: 24px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(53, 80, 107, 0.1), rgba(201, 122, 46, 0.14));
  border: 1px solid var(--line);
  overflow: hidden;
}

.company-visual img {
  width: min(82%, 330px);
  height: auto;
  display: block;
}

.company-panel {
  align-self: stretch;
}

.company-hero-logo {
  display: block;
  width: 100%;
  max-width: 340px;
  margin: 0 auto 24px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.tag {
  border: 1px solid rgba(201, 122, 46, 0.3);
  background: var(--ochre-soft);
  color: #8b4b17;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 700;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  min-height: 46px;
  padding: 0 20px;
  font-weight: 800;
  border: 1px solid var(--ink);
}

.btn.primary {
  background: var(--ink);
  color: var(--paper);
}

.btn.secondary {
  color: var(--ink);
  background: transparent;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.stat {
  padding: 20px;
}

.stat strong {
  display: block;
  color: var(--slate);
  font-family: "Fraunces", Georgia, serif;
  font-size: 34px;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.diagram {
  padding: 26px;
}

.diagram-flow {
  display: grid;
  grid-template-columns: 1fr 44px 1fr 44px 1fr;
  gap: 12px;
  align-items: stretch;
}

.diagram-node {
  min-height: 150px;
  padding: 20px;
  border-radius: 18px;
  background: #fbfaf6;
  border: 1px solid var(--line);
}

.diagram-node strong {
  display: block;
  color: var(--slate);
  margin-bottom: 8px;
}

.diagram-node ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
}

.arrow {
  display: grid;
  place-items: center;
  color: var(--ochre);
  font-weight: 900;
  font-size: 28px;
}

.rail {
  padding: 10px 26px;
}

.rail-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.rail-step:last-child { border-bottom: 0; }

.rail-num {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--slate);
  color: white;
  font-weight: 800;
}

.rail-step p { margin: 6px 0 0; color: var(--muted); }

.quote {
  margin: 0;
  padding: 26px;
  border-left: 4px solid var(--ochre);
  background: rgba(255, 253, 248, 0.74);
  color: var(--ink);
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.18;
}

.dark-cta {
  margin-top: 54px;
  padding: 42px;
  border-radius: 28px;
  background: var(--dark);
  color: var(--paper);
}

.dark-cta p {
  max-width: 650px;
  color: rgba(243, 242, 238, 0.74);
}

.dark-cta .btn {
  border-color: rgba(243, 242, 238, 0.72);
}

.dark-cta .btn.primary {
  background: var(--paper);
  color: var(--dark);
}

.footer {
  padding: 34px 0 46px;
  color: var(--muted);
  font-size: 14px;
}

.footer a { color: var(--ink); font-weight: 700; }

@media (max-width: 860px) {
  .nav {
    width: min(100% - 28px, 1120px);
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .shell { width: min(100% - 28px, 1120px); }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 58px;
  }

  .section-head {
    display: block;
  }

  .section-head p { margin-top: 14px; }

  .grid-2,
  .grid-3,
  .solution-tabs,
  .stats {
    grid-template-columns: 1fr;
  }

  .case-card { min-height: auto; }

  .diagram-flow {
    grid-template-columns: 1fr;
  }

  .arrow {
    transform: rotate(90deg);
    min-height: 24px;
  }

  .rail-step {
    grid-template-columns: 48px 1fr;
  }

  .dark-cta { padding: 28px; }
}
