/* Traccia marketing site */
:root {
  --navy: #0b2266;
  --navy-2: #0e2d80;
  --blue: #1a6fd8;
  --sky: #3fa2f7;
  --ink: #0f172a;
  --muted: #526079;
  --line: #e3e8f2;
  --tint: #f4f7fc;
  --bg: #ffffff;
  --green: #16a34a;
  --red: #dc2626;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(11, 34, 102, .10);
  --shadow-lg: 0 30px 60px rgba(11, 34, 102, .18);
  --head: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); letter-spacing: -.015em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 820px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--blue); margin-bottom: .8em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; padding: 14px 24px; border-radius: 12px; border: 2px solid transparent; transition: transform .15s, box-shadow .15s, background .15s; cursor: pointer; font-size: 1rem; font-family: inherit; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(26, 111, 216, .3); }
.btn--primary:hover { background: #155fbd; }
.btn--ghost { border-color: var(--line); color: var(--navy); background: #fff; }
.btn--ghost:hover { border-color: var(--blue); }
.btn--sm { padding: 9px 16px; font-size: .9rem; }
.btn--block { width: 100%; }

/* Header */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.nav.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(11,34,102,.06); }
.nav__inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.nav__brand img { height: 52px; width: auto; }
.nav__links { display: flex; gap: 28px; margin-right: auto; }
.nav__links a { color: var(--ink); font-weight: 500; font-size: .95rem; }
.nav__links a:hover { color: var(--blue); }
.nav__right { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.lang button { border: 0; background: #fff; padding: 7px 10px; font: 600 .78rem "Inter", sans-serif; color: var(--muted); cursor: pointer; }
.lang button.is-active { background: var(--navy); color: #fff; }
.nav__burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav__burger span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(63,162,247,.18), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(26,111,216,.08), transparent 60%),
    linear-gradient(#fff, var(--tint)); }
.hero__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.hero h1 span { color: var(--blue); }
.hero__lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 32px; }
.hero__points { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.hero__points li { display: flex; gap: 10px; align-items: center; color: var(--ink); font-weight: 500; }
.hero__points svg { color: var(--blue); width: 20px; height: 20px; }
.hero__visual { position: relative; }

/* Devices and frames */
.device { background: #0f172a; border-radius: 28px; padding: 14px; box-shadow: var(--shadow-lg); }
.device--tablet { aspect-ratio: 4 / 3; }
.device--phone { width: 230px; aspect-ratio: 9 / 19; border-radius: 34px; padding: 10px; }
.device .shot { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 16px; background: #fff; }
.device--phone .shot { border-radius: 26px; }
.frame { border-radius: 14px; background: #fff; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--line); }
.frame::before { content: ""; display: block; height: 30px; background: #eef2f8 radial-gradient(circle at 16px 15px, #f87171 5px, transparent 6px), #eef2f8; border-bottom: 1px solid var(--line);
  background-image: radial-gradient(circle at 16px 15px, #f87171 5px, transparent 5.5px), radial-gradient(circle at 34px 15px, #fbbf24 5px, transparent 5.5px), radial-gradient(circle at 52px 15px, #34d399 5px, transparent 5.5px); }
.frame .shot { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }

/* Missing screenshot placeholder */
.shot.is-missing { visibility: hidden; }
.shot-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 100%; min-height: 200px; aspect-ratio: inherit; background: repeating-linear-gradient(45deg, #f1f5fb, #f1f5fb 12px, #e8eef8 12px, #e8eef8 24px); color: var(--muted); font-weight: 600; border-radius: inherit; text-align: center; padding: 16px; }
.frame .shot-ph { aspect-ratio: 16 / 10; }
.device .shot-ph { border-radius: 16px; }

.float-card { position: absolute; display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow); font-size: .9rem; animation: float 6s ease-in-out infinite; }
.float-card b { display: block; color: var(--navy); }
.float-card small { color: var(--muted); }
.float-card svg { color: var(--green); }
.float-card--a { left: -28px; bottom: 40px; }
.float-card--b { right: -16px; top: -18px; animation-delay: -3s; }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.dot--green { background: var(--green); box-shadow: 0 0 0 4px rgba(22,163,74,.18); }
@keyframes float { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .float-card { animation: none; } html { scroll-behavior: auto; } }

/* Standards strip */
.strip { border-block: 1px solid var(--line); background: #fff; }
.strip__inner { display: flex; align-items: center; gap: 32px; padding-block: 22px; flex-wrap: wrap; justify-content: center; }
.strip p { margin: 0; color: var(--muted); font-size: .92rem; }
.strip ul { list-style: none; display: flex; gap: 12px; padding: 0; margin: 0; flex-wrap: wrap; }
.strip li { font-family: var(--head); font-weight: 700; color: var(--navy); padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; }

/* Sections */
.section { padding: 96px 0; }
.section--tint { background: var(--tint); }
.section--navy { background: linear-gradient(160deg, var(--navy), var(--navy-2)); color: #dbe6ff; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy .eyebrow { color: var(--sky); }
.section__head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section__lead { color: var(--muted); font-size: 1.1rem; }

/* Compare */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.compare__col { border-radius: var(--radius); padding: 32px; }
.compare__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.compare__col li { padding-left: 32px; position: relative; }
.compare__col li::before { position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 700; }
.compare__col--before { background: #fff5f5; border: 1px solid #fde2e2; }
.compare__col--before h3 { color: #991b1b; }
.compare__col--before li::before { content: "✕"; background: #fee2e2; color: var(--red); }
.compare__col--after { background: #f0f7ff; border: 1px solid #d6e8ff; }
.compare__col--after li::before { content: "✓"; background: #dcfce7; color: var(--green); }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: center; margin-bottom: 112px; }
.feature:last-child { margin-bottom: 0; }
.feature--flip .feature__copy { order: 2; }
.feature__icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: #e3efff; color: var(--blue); margin-bottom: 18px; }
.feature h3 { font-size: 1.7rem; }
.feature p { color: var(--muted); font-size: 1.05rem; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; font-weight: 500; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat; }
.ticks--light li { color: #fff; }
.ticks--light li::before { background-color: var(--sky); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: #fff; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card svg { color: var(--blue); width: 30px; height: 30px; margin-bottom: 14px; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Flow */
.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; position: relative; }
.flow li { position: relative; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 28px 22px; }
.flow li:not(:last-child)::after { content: ""; position: absolute; right: -14px; top: 50%; width: 12px; height: 12px; border-top: 2px solid var(--sky); border-right: 2px solid var(--sky); transform: translateY(-50%) rotate(45deg); }
.flow svg { width: 34px; height: 34px; color: var(--sky); margin-bottom: 14px; }
.flow p { margin: 0; font-size: .95rem; }
.flow__n { position: absolute; top: 16px; right: 18px; font: 800 1.6rem var(--head); color: rgba(255,255,255,.14); }

/* Built for the floor */
.floor { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; }
.floor__media { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 460px; }
.floor__media .device--small { position: absolute; left: 0; bottom: 30px; width: 300px; z-index: 0; }
.floor__media .device--phone { position: relative; z-index: 1; margin-left: 170px; }
.floor__items { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 32px; }
.floor__items svg { color: var(--blue); width: 28px; height: 28px; margin-bottom: 8px; }
.floor__items h3 { font-size: 1.05rem; margin-bottom: .3em; }
.floor__items p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Modules */
.modules { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.modules li { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 22px 10px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .92rem; color: var(--navy); }
.modules svg { width: 44px; height: 44px; padding: 10px; border-radius: 12px; color: #fff; background: var(--c); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; padding: 4px 22px; background: #fff; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--blue); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); }

/* Demo */
.demo__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.demo__copy p { font-size: 1.1rem; }
.demo__form { background: #fff; border-radius: 20px; padding: 32px; box-shadow: var(--shadow-lg); color: var(--ink); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; flex: 1; }
.field-row { display: flex; gap: 14px; }
.field label { font-size: .88rem; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea { font: inherit; padding: 12px 14px; border: 1px solid #cfd8e8; border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,111,216,.15); }
.field input.is-invalid { border-color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.demo__form { position: relative; }
.demo__form.is-sent .field, .demo__form.is-sent .field-row, .demo__form.is-sent button { display: none; }
.form__note.is-err { color: var(--red); font-weight: 600; }
.form__note { margin: 12px 0 0; font-size: .82rem; color: var(--muted); text-align: center; }
.form__note.is-ok { color: var(--green); font-weight: 600; }

/* Footer */
.footer { padding: 48px 0; border-top: 1px solid var(--line); text-align: center; color: var(--muted); }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.footer img { height: 56px; width: auto; margin-bottom: 8px; }
.footer__links a { color: var(--muted); }
.footer__copy { font-size: .85rem; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* Responsive */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .modules { grid-template-columns: repeat(3, 1fr); }
  .flow { grid-template-columns: 1fr; }
  .flow li:not(:last-child)::after { right: 50%; top: auto; bottom: -14px; transform: translateX(50%) rotate(135deg); }
}
@media (max-width: 900px) {
  .nav__links { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; padding: 8px 16px 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav__burger { display: block; }
  .nav__right .btn { display: none; }
  .hero { padding: 40px 0 64px; }
  .hero__grid, .feature, .floor, .demo__grid, .compare { grid-template-columns: 1fr; gap: 40px; }
  .feature--flip .feature__copy { order: 0; }
  .feature { margin-bottom: 72px; }
  .float-card--a { left: 8px; bottom: -20px; }
  .float-card--b { right: 8px; }
  .section { padding: 64px 0; }
  .floor__media { min-height: 400px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .nav__inner { gap: 12px; }
  .nav__brand img { height: 42px; }
  .cards, .floor__items { grid-template-columns: 1fr; }
  .modules { grid-template-columns: repeat(2, 1fr); }
  .field-row { flex-direction: column; gap: 0; }
  .demo__form { padding: 22px; }
  .compare__col { padding: 22px; }
  .floor__media .device--small { width: 210px; bottom: 10px; }
  .floor__media .device--phone { width: 170px; margin-left: 140px; }
  .floor__media { min-height: 360px; justify-content: flex-start; }
  .float-card { font-size: .8rem; padding: 10px 12px; }
}
