/* dataKlar landing page.
   Mood: a calm, clear future. Thriving nature, one precise object, lots of air,
   with a dark "operations" chapter where the system comes alive.
   Layout: full-bleed photo hero, quiet white chapters, one dark animated system chapter. */

:root {
  --paper: #ffffff;
  --mist: #f2f5f5;
  --ink: #0b1215;
  --ink-soft: #46525a;
  --line: #dfe5e7;
  --lake: #0f5566;
  --accent: #ff4b3e;
  --night: #061015;
  --night-ink: #e8f1f3;
  --night-soft: #8fa5ad;
  --night-line: #17262d;
  --on-photo: #ffffff;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b1215;
    --mist: #101a1e;
    --ink: #eef3f4;
    --ink-soft: #a7b4ba;
    --line: #22323a;
    --lake: #7cc4d3;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 50;
  background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px;
}
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

.wrap { max-width: 1160px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.narrow { max-width: 880px; }
.center { text-align: center; display: grid; justify-items: center; }

/* Navigation: glass bar floating over the photo */
.nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  padding-top: calc(16px + env(safe-area-inset-top, 0px));
  padding-left: var(--gutter-l); padding-right: var(--gutter-r);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 10px 14px 10px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  color: var(--on-photo);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img:first-child { height: 26px; width: auto; }
.brand img:last-child { height: 18px; width: auto; }
.nav nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 22px; font-size: 15px; font-weight: 500; }
.nav nav a { text-decoration: none; opacity: .92; }
.nav nav a:hover { opacity: 1; }
.nav .nav-cta {
  opacity: 1; background: var(--on-photo); color: #0b1215;
  padding: 8px 16px; border-radius: 999px; min-height: 40px; display: inline-flex; align-items: center;
}

/* Hero */
.hero {
  position: relative; isolation: isolate;
  min-height: clamp(620px, 100svh, 1200px);
  display: grid; align-content: start; justify-items: center;
  color: var(--on-photo); background: #3b5560; overflow: hidden;
}
.hero-photo, .hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photo img { object-fit: cover; object-position: 50% 70%; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 60%; z-index: -1;
  background: linear-gradient(to bottom, rgba(10, 22, 28, 0.38), rgba(10, 22, 28, 0));
}
.hero-copy {
  padding: calc(150px + env(safe-area-inset-top, 0px)) var(--gutter-r) 40px var(--gutter-l);
  text-align: center; display: grid; justify-items: center; gap: 14px; max-width: 1000px;
}
.hero h1 {
  margin: 0; font-weight: 300; letter-spacing: -0.035em; line-height: 1.02;
  font-size: clamp(48px, 8.4vw, 128px); text-wrap: balance;
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.18);
}
.hero-copy > p { margin: 0; font-size: clamp(18px, 2vw, 23px); font-weight: 400; opacity: .95; text-wrap: balance; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 18px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-size: 16px; font-weight: 600; text-decoration: none; transition: transform .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-light { background: #ffffff; color: #0b1215; }
.btn-ghost { color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.08); }
.btn-dark { background: var(--ink); color: var(--paper); }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-copy > *:nth-child(2) { animation-delay: .12s; }
  .hero-copy > *:nth-child(3) { animation-delay: .24s; }
  @keyframes rise { from { transform: translateY(14px); } to { transform: none; } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* Shared section type */
section:not(.hero) { padding-block: clamp(80px, 11vw, 150px); }
.eyebrow {
  margin: 0 0 20px; font-family: var(--mono); font-weight: 500; font-size: 13px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--lake);
}
.eyebrow.on-dark { color: #7cc4d3; }
.lead { margin: 0; font-size: clamp(24px, 3.1vw, 38px); line-height: 1.3; font-weight: 400; letter-spacing: -0.015em; color: var(--ink-soft); text-wrap: pretty; }
.lead strong { color: var(--ink); font-weight: 500; }
.section-title { margin: 0 0 18px; font-size: clamp(32px, 4.4vw, 58px); line-height: 1.06; font-weight: 600; letter-spacing: -0.03em; text-wrap: balance; color: var(--ink); }
.section-sub { margin: 0 0 56px; max-width: 42em; color: var(--ink-soft); }

/* The system: dark operations chapter */
.system { background: var(--night); color: var(--night-ink); }
.system-head { max-width: 880px; }
.system-title { margin: 0 0 18px; font-size: clamp(34px, 5vw, 66px); line-height: 1.04; font-weight: 300; letter-spacing: -0.035em; text-wrap: balance; }
.system-sub { margin: 0; max-width: 40em; color: var(--night-soft); }
.system-figure { margin: 56px 0 0; }
#system-canvas {
  display: block; width: 100%; height: clamp(460px, 46vw, 620px);
  border-radius: 24px; border: 1px solid var(--night-line);
  background: radial-gradient(ellipse at 50% 50%, #0b1c23 0%, #061015 70%);
}
.pillars {
  list-style: none; margin: 64px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px;
}
.pillars li { border-top: 1px solid var(--night-line); padding-top: 24px; display: grid; gap: 8px; align-content: start; }
.pillar-label { font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.pillars h3 { margin: 0; font-size: 23px; font-weight: 600; letter-spacing: -0.01em; }
.pillars p { margin: 0; color: var(--night-soft); font-size: 17px; }

/* Ontology */
.split { display: flex; flex-wrap: wrap; gap: 56px 80px; align-items: center; }
.split > * { min-width: 0; }
.split-text { flex: 1 1 460px; }
.split-text > p:not(.section-title) { margin: 0 0 16px; color: var(--ink-soft); max-width: 34em; }
.facts { flex: 1 1 360px; list-style: none; margin: 0; padding: 0; display: grid; }
.facts li { display: grid; gap: 4px; padding: 22px 0; border-top: 1px solid var(--line); }
.facts li:last-child { border-bottom: 1px solid var(--line); }
.fact-k { font-weight: 600; font-size: 19px; }
.fact-v { color: var(--ink-soft); font-size: 17px; }

/* Agents */
.agents { background: var(--mist); }
.agent-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px;
}
.agent-list li {
  background: var(--paper); border-radius: 20px; padding: 28px 24px;
  display: grid; gap: 10px; align-content: start;
  box-shadow: 0 24px 50px -40px rgba(11, 30, 40, 0.4);
}
.agent-role { font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--lake); }
.agent-list p { margin: 0; font-size: 17px; color: var(--ink-soft); }

/* Desk mock */
.desk-mock {
  flex: 1 1 440px; border-radius: 22px; overflow: hidden;
  background: var(--night); color: var(--night-ink);
  box-shadow: 0 40px 80px -48px rgba(6, 16, 21, 0.7);
}
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--night-line); font-size: 13px; }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: #23363e; }
.mock-bar b { margin-left: 10px; font-weight: 500; color: var(--night-soft); }
.mock-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 16px; }
.mock-card { background: #0b1c23; border: 1px solid var(--night-line); border-radius: 14px; padding: 14px; display: grid; gap: 10px; min-height: 130px; align-content: start; }
.mock-card.wide { grid-column: 1 / -1; }
.mock-card i { font-style: normal; font-size: 12px; font-family: var(--mono); color: var(--night-soft); letter-spacing: .06em; }
.mock-card svg { width: 100%; height: 80px; }
.mock-line { fill: none; stroke: #9fd8e3; stroke-width: 2; vector-effect: non-scaling-stroke; }
.mock-line.faint { stroke: #2e4a54; }
.mock-bars { display: flex; align-items: flex-end; gap: 8px; height: 80px; }
.mock-bars b { flex: 1; background: #2e5a66; border-radius: 4px 4px 0 0; }
.mock-bars b.hot { background: var(--accent); }
.mock-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.mock-list li { display: flex; align-items: center; gap: 10px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #7cc4d3; flex: none; }
.dot.hot { background: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .mock-line:not(.faint) { stroke-dasharray: 600; animation: draw 6s ease-in-out infinite alternate; }
  @keyframes draw { from { stroke-dashoffset: 600; } to { stroke-dashoffset: 0; } }
  .dot.hot { animation: blink 2.4s ease-in-out infinite; }
  @keyframes blink { 50% { opacity: .35; } }
}

/* Briefing */
.briefing h2 { margin: 0 0 16px; font-size: clamp(42px, 6.4vw, 88px); font-weight: 300; letter-spacing: -0.04em; line-height: 1.02; text-wrap: balance; }
.briefing p { margin: 0 0 34px; color: var(--ink-soft); max-width: 34em; }

.footer { border-top: 1px solid var(--line); padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.footer p { margin: 0; font-size: 14px; color: var(--ink-soft); }
.brand-dark img:first-child { height: 22px; }
.brand-dark img:last-child { height: 15px; }
@media (prefers-color-scheme: dark) {
  .brand-dark img:last-child { filter: invert(1); }
}

/* Responsive */
@media (max-width: 1000px) {
  .agent-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .pillars { grid-template-columns: minmax(0, 1fr); }
  #system-canvas { height: 640px; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .nav nav a:not(.nav-cta) { display: none; }
  .agent-list { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding-top: calc(128px + env(safe-area-inset-top, 0px)); }
}
