/* engicrew.com marketing site. Plain CSS, no build step, no JavaScript.
   Brand colours match the app (src/app/globals.css). */
:root {
  --brand-50: #eff6ff;
  --brand-100: #dbeafe;
  --brand-500: #2f6fde;
  --brand-600: #1d5bc8;
  --brand-700: #1a4aa3;
  --brand-900: #142c5c;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f8fafc;
  --bg: #ffffff;
  --radius: 10px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 16px; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }

/* ---- header ---- */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; font-size: 17px; }
.mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: var(--brand-600); color: #fff; font-size: 14px; font-weight: 700; }
.logo-sm { font-size: 15px; }
.logo-sm .mark { width: 24px; height: 24px; font-size: 12px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav-link { display: none; padding: 8px 12px; font-size: 14px; color: var(--text); text-decoration: none; border-radius: 6px; }
.nav-link:hover { color: var(--ink); background: var(--soft); }
@media (min-width: 860px) { .nav-link { display: inline-block; } }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 550; text-decoration: none; border: 1px solid transparent; white-space: nowrap; transition: background-color 0.15s, border-color 0.15s; }
.btn-lg { padding: 12px 20px; font-size: 15px; }
.btn-primary { background: var(--brand-600); color: #fff; }
.btn-primary:hover { background: var(--brand-700); }
.btn-secondary { background: #fff; color: var(--ink); border-color: #cbd5e1; }
.btn-secondary:hover { background: var(--soft); }
.btn-ghost { color: var(--ink); }
.btn-ghost:hover { background: var(--soft); }
.btn-light { background: #fff; color: var(--brand-700); }
.btn-light:hover { background: var(--brand-50); }
.btn:focus-visible, .nav-link:focus-visible, summary:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; }

/* ---- hero ---- */
.hero { padding: 56px 0 64px; background: linear-gradient(180deg, var(--brand-50) 0%, #fff 70%); }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero { padding: 88px 0 96px; } .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; } }
.eyebrow { font-size: 13px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-600); margin-bottom: 12px; }
h1 { font-size: clamp(34px, 6vw, 52px); font-weight: 700; }
.lead { margin-top: 20px; font-size: 18px; color: var(--text); max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.fine { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* ---- product mock ---- */
.mock { border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 20px 48px -16px rgba(20, 44, 92, 0.22); overflow: hidden; font-size: 14px; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--soft); }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.mock-bar em { margin-left: 8px; font-style: normal; font-weight: 600; color: var(--ink); font-size: 13px; }
.mock-body { padding: 14px; display: grid; gap: 12px; }
.mock-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; min-width: 0; }
.mock-head { display: flex; align-items: center; justify-content: space-between; font-weight: 600; color: var(--ink); font-size: 13px; margin-bottom: 8px; }
.mock-head b { font-weight: 600; font-size: 12px; background: var(--brand-100); color: var(--brand-700); border-radius: 999px; padding: 1px 8px; }
.jobs { list-style: none; margin: 0; padding: 0; }
.jobs li { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); min-width: 0; }
.jobs li:first-child { border-top: 0; padding-top: 0; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--muted); flex: none; }
.tag { margin-left: auto; flex: none; font-size: 12px; padding: 1px 8px; border-radius: 999px; background: #f1f5f9; color: var(--text); }
.tag-red { background: #fee2e2; color: #b91c1c; }
.tag-blue { background: var(--brand-100); color: var(--brand-700); }
.tag-amber { background: #fef3c7; color: #92400e; }
.mock-split { display: grid; gap: 12px; }
@media (min-width: 480px) { .mock-split { grid-template-columns: 1fr 1fr; } }
.big { font-size: 18px; font-weight: 650; color: var(--ink); }
.muted { color: var(--muted); font-size: 13px; margin-top: 2px; }
.row { font-size: 13px; padding: 4px 0; border-top: 1px solid var(--line); }
.row:first-of-type { border-top: 0; padding-top: 0; }

/* ---- sections ---- */
.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--soft); }
.band-row { padding-top: 18px; padding-bottom: 18px; text-align: center; font-size: 15px; color: var(--muted); }
.section { padding: 72px 0; }
.section.alt { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 960px) { .section { padding: 96px 0; } }
h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 700; max-width: 22em; }
.grid { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.feature { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; }
.feature h3 { font-size: 17px; font-weight: 650; }
.feature p { margin-top: 8px; font-size: 15px; color: var(--text); }
.feature.soon { border-style: dashed; background: transparent; }
.feature.soon h3::after { content: "Soon"; margin-left: 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; vertical-align: 2px; padding: 2px 7px; border-radius: 999px; background: var(--brand-100); color: var(--brand-700); }

.two-col { display: grid; gap: 40px; }
@media (min-width: 960px) { .two-col { grid-template-columns: 1fr 1.1fr; gap: 64px; } }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding: 16px 18px 16px 50px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); font-size: 15px; }
.checks li::before { content: ""; position: absolute; left: 18px; top: 19px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.checks b { color: var(--ink); font-weight: 600; }

.faq { max-width: 760px; }
.faq h2 { margin-bottom: 28px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 32px 18px 0; position: relative; font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 22px; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 20px; color: var(--text); }

.final { padding-top: 0; }
.section.final { padding-top: 72px; }
.final-box { background: var(--brand-600); background-image: linear-gradient(135deg, var(--brand-600), var(--brand-900)); color: #fff; border-radius: 16px; padding: 48px 24px; text-align: center; }
.final-box h2 { color: #fff; margin: 0 auto; }
.final-box p { margin: 14px auto 28px; color: var(--brand-100); max-width: 32em; }

/* ---- footer ---- */
.foot { border-top: 1px solid var(--line); margin-top: 72px; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 28px; font-size: 14px; color: var(--muted); }
.foot nav { display: flex; gap: 20px; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--ink); }

/* ---- 404 ---- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 64px 16px; }
.notfound h1 { margin-top: 32px; font-size: 32px; }
.notfound p { margin: 12px 0 24px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
