/* Erol Software, corporate site. Values from design_handoff_erol_brand/README.md */
:root {
  --ink: #161310;
  --night: #1C1915;
  --raised: #221F1A;
  --paper: #F6F3ED;
  --sky: #6ABCE6;
  --ash: #A9A59D;
  --soft: #CFCBC3;
  --edge: #2E2A25;
  --edge-strong: #3A352F;
  --sans: 'Figtree', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --pad-x: clamp(20px, 4vw, 48px);
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--night); color-scheme: dark; scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: var(--sky); text-decoration: none; transition: color .15s, border-color .15s, background-color .15s; }
a:hover { color: var(--paper); }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }
img { display: block; max-width: 100%; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--paper); color: var(--ink); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; color: var(--ink); }

.label { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ash); }
.label .n { color: var(--sky); margin-right: 10px; }

/* ---------- Logo (S = font-size) ---------- */
.logo { display: inline-flex; align-items: center; gap: 0.38em; font-size: 24px; line-height: 1; }
.logo svg { width: 1em; height: 1em; display: block; flex: none; }
.logo .word { font-size: 1.04em; letter-spacing: -0.03em; display: flex; gap: 0.24em; white-space: nowrap; }
.logo .word b { font-weight: 700; color: var(--paper); }
.logo .word span { font-weight: 400; color: var(--ash); }
.logo--sm { font-size: 18px; }

/* ---------- Buttons ---------- */
.btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px; font-size: 15px; font-weight: 600; line-height: 1; border: 1px solid transparent; }
.btn--solid { background: var(--paper); color: var(--ink); }
.btn--solid:hover { background: var(--sky); color: var(--ink); }
.btn--line { border-color: var(--edge-strong); color: var(--paper); }
.btn--line:hover { border-color: var(--ash); color: var(--paper); }

/* ---------- Header ---------- */
.top { border-bottom: 1px solid var(--edge); }
.top .wrap { padding-top: 22px; padding-bottom: 22px; display: flex; justify-content: space-between; align-items: center; gap: 14px 24px; flex-wrap: wrap; }
.nav { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; font-size: 14px; }
.nav a { color: var(--ash); }
.nav a:hover { color: var(--paper); }

/* ---------- Hero ---------- */
.hero .wrap {
  padding-top: clamp(48px, 7vw, 104px);
  padding-bottom: clamp(56px, 7vw, 104px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.hero-text { display: flex; flex-direction: column; gap: 24px; }
.hero h1 { margin: 0; font-size: clamp(40px, 5.6vw, 72px); font-weight: 700; line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; }
.hero p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--soft); max-width: 560px; text-wrap: pretty; }
.hero .btns { margin-top: 8px; }

/* The stack: products on top, the company as the base, as in the mark */
.stack { background: var(--raised); border: 1px solid var(--edge); position: relative; }
.stack-head { display: flex; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--edge); }
.stack-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; }
.stack-list li { border-bottom: 1px solid var(--edge); }
.stack-list li:nth-child(odd) { border-right: 1px solid var(--edge); }
.stack-list a { display: flex; align-items: center; gap: 14px; padding: 22px; color: var(--paper); height: 100%; }
.stack-list a:hover { background: #26221D; color: var(--paper); }
.stack-list img { width: 48px; height: 48px; flex: none; }
.stack-list strong { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.stack-list small { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--ash); text-transform: uppercase; margin-top: 3px; }
.stack-gap { height: 14px; }
.stack-base { height: 14px; background: var(--sky); margin: 0 -1px -1px; }

/* ---------- Sections ---------- */
.section { border-top: 1px solid var(--edge); }
.section > .wrap { padding-top: clamp(64px, 8vw, 112px); padding-bottom: clamp(64px, 8vw, 112px); display: flex; flex-direction: column; gap: 48px; }
.section-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 18px 64px; align-items: end; }
.section-head > div { display: flex; flex-direction: column; gap: 16px; }
.section h2 { margin: 0; font-size: clamp(32px, 4vw, 48px); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; }
.section-head p { margin: 0; color: var(--soft); max-width: 560px; text-wrap: pretty; }

/* ---------- Product cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 20px; }
.card {
  --accent: var(--ash);
  background: var(--raised);
  border: 1px solid var(--edge);
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color .15s;
}
.card:hover { border-color: var(--accent); }
.card-head { display: flex; align-items: center; gap: 18px; }
.card-head img { width: 64px; height: 64px; flex: none; }
.card h3 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.card .market { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; color: var(--ash); text-transform: uppercase; margin-top: 6px; display: block; }
.card p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--soft); flex: 1; text-wrap: pretty; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 14px 20px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--edge); }
.platforms { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--ash); }
.links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; font-weight: 600; }
.links a:not(:first-child) { color: var(--ash); font-weight: 500; }
.links a:not(:first-child):hover { color: var(--paper); }

.base-row { display: flex; flex-direction: column; gap: 12px; }
.base { height: 12px; background: var(--sky); }

/* ---------- Figures ---------- */
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 0 32px; margin: 0; }
.figures div { padding: 22px 0 6px; border-top: 1px solid var(--edge); display: flex; flex-direction: column-reverse; gap: 6px; }
.figures dd { margin: 0; font-size: clamp(44px, 5vw, 64px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--paper); }
.figures dt { font-size: 15px; color: var(--soft); line-height: 1.5; }

/* ---------- Principles ---------- */
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 28px 40px; margin: 0; padding: 0; list-style: none; }
.points li { display: grid; grid-template-columns: 36px 1fr; gap: 8px; padding-top: 18px; border-top: 1px solid var(--edge); }
.points .n { font-family: var(--mono); font-size: 12px; color: var(--sky); padding-top: 5px; }
.points h3 { margin: 0 0 8px; font-size: 22px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.points p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--soft); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 32px 64px; align-items: start; }
.about-copy { display: flex; flex-direction: column; gap: 18px; color: var(--soft); }
.about-copy p { margin: 0; text-wrap: pretty; }
.founder { background: var(--raised); border: 1px solid var(--edge); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.founder-name { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.founder-role { font-size: 15px; color: var(--ash); margin-top: 4px; }
.founder dl { margin: 0; display: grid; gap: 0; }
.founder dl div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--edge); font-size: 15px; }
.founder dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; color: var(--ash); text-transform: uppercase; padding-top: 3px; }
.founder dd { margin: 0; text-align: right; }

/* ---------- Contact ---------- */
.contact { display: flex; flex-direction: column; gap: 22px; }
.contact-mail { font-size: clamp(34px, 6.4vw, 80px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--paper); word-break: break-word; border-bottom: 2px solid var(--edge-strong); padding-bottom: 14px; align-self: flex-start; }
.contact-mail:hover { color: var(--sky); border-bottom-color: var(--sky); }
.contact-note { margin: 0; font-size: 15px; color: var(--ash); max-width: 620px; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--edge); }
.foot-main { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(150px, 1fr)); gap: 32px 48px; padding-top: 48px; padding-bottom: 40px; }
.foot-brand { display: flex; flex-direction: column; gap: 16px; }
.foot-brand p { margin: 0; font-size: 14px; color: var(--ash); max-width: 320px; }
.foot-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.foot-col .label { font-size: 11px; margin-bottom: 4px; }
.foot-col a { color: var(--soft); }
.foot-col a:hover { color: var(--paper); }
.foot-legal { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 24px; border-top: 1px solid var(--edge); font-size: 13px; color: var(--ash); }
.page-base { height: 6px; background: var(--sky); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .foot-main { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .stack-list { grid-template-columns: 1fr; }
  .stack-list li:nth-child(odd) { border-right: 0; }
  .stack-list a { padding: 16px 18px; }
  .nav { gap: 18px; }
  .btn { flex: 1 1 auto; justify-content: center; }
}

/* ---------- 404 ---------- */
.notfound .wrap { min-height: 60vh; grid-template-columns: 1fr; }
