/* ===========================================================
   Larsen Code Labs, Inc. — Brand System
   Navy / Indigo / Cyan · Syne (display) + DM Sans (body) + JetBrains Mono (utility)
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:ital,opsz,wght@0,14..32,400;0,14..32,500;0,14..32,600;0,14..32,700;1,14..32,400&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --navy: #0B1220;
  --navy-soft: #131D33;
  --navy-line: #223055;
  --indigo: #4F46E5;
  --indigo-soft: #6366F1;
  --cyan: #22D3EE;
  --paper: #F7F8FB;
  --ink: #0F1626;
  --slate: #5B6472;
  --line: #E7E9EF;
  --friction: #FB7185;
  --clarity: #6366F1;
  --calibration: #22D3EE;

  --shadow-sm: 0 1px 2px rgba(15, 22, 38, 0.04);
  --shadow-md: 0 4px 16px rgba(15, 22, 38, 0.06);
  --shadow-lg: 0 12px 32px rgba(15, 22, 38, 0.08);
  --radius: 14px;

  --display: 'Space Grotesk', sans-serif;
  --body: 'Inter', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Eyebrow / mono labels ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--indigo);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  display: inline-block;
}

.tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--slate);
  display: inline-block;
  font-weight: 500;
}
.tag.status-dev {
  color: #9A6B00;
  background: #FFF6E0;
  border-color: #F3DFA0;
}

/* ---------- Header / Nav ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 248, 251, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 16.5px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand .mark { width: 27px; height: 27px; }
.navlinks {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14.5px;
  font-weight: 500;
}
.navlinks a { color: var(--slate); transition: color .15s ease; position: relative; }
.navlinks a:hover, .navlinks a.active { color: var(--ink); }
.navlinks a.active { color: var(--indigo); }

.btn {
  font-family: var(--body);
  font-weight: 600;
  font-size: 14.5px;
  padding: 10.5px 20px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--indigo); box-shadow: var(--shadow-md); }
.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: #fff;
}
.btn-ghost:hover { border-color: var(--indigo); color: var(--indigo); }

.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  background: var(--navy);
  color: #EDEFF7;
  overflow: hidden;
  position: relative;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding-top: 84px;
  padding-bottom: 84px;
}
.hero .eyebrow { color: var(--cyan); }
.hero .eyebrow::before { background: var(--cyan); }
.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(32px, 4.2vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 18px 0 20px;
  color: #fff;
}
.hero p.lede {
  font-size: 17.5px;
  color: #AEB6CC;
  max-width: 46ch;
  margin: 0 0 32px;
}
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-ghost { border-color: var(--navy-line); color: #EDEFF7; }
.hero .btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

/* ---------- Tone gauge (signature element) ---------- */
.gauge-panel {
  background: var(--navy-soft);
  border: 1px solid var(--navy-line);
  border-radius: 16px;
  padding: 28px 26px 22px;
}
.gauge-panel .panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.gauge-panel .panel-head .name {
  font-family: var(--mono);
  font-size: 12px;
  color: #8B93AC;
  letter-spacing: 0.06em;
}
.gauge-panel .panel-head .live {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 6px;
}
.gauge-panel .panel-head .live::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.gauge-caption {
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  color: #8B93AC;
  margin-top: 6px;
}
.gauge-caption b { color: #EDEFF7; }

.needle {
  transform-origin: 150px 150px;
  animation: sweep-in 1.4s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes sweep-in {
  from { transform: rotate(-70deg); }
  to { transform: rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) {
  .needle { animation: none; }
}

.family-legend {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.family-legend span {
  font-family: var(--mono);
  font-size: 11px;
  color: #AEB6CC;
  display: flex;
  align-items: center;
  gap: 6px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.friction { background: var(--friction); }
.dot.clarity { background: var(--clarity); }
.dot.calibration { background: var(--calibration); }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: clamp(26px, 3vw, 33px);
  line-height: 1.2;
  margin: 16px 0 12px;
  color: var(--ink);
}
.section-head p { color: var(--slate); font-size: 16px; max-width: 56ch; }

.family-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.family-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.family-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: #D7DAF5;
}
.family-card .fam-dot { width: 9px; height: 9px; border-radius: 50%; margin-bottom: 18px; }
.family-card h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.005em;
  margin: 0 0 12px;
}
.family-card ul { margin: 0; padding-left: 18px; color: var(--slate); font-size: 14.5px; }
.family-card li { margin-bottom: 7px; }
.family-card li::marker { color: var(--line); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split .eyebrow { margin-bottom: 16px; }
.split h2 { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; font-size: 27px; line-height: 1.25; margin: 0 0 16px; }
.split p { color: var(--slate); margin-bottom: 14px; font-size: 15.5px; }

.stat-strip {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  margin: 8px 0 0;
}
.stat-strip div .num {
  font-family: var(--display);
  font-size: 21px;
  color: var(--ink);
  font-weight: 600;
}
.stat-strip div .label {
  font-size: 12.5px;
  color: var(--slate);
  margin-top: 3px;
}

/* ---------- Product detail blocks ---------- */
.product-hero {
  background: var(--navy);
  color: #EDEFF7;
  padding: 72px 0 64px;
}
.product-hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 42px);
  margin: 16px 0 14px;
  color: #fff;
}
.product-hero p { color: #AEB6CC; max-width: 58ch; font-size: 16.5px; }
.product-hero .tags { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.product-hero .tag { border-color: var(--navy-line); color: #C7CDE0; }
.product-hero .tag.status-dev { background: rgba(255, 246, 224, .08); color: #F3D089; border-color: #4a3f22; }

.detector-family {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  margin-bottom: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.detector-family .fam-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.detector-family .fam-head .fam-dot { width: 9px; height: 9px; border-radius: 50%; }
.detector-family .fam-head h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.005em;
  font-size: 18px;
  margin: 0;
}
.detector-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.detector-item {
  border-left: 2px solid var(--line);
  padding-left: 14px;
}
.detector-item h4 { font-size: 14.5px; margin: 0 0 5px; font-weight: 600; letter-spacing: -0.003em; }
.detector-item p { font-size: 13.5px; color: var(--slate); margin: 0; line-height: 1.55; }

.notice {
  background: #F2F3FF;
  border: 1px solid #DEDFF9;
  border-radius: 12px;
  padding: 20px 22px;
  font-size: 14.5px;
  color: #383A6E;
  margin-top: 36px;
  line-height: 1.6;
}
.notice b { color: var(--indigo); }

/* ---------- Contact ---------- */
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  box-shadow: var(--shadow-md);
}
.contact-card h2 { font-family: var(--display); font-weight: 600; letter-spacing: -0.005em; font-size: 21px; margin: 0 0 22px; }
.contact-detail { margin-bottom: 22px; }
.contact-detail .label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 7px;
}
.contact-detail .value { font-size: 16px; font-weight: 500; transition: color .15s ease; }
.contact-detail a.value:hover { color: var(--indigo); }

/* ---------- Legal pages ---------- */
.legal { padding: 64px 0 100px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; font-size: 32px; margin-bottom: 8px; }
.legal .updated { font-family: var(--mono); font-size: 12px; color: var(--slate); margin-bottom: 44px; }
.legal h2 { font-family: var(--display); font-weight: 600; letter-spacing: -0.005em; font-size: 18px; margin: 40px 0 12px; }
.legal p, .legal li { color: #34405A; font-size: 15.5px; line-height: 1.7; }
.legal ul { padding-left: 20px; }

/* ---------- Footer ---------- */
footer.site {
  background: var(--navy);
  color: #8B93AC;
  padding: 52px 0 36px;
}
footer.site .foot-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--navy-line);
}
footer.site .brand { color: #EDEFF7; }
footer.site .foot-links {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
}
footer.site .foot-links div .col-title {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #5C6684;
  margin-bottom: 14px;
}
footer.site .foot-links a {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #AEB6CC;
  margin-bottom: 10px;
  transition: color .15s ease;
}
footer.site .foot-links a:hover { color: #fff; }
footer.site .foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 13px;
}
footer.site .foot-bottom .legal-name { font-family: var(--mono); color: #5C6684; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 48px; }
  .family-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .contact-card { grid-template-columns: 1fr; padding: 28px; }
  .detector-list { grid-template-columns: 1fr; }
  .navlinks { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* ---------- Blog ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.post-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.post-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: #D7DAF5;
}
.post-card .post-date {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 12px;
}
.post-card h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.005em;
  font-size: 18px;
  margin: 0 0 10px;
  line-height: 1.3;
}
.post-card p { color: var(--slate); font-size: 14.5px; margin: 0 0 16px; flex-grow: 1; }
.post-card .read-more {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--indigo);
  font-weight: 500;
}

.post-body { max-width: 720px; }
.post-header { margin-bottom: 40px; }
.post-header .post-date {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 14px;
}
.post-header h1 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
  margin: 0 0 14px;
  color: var(--ink);
}
.post-header .dek { font-size: 17px; color: var(--slate); max-width: 60ch; }
.post-body .content { font-size: 16.5px; color: #2C3650; line-height: 1.75; }
.post-body .content h2 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.005em;
  font-size: 23px;
  margin: 40px 0 14px;
  color: var(--ink);
}
.post-body .content h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
  margin: 30px 0 12px;
  color: var(--ink);
}
.post-body .content p { margin: 0 0 18px; }
.post-body .content ul, .post-body .content ol { margin: 0 0 18px; padding-left: 22px; }
.post-body .content li { margin-bottom: 8px; }
.post-body .content a { color: var(--indigo); text-decoration: underline; text-underline-offset: 2px; }
.post-body .content blockquote {
  border-left: 3px solid var(--cyan);
  margin: 24px 0;
  padding: 4px 0 4px 20px;
  color: var(--slate);
  font-style: italic;
}
.post-footer {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* Focus visibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--indigo);
  color: #fff;
  padding: 12px 20px;
  z-index: 999;
  font-family: var(--body);
  font-weight: 600;
  font-size: 14px;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}
