/* ==========================================================================
   Efficient Mileage Solutions — public website
   Single consolidated stylesheet. Sections: tokens · base · components ·
   header · hero · sections · carousel · forms · footer · responsive · motion
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #07111b;
  --bg-alt: #0a1824;
  --surface: #0f1f2d;
  --surface-2: #132a3a;
  --line: #22374a;
  --line-2: #33505f;
  --ink: #f4f7f9;
  --ink-2: #c5d2db;
  --muted: #9db2c0;
  --accent: #ff973d;
  --accent-2: #ffb372;
  --accent-ink: #14202b;
  --danger: #ff8a7a;
  --radius: 12px;
  --radius-lg: 18px;
  --container: 1280px;
  --gutter: clamp(18px, 4vw, 40px);
  --header-h: 92px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .38);
  --font: Inter, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.65 var(--font); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: clamp(44px, 5.6vw, 80px); font-weight: 760; }
h2 { font-size: clamp(32px, 3.8vw, 52px); font-weight: 750; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
p { color: var(--muted); text-wrap: pretty; }
.accent { color: var(--accent); }
.container { width: min(var(--container), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 12px 18px; background: var(--accent); color: var(--accent-ink); font-weight: 700; border-radius: 8px; transition: top .2s; }
.skip-link:focus { top: 12px; }

/* ---------- Components ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--accent-2); font-size: 12px; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 12px 22px; border: 1px solid var(--accent); border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-size: 14px; font-weight: 750; line-height: 1.2; transition: transform .18s ease, background-color .18s ease, border-color .18s ease; }
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); transform: translateY(-1px); }
.btn--secondary { background: rgba(16, 35, 49, .55); border-color: #5b7587; color: var(--ink); backdrop-filter: blur(6px); }
.btn--secondary:hover { background: #1c3748; border-color: var(--accent-2); }
.btn--sm { min-height: 40px; padding: 9px 16px; font-size: 13px; }
.btn--block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-2); font-weight: 700; font-size: 14px; }
.link-arrow:hover { color: #ffd0a3; }

.section { padding: clamp(72px, 9vw, 120px) 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 20px clamp(40px, 6vw, 96px); align-items: end; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .eyebrow { grid-column: 1 / -1; }
.section-head h2 { max-width: 18ch; }
.section-head p { font-size: 17px; line-height: 1.75; max-width: 520px; padding-bottom: 4px; }
.section-head--stack { grid-template-columns: 1fr; max-width: 820px; }
.section-head--stack h2 { max-width: none; }

.check-list { display: grid; gap: 16px; margin-top: 28px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.check-list li::before { content: "✓"; display: grid; place-items: center; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: #24403e; color: var(--accent-2); font-size: 12px; font-weight: 800; }

/* ---------- Utility bar + header ---------- */
.utility { background: #050d15; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.utility-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 38px; }
.utility-links { display: flex; align-items: center; gap: 22px; }
.utility a { color: var(--ink-2); transition: color .15s; }
.utility a:hover { color: var(--accent-2); }

.site-header { position: sticky; top: 0; z-index: 60; background: rgba(7, 17, 27, .92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); transition: box-shadow .2s, background-color .2s; }
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, .35); background: rgba(7, 17, 27, .97); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; font-size: 13.5px; font-weight: 800; letter-spacing: .04em; line-height: 1.15; }
.brand img { width: auto; height: 76px; object-fit: contain; flex: none; }
.footer-brand .brand img { height: 112px; }
.brand small { display: block; margin-top: 5px; color: #f6a05b; font-size: 9.5px; font-weight: 700; letter-spacing: .12em; }
.nav-links { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); font-size: 14px; font-weight: 600; }
.nav-links a:not(.btn) { position: relative; padding: 8px 0; color: var(--ink-2); transition: color .15s; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="true"] { color: var(--ink); }
.nav-links a:not(.btn):hover::after, .nav-links a[aria-current="true"]::after { transform: scaleX(1); }
.nav-panel { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-login { padding: 8px 2px; color: var(--ink-2); font-size: 14px; font-weight: 600; transition: color .15s; }
.nav-login:hover { color: var(--accent-2); }
.menu-toggle { display: none; align-items: center; gap: 10px; min-height: 42px; padding: 8px 14px; background: transparent; border: 1px solid #4b6577; border-radius: 9px; color: var(--ink); font-size: 13px; font-weight: 700; }
.menu-toggle .bars { position: relative; width: 18px; height: 2px; background: currentColor; transition: background-color .15s; }
.menu-toggle .bars::before, .menu-toggle .bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; transition: transform .2s; }
.menu-toggle .bars::before { top: -6px; }
.menu-toggle .bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; display: flex; align-items: center; min-height: clamp(600px, 82vh, 760px); isolation: isolate; overflow: hidden; background: #071522; }
.hero-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7, 18, 27, .98) 0%, rgba(7, 18, 27, .9) 34%, rgba(7, 18, 27, .5) 68%, rgba(7, 18, 27, .4) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 34%); }
.hero-content { padding: clamp(72px, 10vw, 116px) 0 clamp(80px, 11vw, 128px); }
.hero-copy { max-width: 760px; }
.hero h1 { margin: 24px 0 24px; }
.hero .lead { max-width: 610px; color: #d3dee6; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.capbar { background: var(--surface); border-block: 1px solid var(--line); }
.capbar-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.capbar-item { padding: 30px 28px; border-right: 1px solid var(--line); }
.capbar-item:first-child { border-left: 1px solid var(--line); }
.capbar-title { margin-bottom: 8px; font-size: 15px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.capbar-title::before { content: ""; display: block; width: 26px; height: 2px; margin-bottom: 14px; background: var(--accent); }
.capbar-item p { font-size: 14px; line-height: 1.6; }

/* ---------- Platform showcase ---------- */
.showcase { background: linear-gradient(180deg, #0a1926 0%, #0c1c2a 55%, var(--bg) 100%); border-bottom: 1px solid var(--line); overflow: hidden; }
.showcase-frame { border: 1px solid #36566c; border-radius: var(--radius-lg); overflow: hidden; background: #081624; box-shadow: var(--shadow), 0 0 0 8px rgba(255, 255, 255, .02); }
.showcase-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 24px; background: #101f2e; color: #cbd9e3; font-size: 11px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.showcase-bar--top { border-bottom: 1px solid #30495a; }
.showcase-bar--bottom { border-top: 1px solid #30495a; color: #91aab9; }
.showcase-bar--bottom span:first-child { color: #f5aa72; }
.signal { display: inline-block; width: 7px; height: 7px; margin-right: 10px; border-radius: 50%; background: #ff9d55; box-shadow: 0 0 0 4px rgba(255, 157, 85, .12); }
.showcase-frame img { display: block; width: 100%; height: auto; background: #061321; }

/* ---------- Solutions carousel (progressive enhancement) ---------- */
.solutions-section { padding-bottom: 0; }
.solutions { position: relative; border-top: 1px solid var(--line); }
.solution-feature { padding: clamp(48px, 7vw, 84px) 0; border-bottom: 1px solid var(--line); background: linear-gradient(145deg, #0c1d2a, #07121d); }
.solution-feature:nth-child(even) { background: linear-gradient(225deg, #112938, #091722); }
.solution-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 84px); align-items: center; }
.solution-feature:nth-child(even) .solution-visual { order: -1; }
.feature-kicker { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; color: var(--accent-2); font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.feature-kicker::before { content: ""; width: 24px; height: 2px; background: var(--accent); }
.feature-copy h3 { margin-bottom: 20px; font-size: clamp(34px, 3.6vw, 54px); line-height: 1.08; letter-spacing: -.045em; }
.feature-lede { margin-bottom: 18px; color: #ffb77e; font-size: clamp(18px, 1.8vw, 23px); font-weight: 600; line-height: 1.4; letter-spacing: -.015em; }
.feature-copy > p:not(.feature-lede) { max-width: 560px; color: #b9cad5; font-size: 16px; line-height: 1.85; }
.feature-benefits { display: grid; gap: 16px; margin-top: 28px; }
.feature-benefits li { display: flex; gap: 13px; align-items: flex-start; color: #d5e0e7; font-size: 15px; line-height: 1.55; }
.feature-benefits li::before { content: "✓"; display: grid; place-items: center; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: #24403e; color: #ffb77e; font-size: 12px; font-weight: 800; }
.solution-visual { border: 1px solid #355669; border-radius: 19px; overflow: hidden; background: #0c2030; box-shadow: 0 26px 75px rgba(0, 0, 0, .4); }
.solution-visual svg { display: block; width: 100%; height: auto; }
.visual-note { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 19px; border-top: 1px solid #314c5c; color: #9eb5c3; font-size: 11px; letter-spacing: .05em; }
.visual-note span:first-child { color: #ffb47b; font-weight: 800; }

.carousel-controls { display: none; }
/* With JavaScript, show one slide at a time. */
.solutions.is-carousel { display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; }
.solutions.is-carousel .solution-feature { grid-area: 1 / 1; display: none; min-height: min(680px, calc(100svh - 150px)); align-items: center; padding: 48px 0 40px; border-bottom: 0; }
.solutions.is-carousel .solution-feature.is-active { display: flex; animation: slideIn .7s cubic-bezier(.2, .7, .2, 1) both; }
.solutions.is-carousel ~ .carousel-controls { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; padding: 22px 0 72px; border-top: 1px solid var(--line); }
@keyframes slideIn { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
.carousel-nav { display: flex; align-items: center; gap: 14px; }
.carousel-arrow { width: 46px; height: 46px; border-radius: 50%; border: 1px solid #3d5a6b; background: #152d3c; color: var(--ink); font-size: 20px; line-height: 1; transition: background-color .2s, border-color .2s; }
.carousel-arrow:hover { background: #29475a; border-color: var(--accent); }
.carousel-dots { display: flex; align-items: center; gap: 6px; }
.carousel-dot { display: grid; place-items: center; width: 32px; height: 40px; padding: 0; border: 0; background: transparent; }
.carousel-dot span { width: 22px; height: 4px; border-radius: 4px; background: #466073; transition: background-color .25s, width .25s; }
.carousel-dot.is-active span { width: 30px; background: var(--accent); }
.carousel-status { display: flex; align-items: center; gap: 20px; color: #a9c0ce; font-size: 12px; font-weight: 750; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.carousel-pause { min-height: 40px; padding: 9px 14px; border: 1px solid #3d5a6b; border-radius: 8px; background: #142b3b; color: #dbe8ef; font-size: 12px; font-weight: 700; }
.carousel-pause:hover { border-color: var(--accent); }

/* ---------- Trailer ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 92px); align-items: center; }
.split h2 { margin: 16px 0 22px; }
.split p { font-size: 17px; line-height: 1.75; }
.analytics { padding: 30px; border: 1px solid #385265; border-radius: var(--radius-lg); background: linear-gradient(150deg, #142b3b, #101c29); box-shadow: var(--shadow); }
.analytics-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.analytics-head h3 { margin-top: 12px; }
.analytics-head small { flex: none; white-space: nowrap; padding: 4px 9px; border: 1px solid #4a6577; border-radius: 99px; color: #abc0cd; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; }
.analytics-number { margin: 14px 0 4px; font-size: clamp(48px, 5vw, 72px); font-weight: 800; line-height: 1.15; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.analytics-number span { color: #f3a05d; font-size: 19px; letter-spacing: 0; }
.analytics-chart { display: block; width: 100%; margin-top: 18px; }
.analytics-legend { display: flex; justify-content: space-between; gap: 10px; margin-top: 4px; padding-top: 14px; border-top: 1px solid #355165; color: #a3b8c6; font-size: 11px; }
.analytics-legend b { color: #f1b17d; font-weight: 700; }
.detail-list { margin-top: 30px; }
.detail { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.detail:first-child { border-top: 1px solid var(--line); }
.detail b { color: #f5a15d; font-size: 12px; font-variant-numeric: tabular-nums; padding-top: 3px; }
.detail strong { display: block; margin-bottom: 3px; font-size: 15px; }
.detail p { font-size: 14px; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 30px 26px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(160deg, #11263a, #0c1b29); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; margin-bottom: 22px; color: var(--accent); font-size: 13px; font-weight: 800; letter-spacing: .14em; font-variant-numeric: tabular-nums; }
.step h3 { margin-bottom: 10px; font-size: 19px; }
.step p { font-size: 14.5px; line-height: 1.7; }
.fine-print { margin-top: 26px; font-size: 13px; color: #8aa0af; }

/* ---------- Industries ---------- */
.banner { margin-bottom: 22px; border: 1px solid var(--line-2); border-radius: var(--radius-lg); overflow: hidden; background: #061321; }
.banner img { display: block; width: 100%; height: clamp(240px, 32vw, 420px); object-fit: cover; object-position: center 60%; }
.banner figcaption { padding: 16px clamp(18px, 3vw, 30px); border-top: 1px solid var(--line-2); background: #101f2e; color: var(--ink-2); font-size: 14px; font-weight: 650; letter-spacing: .01em; }
.banner figcaption::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255, 157, 85, .12); vertical-align: 1px; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.card { padding: 28px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(155deg, #132838, #0d1c29); transition: border-color .2s, transform .2s; }
.card:hover { border-color: #a96e48; transform: translateY(-3px); }
.card h3 { margin-bottom: 10px; font-size: 18px; }
.card p { font-size: 14.5px; line-height: 1.7; }

/* ---------- Why EMS ---------- */
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid #355062; border-radius: 14px; overflow: hidden; background: #132737; }
.values > div { padding: clamp(26px, 3.2vw, 40px); border-right: 1px solid #355062; }
.values > div:last-child { border-right: 0; }
.values b { display: block; margin-bottom: 16px; color: #ffab6b; font-size: 12px; letter-spacing: .1em; }
.values h3 { margin-bottom: 12px; font-size: 22px; }
.values p { font-size: 15px; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.faq-layout .section-head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 4px; font-size: 18px; font-weight: 650; letter-spacing: -.015em; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line-2); border-radius: 50%; color: var(--accent-2); font-size: 20px; line-height: 1; transition: transform .2s, background-color .2s; }
.faq details[open] summary::after { content: "–"; background: #1d3445; }
.faq summary:hover { color: var(--accent-2); }
.faq .answer { padding: 0 52px 24px 4px; }
.faq .answer p { font-size: 16px; line-height: 1.8; }
.faq .answer a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.faq .answer a:hover { color: #ffd0a3; }

/* ---------- Contact + form ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-intro h2 { margin: 16px 0 20px; }
.contact-intro > p { max-width: 480px; font-size: 17px; line-height: 1.75; }
.contact-methods { margin-top: 32px; border-top: 1px solid var(--line); }
.contact-methods li { border-bottom: 1px solid var(--line); }
.contact-methods a, .contact-methods .static { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 2px; transition: color .15s; }
.contact-methods a:hover { color: var(--accent-2); }
.contact-methods small { display: block; color: #8aa0af; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.contact-methods strong { display: block; margin-top: 2px; font-size: 17px; font-weight: 650; }
.contact-methods .go { color: var(--accent-2); font-size: 18px; }
.contact-person { margin-top: 28px; padding: 22px 24px; border: 1px solid var(--line-2); border-left: 3px solid var(--accent); border-radius: var(--radius); background: rgba(19, 42, 58, .55); }
.contact-person-role { color: var(--accent-2); font-size: 11px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.contact-person-name { margin-top: 6px; color: var(--ink); font-size: 20px; font-weight: 700; letter-spacing: -.015em; }
.contact-person-links { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 14px; }
.contact-person-links a { display: grid; gap: 2px; color: var(--ink-2); font-size: 15px; font-weight: 600; transition: color .15s; }
.contact-person-links a:hover { color: var(--accent-2); }
.contact-person-links small { color: #8aa0af; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.form-card { padding: clamp(24px, 3.4vw, 40px); border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: linear-gradient(150deg, #132a3a, #0e1d2a); box-shadow: var(--shadow); }
.form-card h3 { margin-bottom: 6px; font-size: 24px; }
.form-card > p { margin-bottom: 24px; font-size: 14.5px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { color: var(--ink-2); font-size: 13px; font-weight: 650; }
.field label .opt { color: #8aa0af; font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid #44606f; border-radius: 9px; background: #08151f; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 130px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23ffb372' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; cursor: pointer; }
.field select option { background: #0f1f2d; color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: #70889a; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #5b7889; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 151, 61, .25); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--danger); }
.form-actions { grid-column: 1 / -1; display: grid; gap: 12px; margin-top: 4px; }
.form-note { font-size: 12.5px; line-height: 1.6; color: #8aa0af; }
.form-status { min-height: 1.4em; font-size: 14px; font-weight: 600; color: var(--accent-2); }
.form-status[data-state="error"] { color: var(--danger); }

/* ---------- Footer ---------- */
.site-footer { padding: 64px 0 28px; border-top: 1px solid var(--line); background: #050d15; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); }
.footer-brand p { max-width: 330px; margin-top: 18px; font-size: 14.5px; }
.footer-col h2 { margin-bottom: 16px; color: var(--ink); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.footer-col li + li { margin-top: 11px; }
.footer-col a { color: var(--muted); font-size: 14.5px; transition: color .15s; }
.footer-col a:hover { color: var(--accent-2); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: #8aa0af; font-size: 13px; }
.footer-bottom p { color: inherit; font-size: inherit; }
.footer-bottom nav { display: flex; gap: 22px; }
.footer-bottom a:hover { color: var(--accent-2); }
.legal { margin-top: 18px; max-width: 900px; color: #7b92a2; font-size: 12px; line-height: 1.7; }

/* ---------- Simple document pages (privacy, 404) ---------- */
.doc { padding: clamp(56px, 8vw, 96px) 0 clamp(72px, 9vw, 120px); }
.doc-inner { max-width: 780px; }
.doc h1 { margin: 16px 0 12px; font-size: clamp(36px, 4.6vw, 56px); }
.doc .meta { margin-bottom: 40px; color: #8aa0af; font-size: 14px; }
.doc h2 { margin: 40px 0 12px; font-size: 24px; letter-spacing: -.02em; }
.doc p, .doc li { color: var(--ink-2); font-size: 16.5px; line-height: 1.8; }
.doc p + p { margin-top: 14px; }
.doc ul { margin: 12px 0 0 4px; display: grid; gap: 8px; }
.doc ul li { position: relative; padding-left: 20px; }
.doc ul li::before { content: ""; position: absolute; left: 0; top: .75em; width: 7px; height: 2px; background: var(--accent); }
.doc a:not(.btn) { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.notfound { min-height: 56vh; display: grid; align-items: center; }
.notfound .code { color: var(--accent); font-size: 14px; font-weight: 800; letter-spacing: .16em; }
.notfound .hero-actions { margin-top: 28px; }

/* ---------- Scroll reveal (only when JS is active) ---------- */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav-links { gap: 16px; font-size: 13.5px; }
  .capbar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .capbar-item:nth-child(3) { border-left: 1px solid var(--line); }
  .capbar-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .steps, .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .utility { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-inner { position: relative; }
  .nav-panel { position: absolute; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); top: 100%; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 10px var(--gutter) 24px; background: #0a1621; border-bottom: 1px solid var(--line-2); box-shadow: 0 24px 40px rgba(0, 0, 0, .45); }
  .nav-panel.is-open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; font-size: 16px; }
  .nav-links a:not(.btn) { padding: 15px 2px; border-bottom: 1px solid var(--line); }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-actions { flex-direction: column; align-items: stretch; margin-top: 18px; gap: 10px; }
  .nav-login { padding: 13px 18px; border: 1px solid #4b6577; border-radius: 9px; text-align: center; font-weight: 650; }
  .section-head { grid-template-columns: 1fr; }
  .section-head h2 { max-width: none; }
  .split, .contact-grid, .solution-layout, .faq-layout { grid-template-columns: 1fr; }
  .faq-layout .section-head { position: static; margin-bottom: 0; }
  .solution-feature:nth-child(even) .solution-visual { order: 0; }
  .values { grid-template-columns: 1fr; }
  .values > div { border-right: 0; border-bottom: 1px solid #355062; }
  .values > div:last-child { border-bottom: 0; }
  .hero::before { background: linear-gradient(90deg, rgba(7, 18, 27, .95), rgba(7, 18, 27, .72)), linear-gradient(0deg, var(--bg), transparent 50%); }
  .solutions.is-carousel .solution-feature { min-height: 0; padding: 36px 0 40px; }
}
@media (max-width: 620px) {
  :root { --header-h: 78px; }
  body { font-size: 15.5px; }
  .brand img { height: 62px; }
  .footer-brand .brand img { height: 96px; }
  .brand { font-size: 12px; }
  .brand small { font-size: 8.5px; }
  .hero { min-height: 0; }
  .hero-content { padding: 64px 0 72px; }
  .hero-actions .btn { width: 100%; }
  .capbar-grid, .steps, .cards { grid-template-columns: 1fr; }
  .capbar-item, .capbar-item:first-child, .capbar-item:nth-child(3) { border-left: 0; border-right: 0; border-bottom: 1px solid var(--line); padding: 22px 0; }
  .capbar-item:last-child { border-bottom: 0; }
  .showcase-bar { padding: 12px 14px; font-size: 9px; letter-spacing: .04em; }
  .showcase-bar span:last-child { display: none; }
  .form { grid-template-columns: 1fr; }
  .analytics { padding: 22px; }
  .faq summary { font-size: 16.5px; }
  .faq .answer { padding-right: 4px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .footer-col:last-child { grid-column: 1 / -1; }
  .visual-note span:first-child { display: none; }
  .visual-note { justify-content: center; }
  .carousel-status { width: 100%; justify-content: space-between; }
  .solutions.is-carousel ~ .carousel-controls { padding-bottom: 56px; }
  .footer-bottom nav { flex-wrap: wrap; gap: 10px 18px; }
}

/* ---------- Motion + print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal-ready [data-reveal] { opacity: 1; transform: none; }
}
@media print {
  .utility, .site-header, .carousel-controls, .skip-link, .hero-actions { display: none !important; }
  body { background: #fff; color: #000; }
  p, li { color: #222 !important; }
}
