:root {
    --navy-950: #020a16;
    --navy-900: #03142a;
    --navy-850: #051b37;
    --navy-800: #08254a;
    --blue: #1788ff;
    --blue-soft: #58acff;
    --text-dark: #071a34;
    --text-muted: #5b6a7f;
    --white: #ffffff;
    --card-radius: clamp(12px, 1vw, 20px);
    --page-gap: clamp(8px, .9vw, 18px);
}

* { box-sizing: border-box; }

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    background: var(--navy-950);
}

body {
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--white);
    -webkit-font-smoothing: antialiased;
}

button,
a { font: inherit; }

.page-shell {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    display: grid;
    grid-template-rows:
        clamp(54px, 7vh, 86px)
        clamp(110px, 24vh, 260px)
        minmax(0, 1fr)
        clamp(38px, 5.5vh, 58px);
    background: #f5f7fa;
    overflow: hidden;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #020917 0%, #03152c 100%);
    border-bottom: 1px solid rgba(41, 136, 255, .28);
    padding: clamp(7px, 1vh, 12px) 16px;
    z-index: 3;
}

.brand-logo {
    display: block;
    width: clamp(190px, 18vw, 330px);
    max-height: 100%;
    object-fit: contain;
}

.hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 47%) minmax(0, 53%);
    background:
        radial-gradient(circle at 73% 46%, rgba(16, 114, 223, .20), transparent 33%),
        linear-gradient(90deg, #03162e 0%, #041a37 48%, #021329 100%);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: rgba(53, 141, 255, .36);
}

.hero-copy {
    position: relative;
    z-index: 2;
    align-self: center;
    padding-left: clamp(24px, 8.5vw, 150px);
    padding-right: 16px;
}

.hero h1 {
    margin: 0;
    max-width: 680px;
    font-size: clamp(21px, 2.55vw, 46px);
    line-height: 1.08;
    letter-spacing: -.035em;
    font-weight: 740;
    text-shadow: 0 2px 22px rgba(0, 0, 0, .18);
}

.hero-line {
    display: block;
    width: clamp(34px, 3vw, 62px);
    height: clamp(2px, .3vh, 4px);
    margin: clamp(12px, 2vh, 24px) 0 clamp(10px, 1.6vh, 19px);
    border-radius: 999px;
    background: var(--blue);
    box-shadow: 0 0 18px rgba(23, 136, 255, .38);
}

.hero p {
    margin: 0;
    color: rgba(255,255,255,.84);
    font-size: clamp(12px, 1.15vw, 20px);
    line-height: 1.35;
}

.hero-visual {
    position: relative;
    min-width: 0;
    background-image:
        linear-gradient(90deg, #041a37 0%, rgba(4, 26, 55, .42) 17%, rgba(4, 26, 55, 0) 40%),
        url('../images/hero-motorcycles.png');
    background-repeat: no-repeat;
    background-size: auto 100%;
    background-position: right center;
    opacity: .98;
}

.products {
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: var(--page-gap);
    padding: var(--page-gap) clamp(16px, 8.5vw, 150px);
    background:
        radial-gradient(circle at 50% 45%, rgba(21, 112, 219, .06), transparent 38%),
        #f4f6f9;
}

.product-card {
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 47%) minmax(0, 53%);
    align-items: center;
    overflow: hidden;
    border-radius: var(--card-radius);
    text-decoration: none;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
    box-shadow: 0 8px 24px rgba(4, 23, 45, .08);
}

.product-card.light {
    color: var(--text-dark);
    background: linear-gradient(145deg, #ffffff 0%, #fbfcfe 100%);
    border: 1px solid #e1e7ef;
}

.product-card.dark {
    color: #fff;
    background:
        radial-gradient(circle at 28% 28%, rgba(14, 94, 181, .18), transparent 36%),
        linear-gradient(145deg, #03172f 0%, #06244a 100%);
    border: 1px solid rgba(45, 123, 211, .35);
    box-shadow: 0 10px 25px rgba(2, 18, 40, .18);
}

.product-card:hover,
.product-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(2, 32, 70, .16);
    outline: none;
}

.product-card:focus-visible { border-color: var(--blue-soft); }

.product-media {
    height: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(5px, .55vw, 10px);
    overflow: hidden;
}

.product-media img {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 12px rgba(0,0,0,.14));
}

.product-copy {
    min-width: 0;
    padding: clamp(9px, 1vw, 18px) clamp(10px, 1.2vw, 22px) clamp(9px, 1vw, 18px) 0;
}

.product-icon {
    width: clamp(34px, 2.9vw, 52px);
    height: clamp(34px, 2.9vw, 52px);
    display: grid;
    place-items: center;
    margin-bottom: clamp(5px, .65vh, 10px);
    border-radius: 50%;
    color: #fff;
    background: #06264f;
    border: 1px solid rgba(63, 154, 255, .55);
    font-weight: 800;
    font-size: clamp(8px, .75vw, 13px);
    letter-spacing: -.02em;
}

.accent-orange { color: #ff6d00; border-color: rgba(255,109,0,.65); }
.accent-cyan { color: #30cbd7; border-color: rgba(48,203,215,.65); }

.product-copy h2,
.product-copy h3,
.product-copy p { margin: 0; }

.product-copy h2 {
    font-size: clamp(15px, 1.42vw, 25px);
    line-height: 1.05;
    letter-spacing: -.025em;
}

.product-copy h3 {
    margin-top: 2px;
    font-size: clamp(9px, .95vw, 16px);
    line-height: 1.12;
    font-weight: 650;
}

.product-copy p {
    margin-top: clamp(6px, .75vh, 11px);
    max-width: 230px;
    font-size: clamp(9px, .79vw, 14px);
    line-height: 1.28;
    color: var(--text-muted);
}

.dark .product-copy p { color: rgba(255,255,255,.78); }

.card-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: clamp(88px, 8.5vw, 138px);
    height: clamp(26px, 3.2vh, 38px);
    margin-top: clamp(7px, 1vh, 13px);
    padding: 0 14px;
    border: 1px solid #2488ff;
    border-radius: 9px;
    color: #0876ef;
    font-size: clamp(9px, .78vw, 13px);
    font-weight: 650;
}

.dark .card-action { color: #fff; border-color: rgba(62,151,255,.78); }
.card-action b { font-size: 1.45em; line-height: 1; font-weight: 400; }

.footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 2vw, 36px);
    background: linear-gradient(180deg, #03172f 0%, #020e20 100%);
    border-top: 1px solid rgba(43, 128, 226, .24);
}

.footer-link {
    border: 0;
    padding: 8px 5px;
    background: transparent;
    color: rgba(255,255,255,.93);
    font-size: clamp(10px, .92vw, 14px);
    letter-spacing: .03em;
    cursor: pointer;
}

.footer-link:hover,
.footer-link:focus-visible { color: #63b1ff; outline: none; }
.footer-divider { color: rgba(255,255,255,.5); }

.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 9, 23, .72); backdrop-filter: blur(7px); }
.modal-panel {
    position: relative;
    z-index: 1;
    width: min(92vw, 520px);
    max-height: min(82vh, 620px);
    overflow: auto;
    padding: clamp(24px, 3vw, 42px);
    border: 1px solid rgba(84, 164, 255, .42);
    border-radius: 20px;
    background: linear-gradient(145deg, #061a35 0%, #031125 100%);
    box-shadow: 0 30px 80px rgba(0,0,0,.46);
    color: #fff;
}
.modal-panel h2 { margin: 0; font-size: 28px; }
.modal-panel p { margin: 14px 0 0; color: rgba(255,255,255,.78); line-height: 1.55; font-size: 14px; }
.modal-panel strong { color: #fff; }
.modal-rule { width: 48px; height: 3px; margin-top: 14px; background: var(--blue); border-radius: 999px; }
.modal-close {
    position: absolute; top: 12px; right: 14px;
    width: 36px; height: 36px; border: 0; border-radius: 50%;
    background: rgba(255,255,255,.08); color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
}

/* Tall / narrow browser: still no page scrolling, cards become 2 x 3. */
@media (max-width: 780px) and (orientation: portrait) {
    .page-shell {
        grid-template-rows: clamp(50px, 7vh, 68px) clamp(86px, 15vh, 140px) minmax(0, 1fr) clamp(36px, 5vh, 48px);
    }
    .hero { grid-template-columns: 54% 46%; }
    .hero-copy { padding-left: 18px; padding-right: 5px; }
    .hero h1 { font-size: clamp(16px, 4.3vw, 24px); }
    .hero p { font-size: clamp(9px, 2.4vw, 13px); }
    .products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(3, minmax(0, 1fr));
        padding: 8px;
        gap: 8px;
    }
    .product-card { grid-template-columns: 42% 58%; border-radius: 11px; }
    .product-copy { padding: 6px 6px 6px 0; }
    .product-icon { width: 26px; height: 26px; margin-bottom: 3px; font-size: 7px; }
    .product-copy h2 { font-size: clamp(11px, 3.2vw, 16px); }
    .product-copy h3 { font-size: clamp(7px, 2.1vw, 10px); }
    .product-copy p { margin-top: 4px; font-size: clamp(7px, 1.9vw, 10px); line-height: 1.18; }
    .card-action { min-width: 0; height: 22px; margin-top: 4px; padding: 0 8px; font-size: 8px; border-radius: 6px; }
}

/* Short landscape browser: preserve all 6 blocks and remove nonessential copy if needed. */
@media (max-height: 700px) and (orientation: landscape) {
    .page-shell { grid-template-rows: 48px minmax(82px, 17vh) minmax(0, 1fr) 34px; }
    .brand-logo { width: clamp(160px, 16vw, 230px); }
    .hero-copy { padding-left: clamp(18px, 5vw, 75px); }
    .hero h1 { font-size: clamp(18px, 2.1vw, 30px); }
    .hero-line { margin: 8px 0; }
    .hero p { font-size: 11px; }
    .products { padding: 8px clamp(12px, 4vw, 70px); gap: 8px; }
    .product-copy p { display: none; }
    .product-icon { width: 30px; height: 30px; margin-bottom: 4px; }
    .card-action { height: 24px; margin-top: 6px; }
}

@media (max-width: 420px) {
    .hero-copy { padding-left: 12px; }
    .hero h1 { font-size: 15px; }
    .hero p { display: none; }
    .product-copy p { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .product-card { transition: none; }
}
