/* Freight Wave marketing site */
:root {
  --bg: #070913;
  --bg-2: #0d1022;
  --panel: #13162a;
  --panel-2: #181b33;
  --line: rgb(255 255 255 / .09);
  --line-2: rgb(255 255 255 / .16);
  --text: #f5f6fb;
  --text-2: rgb(245 246 251 / .7);
  --text-3: rgb(245 246 251 / .5);
  --accent: #e8470a;
  --accent-2: #ff7a3d;
  --blue: #3b6cf0;
  --green: #22c55e;
  --amber: #f59e0b;
  --radius: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 30px 80px -20px rgb(0 0 0 / .65), 0 12px 30px -12px rgb(0 0 0 / .5);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.025em; margin: 0; }
p { margin: 0; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 12px; font-weight: 650; font-size: 15px; border: 1px solid transparent; cursor: pointer; font-family: inherit; color: inherit; background: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s; white-space: nowrap; }
.btn-lg { height: 52px; padding: 0 24px; font-size: 16px; border-radius: 14px; }
.btn-primary { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff; box-shadow: 0 10px 30px -8px rgb(232 71 10 / .7), inset 0 1px 0 rgb(255 255 255 / .25); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgb(232 71 10 / .85), inset 0 1px 0 rgb(255 255 255 / .25); }
.btn-ghost { border-color: var(--line-2); background: rgb(255 255 255 / .03); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: rgb(255 255 255 / .35); background: rgb(255 255 255 / .07); transform: translateY(-2px); }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .35s, border-color .35s, backdrop-filter .35s; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgb(7 9 19 / .72); backdrop-filter: saturate(160%) blur(16px); border-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 76px; transition: height .35s var(--ease); }
.scrolled .header-inner { height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--accent-2), var(--accent)); box-shadow: 0 8px 22px -6px rgb(232 71 10 / .8); }
.brand-mark svg { width: 20px; height: 20px; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: 10px; color: var(--text-2); font-weight: 550; font-size: 15px; position: relative; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--accent-2); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover, .nav a.active { color: var(--text); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }

/* Login dropdown */
.login { position: relative; }
.login-toggle .chev { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.login-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.login-menu { position: absolute; right: 0; top: calc(100% + 10px); width: 270px; padding: 8px; border-radius: 16px; background: rgb(19 22 42 / .96); border: 1px solid var(--line-2); box-shadow: var(--shadow); backdrop-filter: blur(20px); transform-origin: top right; animation: menu-in .28s var(--ease); }
.login-menu[hidden] { display: none; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px) scale(.96); } }
.login-caption { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); padding: 8px 10px 6px; }
.login-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; transition: background .2s, transform .2s var(--ease); }
.login-item:hover, .login-item:focus-visible { background: rgb(255 255 255 / .07); transform: translateX(3px); outline: none; }
.login-item b { display: block; font-size: 15px; }
.login-item small { color: var(--text-2); font-size: 13px; }
.li-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.li-icon svg { width: 22px; height: 22px; }
.li-icon.tms { background: rgb(232 71 10 / .16); color: var(--accent-2); }
.li-icon.wms { background: rgb(59 108 240 / .18); color: #8fb0ff; }

.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); background: none; cursor: pointer; padding: 0; position: relative; }
.menu-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-toggle span:first-child { top: 16px; } .menu-toggle span:last-child { top: 24px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }
.mobile-nav { display: grid; padding: 8px 20px 20px; background: rgb(7 9 19 / .96); border-bottom: 1px solid var(--line); }
.mobile-nav[hidden] { display: none; }
.mobile-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-weight: 600; }

/* Hero */
.hero { position: relative; min-height: 100vh; padding: 140px 0 90px; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero-waves { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .9; }
.hero-glow { position: absolute; z-index: -2; inset: -20% -10% auto; height: 90%; background: radial-gradient(600px 400px at 70% 30%, rgb(232 71 10 / .22), transparent 70%), radial-gradient(700px 500px at 15% 10%, rgb(59 108 240 / .18), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-2); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.hero h1 { font-size: clamp(40px, 5.4vw, 68px); font-weight: 800; }
.grad { background: linear-gradient(100deg, #ffb088, var(--accent-2) 40%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--text-2); margin-top: 22px; max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 30px 0 0; color: var(--text-2); font-size: 14px; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: rgb(34 197 94 / .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%2322c55e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
/* Flat stacking: the laptop tilts in its own 3D space and the phone always
   sits in front of it, so the two can never intersect. */
.hero-visual { position: relative; perspective: 1600px; isolation: isolate; }
.hero-visual .laptop { transform: rotateY(var(--ry, -8deg)) rotateX(var(--rx, 4deg)); transition: transform .6s var(--ease); }
.device.hero-phone { position: absolute; width: 24%; right: -4%; bottom: -18%; z-index: 2; transform: rotate(3deg); animation: bob 6s ease-in-out infinite; }
.float-card { position: absolute; display: flex; align-items: center; gap: 10px; padding: 11px 15px; border-radius: 14px; background: rgb(19 22 42 / .88); border: 1px solid var(--line-2); box-shadow: var(--shadow); backdrop-filter: blur(12px); font-size: 13px; }
.float-card b { display: block; font-size: 13.5px; } .float-card small { color: var(--text-2); }
.float-card { z-index: 3; }
.fc-1 { left: -6%; top: 8%; animation: bob 7s ease-in-out infinite .6s; }
.fc-2 { left: -5%; bottom: 16%; animation: bob 8s ease-in-out infinite 1.2s; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: 0 0 0 4px rgb(255 255 255 / .06); }
.dot.green { background: var(--green); box-shadow: 0 0 0 4px rgb(34 197 94 / .18); animation: ping 2.4s infinite; }
.dot.amber { background: var(--amber); box-shadow: 0 0 0 4px rgb(245 158 11 / .18); }
@keyframes bob { 50% { translate: 0 -12px; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgb(34 197 94 / .55); } 70%, 100% { box-shadow: 0 0 0 12px rgb(34 197 94 / 0); } }
.scroll-hint { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; border: 2px solid var(--line-2); border-radius: 14px; translate: -50% 0; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; border-radius: 2px; background: var(--text-2); translate: -50% 0; animation: scroll-dot 2s var(--ease) infinite; }
@keyframes scroll-dot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Devices (frames) */
.device { margin: 0; position: relative; }
.laptop-screen { border-radius: 16px 16px 4px 4px; padding: 10px; background: linear-gradient(#1d2033, #0e1020); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.laptop-screen img { border-radius: 8px; }
.laptop-base { height: 16px; margin: 0 -7%; border-radius: 2px 2px 16px 16px; background: linear-gradient(#2a2d44, #14162a); box-shadow: 0 30px 50px -18px rgb(0 0 0 / .8); position: relative; }
.laptop-base::after { content: ""; position: absolute; left: 42%; right: 42%; top: 0; height: 6px; border-radius: 0 0 8px 8px; background: #0b0d1a; }
.phone { padding: 9px; border-radius: 46px; background: linear-gradient(145deg, #2c3048, #0f1120); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.phone-screen { border-radius: 38px; overflow: hidden; position: relative; }
.phone-screen::before { content: ""; position: absolute; top: 9px; left: 50%; translate: -50% 0; width: 30%; height: 22px; border-radius: 12px; background: #000; z-index: 1; }
.tablet { padding: 16px; border-radius: 34px; background: linear-gradient(145deg, #2c3048, #0f1120); border: 1px solid var(--line-2); box-shadow: var(--shadow); max-width: 920px; margin: 0 auto; }
.tablet-screen { border-radius: 20px; overflow: hidden; }
.browser, .mac-window { border-radius: 16px; overflow: hidden; background: #0e1020; border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.browser-bar, .mac-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; background: #171a2e; border-bottom: 1px solid var(--line); }
.browser-bar i, .mac-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.browser-bar i:nth-child(2), .mac-bar i:nth-child(2) { background: #febc2e; }
.browser-bar i:nth-child(3), .mac-bar i:nth-child(3) { background: #28c840; }
.browser-bar span { margin: 0 auto; padding: 4px 16px; border-radius: 8px; background: rgb(255 255 255 / .06); color: var(--text-3); font-size: 12px; transform: translateX(-24px); }
.mac-bar span { margin: 0 auto; color: var(--text-2); font-size: 12.5px; font-weight: 600; transform: translateX(-24px); }

/* Stats */
.stats { border-block: 1px solid var(--line); background: linear-gradient(180deg, rgb(255 255 255 / .02), transparent); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 20px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: clamp(34px, 4vw, 48px); font-weight: 800; letter-spacing: -.03em; background: linear-gradient(180deg, #fff, rgb(255 255 255 / .6)); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat span { color: var(--text-2); font-size: 14px; }

/* Sections */
.section { padding: 120px 0; position: relative; }
.section-head { max-width: 720px; margin: 0 auto 60px; text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section h2 { font-size: clamp(32px, 3.6vw, 48px); font-weight: 800; }
.section-head p:not(.eyebrow) { color: var(--text-2); font-size: 18px; margin-top: 16px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { position: relative; padding: 28px; border-radius: var(--radius); background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); overflow: hidden; transition: transform .45s var(--ease), border-color .3s, box-shadow .45s var(--ease); }
.feature::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgb(232 71 10 / .14), transparent 45%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.feature:hover { transform: translateY(-6px); border-color: rgb(232 71 10 / .4); box-shadow: 0 30px 60px -30px rgb(232 71 10 / .45); }
.feature:hover::before { opacity: 1; }
.f-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgb(232 71 10 / .12); border: 1px solid rgb(232 71 10 / .25); color: var(--accent-2); margin-bottom: 20px; transition: transform .45s var(--ease); }
.feature:hover .f-icon { transform: rotate(-6deg) scale(1.08); }
.f-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { color: var(--text-2); font-size: 15px; }

.showcase { display: grid; gap: 120px; background: linear-gradient(180deg, transparent, rgb(59 108 240 / .05), transparent); }
.showcase-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; }
.showcase-grid.reverse { grid-template-columns: 1.15fr .85fr; }
.showcase-grid.reverse .showcase-copy { order: 2; }
.showcase-copy p:not(.eyebrow) { color: var(--text-2); font-size: 17px; margin-top: 18px; }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: center; font-weight: 550; }
.ticks li::before { content: ""; width: 22px; height: 22px; flex: none; border-radius: 7px; background: rgb(232 71 10 / .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23ff7a3d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/70% no-repeat; }
.route-draw { position: absolute; inset: 38px 0 0; width: 100%; height: calc(100% - 38px); pointer-events: none; }
.route-draw path { fill: none; stroke: #ff7a3d; stroke-width: .9; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 1.2px rgb(232 71 10 / .9)); }
.in-view .route-draw path { animation: draw 2.4s var(--ease) .6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Device tabs */
.device-tabs { position: relative; display: flex; width: fit-content; margin: 0 auto 48px; padding: 5px; border-radius: 16px; background: rgb(255 255 255 / .04); border: 1px solid var(--line); }
.device-tabs button { position: relative; z-index: 1; border: 0; background: none; color: var(--text-2); font: 600 15px/1 inherit; font-family: inherit; padding: 13px 22px; border-radius: 12px; cursor: pointer; transition: color .3s; }
.device-tabs button[aria-selected="true"] { color: #fff; }
.tab-ink { position: absolute; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 12px; background: linear-gradient(135deg, var(--accent-2), var(--accent)); box-shadow: 0 8px 24px -8px rgb(232 71 10 / .8); transition: transform .5s var(--ease), width .5s var(--ease); }
.device-stage { position: relative; min-height: 420px; }
.device-panel { animation: panel-in .7s var(--ease); }
.device-panel[hidden] { display: none; }
@keyframes panel-in { from { opacity: 0; transform: translateY(24px) scale(.98); filter: blur(6px); } }
.device.big { max-width: 1040px; margin: 0 auto; }
.device-note { text-align: center; color: var(--text-2); margin-top: 26px; }
.phone-pair { display: flex; justify-content: center; gap: 40px; }
.phone-pair .phone { width: min(300px, 44%); }
.phone-pair .offset { margin-top: 60px; }

/* WMS */
.wms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.wms-grid > div > p:not(.eyebrow) { color: var(--text-2); font-size: 17px; margin: 18px 0 28px; }
.flow { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; position: relative; }
.flow::before { content: ""; position: absolute; left: 27px; top: 30px; bottom: 30px; width: 2px; background: linear-gradient(var(--accent), var(--blue)); transform: scaleY(0); transform-origin: top; transition: transform 1.6s var(--ease) .3s; }
.flow.in-view::before, .in-view .flow::before { transform: scaleY(1); }
.flow li { display: flex; gap: 18px; align-items: flex-start; padding: 18px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); position: relative; }
.flow li > span { width: 20px; height: 20px; margin: 2px 0 0 0; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; background: var(--accent); color: #fff; box-shadow: 0 0 0 6px var(--panel); }
.flow b { font-size: 17px; }
.flow p { color: var(--text-2); font-size: 15px; margin-top: 4px; }

.wms-shots { margin-top: 70px; display: grid; gap: 22px; }
.portal-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 56px; }
@media (max-width: 860px) { .portal-shots { grid-template-columns: 1fr; } }
.wms-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.wms-thumbs figcaption, .portal-shots figcaption { padding: 10px 14px; font-size: 14px; font-weight: 600; color: var(--text-2); border-top: 1px solid var(--line); background: #141729; }
@media (max-width: 860px) { .wms-thumbs { grid-template-columns: 1fr; } }

/* Security */
.sec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.sec-grid.three { grid-template-columns: repeat(3, 1fr); }
.sec { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, rgb(59 108 240 / .08), transparent 70%); }
.sec h3 { font-size: 18px; margin-bottom: 10px; }
.sec p { color: var(--text-2); font-size: 15px; }

/* CTA */
.cta { padding: 60px 0 120px; }
.cta-inner { text-align: center; padding: 72px 30px; border-radius: 32px; position: relative; overflow: hidden; background: radial-gradient(600px 300px at 50% 0%, rgb(232 71 10 / .35), transparent 70%), linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid rgb(232 71 10 / .3); }
.cta-inner::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; background: conic-gradient(from var(--angle, 0deg), transparent 70%, rgb(255 122 61 / .7), transparent 85%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; padding: 1px; animation: spin 6s linear infinite; pointer-events: none; }
@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --angle: 360deg; } }
.cta h2 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; }
.cta p { color: var(--text-2); font-size: 18px; margin-top: 14px; }
.cta .hero-cta { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 36px; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-inner nav a { color: var(--text-2); font-size: 14px; transition: color .2s; }
.footer-inner nav a:hover { color: var(--text); }
.footer-inner > p { margin-left: auto; color: var(--text-3); font-size: 13px; }

/* Scroll reveal */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal[data-delay="1"] { transition-delay: .1s; } .js .reveal[data-delay="2"] { transition-delay: .2s; }
.js .reveal[data-delay="3"] { transition-delay: .3s; } .js .reveal[data-delay="4"] { transition-delay: .4s; }
.js .reveal.in-view { opacity: 1; transform: none; }
.js .hero-visual.reveal { transform: translateY(40px) scale(.96); }
.js .hero-visual.reveal.in-view { transform: none; }

/* Responsive */
@media (max-width: 1060px) {
  .hero-grid, .showcase-grid, .showcase-grid.reverse, .wms-grid { grid-template-columns: 1fr; }
  .showcase-grid.reverse .showcase-copy { order: 0; }
  .hero { padding-top: 120px; }
  .hero-visual { max-width: 720px; margin: 20px auto 0; width: 100%; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .sec-grid, .sec-grid.three { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .login { margin-left: auto; }
  .menu-toggle { display: block; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { gap: 12px; }
  .brand span:last-child { font-size: 17px; }
  .login-toggle { height: 38px; padding: 0 14px; }
  .section { padding: 84px 0; }
  .features, .sec-grid, .sec-grid.three { grid-template-columns: 1fr; }
  .float-card { display: none; }
  .device-tabs { width: 100%; overflow-x: auto; }
  .device-tabs button { padding: 12px 14px; font-size: 14px; flex: 1 0 auto; }
  .phone-pair { gap: 16px; }
  .footer-inner > p { margin-left: 0; }
  .scroll-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .route-draw path { stroke-dashoffset: 0; }
}
