/* Komète landing — styles */

:root {
  --bg: #F6F3EC;
  --bg-alt: #EFEBE0;
  --paper: #FBF9F3;
  --line: #E2DCCE;
  --ink: #0F0B3D;
  --navy: #19135A;
  --navy-deep: #0A0831;
  --navy-tint: #E7E5F2;
  --rose: #EA4A86;
  --rose-dark: #C93770;
  --rose-tint: #FCE7EF;
  --muted: #6B6482;
  --accent: var(--rose);
  --accent-soft: var(--rose-tint);
  /* Outfit as default display font */
  --font-display: 'Outfit', sans-serif;
  --display-italic: normal;
  --display-letterspacing: -0.025em;
  --display-weight: 600;
}
[data-display="instrument"] {
  --font-display: 'Instrument Serif', 'Times New Roman', serif;
  --display-italic: italic;
  --display-letterspacing: -0.02em;
  --display-weight: 400;
}
[data-display="fraunces"] {
  --font-display: 'Fraunces', 'Times New Roman', serif;
  --display-italic: normal;
  --display-letterspacing: -0.025em;
  --display-weight: 500;
}
[data-display="space"] {
  --font-display: 'Space Grotesk', sans-serif;
  --display-italic: normal;
  --display-letterspacing: -0.03em;
  --display-weight: 500;
}
[data-display="outfit"] {
  --font-display: 'Outfit', sans-serif;
  --display-italic: normal;
  --display-letterspacing: -0.025em;
  --display-weight: 600;
}
[data-display="poppins"] {
  --font-display: 'Poppins', sans-serif;
  --display-italic: normal;
  --display-letterspacing: -0.02em;
  --display-weight: 600;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
em {
  font-style: var(--display-italic);
  font-family: var(--font-display);
  font-weight: var(--display-weight);
}

.app { max-width: 1400px; margin: 0 auto; padding: 0 40px; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 40px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,243,236,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { max-width: 1400px; margin: 0 auto; padding: 18px 40px; display: flex; align-items: center; gap: 48px; }
.nav-brand { flex-shrink: 0; }
.nav-links { display: flex; gap: 32px; flex: 1; }
.nav-links a { font-size: 14px; color: var(--navy); opacity: 0.8; transition: opacity 0.15s; }
.nav-links a:hover { opacity: 1; }
.nav-cta { display: flex; align-items: center; gap: 20px; }
.nav-edit { font-size: 13px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14.5px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.1s, background 0.15s;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: white; border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: white; }
.btn-sm { padding: 10px 18px; font-size: 13.5px; }
.btn .arr { transition: transform 0.2s; }
.btn:hover .arr { transform: translateX(3px); }

/* Hero */
.hero { padding: 80px 0 60px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--muted);
  letter-spacing: 0.02em;
  margin-bottom: 28px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.eyebrow strong { color: var(--navy); font-weight: 600; }

.hero-title {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-style: normal;
  font-size: clamp(48px, 5.6vw, 82px);
  line-height: 0.98;
  letter-spacing: var(--display-letterspacing);
  color: var(--navy-deep);
  margin: 0 0 28px;
}
.hero-lede {
  font-size: 19px; line-height: 1.55;
  color: var(--muted);
  max-width: 540px;
  margin: 0 0 36px;
}
.hero-lede strong { color: var(--navy); font-weight: 500; }
.hero-ctas { display: flex; gap: 14px; margin-bottom: 48px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 48px; border-top: 1px solid var(--line); padding-top: 28px; }
.stat-n {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 34px; line-height: 1;
  color: var(--navy); margin-bottom: 6px;
}
.stat-l { font-size: 13px; color: var(--muted); }
.hero-byline {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 16px;
  font-size: 12px; color: var(--muted);
}
.hero-byline a { display: flex; align-items: center; }
.hero-byline img { transition: opacity .2s; }
.hero-byline a:hover img { opacity: 0.65; }

/* Hero viz */
.hero-viz { position: relative; }
.viz-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 30px 60px -30px rgba(15, 11, 61, 0.25);
}
.viz-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.viz-tabs { display: flex; gap: 4px; background: var(--bg-alt); border-radius: 8px; padding: 3px; }
.viz-tabs .tab { padding: 6px 12px; font-size: 12.5px; border-radius: 6px; color: var(--muted); cursor: pointer; }
.viz-tabs .tab.active { background: white; color: var(--navy); box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.viz-badge {
  font-size: 10.5px; letter-spacing: 0.08em;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}
.viz-title { font-size: 15px; color: var(--navy); margin-bottom: 20px; font-weight: 500; }
.viz-chart {
  display: flex; gap: 12px; align-items: flex-end;
  height: 180px;
  padding: 0 4px;
  border-bottom: 1px solid var(--line);
  position: relative;
  margin-bottom: 30px;
}
.bar-col {
  flex: 1;
  height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  align-items: center;
  position: relative; cursor: pointer;
}
.bar-fill {
  width: 100%;
  border-radius: 4px 4px 0 0;
  transform-origin: bottom;
  transform: scaleY(1);
  transition: filter 0.15s;
}
.bar-col.hovered .bar-fill { filter: brightness(1.1); }
.bar-label {
  position: absolute; bottom: -20px; left: 0; right: 0;
  text-align: center;
  font-size: 11px; color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}
.bar-tip {
  position: absolute; top: -30px;
  background: var(--navy-deep); color: white;
  font-size: 11px; padding: 4px 8px; border-radius: 4px;
  white-space: nowrap;
  transition: opacity 0.15s;
  font-family: 'JetBrains Mono', monospace;
  pointer-events: none;
}

.viz-foot { display: flex; justify-content: space-between; margin-top: 12px; align-items: center; }
.viz-foot-item { display: flex; gap: 8px; font-size: 12.5px; color: var(--muted); }
.tri-up { font-weight: 600; }
.viz-filter { display: flex; gap: 6px; }
.chip {
  font-size: 11px;
  padding: 3px 9px;
  background: var(--bg-alt);
  border-radius: 999px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}

.viz-sidecard {
  position: absolute;
  right: -40px; bottom: 60px;
  background: var(--navy-deep);
  color: #E7E5F2;
  padding: 20px;
  border-radius: 14px;
  width: 240px;
  box-shadow: 0 20px 40px -20px rgba(10, 8, 49, 0.5);
}
.side-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.side-row:last-child { border-bottom: none; }
.side-label { font-size: 11.5px; color: rgba(231, 229, 242, 0.6); letter-spacing: 0.03em; }
.side-val { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.side-val .big { font-family: var(--font-display); font-size: 20px; color: white; }
.side-val .tiny { font-size: 11px; font-weight: 600; }
.gauge { width: 60px; height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden; }
.gauge-fill { height: 100%; border-radius: 2px; animation: fillG 1.5s ease-out; }
@keyframes fillG { from { width: 0 !important; } }
.small-chips { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.mini-chip {
  font-size: 10px; padding: 2px 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
}

.freemium-ribbon {
  margin-top: 20px;
  display: flex; align-items: center; gap: 14px;
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 14px 18px;
}
.freemium-ribbon > div:not(:first-child):not(:last-child) { flex: 1; }
.rib-title { font-size: 14px; font-weight: 600; color: var(--navy); }
.rib-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.rib-cta {
  background: transparent;
  border: 1px solid;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  white-space: nowrap;
}

/* Trust band */
.trust-band {
  background: var(--navy-deep);
  color: #E7E5F2;
  overflow: hidden;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-scroll {
  display: flex; gap: 56px;
  animation: scrollBand 40s linear infinite;
  white-space: nowrap;
}
@keyframes scrollBand {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.trust-item { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: 0.02em; }

/* Section shell */
.section { padding: 110px 0; }
.sec-head { max-width: 720px; margin: 0 0 56px; }
.sec-head.align-center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.kicker .kdot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.sec-title {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(36px, 4.2vw, 60px);
  line-height: 1.02;
  letter-spacing: var(--display-letterspacing);
  color: var(--navy-deep);
  margin: 0 0 20px;
}
.sec-lede {
  font-size: 18px; color: var(--muted);
  max-width: 620px;
  margin: 0;
}

/* Themes */
.themes-section { background: var(--bg); border-top: 1px solid var(--line); }
.themes-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.theme-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.theme-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(15,11,61,0.2); }
.theme-viz { width: 64px; height: 64px; margin-bottom: 20px; }
.theme-title { font-size: 18px; color: var(--navy-deep); margin: 0 0 10px; font-weight: 600; }
.theme-desc { font-size: 14px; color: var(--muted); line-height: 1.55; margin: 0 0 18px; }
.theme-sources { display: flex; flex-wrap: wrap; gap: 5px; }
.src-chip {
  font-size: 10.5px; padding: 3px 8px;
  background: var(--bg-alt);
  border-radius: 999px;
  color: var(--navy);
  font-family: 'JetBrains Mono', monospace;
}

/* Products */
.products-section { background: var(--bg-alt); }
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.prod-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  min-height: 220px;
  display: flex; flex-direction: column;
}
.prod-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; }
.prod-n { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--muted); letter-spacing: 0.05em; }
.prod-t { font-size: 17px; color: var(--navy-deep); margin: 0 0 8px; font-weight: 600; }
.prod-d { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.55; }

/* KoMètA */
.kometa-section { background: var(--navy-deep); color: #E7E5F2; }
.kometa-section .sec-title { color: white; }
.kometa-section .sec-lede { color: rgba(231, 229, 242, 0.75); }
.kometa-section .kicker { color: rgba(231, 229, 242, 0.6); }
.kometa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.kometa-feats { list-style: none; padding: 0; margin: 32px 0; }
.kometa-feats li { padding: 10px 0; font-size: 15px; color: rgba(231, 229, 242, 0.9); }
.kometa-tech { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-chip {
  font-size: 11.5px; padding: 5px 11px;
  border: 1px solid rgba(231, 229, 242, 0.2);
  border-radius: 999px;
  color: rgba(231, 229, 242, 0.75);
  font-family: 'JetBrains Mono', monospace;
}

.kometa-chat {
  background: #151043;
  border: 1px solid rgba(231, 229, 242, 0.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6);
}
.chat-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid rgba(231, 229, 242, 0.08); }
.chat-title { font-weight: 600; color: white; font-size: 14px; flex: 1; }
.chat-status { font-size: 11px; color: rgba(231, 229, 242, 0.5); display: flex; align-items: center; gap: 6px; }
.pulse { width: 7px; height: 7px; border-radius: 50%; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1;} 50% { transform: scale(1.4); opacity: 0.6;} }

.chat-body { padding: 20px; min-height: 340px; display: flex; flex-direction: column; gap: 14px; }
.msg { display: flex; gap: 8px; animation: msgIn 0.3s ease-out; }
.msg.user { justify-content: flex-end; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } }
.msg-bubble {
  max-width: 80%;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(231, 229, 242, 0.06);
  font-size: 14px;
  color: rgba(231, 229, 242, 0.95);
  line-height: 1.45;
}
.msg.user .msg-bubble { border-radius: 12px 12px 2px 12px; }
.msg.ai .msg-bubble { border-radius: 2px 12px 12px 12px; }
.msg-sources { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(231, 229, 242, 0.1); }
.src-tag { font-size: 10.5px; color: rgba(231, 229, 242, 0.6); font-family: 'JetBrains Mono', monospace; }
.msg-chips { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.msg-chip { font-size: 11.5px; padding: 4px 10px; border: 1px solid; border-radius: 999px; cursor: pointer; }
.typing { display: flex; gap: 4px; align-items: center; }
.typing span { width: 6px; height: 6px; background: rgba(231, 229, 242, 0.5); border-radius: 50%; animation: typ 1.2s ease-in-out infinite; }
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typ { 0%, 100% { opacity: 0.3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }

.chat-input { display: flex; gap: 8px; padding: 14px 16px; border-top: 1px solid rgba(231, 229, 242, 0.08); }
.chat-input input {
  flex: 1; background: rgba(231, 229, 242, 0.06); border: none; padding: 10px 14px; border-radius: 8px;
  color: white; font-family: inherit; font-size: 13.5px;
}
.chat-input button { width: 36px; height: 36px; border-radius: 8px; border: none; color: white; cursor: pointer; font-size: 18px; }

/* Clients */
.clients-section { background: var(--bg); padding: 90px 0; border-top: 1px solid var(--line); }
.clients-kicker { text-align: center; font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 36px; }
.clients-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; margin-bottom: 64px; }
.client-tile {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 20px;
  color: var(--navy);
  background: var(--paper);
  transition: transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
}
.client-tile svg { display: block; }
.client-tile:hover { transform: translateY(-2px); }
.client-quote { max-width: 760px; margin: 0 auto; display: flex; gap: 24px; align-items: flex-start; }
.client-quote blockquote {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 26px; line-height: 1.35;
  color: var(--navy-deep);
  margin: 0;
}
.client-quote cite { display: block; font-size: 13px; color: var(--muted); margin-top: 14px; font-family: 'Inter', sans-serif; font-style: normal; }

/* Audiences */
.audiences-section { background: var(--bg-alt); }
.aud-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.aud-card { background: var(--paper); padding: 36px; }
.aud-n { font-family: 'JetBrains Mono', monospace; font-size: 13px; margin-bottom: 16px; letter-spacing: 0.05em; }
.aud-t { font-size: 19px; color: var(--navy-deep); margin: 0 0 10px; font-weight: 600; }
.aud-d { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.55; }

/* Method */
.method-section { background: var(--bg); }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.method-card { padding: 32px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.method-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border: 1.5px solid; border-radius: 50%;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  margin-bottom: 20px;
}
.method-card h4 { font-size: 20px; color: var(--navy-deep); margin: 0 0 10px; }
.method-card p { font-size: 14.5px; color: var(--muted); margin: 0; line-height: 1.6; }

/* Contact */
.contact-section { background: var(--bg-alt); border-top: 1px solid var(--line); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; max-width: 1200px; margin: 0 auto; align-items: start; }
.contact-copy .sec-title { font-size: clamp(32px, 3.5vw, 48px); }
.contact-bullets { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; font-size: 15px; color: var(--navy); }
.contact-form { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 32px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; letter-spacing: 0.02em; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; font-size: 14.5px; font-family: inherit;
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
  color: var(--ink);
  transition: border-color 0.15s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-form button { width: 100%; justify-content: center; margin-top: 8px; }

/* Footer */
.footer { background: var(--navy-deep); color: #E7E5F2; padding: 80px 0 32px; }
.footer-inner { max-width: 1400px; margin: 0 auto; padding: 0 40px; display: grid; grid-template-columns: 1.2fr 2fr; gap: 64px; }
.footer-tag { color: rgba(231, 229, 242, 0.6); font-size: 14px; max-width: 340px; margin: 18px 0 20px; }
.footer-kyu { font-size: 13px; color: rgba(231, 229, 242, 0.5); display: flex; gap: 8px; align-items: center; }
.footer-kyu a { display: flex; align-items: center; opacity: 1; transition: opacity .2s; }
.footer-kyu a:hover { opacity: 0.8; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.fcol-t { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(231, 229, 242, 0.5); margin-bottom: 16px; }
.footer-cols a { display: block; padding: 5px 0; font-size: 14px; color: rgba(231, 229, 242, 0.85); }
.footer-cols a:hover { color: white; }
.footer-btm { max-width: 1400px; margin: 64px auto 0; padding: 24px 40px 0; border-top: 1px solid rgba(231, 229, 242, 0.1); display: flex; justify-content: space-between; font-size: 12.5px; color: rgba(231, 229, 242, 0.5); }

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 8, 49, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: modalFadeIn 0.18s ease-out;
}
@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 40px 40px 32px;
  width: 100%; max-width: 520px;
  box-shadow: 0 40px 80px -20px rgba(10, 8, 49, 0.5);
  animation: modalRise 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}
@keyframes modalRise { from { opacity: 0; transform: translateY(20px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border: none; background: var(--bg-alt);
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px; color: var(--muted);
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}
.modal-close:hover { background: var(--line); color: var(--navy-deep); }
.modal-icon-wrap {
  width: 64px; height: 64px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.modal-kicker {
  font-size: 12.5px;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 14px;
  font-family: 'JetBrains Mono', monospace;
}
.modal-title {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-style: normal;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.1;
  letter-spacing: var(--display-letterspacing);
  color: var(--navy-deep);
  margin: 0 0 18px;
}
.modal-lede {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 24px;
}
.modal-lede strong { color: var(--navy); font-weight: 500; }
.modal-meta {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px 16px;
  margin-bottom: 28px;
}
.modal-meta-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.modal-meta-row:last-child { border-bottom: none; }
.modal-meta-l { color: var(--muted); font-family: 'JetBrains Mono', monospace; font-size: 11.5px; letter-spacing: 0.04em; text-transform: uppercase; }
.modal-meta-v { color: var(--navy-deep); font-weight: 500; text-align: right; max-width: 60%; }
.modal-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 24px;
}
.modal-actions .btn { flex: 1 1 200px; justify-content: center; }
.modal-foot {
  display: flex; align-items: center; gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

/* Tweaks panel */
.tweaks-panel {
  position: fixed; bottom: 24px; right: 24px; z-index: 100;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 20px 40px -20px rgba(15,11,61,0.25);
  width: 320px;
  font-size: 13px;
  max-height: 80vh;
  overflow-y: auto;
}
.tweaks-panel h4 { margin: 0 0 12px; font-size: 13px; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.tweak-row { margin-bottom: 10px; }
.tweak-row > label { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 6px; letter-spacing: 0.03em; }
.tweak-opts { display: flex; gap: 6px; flex-wrap: wrap; }
.tweak-opts-2 { flex-direction: column; }
.tweak-opts-2 button { text-align: left; padding: 10px 12px; }
.tweak-opts button { flex: 1; padding: 8px; border: 1px solid var(--line); background: white; border-radius: 8px; font-family: inherit; font-size: 12px; cursor: pointer; color: var(--muted); }
.tweak-opts button em { font-style: normal; font-family: inherit; }
.tweak-opts button.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.tweaks-toggle {
  position: fixed; bottom: 24px; right: 24px; z-index: 100;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px -8px rgba(15,11,61,0.2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 20px;
  transition: background 0.15s, transform 0.15s;
}
.tweaks-toggle:hover { background: var(--bg-alt); transform: scale(1.08); }

/* Responsive */
@media (max-width: 1100px) {
  .viz-sidecard { display: none; }
}
@media (max-width: 900px) {
  .hero-grid, .kometa-grid, .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .themes-grid, .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .aud-grid, .clients-row, .method-grid, .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .app { padding: 0 20px; }
  .container { padding: 0 20px; }
  .nav-inner { padding: 16px 20px; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; padding: 0 20px; }
}
@media (max-width: 600px) {
  .themes-grid, .prod-grid, .aud-grid, .clients-row, .method-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 24px; }
  .footer-cols { grid-template-columns: 1fr; }
  .modal-card { padding: 32px 24px 24px; border-radius: 14px; }
}
