/* ==========================================================================
   Velotech.AI — site styles
   Brand language (from the logo and wordmark):
   - red ink on warm black
   - Jost, tracked capitals for labels, like VELOTECH.AI
   - corner brackets that echo the logo's frame (top-right, bottom-left)
   - square corners and thin outlines
   ========================================================================== */

:root {
  --bg: #0e0c0b;
  --panel: rgba(26, 22, 20, .72);
  --line: rgba(225, 195, 185, .14);
  --line-strong: rgba(225, 195, 185, .26);
  --text: #f3ece8;
  --muted: #a99e99;
  --red: #b74435;
  --red-hover: #c34e3e;
  --red-soft: #df9288;
  --ok: #3ddc97;
  --warn: #f5b74e;
  --error: #ff8a7a;
  --radius: 4px;
  --container: 1120px;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-head: "Jost", "Inter", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased;
  overflow-x: clip; position: relative;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(40px, 5.6vw, 64px); }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: 20px; letter-spacing: 0; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section { position: relative; padding: 96px 0; }
section[id] { scroll-margin-top: 72px; }

.bg-glow {
  position: absolute; top: -200px; left: -160px; z-index: -1; pointer-events: none;
  width: 620px; height: 620px; border-radius: 50%;
  background: #e8894f; filter: blur(120px); opacity: .26;
}

/* Labels ------------------------------------------------------------------ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px;
  font: 500 12.5px/1 var(--font-head); letter-spacing: .22em; text-transform: uppercase; color: var(--red-soft);
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--red); }
.lede { font-size: 18px; color: var(--muted); max-width: 560px; }
.text-accent {
  background: linear-gradient(100deg, var(--red-soft), #d0604f 50%, var(--red));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Corner-bracket frame (the logo's frame) --------------------------------- */
.framed { position: relative; }
.framed::before, .framed::after {
  content: ""; position: absolute; width: 26px; height: 26px; pointer-events: none;
  transition: width .35s var(--ease), height .35s var(--ease);
}
.framed::before { top: 0; right: 0; border-top: 2px solid var(--red); border-right: 2px solid var(--red); }
.framed::after { bottom: 0; left: 0; border-bottom: 2px solid var(--red); border-left: 2px solid var(--red); opacity: .7; }
.framed:hover::before, .framed:hover::after { width: 42px; height: 42px; }

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: 3px; border: 1px solid transparent; cursor: pointer;
  font: 500 13.5px/1 var(--font-head); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, border-color .2s, opacity .2s;
}
.btn svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 24px -10px rgba(183, 68, 53, .7); }
.btn-primary:hover { background: var(--red-hover); transform: translateY(-1px); }
.btn-primary[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: rgba(225, 195, 185, .5); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 12.5px; }
.btn-block { width: 100%; }

/* Header ------------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 12, 11, .55); border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: background .25s, border-color .25s;
}
.site-header.scrolled { background: rgba(14, 12, 11, .88); border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--red); }
.brand-mark { flex: 0 0 auto; width: 32px; height: 30px; background: url("/assets/img/logo.svg") no-repeat center / contain; }
.brand-word { font: 400 20px/1 "Jost", sans-serif; letter-spacing: .12em; text-transform: uppercase; }

/* Hero -------------------------------------------------------------------- */
.hero { padding: 96px 0 88px; overflow: hidden; }
.hero-mesh {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none;
  mask-image: linear-gradient(90deg, rgba(0,0,0,.25) 0%, #000 45%);
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.25) 0%, #000 45%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.hero .lede { margin-top: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.panel {
  display: grid; gap: 12px; padding: 26px; border-radius: var(--radius);
  background: rgba(14, 12, 11, .78); border: 1px solid var(--line-strong);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.panel-title { font: 500 12px/1 var(--font-head); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.node-row {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 13px 16px; border-radius: 3px; font-size: 14px; color: var(--muted);
  background: rgba(255, 255, 255, .025); border: 1px solid var(--line);
}
.node-row b { color: var(--text); font-weight: 600; }
.node-row .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(61, 220, 151, .15); }
.node-row .pct { font: 500 13px/1 var(--font-head); color: var(--ok); }
.node-row.pending .dot { background: var(--warn); box-shadow: 0 0 0 4px rgba(245, 183, 78, .15); animation: pulse 1.6s ease-in-out infinite; }
.node-row.pending .pct { color: var(--warn); }
.flow-line { position: relative; display: flex; justify-content: center; padding: 8px 0; }
.flow-line::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: linear-gradient(90deg, transparent, var(--red), transparent); }
.flow-line span {
  position: relative; padding: 6px 14px; border-radius: 2px; background: var(--bg); border: 1px solid rgba(183, 68, 53, .5);
  font: 500 11.5px/1 var(--font-head); letter-spacing: .2em; text-transform: uppercase; color: #f0c3bc;
}
@keyframes pulse { 50% { opacity: .35; } }

/* Capabilities ------------------------------------------------------------ */
.section-head { margin-bottom: 44px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  padding: 30px 28px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line);
  transition: border-color .25s, transform .25s var(--ease);
}
.card:hover { border-color: rgba(183, 68, 53, .32); transform: translateY(-3px); }
.card p { color: var(--muted); font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tags span { font-size: 12.5px; color: var(--muted); padding: 4px 10px; border-radius: 2px; border: 1px solid var(--line-strong); }

/* Proof ------------------------------------------------------------------- */
.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(183, 68, 53, .03); }
.proof-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.stats { margin: 0; display: grid; gap: 0; }
.stats div { display: flex; align-items: baseline; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.stats div:first-child { border-top: 1px solid var(--line); }
.stats dt { min-width: 110px; font: 300 40px/1 var(--font-head); color: var(--text); }
.stats dd { margin: 0; color: var(--muted); font-size: 15px; }
.note { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--muted); }

/* Contact ----------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact-form {
  display: grid; gap: 18px; padding: 32px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line-strong);
}
.contact-form:hover::before, .contact-form:hover::after { width: 26px; height: 26px; }
.field { display: grid; gap: 7px; }
.field label { font: 500 12px/1 var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.field .optional { text-transform: none; letter-spacing: 0; opacity: .7; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 3px;
  background: rgba(14, 12, 11, .7); border: 1px solid var(--line-strong); color: var(--text);
  font: 15px/1.5 var(--font-body); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(183, 68, 53, .2); }
.field.invalid input, .field.invalid textarea { border-color: var(--error); }
.field .error { font-size: 13px; color: var(--error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; min-height: 1.4em; font-size: 14.5px; color: var(--muted); }
.form-status.success { color: var(--ok); }
.form-status.failure { color: var(--error); }

/* Footer ------------------------------------------------------------------ */
.site-footer { padding: 32px 0; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.site-footer .brand-word { font-size: 17px; }
.site-footer .brand-mark { width: 26px; height: 24px; }

/* Reveal on scroll -------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .node-row.pending .dot { animation: none; }
}

/* Responsive -------------------------------------------------------------- */
@media (max-width: 960px) {
  section { padding: 72px 0; }
  .hero { padding: 64px 0; }
  .hero-grid, .proof-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .brand-word { font-size: 17px; letter-spacing: .1em; }
  .hero-actions .btn { flex: 1 1 100%; }
  .contact-form { padding: 24px 20px; }
  .stats dt { min-width: 92px; font-size: 34px; }
}

/* Mobile polish ------------------------------------------------------------ */
/* 16px inputs stop iOS Safari from zooming in when a field is tapped */
.field input, .field textarea { font-size: 16px; }
@media (max-width: 560px) {
  .nav { height: 64px; gap: 12px; }
  section[id] { scroll-margin-top: 64px; }
  .site-header .btn-sm { height: 44px; padding: 0 14px; }   /* 44px tap target */
  .hero { padding: 48px 0 56px; }
  .hero .lede, .lede { font-size: 16.5px; }
  .panel { padding: 18px; }
  .node-row { padding: 12px; gap: 10px; font-size: 13.5px; }
  .card { padding: 24px 22px; }
  .btn { height: 50px; }
}
@media (max-width: 380px) {
  .brand { gap: 8px; }
  .brand-mark { width: 26px; height: 24px; }
  .brand-word { font-size: 15px; letter-spacing: .06em; }
  .site-header .btn-sm { padding: 0 12px; font-size: 11.5px; letter-spacing: .1em; }
  h1 { font-size: 36px; }
}
/* No sticky hover lift on touch screens */
@media (hover: none) {
  .card:hover { transform: none; }
  .framed:hover::before, .framed:hover::after { width: 26px; height: 26px; }
}
