:root {
  /* Matches intjector-web client palette (tailwind.config.js) */
  --bg:        #0d1117;   /* surface-900 */
  --bg-2:      #161b22;   /* surface-800 */
  --surface:   #21262d;   /* surface-700 */
  --surface-2: #30363d;   /* surface-600 */
  --border:    #30363d;
  --text:      #e6edf3;
  --dim:       #8b949e;
  --accent:    #3fb950;   /* accent-green */
  --accent-2:  #58a6ff;   /* accent-blue  */
  --crit:      #f85149;   /* accent-red    */
  --high:      #e3b341;   /* accent-orange */
  --med:       #e3b341;
  --low:       #58a6ff;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: radial-gradient(1200px 600px at 80% -10%, rgba(88,166,255,0.07), transparent 60%),
              radial-gradient(900px 500px at -10% 20%, rgba(63,185,80,0.07), transparent 60%),
              var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  font-size: clamp(14px, 0.9vw + 11px, 15px);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 28px); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11,13,16,0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 28px); gap: 12px;
}
.brand { font-weight: 700; font-size: clamp(16px, 1.1vw + 12px, 18px); letter-spacing: -0.02em; }
.brand .dot { color: var(--accent); }
.nav nav { display: flex; gap: clamp(10px, 2vw, 22px); font-size: 13px; color: var(--dim); flex-wrap: wrap; justify-content: flex-end; }
.nav nav a:hover { color: var(--text); }
.nav nav a.cta { color: var(--accent); }

/* Hero */
.hero { padding: clamp(40px, 7vw, 72px) 0 clamp(32px, 5vw, 48px); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 48px); align-items: center;
}
.eyebrow {
  display: inline-block; margin: 0 0 14px;
  font-size: clamp(10px, 0.8vw + 7px, 11px); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); background: rgba(63,185,80,0.08);
  border: 1px solid rgba(63,185,80,0.3); padding: 4px 10px; border-radius: 999px;
}
h1 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4.2vw + 10px, 44px); line-height: 1.08; letter-spacing: -0.025em;
  font-weight: 700;
}
.lede { color: var(--dim); font-size: clamp(14px, 0.5vw + 13px, 16px); margin: 0 0 28px; max-width: 52ch; }
.cta-row { display: flex; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 11px 18px; border-radius: 10px;
  font-size: 14px; font-weight: 600; white-space: nowrap;
  border: 1px solid transparent; transition: transform 0.08s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #0d1117; }
.btn-primary:hover { background: #4ac960; }
.btn-ghost   { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface); }
.meta { color: var(--dim); font-size: 12px; margin-top: 8px; }

/* Hero image */
.hero-panel { min-width: 0; }
.hero-img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  background: var(--bg-2);
}

/* Terminal (legacy — used inside preview mocks) */
.terminal {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  overflow: hidden;
}
.term-head {
  display: flex; gap: 6px; padding: 10px 14px;
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.term-head span { width: 10px; height: 10px; border-radius: 50%; background: #3a424d; }
.term-head span:nth-child(1) { background: #ff6b6b; }
.term-head span:nth-child(2) { background: #ffd166; }
.term-head span:nth-child(3) { background: #7ef0a4; }
.term-tabs { margin-left: auto; display: flex; gap: 4px; }
.term-tabs .tab {
  width: auto !important; height: auto !important; border-radius: 6px !important;
  background: transparent !important;
  font-size: 11px; padding: 4px 10px; color: var(--dim); cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  border: 1px solid transparent;
}
.term-tabs .tab.active { background: var(--surface-2) !important; color: var(--text); border-color: var(--border); }
.terminal pre {
  margin: 0; padding: 16px 18px;
  font-family: 'JetBrains Mono', Menlo, Consolas, monospace;
  font-size: 12.5px; line-height: 1.7; color: #cfd4dc;
  white-space: pre-wrap; word-break: break-word;
}
.c-ok   { color: var(--accent); }
.c-warn { color: var(--med); }
.c-bad  { color: var(--crit); }
.c-dim  { color: var(--dim); }

/* Sections */
.section { padding: clamp(48px, 7vw, 72px) 0; border-top: 1px solid var(--border); }
.section.dark { background: var(--bg-2); }
.section h2 {
  font-size: clamp(22px, 2.2vw + 14px, 30px); letter-spacing: -0.02em; margin: 0 0 8px;
}
.section .sub { color: var(--dim); margin: 0 0 clamp(20px, 3vw, 32px); max-width: 60ch; }

/* Platform split */
.platform-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.platform-col {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 22px 22px 18px;
}
.platform-head {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 14px; font-size: 15px; color: var(--text);
}
.plat-badge {
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  padding: 3px 8px; border-radius: 999px; text-transform: uppercase;
}
.plat-badge.android { background: rgba(63,185,80,0.12); color: var(--accent);   border: 1px solid rgba(63,185,80,0.4); }
.plat-badge.ios     { background: rgba(88,166,255,0.12);  color: var(--accent-2); border: 1px solid rgba(88,166,255,0.4);  }
.checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.checklist li {
  position: relative; padding-left: 22px;
  font-size: 13.5px; color: var(--dim); line-height: 1.55;
  overflow-wrap: anywhere;
}
.checklist li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 700;
}
.checklist code {
  background: var(--bg); padding: 1px 6px; border-radius: 4px;
  font-size: 12px; color: var(--accent-2);
}
@media (max-width: 760px) {
  .platform-split { grid-template-columns: 1fr; }
}

.pill.android { background: rgba(63,185,80,0.15); color: var(--accent);   font-size: 9px; padding: 2px 5px; }
.pill.ios     { background: rgba(88,166,255,0.15);  color: var(--accent-2); font-size: 9px; padding: 2px 5px; }

.group-head {
  margin: 36px 0 14px; font-size: 13px; color: var(--dim);
  text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600;
  padding-bottom: 8px; border-bottom: 1px dashed var(--border);
}
.group-head:first-of-type { margin-top: 10px; }

.persona-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px;
}
.persona-list li {
  position: relative; padding-left: 22px;
  font-size: 14px; color: var(--dim); line-height: 1.55;
}
.persona-list li::before {
  content: '›'; position: absolute; left: 0; top: -2px;
  color: var(--accent); font-weight: 700; font-size: 18px;
}
.persona-list li strong { color: var(--text); font-weight: 600; }
.persona-list code { background: var(--bg); padding: 1px 6px; border-radius: 4px; font-size: 12px; color: var(--accent-2); }
@media (max-width: 720px) { .persona-list { grid-template-columns: 1fr; } }

.pill.inline {
  display: inline-block; margin: 0 1px; vertical-align: baseline;
  font-family: 'JetBrains Mono', Menlo, monospace;
}

/* Feature grid */
.grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 20px 18px;
  transition: border-color 0.15s ease, transform 0.08s ease;
}
.card:hover { border-color: #2f3742; transform: translateY(-2px); }
.card h3 { margin: 0 0 8px; font-size: 15px; color: var(--text); }
.card p  { margin: 0; font-size: 13.5px; color: var(--dim); overflow-wrap: anywhere; }
.card code {
  background: var(--bg); padding: 1px 6px; border-radius: 4px;
  font-size: 12px; color: var(--accent-2);
}

/* Screenshots / mocks */
.shots {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}
.shots-4 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .shots-4 { grid-template-columns: 1fr; } }

.shot { margin: 0; }
.shot img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--bg-2);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.shot-frame {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  height: 240px; padding: 16px; overflow: hidden;
  display: flex; flex-direction: column; gap: 8px;
}
.shot figcaption { color: var(--text); font-size: 12.5px; font-weight: 600; margin-top: 10px; text-align: center; }

/* Headline demo GIF */
.demo-shot { max-width: 960px; margin: 0 auto 36px; }
.demo-shot img {
  box-shadow: 0 24px 70px rgba(0,0,0,0.45);
  border-radius: 14px;
}
.demo-shot figcaption { font-size: 13px; margin-top: 14px; }

.mock { font-family: 'JetBrains Mono', Menlo, monospace; font-size: 11.5px; display: flex; flex-direction: column; gap: 6px; height: 100%; }
.mock-header { color: var(--dim); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; }
.mock-row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 6px; background: var(--bg-2); }
.pill { font-size: 9.5px; font-weight: 700; padding: 2px 6px; border-radius: 4px; letter-spacing: 0.05em; }
.pill.crit { background: rgba(248,81,73,0.18); color: var(--crit); }
.pill.high { background: rgba(227,179,65,0.18);  color: var(--high); }
.pill.med  { background: rgba(227,179,65,0.15); color: var(--med); }
.pill.low  { background: rgba(88,166,255,0.15); color: var(--low); }

.mock-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.mock-btns .b {
  background: var(--bg-2); border: 1px solid var(--border);
  padding: 4px 8px; border-radius: 6px; font-size: 11px; color: var(--text);
}
.mock-btns .b.green { border-color: rgba(63,185,80,0.5); color: var(--accent); background: rgba(63,185,80,0.08); }
.mock-btns .b.primary { background: var(--accent); color: var(--bg); border-color: var(--accent); }

.mock-log { flex: 1; overflow: hidden; display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.mock-log div { background: var(--bg-2); padding: 6px 8px; border-radius: 6px; color: var(--dim); }
.mock-log em { color: var(--accent-2); font-style: normal; }

.field { display: flex; gap: 10px; align-items: center; font-size: 11.5px; }
.field label { width: 64px; color: var(--dim); }
.field code  { background: var(--bg-2); padding: 3px 8px; border-radius: 4px; color: var(--text); flex: 1; }

/* CTA */
.cta-section { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.cta-box { text-align: center; max-width: 560px; margin: 0 auto; }
.cta-box h2 { font-size: clamp(26px, 3vw + 16px, 38px); margin-bottom: 8px; }
.cta-box p  { color: var(--dim); }
/* Footer */
.foot { border-top: 1px solid var(--border); padding: 32px 0 28px; color: var(--dim); font-size: 12.5px; }
.foot-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px;
  align-items: start;
}
.foot-col { display: flex; flex-direction: column; gap: 6px; }
.foot-col.right { text-align: right; justify-self: end; }
.foot-title { color: var(--text); font-weight: 600; font-size: 13px; }
.foot-dim   { color: var(--dim); }
.foot-links { display: flex; gap: 14px; margin-top: 4px; }
.foot-links a { color: var(--accent); font-size: 12.5px; }
.foot-links a:hover { color: var(--text); }
@media (max-width: 720px) {
  .foot-grid { grid-template-columns: 1fr; }
  .foot-col.right { text-align: left; justify-self: start; }
}

/* ── Responsive ───────────────────────────────────────────── */

/* Tablet and below — stack hero, tighten nav */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { max-width: 640px; margin: 0 auto; width: 100%; }
  .nav nav a:not(.cta) { display: none; }
}

/* Small tablets / large phones */
@media (max-width: 760px) {
  .platform-split { grid-template-columns: 1fr; }
  .shots-4        { grid-template-columns: 1fr; }
  .demo-shot      { margin-bottom: 24px; }
  .group-head     { margin: 28px 0 12px; }
}

/* Phones */
@media (max-width: 560px) {
  .persona-list { grid-template-columns: 1fr; gap: 10px; }
  .foot-grid    { grid-template-columns: 1fr; text-align: left; }
  .foot-col.right { text-align: left; justify-self: start; }
  .cta-row .btn { flex: 1; text-align: center; }
  .card         { padding: 18px 16px; }
  .platform-col { padding: 18px 16px; }
  .nav-row      { padding-top: 12px; padding-bottom: 12px; }
  .nav nav      { font-size: 12px; }
}

/* Very narrow — iPhone SE class */
@media (max-width: 380px) {
  .brand        { font-size: 15px; }
  .btn          { padding: 10px 14px; font-size: 13px; }
  .card p, .checklist li, .persona-list li { font-size: 13px; }
  .mock-row     { flex-wrap: wrap; }
  .pill         { font-size: 9px; }
  .eyebrow      { font-size: 10px; padding: 3px 8px; }
}
