/* ============================================================
   LAYDER LTD — design system
   Aesthetic: audit-grade editorial. Warm paper, deep ink,
   electric cobalt accent, hairline ledger rules.
   Fonts are self-hosted (see fonts.css) — no external requests.
   ============================================================ */

:root {
  --paper: #f6f4ee;
  --paper-2: #efece3;
  --ink: #14161a;
  --ink-2: #23262d;
  --ink-soft: #4b505a;
  --muted: #7c818c;
  --line: #d8d4c8;
  --line-dark: #33373f;
  --accent: #2b3ff0;
  --accent-soft: #dfe3ff;
  --accent-on-dark: #7d8cff;
  --ok: #1d7a4f;
  --radius: 4px;
  --font-display: 'Unbounded', 'Golos Text', sans-serif;
  --font-body: 'Golos Text', -apple-system, 'Segoe UI', sans-serif;
  --w: min(1160px, calc(100vw - 48px));
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: #fff; }

a { color: inherit; }
img, svg { max-width: 100%; }

.wrap { width: var(--w); margin: 0 auto; }

/* ---------- type scale ---------- */
h1, h2, h3 { font-weight: 400; letter-spacing: -0.01em; }

.display {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.14;
  letter-spacing: -0.005em;
}

.kicker {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 22px;
}
.kicker .no { color: var(--muted); font-weight: 400; letter-spacing: 0.1em; }
.kicker::after { content: ''; flex: 1; height: 1px; background: var(--line); align-self: center; }
.on-dark .kicker { color: var(--accent-on-dark); }
.on-dark .kicker::after { background: var(--line-dark); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  width: var(--w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo {
  font-family: var(--font-display); font-weight: 500; font-size: 17px;
  text-decoration: none; letter-spacing: 0.02em;
}
.logo .dot { color: var(--accent); }
.nav-links { display: flex; gap: 28px; align-items: center; list-style: none; }
.nav-links a {
  text-decoration: none; font-size: 14px; font-weight: 500;
  color: var(--ink-soft); transition: color .2s;
}
.nav-links a:hover { color: var(--ink); }
.lang-switch {
  display: flex; border: 1px solid var(--line); border-radius: 99px; overflow: hidden;
  font-size: 12.5px; font-weight: 600;
}
.lang-switch a, .lang-switch span {
  padding: 5px 12px; text-decoration: none; color: var(--muted);
}
.lang-switch .active { background: var(--ink); color: var(--paper); }
.nav-cta {
  font-size: 14px; font-weight: 600; text-decoration: none;
  background: var(--accent); color: #fff; padding: 9px 18px; border-radius: 99px;
  transition: transform .2s, box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(43,63,240,.35); }
.burger { display: none; }

/* ---------- hero ---------- */
.hero {
  background: var(--ink); color: var(--paper);
  padding: 168px 0 96px; position: relative; overflow: hidden;
}
.hero::before {
  /* faint ledger grid */
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 80% at 60% 30%, #000 40%, transparent 100%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(34px, 4.6vw, 58px); margin-bottom: 26px; }
.hero h1 em { font-style: normal; color: var(--accent-on-dark); }
.hero p.lede { font-size: 19px; color: #b9bdc6; max-width: 34em; margin-bottom: 38px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  padding: 14px 26px; border-radius: 99px; transition: all .2s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(43,63,240,.4); }
.btn-ghost { border: 1px solid var(--line-dark); color: var(--paper); }
.btn-ghost:hover { border-color: var(--paper); }
.hero-eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent-on-dark); margin-bottom: 24px; display: inline-flex; align-items: center; gap: 10px;
}
.hero-eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--accent-on-dark); }

/* hero graph visual */
.hero-visual { position: relative; }
.hero-visual svg { width: 100%; height: auto; display: block; }
.node { fill: var(--ink); stroke: #565b66; stroke-width: 1.2; }
.node.hot { stroke: var(--accent-on-dark); }
.edge { stroke: #3a3f49; stroke-width: 1; }
.edge.hot { stroke: var(--accent-on-dark); stroke-width: 1.4; stroke-dasharray: 6 5; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -11; } }
.node-label { font-family: var(--font-body); font-size: 10.5px; fill: #9aa0ab; letter-spacing: .06em; }
.node-label.hot { fill: #cdd3ff; }
.pulse { fill: var(--accent-on-dark); opacity: .9; }

/* hero stat strip */
.stat-strip {
  position: relative; margin-top: 84px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-dark);
}
.stat { padding: 28px 24px 6px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.stat b {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(26px, 2.6vw, 36px); display: block; color: var(--paper);
}
.stat b .u { color: var(--accent-on-dark); font-size: .6em; }
.stat span { font-size: 13.5px; color: #9aa0ab; }

/* ---------- sections ---------- */
section { padding: 104px 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 18px; }
.section-head p { color: var(--ink-soft); font-size: 18px; }

/* services grid */
.svc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.svc {
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 34px 30px 38px; position: relative; background: var(--paper);
  transition: background .25s ease;
}
.svc:hover { background: #fff; }
.svc::after {
  content: ''; position: absolute; left: 0; top: 0; width: 0; height: 3px;
  background: var(--accent); transition: width .35s cubic-bezier(.4,0,.2,1);
}
.svc:hover::after { width: 100%; }
.svc .idx {
  font-family: var(--font-display); font-weight: 300; font-size: 13px;
  color: var(--muted); display: block; margin-bottom: 30px;
}
.svc h3 { font-family: var(--font-display); font-weight: 400; font-size: 18.5px; margin-bottom: 14px; line-height: 1.35; }
.svc p { font-size: 15px; color: var(--ink-soft); margin-bottom: 16px; }
.svc .gain {
  font-size: 13.5px; font-weight: 600; color: var(--ok);
  display: flex; gap: 8px; align-items: baseline;
}
.svc .gain::before { content: '→'; color: var(--accent); }

/* ---------- journey (interactive stepper) ---------- */
.journey { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff;
}
.step-tab {
  padding: 20px 18px 18px; cursor: pointer; border: 0; text-align: left;
  background: transparent; font-family: var(--font-body);
  border-right: 1px solid var(--line); position: relative;
  transition: background .2s;
}
.step-tab:last-child { border-right: 0; }
.step-tab .n {
  font-family: var(--font-display); font-size: 12px; font-weight: 400;
  color: var(--muted); display: block; margin-bottom: 8px;
}
.step-tab .t { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.step-tab::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .3s;
}
.step-tab[aria-selected="true"] { background: var(--accent-soft); }
.step-tab[aria-selected="true"]::after { transform: scaleX(1); }
.step-panel {
  background: #fff; border: 1px solid var(--line); border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 40px 44px; display: none;
  grid-template-columns: 1.2fr .8fr; gap: 48px;
}
.step-panel.active { display: grid; animation: fadeUp .35s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }
.step-panel h3 { font-family: var(--font-display); font-weight: 400; font-size: 21px; margin-bottom: 14px; }
.step-panel p { color: var(--ink-soft); font-size: 16px; margin-bottom: 12px; }
.step-panel .deliv { border-left: 2px solid var(--accent); padding-left: 22px; }
.step-panel .deliv h4 {
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 12px; font-weight: 600;
}
.step-panel .deliv ul { list-style: none; }
.step-panel .deliv li { font-size: 14.5px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.step-panel .deliv li:last-child { border-bottom: 0; }

/* ---------- pricing / CAP ---------- */
.cap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.cap-points { list-style: none; margin-top: 8px; }
.cap-points li { display: flex; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cap-points li:first-child { border-top: 1px solid var(--line); }
.cap-points .mark {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--accent); color: var(--accent);
  display: grid; place-items: center; font-size: 14px; font-weight: 700;
}
.cap-points b { display: block; margin-bottom: 4px; }
.cap-points p { font-size: 15px; color: var(--ink-soft); }
.cap-visual {
  background: var(--ink); color: var(--paper); border-radius: var(--radius);
  padding: 40px 40px 34px; position: sticky; top: 100px;
}
.cap-visual h4 { font-family: var(--font-display); font-weight: 400; font-size: 16px; margin-bottom: 26px; }
.cap-bars { display: grid; gap: 22px; }
.cap-bar span { font-size: 13px; color: #9aa0ab; display: flex; justify-content: space-between; margin-bottom: 8px; }
.bar { height: 10px; border-radius: 99px; background: #2a2e36; overflow: hidden; }
.bar i {
  display: block; height: 100%; border-radius: 99px; background: #565b66;
  width: 0; transition: width 1.1s cubic-bezier(.25,.6,.25,1);
}
.bar i.acc { background: linear-gradient(90deg, var(--accent), var(--accent-on-dark)); }
.cap-note { margin-top: 26px; font-size: 13px; color: #9aa0ab; border-top: 1px solid var(--line-dark); padding-top: 18px; }

/* ---------- use cases ---------- */
.cases { }
.case-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.case {
  display: grid; grid-template-columns: 150px 1fr 300px; gap: 40px;
  padding: 36px 0; border-bottom: 1px solid var(--line); align-items: start;
}
.case .tag {
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); padding-top: 4px;
}
.case h3 { font-family: var(--font-display); font-weight: 400; font-size: 19px; margin-bottom: 10px; }
.case p { font-size: 15.5px; color: var(--ink-soft); }
.case .outcome {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; font-size: 14px;
}
.case .outcome b { color: var(--accent); font-family: var(--font-display); font-weight: 400; font-size: 22px; display: block; margin-bottom: 4px; }

/* ---------- clients ---------- */
.clients { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.client-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.client-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px;
}
.client-card .geo {
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600;
  color: var(--accent); display: flex; align-items: center; gap: 8px; margin-bottom: 16px;
}
.client-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.client-card p { font-size: 14.5px; color: var(--ink-soft); }
.clients-note { margin-top: 28px; font-size: 14px; color: var(--muted); max-width: 60em; }

/* ---------- company (auditable) ---------- */
.company { background: var(--ink); color: var(--paper); }
.company .section-head p { color: #b9bdc6; }
.company-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; }
.reg-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.reg-table th, .reg-table td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--line-dark); vertical-align: top; }
.reg-table th { color: #9aa0ab; font-weight: 500; width: 220px; padding-right: 24px; }
.reg-table a { color: var(--accent-on-dark); }
.assure { display: grid; gap: 18px; }
.assure-item { border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 22px 24px; }
.assure-item b { display: block; margin-bottom: 6px; font-size: 15.5px; }
.assure-item p { font-size: 14px; color: #9aa0ab; }

/* ---------- contact ---------- */
.contact { text-align: center; padding: 120px 0; }
.contact h2 { font-size: clamp(30px, 4vw, 48px); margin-bottom: 20px; }
.contact p { color: var(--ink-soft); font-size: 18px; max-width: 36em; margin: 0 auto 40px; }
.contact .email {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(18px, 2.4vw, 26px);
  color: var(--accent); text-decoration: none; border-bottom: 2px solid var(--accent-soft);
  transition: border-color .2s;
}
.contact .email:hover { border-color: var(--accent); }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line); padding: 44px 0 52px;
  font-size: 13.5px; color: var(--muted);
}
.foot-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot-legal { max-width: 46em; line-height: 1.7; }
.foot-links { display: flex; gap: 22px; list-style: none; flex-wrap: wrap; }
.foot-links a { text-decoration: none; color: var(--ink-soft); }
.foot-links a:hover { color: var(--accent); }

/* ---------- legal pages ---------- */
.legal-page { padding: 140px 0 90px; max-width: 780px; margin: 0 auto; width: var(--w); }
.legal-page h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 10px; }
.legal-page .updated { color: var(--muted); font-size: 14px; margin-bottom: 42px; }
.legal-page h2 { font-size: 21px; margin: 40px 0 14px; font-weight: 600; }
.legal-page h3 { font-size: 17px; margin: 26px 0 10px; font-weight: 600; }
.legal-page p, .legal-page li { font-size: 15.5px; color: var(--ink-2); margin-bottom: 12px; }
.legal-page ul, .legal-page ol { padding-left: 24px; margin-bottom: 16px; }
.legal-page table { border-collapse: collapse; width: 100%; font-size: 14.5px; margin: 18px 0 26px; }
.legal-page th, .legal-page td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
.legal-page th { background: var(--paper-2); font-weight: 600; }
.legal-page a { color: var(--accent); }

/* ---------- reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.25,.6,.25,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; } .reveal-d4 { transition-delay: .32s; }
@media print {
  .reveal { opacity: 1 !important; transform: none !important; }
  .step-panel { display: grid !important; }
  .nav { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .edge.hot { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-inner, .cap-grid, .company-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .step-tab { border-right: 0; border-bottom: 1px solid var(--line); }
  .step-panel { grid-template-columns: 1fr; padding: 30px 26px; }
  .case { grid-template-columns: 1fr; gap: 16px; }
  .client-cards { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .cap-visual { position: static; }
}
@media (max-width: 620px) {
  .nav-cta { display: none; }
  .svc-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  section { padding: 72px 0; }
  .hero { padding: 130px 0 70px; }
}
