/* ====================================================================
   Vache AI — clean / light / minimal landing page
   Hand-written CSS, zero dependencies. Built for static S3 hosting.
   ==================================================================== */

:root {
  --bg:        #ffffff;
  --bg-alt:    #f7f8fb;
  --ink:       #0c1020;
  --ink-soft:  #4a5168;
  --ink-faint: #8a90a3;
  --line:      #e7e9f1;
  --accent:    #4f46e5;   /* indigo */
  --accent-2:  #7c6cff;
  --accent-3:  #06b6d4;   /* cyan touch for gradients */
  --accent-soft: #eef0ff;
  --shadow:    0 1px 2px rgba(12,16,32,.04), 0 12px 40px rgba(12,16,32,.06);
  --shadow-lg: 0 24px 70px rgba(79,70,229,.16);
  --radius:    16px;
  --radius-sm: 10px;
  --maxw:      1140px;
  --grad: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 55%, var(--accent-3) 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font-weight: 600; font-size: 15px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(79,70,229,.25);
}
.btn--primary:hover { background: #4338ca; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(79,70,229,.35); }
.btn--ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn--lg { padding: 14px 26px; font-size: 16px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.8);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(12,16,32,.04); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand__mark {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--grad); color: #fff; font-size: 18px; font-weight: 800;
  box-shadow: 0 6px 16px rgba(79,70,229,.3);
}
.brand__name { color: var(--ink); }
.brand__ai { color: var(--accent); }

.nav__links { display: flex; gap: 30px; }
.nav__links a { font-size: 15px; font-weight: 500; color: var(--ink-soft); transition: color .15s; }
.nav__links a:hover { color: var(--ink); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile { display: none; flex-direction: column; gap: 4px; padding: 8px 24px 20px; background: #fff; border-bottom: 1px solid var(--line); }
.nav__mobile a { padding: 12px 4px; font-weight: 500; color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.nav__mobile a.btn { border: 1px solid transparent; margin-top: 12px; justify-content: center; color: #fff; }
.nav__mobile.open { display: flex; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center;
  max-width: var(--maxw); margin: 0 auto; padding: 84px 24px 64px;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; top: -180px; right: -120px;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,108,255,.18), transparent 65%);
  filter: blur(10px); z-index: -1;
}
.hero::after {
  content: ""; position: absolute; bottom: -200px; left: -150px;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(6,182,212,.12), transparent 65%);
  z-index: -1;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); border: 1px solid #dcd9ff;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; }
.dot--live { background: #16a34a; box-shadow: 0 0 0 0 rgba(22,163,74,.5); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(22,163,74,.5);} 70%{box-shadow:0 0 0 8px rgba(22,163,74,0);} 100%{box-shadow:0 0 0 0 rgba(22,163,74,0);} }

.hero__title { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.05; letter-spacing: -.03em; font-weight: 800; }
.hero__sub { margin-top: 22px; font-size: 18px; color: var(--ink-soft); max-width: 540px; }
.hero__actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.hero__stats { display: flex; gap: 36px; margin-top: 46px; }
.stat { display: flex; flex-direction: column; }
.stat__num { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.stat__label { font-size: 13px; color: var(--ink-faint); }

/* hero visual: call card */
.hero__visual { display: flex; justify-content: center; }
.callcard {
  width: 100%; max-width: 360px;
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  padding: 22px; box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-12px);} }
.callcard__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.callcard__pill { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--ink-soft); background: var(--bg-alt); padding: 5px 11px; border-radius: 999px; }
.callcard__time { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--ink-faint); }
.bubble { font-size: 14px; padding: 11px 14px; border-radius: 14px; margin-bottom: 10px; max-width: 86%; line-height: 1.45; }
.bubble--bot { background: var(--accent-soft); color: #2c2a6b; border-bottom-left-radius: 4px; }
.bubble--user { background: var(--accent); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.callcard__wave { display: flex; align-items: flex-end; gap: 3px; height: 30px; margin-top: 14px; justify-content: center; }
.callcard__wave i { width: 4px; background: var(--grad); border-radius: 4px; animation: wave 1.1s ease-in-out infinite; }
.callcard__wave i:nth-child(odd){ animation-delay: .15s; }
.callcard__wave i:nth-child(3n){ animation-delay: .3s; }
.callcard__wave i:nth-child(4n){ animation-delay: .45s; }
@keyframes wave { 0%,100%{height:6px;} 50%{height:26px;} }

/* ---------- Tech strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-alt); padding: 30px 0; }
.strip__label { text-align: center; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 18px; }
.strip__items { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; }
.strip__items span { font-weight: 600; font-size: 15px; color: var(--ink-soft); opacity: .85; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { max-width: 660px; margin: 0 auto 56px; text-align: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.section__head h2 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -.025em; line-height: 1.12; }
.section__head p { margin-top: 16px; color: var(--ink-soft); font-size: 17px; }

/* ---------- Product cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  position: relative;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #d9d6ff; }
.card--featured { border-color: var(--accent); box-shadow: 0 20px 50px rgba(79,70,229,.14); }
.card__tag { position: absolute; top: -12px; left: 26px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.card__icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; }
.card__icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 20px; letter-spacing: -.01em; }
.card > p { margin-top: 10px; color: var(--ink-soft); font-size: 15px; }
.card__list { margin-top: 18px; display: flex; flex-direction: column; gap: 9px; }
.card__list li { position: relative; padding-left: 26px; font-size: 14.5px; color: var(--ink); }
.card__list li::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; position: relative; }
.step__num { font-family: 'JetBrains Mono', monospace; font-size: 14px; font-weight: 600; color: #fff; background: var(--accent); width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; }
.step h3 { font-size: 19px; }
.step p { margin-top: 8px; color: var(--ink-soft); font-size: 15px; }

/* ---------- Why ---------- */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.why__copy h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.025em; line-height: 1.14; margin-bottom: 16px; }
.why__copy p { color: var(--ink-soft); font-size: 17px; margin-bottom: 26px; }
.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.feat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px 20px; box-shadow: var(--shadow); }
.feat h4 { font-size: 16px; margin-bottom: 6px; }
.feat p { font-size: 14px; color: var(--ink-soft); }

/* ---------- Contact form ---------- */
.contact { padding: 96px 0; background: var(--bg-alt); border-top: 1px solid var(--line); }
.contact__inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
.contact__copy h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.025em; line-height: 1.14; margin-bottom: 14px; }
.contact__copy > p { color: var(--ink-soft); font-size: 17px; margin-bottom: 24px; }
.contact__points { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.contact__points li { position: relative; padding-left: 28px; font-size: 15.5px; color: var(--ink); }
.contact__points li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.contact__alt { font-size: 15px; color: var(--ink-soft); }
.contact__alt a { color: var(--accent); font-weight: 600; }
.contact__alt a:hover { text-decoration: underline; }

.contact__form { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px; box-shadow: var(--shadow-lg); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: 15px; background: #fff; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field textarea { resize: vertical; min-height: 96px; }
.btn--block { width: 100%; margin-top: 6px; }
.hp { position: absolute !important; left: -9999px; opacity: 0; height: 0; width: 0; }
.form__status { margin-top: 14px; font-size: 14px; font-weight: 500; min-height: 20px; text-align: center; }
.form__status.is-success { color: #16a34a; }
.form__status.is-error { color: #dc2626; }
.form__status.is-note { color: var(--ink-soft); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; background: var(--bg-alt); }
.footer__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.footer__tag { color: var(--ink-soft); font-size: 15px; }
.footer__links { display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; }
.footer__links a { font-size: 14px; color: var(--ink-soft); transition: color .15s; }
.footer__links a:hover { color: var(--accent); }
.footer__copy { font-size: 13px; color: var(--ink-faint); margin-top: 6px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; padding-top: 56px; }
  .hero__visual { order: -1; }
  .callcard { max-width: 320px; }
  .cards, .steps { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr; gap: 32px; }
  .contact__inner { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 760px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .hero__stats { gap: 24px; }
  .why__grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
