/* Route Spoofer landing — hand-written, no framework, no build step.
   Palette taken from the app icon: deep navy, amber arrow, blue route trail. */

:root {
    --bg:        #0b101b;
    --bg-2:      #0f1626;
    --panel:     #131c2e;
    --panel-2:   #182236;
    --line:      #243149;
    --text:      #e8edf6;
    --muted:     #9aa7bd;
    --amber:     #f6a821;
    --amber-2:   #ffbe3d;
    --blue:      #38b6e6;
    --ok:        #2fbf71;
    --no:        #e2574c;
    --radius:    16px;
    --maxw:      1080px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
            "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

/* ---- a11y utility --------------------------------------------------------- */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---- base ----------------------------------------------------------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 760px; }
.center { text-align: center; }

/* ---- header --------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(11, 16, 27, .82);
    backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    height: 62px;
}
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; color: var(--text); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand-logo { border-radius: 9px; }
.brand-name { font-size: 1.05rem; letter-spacing: .2px; }

.site-nav { display: flex; gap: 20px; }
.site-nav a { color: var(--muted); font-size: .92rem; font-weight: 500; }
.site-nav a:hover { color: var(--text); text-decoration: none; }

/* Custom language menu — smooth, no native <select>, no library. */
.lang { position: relative; flex: 0 0 auto; }
.lang-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font: inherit;
    font-size: .9rem;
    font-weight: 600;
    color: var(--text);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 12px 8px 13px;
    cursor: pointer;
    line-height: 1;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.lang-trigger:hover { border-color: var(--blue); background: var(--panel-2); }
.lang-trigger:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.lang.open .lang-trigger { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(56,182,230,.16); }
.lang-globe { color: var(--muted); flex: 0 0 auto; }
.lang-current { letter-spacing: .1px; }
.lang-caret { color: var(--muted); flex: 0 0 auto; transition: transform .2s ease; }
.lang.open .lang-caret { transform: rotate(180deg); }

.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 172px;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .55);
    z-index: 40;
    opacity: 0;
    transform: translateY(-6px) scale(.97);
    transform-origin: top right;
    pointer-events: none;
    transition: opacity .16s ease, transform .16s ease;
}
.lang.open .lang-menu {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 11px;
    border-radius: 9px;
    font-size: .92rem;
    color: var(--muted);
    cursor: pointer;
    white-space: nowrap;
    transition: background .12s ease, color .12s ease;
}
.lang-option:hover { background: var(--panel-2); color: var(--text); }
.lang-option[aria-selected="true"] { color: var(--amber-2); font-weight: 700; }
.lang-option[aria-selected="true"]::after {
    content: "";
    width: 9px; height: 9px;
    margin-left: auto;
    border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 0 3px rgba(246, 168, 33, .18);
}
@media (prefers-reduced-motion: reduce) {
    .lang-menu, .lang-caret, .lang-trigger { transition: none; }
}

/* ---- hero ----------------------------------------------------------------- */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(900px 460px at 78% -8%, rgba(56,182,230,.16), transparent 60%),
        radial-gradient(760px 420px at 8% 4%, rgba(246,168,33,.14), transparent 58%),
        linear-gradient(180deg, var(--bg-2), var(--bg));
    border-bottom: 1px solid var(--line);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 40px;
    align-items: center;
    padding: 76px 22px 84px;
}
.pill {
    display: inline-block;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: var(--amber-2);
    background: rgba(246,168,33,.10);
    border: 1px solid rgba(246,168,33,.32);
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 18px;
}
.hero-title {
    font-size: clamp(2.4rem, 6vw, 3.8rem);
    letter-spacing: -1px;
    margin: 0 0 .25em;
}
.hero-tagline { font-size: 1.18rem; color: var(--muted); max-width: 33ch; margin: 0 0 28px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: .98rem;
    padding: 13px 22px;
    border-radius: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .08s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--amber); color: #1a1205; }
.btn-primary:hover { background: var(--amber-2); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: #fff; }

.hero-shot { display: flex; justify-content: center; }

/* phone-style framed screenshot */
.phone {
    width: 300px;
    height: auto;
    border-radius: 26px;
    border: 1px solid var(--line);
    box-shadow: 0 22px 60px rgba(0,0,0,.5);
    background: #000;
}
.hero-shot .phone { transform: rotate(1.2deg); }

/* ---- sections ------------------------------------------------------------- */
.section { padding: 72px 0; border-bottom: 1px solid var(--line); }
.section-alt { background: var(--bg-2); }
.section-title { font-size: clamp(1.6rem, 3.5vw, 2.1rem); text-align: center; margin-bottom: .4em; }
.lead { font-size: 1.1rem; color: var(--muted); }
.lead.center { max-width: 720px; margin-left: auto; margin-right: auto; }

/* ---- cards ---------------------------------------------------------------- */
.cards { display: grid; gap: 18px; margin-top: 34px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin-left: auto; margin-right: auto; }
.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px 22px;
}
.card h3 { font-size: 1.1rem; color: #fff; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }

/* ---- map grid ------------------------------------------------------------- */
.map-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 36px;
}
.map-tile { margin: 0; text-align: center; }
.map-tile img {
    width: 100%;
    height: auto;
    border-radius: 14px;
    border: 1px solid var(--line);
    box-shadow: 0 12px 30px rgba(0,0,0,.4);
}
.map-tile figcaption { margin-top: 10px; font-size: .9rem; font-weight: 600; color: var(--muted); }
.note { margin-top: 30px; }
.inline-banner {
    display: inline-block;
    width: min(440px, 100%);
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--line);
}

/* ---- features ------------------------------------------------------------- */
.feature-layout {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 44px;
    align-items: center;
    margin-top: 34px;
}
.feature-list { display: grid; gap: 20px; }
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature-dot {
    flex: 0 0 auto;
    width: 12px; height: 12px;
    margin-top: 7px;
    border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 0 4px rgba(246,168,33,.16);
}
.feature h3 { font-size: 1.04rem; color: #fff; margin-bottom: .15em; }
.feature p { margin: 0; color: var(--muted); font-size: .96rem; }
.feature-shot { display: flex; justify-content: center; }
.feature-shot .phone { transform: rotate(-1.4deg); }

/* ---- shot pairs ----------------------------------------------------------- */
.shot-pair {
    display: flex;
    justify-content: center;
    gap: 26px;
    margin-top: 36px;
    flex-wrap: wrap;
}

/* ---- chips ---------------------------------------------------------------- */
.chips { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
    font-size: .9rem;
    font-weight: 600;
    color: var(--text);
    background: var(--panel-2);
    border: 1px solid var(--line);
    padding: 8px 14px;
    border-radius: 10px;
}
.lang-chips { justify-content: center; margin: 28px auto 4px; }

/* ---- setup ---------------------------------------------------------------- */
.setup-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 44px;
    align-items: start;
    margin-top: 34px;
}
.sub { font-size: 1.2rem; color: #fff; }
.sub.center { text-align: center; margin: 52px 0 0; }
.step-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 18px; }
.step-list li { display: flex; gap: 14px; align-items: flex-start; }
.step-n {
    flex: 0 0 auto;
    width: 30px; height: 30px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--amber);
    color: #1a1205;
    font-weight: 800;
    font-size: .95rem;
}
.step-list h4 { font-size: 1.02rem; color: #fff; margin: 2px 0 .2em; }
.step-list p { margin: 0; color: var(--muted); font-size: .96rem; }
.setup-shots { display: flex; gap: 18px; justify-content: center; }
.setup-shots img {
    width: 100%;
    max-width: 220px;
    height: auto;
    border-radius: 18px;
    border: 1px solid var(--line);
    box-shadow: 0 16px 40px rgba(0,0,0,.45);
}
.setup-shots figure { margin: 0; }

/* ---- platform ------------------------------------------------------------- */
.platform-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: .95rem;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid var(--line);
}
.tag::before { content: ""; width: 9px; height: 9px; border-radius: 50%; }
.tag-ok { color: #cdebd9; background: rgba(47,191,113,.10); border-color: rgba(47,191,113,.4); }
.tag-ok::before { background: var(--ok); }
.tag-no { color: #f0cfcc; background: rgba(226,87,76,.10); border-color: rgba(226,87,76,.4); }
.tag-no::before { background: var(--no); }

/* ---- license -------------------------------------------------------------- */
.mit-line {
    margin-top: 18px;
    font-weight: 700;
    color: var(--amber-2);
    letter-spacing: .3px;
}

/* ---- footer --------------------------------------------------------------- */
.site-footer { background: var(--bg-2); padding: 40px 0; }
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.footer-brand { display: flex; gap: 12px; align-items: center; max-width: 460px; }
.footer-brand strong { color: #fff; }
.footer-brand p { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.footer-links { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: .92rem; }

/* ---- responsive ----------------------------------------------------------- */
@media (max-width: 920px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; padding-top: 56px; }
    .hero-tagline { max-width: none; margin-left: auto; margin-right: auto; }
    .cta-row { justify-content: center; }
    .hero-shot { order: -1; }
    .feature-layout { grid-template-columns: 1fr; }
    .feature-shot { order: -1; }
    .setup-grid { grid-template-columns: 1fr; }
    .map-grid { grid-template-columns: repeat(2, 1fr); }
    .cards-3 { grid-template-columns: 1fr 1fr; }
    .site-nav { display: none; }
}

@media (max-width: 560px) {
    .map-grid { grid-template-columns: repeat(2, 1fr); }
    .cards-3, .cards-2 { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
    .section { padding: 56px 0; }
}
