/* Logic & Loop — site styles */
:root {
  --ink: #0B1020;
  --ink-2: #2A3145;
  --muted: #5B637A;
  --line: #E4E7EF;
  --bg: #FAFAF7;
  --surface: #FFFFFF;
  --tint: #F1F3FB;
  --accent: #4F5BD5;      /* logic — indigo */
  --accent-2: #10B981;    /* loop — green */
  --accent-soft: #EEF0FF;
  --dark: #0B1020;
  --dark-2: #151B31;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(11,16,32,.06), 0 12px 32px -12px rgba(11,16,32,.18);
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.1rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 600 1rem/1 var(--font-body);
  padding: 15px 22px; border-radius: 999px; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -8px rgba(79,91,213,.7); }
.btn--primary:hover { background: #4350C8; }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: #C9CEDC; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--sm { padding: 10px 18px; font-size: .95rem; }
.btn--block { width: 100%; }
.ico { width: 20px; height: 20px; color: #16A34A; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font: 600 .8rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}
.eyebrow--light { color: #A5B0FF; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 4px rgba(16,185,129,.18); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36em; }
.lead--light { color: #B8BFD6; }
.grad { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(250,250,247,.82); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand__mark { width: 36px; height: 36px; }
.brand__name { font: 700 1.2rem/1 var(--font-head); letter-spacing: -0.02em; }
.amp { color: var(--accent); }
.nav__menu { display: flex; align-items: center; gap: 2rem; }
.nav__menu a:not(.btn) { text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: .97rem; }
.nav__menu a:not(.btn):hover { color: var(--accent); }
.nav__toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, top .25s; }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* Hero */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 9vw, 120px); position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -20% 0 auto; height: 620px; z-index: -1;
  background:
    radial-gradient(600px 300px at 80% 20%, rgba(79,91,213,.14), transparent 70%),
    radial-gradient(500px 280px at 95% 70%, rgba(16,185,129,.12), transparent 70%);
}
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 2rem 0 1.75rem; }
.hero__chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero__chips li { font-size: .88rem; font-weight: 500; color: var(--ink-2); padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }

.hero__demo { position: relative; justify-self: center; width: min(360px, 100%); }
.phone { background: #ECE5DD; border-radius: 30px; overflow: hidden; border: 8px solid var(--ink); box-shadow: 0 30px 60px -20px rgba(11,16,32,.45); }
.phone__bar { display: flex; align-items: center; gap: 10px; background: #075E54; color: #fff; padding: 14px 16px; }
.phone__bar strong { display: block; font-size: .95rem; line-height: 1.2; }
.phone__bar small { font-size: .75rem; opacity: .85; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: #fff; color: #075E54; display: grid; place-items: center; font: 700 .8rem/1 var(--font-head); flex: none; }
.chat { padding: 16px 12px 20px; display: flex; flex-direction: column; gap: 8px; min-height: 380px; }
.msg {
  max-width: 82%; padding: 8px 10px 18px; border-radius: 10px; font-size: .88rem; line-height: 1.4; position: relative;
  box-shadow: 0 1px 1px rgba(0,0,0,.08);
  opacity: 0; transform: translateY(8px); animation: pop .4s ease forwards; animation-delay: calc(var(--d) * .9s + .3s);
}
.msg time { position: absolute; right: 8px; bottom: 3px; font-size: .65rem; color: #6B7280; }
.msg--in { background: #fff; align-self: flex-start; border-top-left-radius: 2px; }
.msg--out { background: #DCF8C6; align-self: flex-end; border-top-right-radius: 2px; }
.msg--sys { align-self: center; background: #fff; color: #047857; font-weight: 600; font-size: .78rem; padding: 6px 12px; border-radius: 999px; }
@keyframes pop { to { opacity: 1; transform: none; } }

.badge { position: absolute; background: var(--surface); border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; line-height: 1.15; border: 1px solid var(--line); }
.badge strong { font: 700 1.3rem/1.1 var(--font-head); }
.badge span { font-size: .75rem; color: var(--muted); }
.badge--a { left: -28px; top: -22px; }
.badge--a strong { color: var(--accent-2); }
.badge--b { right: -30px; bottom: 90px; }
.badge--b strong { color: var(--accent); }
.demo-note { text-align: center; font-size: .75rem; color: var(--muted); margin: 12px 0 0; }

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--dark); color: #fff; }
.section__head { max-width: 760px; margin-bottom: 48px; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.card p { color: var(--muted); font-size: .97rem; margin: 0; }
.card__icon { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); display: grid; place-items: center; margin-bottom: 20px; }
.card__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card:nth-child(even) .card__icon { background: #E7F8F1; }
.card:nth-child(even) .card__icon svg { stroke: #059669; }

/* Minute One */
.m1 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.m1 h2 { color: #fff; }
.m1__copy .btn { margin-top: .5rem; }
.m1__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.m1__list li { display: flex; gap: 16px; background: var(--dark-2); border: 1px solid rgba(255,255,255,.07); border-radius: var(--radius-sm); padding: 18px 20px; }
.m1__list strong { display: block; margin-bottom: 2px; }
.m1__list p { margin: 0; color: #A9B1C9; font-size: .95rem; }
.tick { flex: none; width: 30px; height: 30px; border-radius: 50%; background: rgba(16,185,129,.16); color: #34D399; display: grid; place-items: center; font: 700 .85rem/1 var(--font-head); }
.pilot {
  margin-top: 56px; display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 32px 36px; border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(79,91,213,.28), rgba(16,185,129,.18)); border: 1px solid rgba(255,255,255,.12);
}
.pilot h3 { font-size: 1.5rem; color: #fff; }
.pilot p { color: #C9CFE3; margin: 0; max-width: 40em; }
.pilot .btn { flex: none; }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { padding: 28px 0 0; border-top: 2px solid var(--line); position: relative; }
.steps li::before { content: ""; position: absolute; top: -2px; left: 0; width: 48px; height: 2px; background: var(--accent); }
.steps__n { font: 600 .85rem/1 var(--font-head); color: var(--accent); display: block; margin-bottom: 14px; }
.steps p { color: var(--muted); font-size: .97rem; margin: 0; }

/* Industries / why */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.tags { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { background: var(--surface); border: 1px solid var(--line); padding: 10px 16px; border-radius: 999px; font-weight: 500; font-size: .95rem; }
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.why__item { background: var(--surface); border-radius: var(--radius-sm); padding: 24px; border: 1px solid var(--line); }
.why__item p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Contact */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact__ways { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 12px; }
.contact__ways a { display: flex; align-items: center; gap: 14px; text-decoration: none; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); transition: border-color .2s, transform .15s; }
.contact__ways a:hover { border-color: var(--accent); transform: translateX(2px); }
.contact__ways strong { display: block; line-height: 1.2; }
.contact__ways small { color: var(--muted); font-size: .88rem; word-break: break-all; }
.cw__ico { width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; }
.cw__ico svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cw__ico--wa { background: #E7F8EE; }
.cw__ico--wa svg { stroke: none; color: #16A34A; }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { font-weight: 600; font-size: .9rem; }
.opt { font-weight: 400; color: var(--muted); }
input, select, textarea {
  font: inherit; font-size: 1rem; color: var(--ink); width: 100%;
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 110px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(79,91,213,.14); }
.is-invalid { border-color: #DC2626 !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__status { margin: 12px 0 0; font-size: .95rem; min-height: 1.4em; }
.form__status.ok { color: #047857; }
.form__status.err { color: #B91C1C; }

/* Footer */
.footer { background: var(--dark); color: #fff; padding: 40px 0; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer__small { margin: 0; font-size: .88rem; color: #A9B1C9; }
.brand--footer .amp { color: #8C96FF; }

/* WhatsApp float */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -6px rgba(37,211,102,.6);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }

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

/* Responsive */
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
}
@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 20px;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  }
  .nav__menu.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav__menu .btn { margin-top: 16px; }
  .hero__grid, .m1, .split, .contact { grid-template-columns: 1fr; }
  .hero__demo { margin-top: 12px; }
  .badge--a { left: -8px; }
  .hero__demo { margin-top: 36px; }
  .badge--b { right: -12px; }
  .pilot { flex-direction: column; align-items: flex-start; padding: 26px 24px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .cards, .steps, .why, .field-row { grid-template-columns: 1fr; }
  .field-row { gap: 0; }
  .hero__cta .btn { flex: 1 1 100%; }
  .pilot .btn { width: 100%; }
  .badge { padding: 8px 12px; }
  .badge strong { font-size: 1.1rem; }
  .badge--a { left: -4px; top: -22px; }
  .badge--b { right: -6px; }
  .section__head { margin-bottom: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .msg { animation: none; opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .wa-float { transition: none; }
}
