/* Nolariya Labs company site. Shares the night/indigo palette with the Nolariya app site but
   stays quieter and product-neutral. No web fonts, no trackers, no third-party requests. */

:root {
  --night: #0D1B4C;
  --indigo: #3A4FC4;
  --teal: #1F8E84;

  --bg: #FCFCFE;
  --surface: #FFFFFF;
  --surface-2: #F4F4FA;
  --text: #15161D;
  --muted: #4A4B56;
  --rule: #E4E4EE;
  --accent: #3A4FC4;
  --accent-soft: #E3E5FF;
  --shadow: 0 1px 2px rgb(13 27 76 / 6%), 0 10px 28px rgb(13 27 76 / 7%);

  --radius: 18px;
  --max: 1080px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0C0D14;
    --surface: #14151F;
    --surface-2: #1A1B28;
    --text: #E6E4F0;
    --muted: #C3C2CE;
    --rule: #2A2B3B;
    --accent: #B9C1FF;
    --accent-soft: #232F8F;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 10px 28px rgb(0 0 0 / 30%);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; overflow-x: clip; background: var(--bg); color: var(--text); font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(40px, 6.6vw, 72px); font-weight: 800; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); color: var(--text); padding: 10px 16px; border-radius: 10px; }
.skip:focus { left: 8px; }
.wrap { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 640px; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-head { display: grid; gap: 12px; margin-bottom: clamp(32px, 5vw, 48px); max-width: 680px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; padding: 12px 12px; border-radius: 10px; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
@media (max-width: 560px) { .nav a:not(.keep) { display: none; } }

/* Hero */
.hero { padding: clamp(72px, 12vw, 148px) 0 clamp(56px, 9vw, 104px); }
.hero .wrap { display: grid; gap: 22px; }
.hero h1 span { color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.btn.primary { background: var(--night); color: #fff; }
.btn.ghost { border: 1px solid var(--rule); color: var(--text); background: var(--surface); }
@media (prefers-color-scheme: dark) { .btn.primary { background: var(--accent); color: #0C0D14; } }

/* Cards */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: grid; gap: 12px; align-content: start; }
.card .tag { justify-self: start; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.card.product img { width: 56px; height: 56px; border-radius: 14px; }
.card.soon { background: var(--surface-2); box-shadow: none; border-style: dashed; }
.card p { color: var(--muted); }

.principles { display: grid; gap: 28px 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.principles div { display: grid; gap: 8px; }
.principles p { color: var(--muted); }

.story { display: grid; gap: 18px; max-width: 720px; }
.story p { color: var(--muted); font-size: 18px; }

.contact { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.contact div { display: grid; gap: 4px; }
.contact span { color: var(--muted); font-size: 15px; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 32px 0 40px; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-footer a { color: var(--muted); }

/* 404 */
.lost { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 40px 16px; }
.lost .wrap { display: grid; gap: 18px; justify-items: center; }
.lost img { width: 72px; height: 72px; }
