/* Operanto Technologies — site identity
   Palette: operational teal on cool paper. Type: Familjen Grotesk / IBM Plex Sans / IBM Plex Mono. */

:root {
  --ground: #eef1f2;
  --paper: #ffffff;
  --ink: #101820;
  --muted: #5b6770;
  --rule: #d5dbde;
  --accent: #0f6e56;
  --accent-ink: #ffffff;
  --accent-soft: #e2f0eb;
  --signal: #d7a32e;
  --log-bg: #101820;
  --log-ink: #d9e2e6;
  --log-dim: #7d8b94;
  --log-ok: #4fc39a;
  --log-warn: #e6b94a;
  --shadow: 0 24px 60px rgba(16, 24, 32, .14);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0f1519; --paper: #161e24; --ink: #e8edef; --muted: #93a0a8; --rule: #26313a;
    --accent: #3fb58f; --accent-ink: #0b1f19; --accent-soft: #14312a; --signal: #e6b94a;
    --log-bg: #0a0f12; --log-ink: #d9e2e6; --log-dim: #6d7b84; --shadow: 0 24px 60px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #0f1519; --paper: #161e24; --ink: #e8edef; --muted: #93a0a8; --rule: #26313a;
  --accent: #3fb58f; --accent-ink: #0b1f19; --accent-soft: #14312a; --signal: #e6b94a;
  --log-bg: #0a0f12; --log-ink: #d9e2e6; --log-dim: #6d7b84; --shadow: 0 24px 60px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: "Familjen Grotesk", "IBM Plex Sans", system-ui, sans-serif; letter-spacing: -.015em; text-wrap: balance; margin: 0; }
p { margin: 0; }
.mono { font-family: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace; }
.eyebrow { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 24px; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--ground) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: "Familjen Grotesk", sans-serif; font-weight: 600; font-size: 20px; letter-spacing: -.01em; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }
nav { display: flex; align-items: center; gap: 26px; }
nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
nav a:hover { color: var(--ink); }
.lang { display: inline-flex; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.lang button { font: inherit; font-family: "IBM Plex Mono", monospace; font-size: 12.5px; letter-spacing: .06em; padding: 5px 10px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
@media (max-width: 760px) { nav a:not(.lang-wrap) { display: none; } }

/* ------------------------------------------------------------------ hero */
.hero { padding-block: 72px 56px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; }
.hero h1 { font-size: clamp(38px, 5.6vw, 66px); line-height: 1.02; font-weight: 600; margin-top: 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lede { font-size: 19px; color: var(--muted); max-width: 34em; margin-top: 22px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn { display: inline-block; font: inherit; font-weight: 600; font-size: 15.5px; padding: 12px 20px; border-radius: 8px; text-decoration: none; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn:hover { filter: brightness(1.06); }

/* the journal: a machine's morning, ticking by itself */
.journal { background: var(--log-bg); color: var(--log-ink); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12.5px; line-height: 1.55; }
.journal header { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,.08); color: var(--log-dim); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }
.journal header b { color: var(--log-ok); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.journal header b::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--log-ok); }
.journal ol { list-style: none; margin: 0; padding: 12px 14px 14px; min-height: 236px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; }
.journal li { display: grid; grid-template-columns: 44px 76px 1fr; gap: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 1; }
.journal li.new { animation: rise .5s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .journal li.new { animation: none; } }
.journal .t { color: var(--log-dim); font-variant-numeric: tabular-nums; }
.journal .k { color: var(--log-ok); }
.journal .k.warn { color: var(--log-warn); }
.journal .m { overflow: hidden; text-overflow: ellipsis; }
.journal footer { padding: 8px 14px 12px; color: var(--log-dim); font-size: 11px; border-top: 1px solid rgba(255,255,255,.08); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; gap: 36px; } .journal li { grid-template-columns: 44px 68px 1fr; } }

/* -------------------------------------------------------------- sections */
section { padding-block: 64px; border-top: 1px solid var(--rule); }
.section-head { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px; align-items: baseline; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 600; line-height: 1.12; }
.section-head p { color: var(--muted); max-width: 36em; }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; gap: 12px; } }

/* what we do: a numbered list is wrong here; a ruled list is right */
.offer { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.offer li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.offer h3 { font-size: 21px; font-weight: 600; }
.offer p { color: var(--muted); max-width: 40em; }
.offer .tag { display: inline-block; margin-top: 10px; font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 3px 8px; border-radius: 4px; }
@media (max-width: 760px) { .offer li { grid-template-columns: 1fr; gap: 8px; } }

/* product feature */
.product { margin-top: 40px; background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); overflow: hidden; }
.product .text { padding: 36px; }
.product h3 { font-size: 26px; font-weight: 600; margin-top: 10px; }
.product .pname { color: var(--accent); }
.product p { color: var(--muted); margin-top: 14px; max-width: 34em; }
.product ul { margin: 18px 0 0; padding-left: 18px; color: var(--ink); }
.product li { margin: 6px 0; }
.product .status { display: inline-flex; align-items: center; gap: 8px; font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.product .status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); }
.product .side { background: var(--accent-soft); padding: 36px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; border-left: 1px solid var(--rule); }
.finding { background: var(--paper); border: 1px solid var(--rule); border-left: 4px solid var(--signal); border-radius: 8px; padding: 14px 16px; font-size: 14px; }
.finding .rule-id { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.finding b { display: block; margin: 4px 0 6px; font-size: 15px; }
.finding code { font-family: "IBM Plex Mono", monospace; font-size: 12.5px; background: var(--ground); padding: 2px 6px; border-radius: 4px; }
.side .caption { font-size: 13px; color: var(--muted); }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; } .product .side { border-left: 0; border-top: 1px solid var(--rule); } }

/* principles */
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; margin-top: 40px; }
.principles div { padding: 22px 0; border-top: 1px solid var(--rule); }
.principles h3 { font-size: 19px; font-weight: 600; }
.principles p { color: var(--muted); margin-top: 6px; max-width: 32em; }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } }

/* about + contact */
.about { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px; }
.about .body p + p { margin-top: 14px; }
.about .body { max-width: 40em; }
.founder { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 15px; color: var(--muted); }
.founder b { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; gap: 12px; } }
.contact { background: var(--ink); color: var(--ground); border-top: 0; }
.contact .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: end; }
.contact h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 600; line-height: 1.08; }
.contact p { color: color-mix(in srgb, var(--ground) 70%, transparent); margin-top: 14px; max-width: 32em; }
.contact .mail { font-family: "Familjen Grotesk", sans-serif; font-size: clamp(22px, 3vw, 34px); font-weight: 600; color: var(--ground); text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.contact .mail:hover { border-color: var(--ground); }
.contact .eyebrow { color: color-mix(in srgb, var(--ground) 55%, transparent); }
@media (max-width: 760px) { .contact .wrap { grid-template-columns: 1fr; } }

footer.foot { padding-block: 26px 40px; color: var(--muted); font-size: 13.5px; }
footer.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
footer.foot a { color: var(--muted); }

/* legal pages */
.doc { padding-block: 56px 80px; }
.doc .wrap { max-width: 720px; }
.doc h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 600; margin-top: 14px; }
.doc h2 { font-size: 20px; font-weight: 600; margin-top: 34px; }
.doc p, .doc li { color: var(--ink); margin-top: 10px; }
.doc .lede { margin-top: 18px; }
