/* Grynlume public site — product-led register: the product's own tokens,
   the house appears in the footer only (code · hallmark · attribution). */

@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/IBMPlexMono-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/IBMPlexMono-500.woff2") format("woff2"); }

:root {
  --night: #12141f;
  --deep: #1a1e2e;
  --seam: #2c3352;
  --paper: #f7f8fc;
  --card: #ffffff;
  --ink: #1a1e2e;
  --muted: #667085;
  --muted-dark: #8b91a7;
  --line: #e4e7f0;
  --indigo: #6366f1;
  --indigo-deep: #4f52d9;
  --lume: #c7d2fe;
  --indigo-soft: rgba(99, 102, 241, 0.12);
  --up: #16a34a;
  --font: "Avenir Next", Seravek, "Segoe UI Variable", "Segoe UI", Roboto, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --shell: 1200px;
  --radius: 8px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; background: var(--paper); color: var(--ink); font-family: var(--font); }
body { margin: 0; min-width: 0; font-size: 1.0625rem; line-height: 1.6; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; }
.container { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: 1.5rem; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 90%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.site-header.on-night { background: color-mix(in srgb, var(--night) 88%, transparent); border-bottom-color: var(--seam); color: #e8eaf2; }
.nav-shell { position: relative; display: flex; align-items: center; gap: 2rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em; text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.nav-menu { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.8rem; font-size: 0.9375rem; font-weight: 600; color: var(--muted); text-decoration: none; border-radius: 6px; }
.on-night .nav-links a { color: var(--muted-dark); }
.nav-links a:hover { color: var(--ink); background: var(--indigo-soft); }
.on-night .nav-links a:hover { color: #fff; }
.nav-toggle { display: none; width: 44px; height: 44px; margin-left: auto; padding: 0; place-items: center; border: 1px solid var(--line); border-radius: 7px; background: transparent; color: inherit; cursor: pointer; }
.on-night .nav-toggle { border-color: var(--seam); }
.nav-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* ---------- buttons ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.75rem 1.25rem; border: 1px solid var(--indigo); border-radius: 7px; background: var(--indigo); color: #fff; font-weight: 700; text-decoration: none; line-height: 1.2; transition: background-color 160ms var(--ease), border-color 160ms var(--ease); }
.button:hover { background: var(--indigo-deep); border-color: var(--indigo-deep); }
.button-quiet { background: transparent; border-color: var(--seam); color: #e8eaf2; }
.button-quiet:hover { background: var(--deep); border-color: #424b74; }
.button-light { background: transparent; border-color: var(--line); color: var(--ink); }
.button-light:hover { background: var(--indigo-soft); border-color: var(--indigo); }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--night); color: #e8eaf2; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero-media::after { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, rgba(18, 20, 31, 0.94) 0%, rgba(18, 20, 31, 0.78) 42%, rgba(18, 20, 31, 0.25) 100%); }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 620px) 1fr; min-height: min(78vh, 720px); padding: clamp(5rem, 12vw, 9rem) 0 clamp(7rem, 12vw, 10rem); align-items: center; }
.hero h1 { margin: 0; font-size: clamp(2.5rem, 6.4vw, 4.4rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.02; text-wrap: balance; }
.hero-lede { max-width: 34rem; margin: 1.5rem 0 0; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.6; color: #c5c9d9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero-fact { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; margin: 2.25rem 0 0; padding: 0; list-style: none; color: var(--muted-dark); font-size: 0.9375rem; }
.hero-fact li { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-fact li::before { width: 6px; height: 6px; border-radius: 50%; background: var(--lume); content: ""; }

/* ---------- the real dashboard ---------- */
.dashboard-band { position: relative; background: var(--paper); padding-bottom: clamp(3rem, 6vw, 5rem); }
.dashboard-band .container { margin-top: clamp(-5rem, -8vw, -7rem); }
.shot { border: 1px solid var(--seam); border-radius: 12px; background: var(--night); overflow: hidden; box-shadow: 0 30px 80px rgba(18, 20, 31, 0.28); }
.shot img { width: 100%; height: auto; }
.shot-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; margin: 1rem 0 0; color: var(--muted); font-size: 0.9375rem; }
.shot-caption b { color: var(--ink); font-weight: 600; }

/* ---------- sections ---------- */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-title { max-width: 40rem; margin: 0 0 clamp(2.5rem, 5vw, 4rem); }
.section-title h2 { margin: 0; font-size: clamp(1.9rem, 4vw, 2.75rem); letter-spacing: -0.025em; line-height: 1.12; text-wrap: balance; }
.section-title p { margin: 1rem 0 0; color: var(--muted); font-size: 1.0625rem; max-width: 36rem; }

.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(2rem, 6vw, 5rem); padding: clamp(2.5rem, 5vw, 4rem) 0; border-top: 1px solid var(--line); }
.feature:first-of-type { border-top: 0; padding-top: 0; }
.feature.flip .feature-copy { order: 2; }
.feature-copy { min-width: 0; }
.feature h3 { margin: 0; font-size: clamp(1.5rem, 2.8vw, 2rem); letter-spacing: -0.02em; line-height: 1.18; text-wrap: balance; }
.feature p { margin: 1rem 0 0; color: var(--muted); max-width: 32rem; }
.feature ul { margin: 1.25rem 0 0; padding: 0; list-style: none; }
.feature li { position: relative; padding: 0.25rem 0 0.25rem 1.5rem; color: var(--ink); }
.feature li::before { position: absolute; left: 0; top: 0.85rem; width: 9px; height: 9px; border-radius: 2px; background: var(--indigo); content: ""; }
.feature-shot { min-width: 0; }
.feature-shot .shot { box-shadow: 0 18px 50px rgba(18, 20, 31, 0.18); }
.feature-shot figcaption { margin: 0.75rem 0 0; color: var(--muted); font-size: 0.875rem; }

/* privacy diagram (product's own SVG treatment) */
.privacy-figure { padding: 1.25rem; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.privacy-figure svg { width: 100%; height: auto; }
.pbox rect { fill: #eef0f8; stroke: var(--line); }
.pbox text { fill: var(--ink); font-family: var(--font); font-size: 13px; font-weight: 700; text-anchor: middle; }
.pbox text.small { fill: var(--muted); font-size: 9px; font-weight: 500; }
.pbox.salt rect { fill: var(--indigo-soft); stroke: var(--indigo); }
.pbox.out rect { fill: var(--indigo); stroke: var(--indigo); }
.pbox.out text, .pbox.out text.small { fill: #fff; }
.parrows path { fill: none; stroke: var(--muted); stroke-width: 1.5; marker-end: url(#arrow); }

/* ---------- run it (a real sequence, so it is numbered) ---------- */
.run { background: var(--night); color: #e8eaf2; }
.run .section-title p { color: var(--muted-dark); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; counter-reset: step; }
.step { position: relative; min-width: 0; padding: 1.5rem 0 0; border-top: 1px solid var(--seam); counter-increment: step; }
.step::before { display: block; margin-bottom: 1rem; font-family: var(--mono); font-size: 0.875rem; color: var(--lume); content: counter(step, decimal-leading-zero); }
.step h3 { margin: 0; font-size: 1.25rem; letter-spacing: -0.01em; }
.step p { margin: 0.6rem 0 0; color: var(--muted-dark); font-size: 0.9375rem; }
.code { display: block; margin: 1rem 0 0; padding: 0.85rem 1rem; border: 1px solid var(--seam); border-radius: 7px; background: #0e1019; color: #c7cad8; font-family: var(--mono); font-size: 0.8125rem; line-height: 1.5; overflow-x: auto; white-space: pre; scrollbar-width: thin; }
.run-note { margin: 2.5rem 0 0; color: var(--muted-dark); font-size: 0.9375rem; max-width: 40rem; }

/* ---------- availability / contact ---------- */
.contact-band { padding: clamp(4rem, 8vw, 6rem) 0; border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-grid h2 { margin: 0; font-size: clamp(1.75rem, 3.6vw, 2.5rem); letter-spacing: -0.025em; line-height: 1.12; text-wrap: balance; }
.contact-grid p { margin: 1rem 0 0; color: var(--muted); max-width: 36rem; }
.contact-card { padding: 1.5rem; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.contact-card h3 { margin: 0; font-size: 1.125rem; }
.contact-card p { margin: 0.5rem 0 1.25rem; color: var(--muted); font-size: 0.9375rem; }
.contact-card .address { display: block; margin-top: 1rem; font-family: var(--mono); font-size: 0.875rem; color: var(--ink); word-break: break-all; }

/* ---------- footer (house appears here only) ---------- */
.site-footer { padding: 2.5rem 0 3rem; border-top: 1px solid var(--line); background: var(--paper); }
.footer-grid { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem 3rem; align-items: start; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; justify-content: flex-end; }
.footer-legal a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.6rem; color: var(--muted); font-size: 0.9375rem; text-decoration: none; }
.footer-legal a:hover { color: var(--ink); text-decoration: underline; }
.footer-house { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; grid-column: 1 / -1; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.hallmark { display: grid; place-items: center; width: 34px; height: 34px; border: 2px solid var(--ink); outline: 1px solid #c8102e; outline-offset: -5px; font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--ink); }
.reg-code { font-family: var(--mono); font-size: 0.8125rem; color: var(--muted); letter-spacing: 0.06em; }
.attribution { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.attribution::before { width: 7px; height: 7px; background: #e4581f; content: ""; }
.attribution b { color: var(--ink); font-weight: 600; }
.attribution:hover, .attribution:hover b { color: #e4581f; }
.footer-copy { margin-left: auto; color: var(--muted); font-size: 0.875rem; }

/* ---------- legal / text pages ---------- */
.page { padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 6rem); }
.page article { max-width: 44rem; }
.page h1 { margin: 0 0 0.5rem; font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -0.03em; line-height: 1.08; }
.page .updated { margin: 0 0 2.5rem; color: var(--muted); font-size: 0.9375rem; }
.page h2 { margin: 2.25rem 0 0.6rem; font-size: 1.3rem; letter-spacing: -0.015em; }
.page p, .page li { color: #3a4157; }
.page ul { padding-left: 1.25rem; }
.page a { color: var(--indigo-deep); }
.page address { font-style: normal; line-height: 1.7; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .feature, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .feature.flip .feature-copy { order: 0; }
  .feature-copy, .feature p { max-width: 40rem; }
  .steps { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 72px; }
  .container { padding-inline: 1rem; }
  .nav-toggle { display: grid; }
  .nav-menu { position: absolute; top: calc(100% + 1px); left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; padding: 0.75rem 1rem 1rem; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 12px 30px rgba(18, 20, 31, 0.12); }
  .on-night .nav-menu { background: var(--night); border-bottom-color: var(--seam); }
  .nav-menu.is-open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; }
  .nav-links a { width: 100%; }
  .hero-inner { min-height: 0; padding: 4rem 0 6rem; }
  .hero h1 { font-size: clamp(2.25rem, 11vw, 3rem); }
  .hero-actions .button { width: 100%; }
  .hero-media video, .hero-media img { object-position: 70% 50%; }
  .hero-media::after { background: linear-gradient(180deg, rgba(18, 20, 31, 0.9) 0%, rgba(18, 20, 31, 0.82) 70%, rgba(18, 20, 31, 0.55) 100%); }
  .dashboard-band .container { margin-top: -4rem; }
  .shot { border-radius: 8px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-legal { justify-content: flex-start; }
  .footer-legal a { padding-left: 0; }
  .footer-copy { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
