/* ============================================================
   Lentix website -- production styles
   Single-theme (midnight) extraction of the Claude.ai design
   handoff at docs/design/mockups/lentix-website/. Graphite +
   daylight variants from the original mock are intentionally
   dropped -- they were design-review variations, not shipping
   themes. Midnight matches the app's #0f0f12 background, the
   single brand register Lentix ships on.
   ============================================================ */

/* ============ THEME TOKENS ============ */
:root {
  --bg: #0f0f12;
  --bg-2: #141418;
  --panel: #1a1a20;
  --panel-2: #212128;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --text: #e6e6f0;
  --text-strong: #ffffff;
  --text-muted: #9c9caa;
  --text-dim: #6b6b80;
  --accent: #3b82f6;
  --accent-2: #60a5fa;
  --accent-ink: #ffffff;
  --success: #4ade80;
  --warning: #fbbf24;
  --error: #ef4444;
  --font-head: 'Hanken Grotesk', system-ui, sans-serif;
  --font-body: 'Hanken Grotesk', system-ui, sans-serif;
  --head-spacing: -0.02em;
  --head-weight: 700;
  --grain: 0.04;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  letter-spacing: var(--head-spacing);
  line-height: 1.04;
  color: var(--text-strong);
  text-wrap: balance;
}
a { color: inherit; text-decoration: none; }
.mono { font-family: 'IBM Plex Mono', monospace; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.eyebrow {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent-2); display: inline-flex; align-items: center; gap: 9px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: 0.7; }

/* ============ BUTTONS ============ */
.btn {
  font-family: var(--font-body); font-size: 15px; font-weight: 600; padding: 13px 22px;
  border-radius: 10px; cursor: pointer; border: 1px solid transparent; display: inline-flex;
  align-items: center; gap: 9px; transition: transform .15s, background .2s, border-color .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset; }
.btn-primary:hover { background: var(--accent-2); box-shadow: 0 8px 30px -8px var(--accent); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--text-muted); background: var(--panel); }
.btn-sm { padding: 9px 15px; font-size: 14px; border-radius: 8px; }

/* ============ NAV ============ */
nav {
  position: sticky; top: 0; z-index: 100; backdrop-filter: blur(16px) saturate(1.2);
  background: color-mix(in srgb, var(--bg) 72%, transparent); border-bottom: 1px solid var(--border);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand {
  display: flex; align-items: center; gap: 11px; font-family: var(--font-head);
  font-weight: var(--head-weight); font-size: 22px; color: var(--text-strong);
  letter-spacing: var(--head-spacing);
}
.mark {
  width: 26px; height: 26px; border-radius: 50%; position: relative; flex: none;
  background: conic-gradient(from -45deg, var(--accent), var(--accent-2), var(--accent));
}
.mark::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--bg); }
.mark::before { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 1px var(--border-strong) inset; z-index: 1; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a.link { font-size: 14.5px; color: var(--text-muted); transition: color .2s; }
.nav-links a.link:hover { color: var(--text-strong); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.pill {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--border-strong); color: var(--text-muted);
  display: inline-flex; align-items: center; gap: 7px;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 25%, transparent); }
@media (max-width: 880px) { .nav-links .link, .nav-actions .pill { display: none; } }

/* ============ HERO ============ */
.hero { padding: 88px 0 70px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1.25fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.4vw, 68px); margin: 22px 0 0; }
.hero h1 em { font-style: normal; color: var(--accent-2); }
.hero .sub { font-size: 19px; color: var(--text-muted); margin-top: 22px; max-width: 30ch; line-height: 1.55; }
.hero-cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.trust { margin-top: 26px; font-size: 13.5px; color: var(--text-dim); display: flex; gap: 18px; flex-wrap: wrap; font-family: 'IBM Plex Mono', monospace; }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--success); }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } .hero { padding: 56px 0 40px; } }

/* ============ APP MOCK (always dark -- true product UI) ============ */
.appwin {
  --m-bg: #0f0f12; --m-panel: #16161b; --m-border: rgba(255,255,255,0.08);
  --m-text: #e6e6f0; --m-muted: #9c9caa; --m-dim: #6b6b80; --m-accent: #3b82f6;
  background: var(--m-bg); border: 1px solid var(--m-border); border-radius: 14px; overflow: hidden;
  box-shadow: 0 50px 120px -40px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.03);
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
}
.appwin .titlebar { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 1px solid var(--m-border); background: #131318; }
.appwin .tl { width: 11px; height: 11px; border-radius: 50%; background: #3a3a44; }
.appwin .tl.r { background: #e0625b; } .appwin .tl.y { background: #e0b13a; } .appwin .tl.g { background: #48b06a; }
.appwin .winsearch {
  margin-left: 12px; flex: 1; background: #1d1d24; border: 1px solid var(--m-border); border-radius: 7px;
  padding: 6px 11px; font-size: 12.5px; color: var(--m-text); display: flex; align-items: center; gap: 8px;
}
.appwin .winsearch .ph { color: var(--m-text); }
.appwin .winsearch .caret { width: 1px; height: 13px; background: var(--m-accent); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.appwin .body { display: grid; grid-template-columns: 52px 1fr; min-height: 360px; }
.appwin .rail { border-right: 1px solid var(--m-border); padding: 14px 0; display: flex; flex-direction: column; align-items: center; gap: 6px; background: #121217; }
.appwin .rico { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; color: var(--m-dim); }
.appwin .rico.on { background: rgba(59, 130, 246, 0.16); color: var(--m-accent); }
.appwin .rico svg { width: 17px; height: 17px; }
.appwin .rail .health { margin-top: auto; }
.appwin .rail .health .ring { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #2a2a33; border-top-color: var(--success); animation: spin 2.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.appwin .content { padding: 16px; }
.appwin .resbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.appwin .resbar .count { font-size: 12.5px; color: var(--m-muted); font-family: 'IBM Plex Mono', monospace; }
.appwin .resbar .count b { color: var(--m-text); font-weight: 500; }
.appwin .chip { font-size: 11px; color: var(--m-muted); border: 1px solid var(--m-border); border-radius: 999px; padding: 3px 10px; font-family: 'IBM Plex Mono', monospace; }
.appwin .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.appwin .grid .ph-img { aspect-ratio: 1; border-radius: 7px; overflow: hidden; position: relative; background: #1c1c22; }
.appwin .grid .ph-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.appwin .grid .ph-img.tall { grid-row: span 2; aspect-ratio: auto; }
.appwin .grid .ph-img .fav { position: absolute; top: 6px; right: 6px; width: 16px; height: 16px; color: #fff; opacity: .9; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
.float-tag {
  position: absolute; background: #16161b; border: 1px solid var(--m-border); border-radius: 9px;
  padding: 8px 11px; font-size: 11.5px; display: flex; align-items: center; gap: 8px;
  box-shadow: 0 16px 40px -12px rgba(0,0,0,.7);
}

/* ============ SECTIONS ============ */
section { position: relative; }
.band { padding: 96px 0; border-top: 1px solid var(--border); }
.band.alt { background: var(--bg-2); }
.sec-head { max-width: 640px; margin-bottom: 52px; }
.sec-head h2 { font-size: clamp(30px, 3.6vw, 46px); margin-top: 16px; }
.sec-head p { color: var(--text-muted); font-size: 18px; margin-top: 16px; line-height: 1.55; }

/* feature grid */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.feat { background: var(--panel); padding: 30px 28px 34px; transition: background .2s; }
.feat:hover { background: var(--panel-2); }
.feat .fnum { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--text-dim); }
.feat .ficon {
  width: 38px; height: 38px; border-radius: 9px; background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent-2); display: grid; place-items: center; margin: 16px 0 18px;
}
.feat .ficon svg { width: 20px; height: 20px; }
.feat h3 { font-size: 21px; margin-bottom: 9px; }
.feat p { color: var(--text-muted); font-size: 15px; line-height: 1.55; }
@media (max-width: 900px) { .feat-grid { grid-template-columns: 1fr; } }

/* search showcase */
.search-show { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.queries { display: flex; flex-direction: column; gap: 12px; }
.qrow {
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  padding: 15px 18px; display: flex; align-items: center; gap: 13px;
  font-family: 'IBM Plex Mono', monospace; font-size: 14.5px; color: var(--text);
  transition: border-color .2s, transform .2s; cursor: default;
}
.qrow:hover { border-color: var(--accent); transform: translateX(4px); }
.qrow svg { width: 16px; height: 16px; color: var(--text-dim); flex: none; }
.qrow .q { color: var(--text); }
.qrow .r { margin-left: auto; font-size: 12px; color: var(--text-dim); }
.showcase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.showcase-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 9px; display: block; border: 1px solid var(--border); }
.showcase-grid img:nth-child(1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; height: 100%; }
@media (max-width: 900px) { .search-show { grid-template-columns: 1fr; gap: 36px; } }

/* privacy statement */
.privacy { text-align: center; }
.privacy h2 { font-size: clamp(34px, 5vw, 62px); max-width: 16ch; margin: 0 auto; }
.privacy h2 em { font-style: normal; color: var(--accent-2); }
.privacy .lead { color: var(--text-muted); font-size: 19px; max-width: 52ch; margin: 24px auto 0; }
.priv-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; text-align: left; }
.priv-points .pp { padding: 26px; border: 1px solid var(--border); border-radius: 14px; background: var(--panel); }
.priv-points .pp .k { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--accent-2); letter-spacing: .1em; text-transform: uppercase; }
.priv-points .pp h4 { font-size: 18px; margin: 12px 0 8px; }
.priv-points .pp p { font-size: 14.5px; color: var(--text-muted); line-height: 1.55; }
@media (max-width: 900px) { .priv-points { grid-template-columns: 1fr; } }

/* people row */
.people-row {
  display: flex; gap: 16px; overflow: hidden; margin-top: 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.person { flex: none; width: 150px; }
.person .pimg { width: 150px; height: 150px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); }
.person .pimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.person .pname { margin-top: 11px; font-size: 15px; font-weight: 600; color: var(--text-strong); }
.person .pcount { font-size: 12.5px; color: var(--text-dim); font-family: 'IBM Plex Mono', monospace; }

/* beta state */
.beta-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.beta-col { border: 1px solid var(--border); border-radius: 14px; padding: 28px; background: var(--panel); }
.beta-col .bh {
  display: flex; align-items: center; gap: 10px; font-size: 13px;
  font-family: 'IBM Plex Mono', monospace; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 20px;
}
.beta-col .bh .d { width: 9px; height: 9px; border-radius: 50%; }
.beta-col ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.beta-col li { font-size: 14.5px; color: var(--text-muted); line-height: 1.5; padding-left: 20px; position: relative; }
.beta-col li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 2px; background: var(--text-dim); }
.beta-col.works li::before { background: var(--success); }
.beta-col.exp li::before { background: var(--warning); }
.beta-col.not li::before { background: var(--text-dim); }
@media (max-width: 900px) { .beta-cols { grid-template-columns: 1fr; } }

/* cta band */
.cta { text-align: center; padding: 110px 0; background: var(--bg-2); border-top: 1px solid var(--border); }
.cta h2 { font-size: clamp(34px, 5vw, 58px); max-width: 18ch; margin: 0 auto; }
.cta p { color: var(--text-muted); font-size: 18px; margin: 22px auto 36px; max-width: 46ch; }
.cta .note { margin-top: 24px; font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; color: var(--text-dim); }

/* footer */
footer { border-top: 1px solid var(--border); padding: 54px 0 60px; }
.foot-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.foot-grid .fcol { display: flex; flex-direction: column; gap: 11px; }
.foot-grid .fcol .ft { font-family: 'IBM Plex Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--text-dim); margin-bottom: 4px; }
.foot-grid .fcol a { font-size: 14px; color: var(--text-muted); transition: color .2s; }
.foot-grid .fcol a:hover { color: var(--text-strong); }
.foot-legal {
  margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-dim);
}

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .appwin .winsearch .caret, .appwin .rail .health .ring { animation: none; }
}
