/* ============================================================
   Hong Kong Speed Report — shared stylesheet (v2 redesign)
   Palette preserved from v1: dark navy + turquoise
   ============================================================ */
:root {
    --turquoise: #00CED1;
    --bright-turquoise: #00F5F8;
    --dark-navy: #0a0e17;
    --pure-black: #000000;
    --charcoal: #1a1f2e;
    --charcoal-2: #222a3d;
    --light-gray: #f7fafc;
    --white: #ffffff;
    --text-gray: #a0aec0;
    --text-dim: #6b7688;
    --accent-red: #e74c3c;
    --glow: rgba(0, 206, 209, 0.35);
    --radius: 14px;
    --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--dark-navy);
    color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
    font-family: "Space Grotesk", "DM Sans", sans-serif;
    letter-spacing: -0.02em;
}

img { max-width: 100%; display: block; }
a { color: var(--turquoise); text-decoration: none; }
a:hover { color: var(--bright-turquoise); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 2rem; }

/* ---------- Nav ---------- */
.nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(10, 14, 23, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0, 206, 209, 0.15);
}
.nav-inner {
    max-width: var(--maxw); margin: 0 auto; padding: 0.8rem 2rem;
    display: flex; align-items: center; justify-content: space-between;
}

/* ---------- Logo lockup (faai chop badge) ---------- */
.nav-logo { display: flex; align-items: center; gap: 0.7rem; }
.chop {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; flex: 0 0 auto;
    border: 2.5px solid var(--turquoise); border-radius: 8px;
    font-family: "Noto Sans HK", "Space Grotesk", sans-serif;
    font-weight: 700; font-size: 1.35rem; color: var(--turquoise);
    line-height: 1;
}
.logo-text { line-height: 1.15; }
.logo-word {
    display: block; font-family: "Space Grotesk", sans-serif;
    font-weight: 700; font-size: 1.35rem; letter-spacing: -0.02em;
    color: var(--white);
}
.logo-word em { font-style: normal; color: var(--turquoise); }
.logo-tag {
    display: block; font-style: italic; font-size: 0.68rem;
    color: var(--text-gray);
}
.hero-lockup {
    display: flex; align-items: center; justify-content: center;
    gap: 1.6rem; text-align: left; margin-bottom: 2.2rem;
}
.chop-xl {
    width: 96px; height: 96px; border-width: 4px; border-radius: 16px;
    font-size: 3.4rem;
}
.hero-word {
    font-family: "Space Grotesk", sans-serif; font-weight: 700;
    font-size: clamp(3.2rem, 9vw, 5rem); line-height: 1;
    letter-spacing: -0.02em; color: var(--white);
}
.hero-word em { font-style: normal; color: var(--turquoise); }
.hero-sub {
    font-family: "Space Grotesk", sans-serif; font-weight: 500;
    letter-spacing: 0.3em; font-size: clamp(0.72rem, 1.7vw, 0.98rem);
    color: var(--text-gray); margin-top: 0.5rem;
}
.hero-tag {
    font-style: italic; font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: var(--bright-turquoise); margin-top: 0.55rem;
}
@media (max-width: 560px) {
    .hero-lockup { gap: 1rem; }
    .chop-xl { width: 64px; height: 64px; font-size: 2.2rem; border-width: 3px; border-radius: 12px; }
}

.nav-links { display: flex; gap: 1.8rem; align-items: center; list-style: none; }
.nav-links a {
    color: var(--text-gray); font-weight: 500; font-size: 0.95rem;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--bright-turquoise); }
.nav-links a.active { color: var(--white); }
.nav-links a.active::after {
    content: ""; display: block; height: 2px; margin-top: 2px;
    background: linear-gradient(90deg, var(--turquoise), transparent);
    border-radius: 2px;
}
.nav-cta {
    background: linear-gradient(135deg, var(--turquoise), #00a8ab);
    color: var(--dark-navy) !important; font-weight: 700;
    padding: 0.55rem 1.3rem; border-radius: 999px;
    transition: transform 0.15s, box-shadow 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 22px var(--glow); }
.nav-toggle { display: none; background: none; border: 0; color: var(--white); font-size: 1.6rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
    position: relative; text-align: center;
    padding: 6.5rem 2rem 5.5rem;
    background:
        linear-gradient(rgba(0,0,0,0.72), rgba(10,14,23,0.94)),
        radial-gradient(circle at 50% 30%, rgba(0,206,209,0.16) 0%, transparent 60%),
        var(--pure-black);
    overflow: hidden;
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(0,206,209,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,206,209,0.05) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(circle at 50% 40%, black, transparent 75%);
    -webkit-mask-image: radial-gradient(circle at 50% 40%, black, transparent 75%);
}
.hero-content { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; }
.hero-logo { max-width: 520px; width: 90%; margin: 0 auto 2rem; }
.hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 1rem; }
.hero .tagline {
    font-size: clamp(1.05rem, 2vw, 1.35rem); color: var(--text-gray);
    max-width: 640px; margin: 0 auto 2.4rem;
}
.hero .tagline strong { color: var(--bright-turquoise); font-weight: 600; }

.btn-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn {
    display: inline-block; font-weight: 700; border-radius: 999px;
    padding: 0.85rem 2.1rem; font-size: 1rem; cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
    border: 0;
}
.btn-primary {
    background: linear-gradient(135deg, var(--turquoise), #00a8ab);
    color: var(--dark-navy);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--glow); color: var(--dark-navy); }
.btn-ghost {
    background: transparent; color: var(--white);
    border: 1.5px solid rgba(0, 206, 209, 0.5);
}
.btn-ghost:hover { border-color: var(--bright-turquoise); color: var(--bright-turquoise); box-shadow: 0 0 18px rgba(0,206,209,0.2); }

/* ---------- Stat strip ---------- */
.stat-strip {
    border-top: 1px solid rgba(0,206,209,0.15);
    border-bottom: 1px solid rgba(0,206,209,0.15);
    background: rgba(26, 31, 46, 0.5);
}
.stat-strip .container {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem; padding: 1.6rem 2rem; text-align: center;
}
.stat b { display: block; font-size: 1.5rem; color: var(--bright-turquoise); font-family: "Space Grotesk", sans-serif; }
.stat span { color: var(--text-gray); font-size: 0.9rem; }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 3.2rem; padding: 0 2rem; }
.section-header .eyebrow {
    display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--turquoise); margin-bottom: 0.8rem;
}
.section-header h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 0.9rem; }
.section-header p { color: var(--text-gray); font-size: 1.1rem; }

.section-alt { background: linear-gradient(180deg, var(--charcoal) 0%, var(--dark-navy) 100%); }

/* ---------- Feature rows (products page) ---------- */
.feature-row {
    display: grid; grid-template-columns: 1fr 1.15fr; gap: 3.5rem;
    align-items: center; padding: 3.5rem 0;
}
.feature-row.reverse .feature-copy { order: 2; }
.feature-copy h3 { font-size: 1.6rem; margin-bottom: 1rem; }
.feature-copy p { color: var(--text-gray); margin-bottom: 1.2rem; }
.feature-copy ul { list-style: none; margin-bottom: 1.4rem; }
.feature-copy li {
    color: var(--text-gray); padding-left: 1.5rem; position: relative; margin-bottom: 0.5rem;
}
.feature-copy li::before {
    content: "▸"; color: var(--turquoise); position: absolute; left: 0;
}

/* ---------- Screenshot framing ---------- */
.shot {
    background: var(--charcoal);
    border: 1px solid rgba(0, 206, 209, 0.18);
    border-radius: var(--radius);
    padding: 0.6rem;
    box-shadow: 0 18px 50px rgba(0,0,0,0.5);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    cursor: zoom-in;
}
.shot img { border-radius: calc(var(--radius) - 5px); width: 100%; }
.shot:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: rgba(0, 206, 209, 0.5);
    box-shadow: 0 22px 60px rgba(0,0,0,0.6), 0 0 30px rgba(0,206,209,0.12);
}
.shot figcaption {
    text-align: center; color: var(--text-dim); font-size: 0.82rem; padding: 0.55rem 0 0.2rem;
}

/* ---------- Card grid (home teasers, downloads) ---------- */
.card-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.8rem;
}
.card {
    background: var(--charcoal);
    border: 1px solid rgba(0, 206, 209, 0.14);
    border-radius: var(--radius);
    padding: 1.8rem;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    display: flex; flex-direction: column;
}
.card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 206, 209, 0.45);
    box-shadow: 0 14px 40px rgba(0,0,0,0.45), 0 0 24px rgba(0,206,209,0.08);
}
.card .card-icon { font-size: 1.8rem; margin-bottom: 0.9rem; }
.card h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.card p { color: var(--text-gray); font-size: 0.95rem; flex: 1; }
.card .card-link { margin-top: 1.1rem; font-weight: 600; font-size: 0.95rem; }

/* ---------- Download cards ---------- */
.download-card { text-align: left; }
.download-card .shot { cursor: default; margin-bottom: 1.3rem; }
.download-card .shot:hover { transform: none; }
.file-meta {
    display: flex; gap: 1.2rem; color: var(--text-dim); font-size: 0.85rem;
    margin: 0.9rem 0 1.2rem;
}
.download-card .btn { align-self: flex-start; }

/* ---------- Pricing ---------- */
.pricing-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem; max-width: 900px; margin: 0 auto;
}
.price-card {
    background: var(--charcoal); border-radius: var(--radius);
    border: 1px solid rgba(0,206,209,0.16); padding: 2.4rem 2rem;
    text-align: center; position: relative;
}
.price-card.featured {
    border-color: var(--turquoise);
    box-shadow: 0 0 40px rgba(0,206,209,0.12);
}
.price-card .plan-badge {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, var(--turquoise), #00a8ab);
    color: var(--dark-navy); font-size: 0.75rem; font-weight: 700;
    padding: 0.25rem 1rem; border-radius: 999px; letter-spacing: 0.06em;
}
.price-card h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.price-card .price { font-size: 2.6rem; font-family: "Space Grotesk", sans-serif; color: var(--bright-turquoise); }
.price-card .price small { font-size: 1rem; color: var(--text-gray); }
.price-card ul { list-style: none; margin: 1.6rem 0 2rem; text-align: left; }
.price-card li { color: var(--text-gray); padding: 0.4rem 0 0.4rem 1.6rem; position: relative; }
.price-card li::before { content: "✓"; color: var(--turquoise); position: absolute; left: 0; }
.price-note { text-align: center; color: var(--text-dim); font-size: 0.9rem; margin-top: 2rem; }

/* ---------- Subscribe / waitlist ---------- */
.subscribe-section {
    text-align: center; padding: 5rem 2rem;
    background:
        radial-gradient(circle at 50% 100%, rgba(0,206,209,0.12) 0%, transparent 60%),
        var(--pure-black);
}
.subscribe-section h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 0.8rem; }
.subscribe-section p { color: var(--text-gray); max-width: 560px; margin: 0 auto 2rem; }
.subscribe-form { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }
.subscribe-form input[type="email"] {
    background: var(--charcoal); border: 1.5px solid rgba(0,206,209,0.3);
    color: var(--white); border-radius: 999px; padding: 0.85rem 1.5rem;
    font-size: 1rem; min-width: 300px; outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.subscribe-form input[type="email"]:focus {
    border-color: var(--bright-turquoise); box-shadow: 0 0 16px rgba(0,206,209,0.25);
}

.form-msg {
    width: 100%; margin-top: 1rem; font-weight: 600;
    color: var(--bright-turquoise);
}
.form-msg.error { color: var(--accent-red); }

/* ---------- Footer ---------- */
.footer {
    border-top: 1px solid rgba(0,206,209,0.14);
    padding: 3rem 2rem 2rem; background: var(--pure-black);
}
.footer-inner {
    max-width: var(--maxw); margin: 0 auto;
    display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.footer-col h4 { font-size: 0.95rem; margin-bottom: 0.8rem; color: var(--white); }
.footer-col a, .footer-col span { display: block; color: var(--text-gray); font-size: 0.9rem; margin-bottom: 0.45rem; }
.footer-col a:hover { color: var(--bright-turquoise); }
.footer-bottom {
    max-width: var(--maxw); margin: 2.2rem auto 0; padding-top: 1.4rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    color: var(--text-dim); font-size: 0.82rem;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
}

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(0, 0, 0, 0.92);
    display: none; align-items: center; justify-content: center;
    padding: 3vh 3vw; cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
    max-width: 96%; max-height: 92vh; object-fit: contain;
    border-radius: 8px; box-shadow: 0 0 80px rgba(0,206,209,0.15);
}
.lightbox .lb-close {
    position: absolute; top: 18px; right: 26px; font-size: 2rem;
    color: var(--text-gray); background: none; border: 0; cursor: pointer;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .feature-row, .feature-row.reverse { grid-template-columns: 1fr; gap: 1.8rem; padding: 2.4rem 0; }
    .feature-row.reverse .feature-copy { order: 0; }
    .nav-links {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; background: rgba(10,14,23,0.97);
        padding: 1.2rem 2rem; gap: 1.1rem; border-bottom: 1px solid rgba(0,206,209,0.2);
    }
    .nav-links.open { display: flex; }
    .nav-toggle { display: block; }
    .subscribe-form input[type="email"] { min-width: 0; width: 100%; }
}
