:root {
    --brand: #6d28d9;
    --brand-dark: #5b21b6;
    --brand-light: #a78bfa;
    --ink: #111827;
    --muted: #6b7280;
    --bg: #ffffff;
    --bg-soft: #f5f3ff;
    --border: #e5e7eb;
}

* { box-sizing: border-box; }

html, body {
    margin: 0; padding: 0;
    font-family: 'Onest', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    color: var(--ink); background: var(--bg); line-height: 1.6;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; }
img { max-width: 100%; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.site { display: flex; flex-direction: column; min-height: 100vh; position: relative; }
.site-main { flex: 1 0 auto; }

/* Header — transparent, sitting on top of the hero gradient */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 20; background: transparent; border-bottom: none; }
.header-inner { display: flex; align-items: center; gap: 24px; height: 84px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 34px; width: auto; display: block; }
.nav { display: flex; gap: 26px; flex: 1 1 auto; justify-content: center; }
.nav a { color: var(--ink); font-weight: 600; position: relative; padding: 6px 4px; }
.nav a.nav-active { color: var(--brand-dark); }
.header-right { flex: 0 0 auto; display: flex; align-items: center; gap: 16px; }
.lang { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); }
.lang a { color: var(--muted); font-weight: 600; }
.lang a.on { color: var(--brand); }
.cta { display: inline-block; background: var(--brand); color: #fff; padding: 10px 20px; border-radius: 999px; font-weight: 600; }
.cta:hover { background: var(--brand-dark); text-decoration: none; }

/* Buttons */
.btn { display: inline-block; padding: 13px 26px; border-radius: 999px; font-weight: 600; transition: transform .15s ease, background .15s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: #111827; color: #fff; }
.btn-primary:hover { background: #000; }
.btn-outline { border: 1px solid var(--brand); color: var(--brand); }
.btn-outline:hover { background: var(--bg-soft); }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { background: #f3f4f6; }

/* ===== Hero ===== */
.hero {
    position: relative; overflow: hidden; padding: 150px 0 130px;
    background: linear-gradient(120deg, #ede9fe 0%, #c4b5fd 42%, #a78bfa 78%, #ddd6fe 100%);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 86%);
}
.hero::before {
    content: ""; position: absolute; inset: -20%;
    background: radial-gradient(closest-side, rgba(255,255,255,.85), rgba(255,255,255,0) 70%);
    width: 60%; height: 120%; left: -5%; top: -10%;
    animation: heroGlow 12s ease-in-out infinite alternate;
}
@keyframes heroGlow {
    0%   { transform: translate(0,0) scale(1); opacity: .9; }
    50%  { transform: translate(20%, 8%) scale(1.25); opacity: .7; }
    100% { transform: translate(35%, -6%) scale(1.1); opacity: .95; }
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: 3rem; font-weight: 800; margin: 0 0 14px; color: #16111f; outline: none; }
.hero h1:focus, .hero h1:focus-visible { outline: none; }
.hero-sub { font-size: 1.15rem; color: #4b3f63; max-width: 520px; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero phones */
.hero-art { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 680px; }
.hero-art .phone { position: absolute; width: 66%; height: auto; filter: drop-shadow(0 30px 50px rgba(31,16,64,.35)); border-radius: 26px; }
.hero-art .phone-a { left: -4%; bottom: 0; z-index: 2; }
.hero-art .phone-b { right: -4%; bottom: 34px; width: 68%; z-index: 1; transform: rotate(2deg); }
.float { animation: floaty 6s ease-in-out infinite; }
.float.slow { animation-duration: 7.5s; animation-delay: .6s; }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(0); } }
.hero-art .phone-b.float { animation-name: floatyB; }
@keyframes floatyB { 0%,100% { transform: translateY(0) rotate(2deg); } 50% { transform: translateY(-12px) rotate(2deg); } }


/* ===== Entrance animations ===== */
.split { white-space: normal; }
.split .word { display: inline; white-space: nowrap; }
.split .char { display: inline-block; opacity: 0; transform: translateY(24px); animation: charUp .55s cubic-bezier(.2,.7,.3,1) forwards; }
.split .sp { display: inline-block; }
@keyframes charUp { to { opacity: 1; transform: none; } }

.anim-up { opacity: 0; transform: translateY(26px); animation: fadeUp .8s ease forwards; }
.anim-right { opacity: 0; transform: translateX(46px); animation: fadeRight .9s ease .15s forwards; }
.d1 { animation-delay: .15s; } .d2 { animation-delay: .3s; } .d3 { animation-delay: .45s; } .d4 { animation-delay: .6s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
@keyframes fadeRight { to { opacity: 1; transform: none; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .18s; } .reveal.d3 { transition-delay: .28s; }
@media (prefers-reduced-motion: reduce) {
    .reveal, .anim-up, .anim-right, .split .char { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
    .float { animation: none !important; }
}

/* ===== Brand heading (What is / Why) ===== */
.whatis, .whyis { padding: 66px 0 8px; text-align: center; }
.brand-heading { font-size: 2rem; font-weight: 800; margin: 0 0 10px; color: var(--ink); }
.bh { white-space: nowrap; }
.bh-a { font-weight: 800; font-style: normal; }
.bh-b { font-weight: 400; font-style: italic; }
.bh-c { color: var(--brand); font-weight: 900; font-style: italic; }
.section-lead { color: var(--muted); font-size: 1.1rem; }
.center { text-align: center; margin-left: auto; margin-right: auto; max-width: 720px; }

/* Icon cards */
.icon-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.icard { text-align: center; padding: 12px; }
.icon-circle { width: 74px; height: 74px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; margin: 0 auto 18px; box-shadow: 0 12px 26px rgba(109,40,217,.35); }
.icon-circle svg { width: 34px; height: 34px; }
.icard h3 { margin: 0 0 8px; font-size: 1.2rem; }
.icard p { color: var(--muted); margin: 0; }

/* Audience band */
.band { padding: 64px 0; text-align: center; }
.band h2 { font-size: 2rem; margin: 0 0 8px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: left; margin-top: 36px; }
.card { border: 1px solid var(--border); border-radius: 14px; padding: 26px; background: #fff; }
.card h3 { margin: 0 0 10px; color: var(--brand-dark); }
.card p { color: var(--muted); margin: 0; }

/* Portal demo with fleet inset (real-time section) */
.demo-shot { position: relative; }
.demo-shot .demo-main { width: 100%; height: auto; display: block; border-radius: 12px; box-shadow: 0 20px 50px rgba(17,24,39,.15); border: 1px solid var(--border); }
.demo-shot .demo-inset { position: absolute; right: -18px; bottom: -22px; width: 44%; height: auto; border-radius: 12px; border: 4px solid #fff; box-shadow: 0 16px 34px rgba(17,24,39,.28); }

/* Feature blocks */
.feature { padding: 48px 20px; }
.feature.alt { background: var(--bg-soft); border-radius: 20px; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.feature-grid.reverse .feature-text { order: 2; }
.feature-grid.reverse .feature-img { order: 1; }
.feature-text h2 { font-size: 1.8rem; margin: 0 0 12px; }
.feature-text > p { color: var(--muted); font-size: 1.05rem; }
.feature-img img { width: 100%; height: auto; display: block; border-radius: 12px; }
.feature-img.shadow img { box-shadow: 0 20px 50px rgba(17,24,39,.15); border: 1px solid var(--border); }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 2px; color: #fff; background: var(--brand); width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; }

/* FAQ */
.faq { padding: 64px 20px; }
.faq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.faq-intro .eyebrow { color: var(--muted); font-weight: 600; margin: 0 0 8px; }
.faq-intro h2 { font-size: 2rem; margin: 0; color: var(--ink); }
.faq-accent { color: var(--brand); display: block; }
.faq-divider { border: none; border-top: 1px solid var(--border); margin: 22px 0; }
.faq-other { color: var(--brand); font-weight: 700; margin: 0 0 16px; }
.faq-list { display: grid; gap: 14px; }
.faq-item { border: 1px solid var(--border); border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(17,24,39,.04); overflow: hidden; }
.faq-item.open { box-shadow: 0 12px 30px rgba(17,24,39,.10); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: none; border: none; cursor: pointer; padding: 20px 22px; font: inherit; font-size: 1.05rem; font-weight: 600; color: var(--ink); text-align: left; }
.faq-q svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--muted); transition: transform .2s ease; }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a { padding: 0 22px 20px; color: var(--muted); line-height: 1.6; }

@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Coverage map */
.coverage { padding: 56px 20px; text-align: center; }
.coverage h2 { font-size: 2rem; margin: 0 0 8px; }
.coverage-map { height: 460px; width: 100%; margin-top: 32px; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 50px rgba(17,24,39,.12); border: 1px solid var(--border); background: var(--bg-soft); }

/* App store badges */
.stores { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 26px; }
.hero-stores { justify-content: flex-start; margin-top: 18px; }
.stores a { display: inline-flex; align-items: center; gap: 10px; background: #111827; color: #fff; border-radius: 10px; padding: 10px 18px; min-width: 180px; transition: background .15s ease; }
.stores a:hover { background: #000; text-decoration: none; }
.stores svg { width: 26px; height: 26px; flex: 0 0 auto; }
.stores .store-tx { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.stores .store-tx small { font-size: .68rem; opacity: .8; }
.stores .store-tx b { font-size: 1.05rem; font-weight: 600; }

/* CTA band */
.cta-band { position: relative; color: #fff; text-align: center; padding: 76px 0; background-size: cover; background-position: center; margin-top: 20px; }
.cta-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(91,33,182,.92), rgba(109,40,217,.82)); }
.cta-inner { position: relative; z-index: 2; }
.cta-band h2 { font-size: 2.1rem; margin: 0 0 6px; }
.cta-band p { margin: 0 0 22px; opacity: .95; font-size: 1.1rem; }

/* Generic / legal (clear the absolute header) */
.page { padding: 130px 20px 56px; }
.legal { max-width: 860px; margin: 0 auto; }
.legal h1 { font-size: 2rem; margin: 0 0 20px; }
.legal h2 { font-size: 1.25rem; margin: 30px 0 8px; color: var(--ink); }
.legal p { color: #374151; line-height: 1.7; margin: 0 0 12px; }
.legal ul { color: #374151; line-height: 1.7; margin: 0 0 12px; padding-left: 22px; }
.legal li { margin-bottom: 4px; }
.legal a { color: var(--brand); }
.legal .legal-note { color: var(--muted); font-size: .9rem; margin-top: 26px; }

/* Application form (centered, matching the customer portal) */
.app-wrap { max-width: 820px; margin: 0 auto; }
.app-wrap h1 { font-size: 1.9rem; margin: 0 0 8px; }
.app-lead { color: var(--muted); margin: 0 0 28px; }
.app-form2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.app-form2 label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; color: #374151; }
.app-form2 .full { grid-column: 1 / -1; }
.app-form2 input, .app-form2 select { padding: 11px 12px; border: 1px solid var(--border); border-radius: 10px; font: inherit; font-weight: 400; background: #fff; }
.app-form2 input:focus, .app-form2 select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(109,40,217,.15); }
.app-form2 button { background: var(--brand); color: #fff; border: none; border-radius: 10px; padding: 12px 24px; font-family: inherit; font-size: 1rem; font-weight: 600; cursor: pointer; transition: background .15s ease; }
.app-form2 button:hover { background: var(--brand-dark); }
.app-form2 button:disabled { opacity: .6; cursor: default; }
.form-error { color: #b91c1c; font-size: .9rem; }
.form-thanks { text-align: center; padding: 24px 0; }
.form-thanks h3 { font-size: 1.4rem; margin: 0 0 8px; }

@media (max-width: 640px) { .app-form2 { grid-template-columns: 1fr; } }
.legal p { color: var(--muted); }

/* Contact page (redirect notice) */
.contact-page { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 56px 20px; align-items: start; }

/* Footer */
.site-footer { background: #0f1117; color: #cbd5e1; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px; padding: 44px 20px 18px; }
.footer-col h4 { color: #fff; margin: 0 0 12px; font-size: 1rem; }
.footer-col a { color: #cbd5e1; display: inline-block; margin-bottom: 6px; }
.footer-col a:hover { color: #fff; }
.footer-logo { height: 30px; width: auto; margin-bottom: 14px; display: block; }
.social { display: flex; gap: 12px; }
.social a { width: 38px; height: 38px; border-radius: 50%; background: #1f2937; display: grid; place-items: center; color: #cbd5e1; transition: background .2s ease, color .2s ease; }
.social a:hover { background: var(--brand); color: #fff; }
.social svg { width: 18px; height: 18px; }
.footer-copy { padding: 12px 20px 30px; color: #9ca3af; border-top: 1px solid #1f2937; }

@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero { padding: 64px 0 90px; clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%); }
    .hero h1 { font-size: 2.3rem; }
    .hero-art { min-height: 420px; max-width: 460px; margin: 10px auto 0; }
    .feature-grid { grid-template-columns: 1fr; gap: 24px; }
    .feature-grid.reverse .feature-text { order: 1; }
    .feature-grid.reverse .feature-img { order: 2; }
    .feature-img { max-width: 460px; margin: 0 auto; }
}
@media (max-width: 820px) {
    .icon-cards { grid-template-columns: 1fr; }
    .cards { grid-template-columns: 1fr; }
    .contact-page { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .nav { display: none; }
    .orn-1, .orn-2 { display: none; }
}
