﻿:root {
    --bg: #07111f;
    --panel: rgba(13, 27, 47, 0.78);
    --panel-strong: rgba(15, 34, 56, 0.94);
    --text: #f4f8ff;
    --muted: #a9b8cc;
    --blue: #39a7ff;
    --orange: #ff9f43;
    --teal: #31dcc8;
    --line: rgba(255, 255, 255, 0.12);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
    --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    min-height: 100vh;
    overflow-x: hidden;
    font-family: Inter, Segoe UI, system-ui, -apple-system, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 8%, rgba(57, 167, 255, 0.2), transparent 30rem),
        radial-gradient(circle at 86% 10%, rgba(255, 159, 67, 0.16), transparent 28rem),
        linear-gradient(180deg, #07111f 0%, #081827 52%, #07111f 100%);
    line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 9999; padding: .75rem 1rem; border-radius: 10px; background: var(--teal); color: #041018; }
.skip-link:focus { top: 1rem; }

.detail-header {
    position: fixed;
    top: 16px;
    left: 50%;
    z-index: 1000;
    width: min(1120px, calc(100% - 28px));
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 12px 14px 12px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(7, 17, 31, 0.76);
    backdrop-filter: blur(18px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, .25);
}
.brand { display: grid; line-height: 1.05; }
.brand span { font-weight: 900; }
.brand strong { color: var(--orange); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.detail-header nav { display: flex; gap: .4rem; }
.detail-header nav a, .header-link { padding: .58rem .78rem; border-radius: 10px; color: var(--muted); font-weight: 750; transition: .2s ease; }
.detail-header nav a:hover, .header-link:hover { color: var(--text); background: rgba(255, 255, 255, .07); }
.header-link { display: inline-flex; align-items: center; gap: .35rem; color: var(--teal); border: 1px solid rgba(49, 220, 200, .24); }

.detail-section { padding: 105px max(22px, calc((100vw - 1120px) / 2)); position: relative; }
.hero { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .95fr); align-items: center; gap: 3.4rem; padding-top: 140px; }
.hero-glow { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-glow::before, .hero-glow::after { content: ""; position: absolute; border-radius: 999px; filter: blur(2px); animation: float 9s ease-in-out infinite; }
.hero-glow::before { width: 340px; height: 340px; right: 10%; top: 18%; background: radial-gradient(circle, rgba(57, 167, 255, .2), transparent 65%); border: 1px solid rgba(57,167,255,.18); }
.hero-glow::after { width: 220px; height: 220px; left: 8%; bottom: 10%; background: radial-gradient(circle, rgba(255,159,67,.22), transparent 65%); border: 1px solid rgba(255,159,67,.2); animation-delay: -3s; }
.eyebrow { margin-bottom: .75rem; color: var(--teal); font-size: .78rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.hero h1 { font-size: clamp(3rem, 7vw, 6.3rem); line-height: .94; letter-spacing: 0; text-wrap: balance; }
.hero h2 { margin-top: 1rem; color: var(--orange); font-size: clamp(1.25rem, 2.2vw, 2rem); }
.hero p { max-width: 620px; margin-top: 1rem; color: var(--muted); font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.btn { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: .85rem 1.1rem; border-radius: 12px; font-weight: 850; transition: .22s ease; }
.btn.primary { background: linear-gradient(135deg, var(--blue), var(--teal)); color: #041018; box-shadow: 0 18px 40px rgba(57, 167, 255, .22); }
.btn.ghost { border: 1px solid var(--line); background: rgba(255, 255, 255, .06); }
.btn:hover, .back-button:hover { transform: translateY(-3px); }

.phone-stage { position: relative; min-height: 520px; }
.phone-card { position: absolute; width: 205px; min-height: 410px; padding: 3.9rem 1.1rem 1.4rem; border: 1px solid var(--line); border-radius: 34px; background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.04)); box-shadow: var(--shadow); text-align: center; overflow: hidden; transition: .28s ease; }
.phone-card::before { content: ""; position: absolute; inset: 18px; border-radius: 24px; background: linear-gradient(160deg, rgba(57,167,255,.16), rgba(255,159,67,.12)); border: 1px solid rgba(255,255,255,.08); }
.phone-card > * { position: relative; z-index: 1; }
.phone-image { position: absolute; inset: 18px; z-index: 1; width: calc(100% - 36px); height: calc(100% - 36px); object-fit: cover; border-radius: 24px; }
.phone-card:has(.phone-image:not([hidden])) i,
.phone-card:has(.phone-image:not([hidden])) h3,
.phone-card:has(.phone-image:not([hidden])) p { opacity: 0; }
.phone-card i { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 1.2rem; border-radius: 18px; background: rgba(7, 17, 31, .66); color: var(--teal); font-size: 2rem; }
.phone-card h3 { font-size: 1.1rem; }
.phone-card p { margin-top: .35rem; font-size: .9rem; }
.phone-notch { position: absolute; top: 17px; left: 50%; width: 76px; height: 18px; transform: translateX(-50%); border-radius: 0 0 16px 16px; background: #06101d; z-index: 2; }
.user-app { left: 0; top: 70px; transform: rotate(-8deg); }
.shop-app { left: 50%; top: 20px; transform: translateX(-50%); z-index: 2; }
.rider-app { right: 0; top: 86px; transform: rotate(8deg); }
.phone-card:hover { transform: translateY(-10px) rotate(0); border-color: rgba(49,220,200,.42); }

.section-heading { margin-bottom: 2rem; }
.section-heading.centered { text-align: center; }
.section-heading h2, .contribution-shell h2 { max-width: 850px; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.05; text-wrap: balance; }
.section-heading.centered h2 { margin-inline: auto; }
.glass-panel, .feature-card, .challenge-card, .result-card, .contribution-shell, .architecture-flow { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); backdrop-filter: blur(16px); }
.overview-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1rem; align-items: stretch; }
.overview-text { padding: 1.4rem; }
.overview-text p + p { margin-top: 1rem; }
.overview-list { display: grid; gap: .8rem; }
.overview-list div { display: flex; align-items: center; gap: .75rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.055); font-weight: 850; }
.overview-list i { color: var(--orange); font-size: 1.5rem; }

.gallery-grid, .feature-grid, .results-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.screen-card { min-height: 260px; cursor: pointer; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(160deg, rgba(57,167,255,.16), rgba(255,159,67,.12)); box-shadow: var(--shadow); overflow: hidden; transition: .28s ease; }
.screen-card::before { content: ""; display: block; width: 76px; height: 16px; margin: 16px auto 38px; border-radius: 0 0 14px 14px; background: #050d18; }
.screen-card { position: relative; }
.screen-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: .28s ease; }
.screen-card:hover img { transform: scale(1.06); }
.screen-card span { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin: 0; padding: 0.55rem 0.75rem; border: 1px solid rgba(255,255,255,.18); border-radius: 14px; color: var(--text); font-weight: 900; text-align: center; background: rgba(7,17,31,.58); backdrop-filter: blur(10px); box-shadow: 0 12px 34px rgba(0,0,0,.22); }
.screen-card:hover { transform: translateY(-8px) scale(1.02); border-color: rgba(57,167,255,.45); }
.feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-card { padding: 1.15rem; transition: .25s ease; }
.feature-card i { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 1rem; border-radius: 12px; color: #041018; background: linear-gradient(135deg, var(--orange), #ffd08c); font-size: 1.45rem; }
.feature-card h3 { font-size: 1rem; }
.feature-card:hover, .result-card:hover { transform: translateY(-6px); border-color: rgba(49,220,200,.36); }

.contribution-shell { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2rem; padding: 2rem; background: linear-gradient(145deg, rgba(57,167,255,.14), rgba(255,159,67,.1)); }
.contribution-shell p { color: var(--muted); margin-top: 1rem; }
.contribution-list, .tech-badges { display: flex; flex-wrap: wrap; gap: .7rem; }
.contribution-list li, .tech-badges span { list-style: none; padding: .52rem .72rem; border-radius: 999px; border: 1px solid rgba(49,220,200,.24); background: rgba(49,220,200,.1); color: #c9fff8; font-weight: 800; font-size: .9rem; }
.tech-badges { justify-content: center; }
.tech-badges span { border-color: rgba(255,159,67,.28); background: rgba(255,159,67,.1); color: #ffe2bc; }

.accordion { display: grid; gap: 1rem; }
.challenge-card { overflow: hidden; }
.challenge-card button { width: 100%; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.25rem; border: 0; background: transparent; text-align: left; font-weight: 900; }
.challenge-card i { color: var(--orange); font-size: 1.5rem; transition: .2s ease; }
.challenge-card div { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.challenge-card p { padding: 0 1.25rem 1.25rem; color: var(--muted); }
.challenge-card.open div { max-height: 220px; }
.challenge-card.open i { transform: rotate(45deg); }

.architecture-flow { display: grid; justify-items: center; gap: .9rem; padding: 1.4rem; text-align: center; }
.architecture-flow > i { color: var(--orange); font-size: 2rem; }
.flow-node, .firebase-box { width: min(620px, 100%); padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.055); }
.flow-node strong, .firebase-box strong { display: block; font-size: 1.2rem; }
.flow-node span, .firebase-box span { color: var(--muted); }
.firebase-box div { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; margin-top: .8rem; }
.firebase-box span { padding: .42rem .62rem; border-radius: 999px; background: rgba(57,167,255,.1); border: 1px solid rgba(57,167,255,.2); }
.flow-row { width: min(820px, 100%); display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.results-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.result-card { min-height: 110px; display: grid; place-items: center; padding: 1rem; color: var(--text); font-weight: 900; text-align: center; }
.back-section { padding-top: 40px; text-align: center; }
.back-button { display: inline-flex; align-items: center; gap: .45rem; padding: .95rem 1.25rem; border-radius: 12px; color: #041018; background: linear-gradient(135deg, var(--blue), var(--teal)); font-weight: 900; box-shadow: 0 18px 40px rgba(57,167,255,.22); transition: .22s ease; }

.lightbox { position: fixed; inset: 0; z-index: 2000; display: none; place-items: center; padding: 24px; background: rgba(3, 8, 15, .86); backdrop-filter: blur(12px); }
.lightbox.open { display: grid; }
.lightbox-close { position: absolute; right: 22px; top: 22px; width: 44px; height: 44px; cursor: pointer; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.08); font-size: 1.7rem; }
.lightbox-phone { width: min(360px, 86vw); aspect-ratio: 9 / 18; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 34px; background: linear-gradient(160deg, rgba(57,167,255,.24), rgba(255,159,67,.18)); box-shadow: var(--shadow); }
#lightboxImage { position: absolute; inset: 18px; width: calc(100% - 36px); height: calc(100% - 36px); object-fit: cover; border-radius: 24px; }
.lightbox-phone { position: relative; overflow: hidden; }
.lightbox-phone span { position: relative; z-index: 1; padding: 1rem; border-radius: 14px; background: rgba(7,17,31,.62); font-weight: 900; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@keyframes float { 50% { transform: translateY(-18px) scale(1.03); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; transition: none !important; } .reveal { opacity: 1; transform: none; } }
@media (max-width: 980px) { .detail-header nav { display: none; } .hero, .overview-grid, .contribution-shell { grid-template-columns: 1fr; } .phone-stage { min-height: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; } .phone-card, .user-app, .shop-app, .rider-app { position: relative; inset: auto; width: auto; min-height: 330px; transform: none; } .gallery-grid, .feature-grid, .results-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .detail-header { top: 10px; width: calc(100% - 20px); } .header-link { padding-inline: .65rem; } .detail-section { padding: 82px 18px; } .hero { padding-top: 116px; gap: 2rem; } .hero h1 { font-size: 3.15rem; } .hero-actions .btn { width: 100%; } .phone-stage, .gallery-grid, .feature-grid, .results-grid, .flow-row { grid-template-columns: 1fr; } .phone-card { min-height: 300px; } .screen-card { min-height: 230px; } .contribution-shell { padding: 1.2rem; } }



.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 28px max(22px, calc((100vw - 1120px) / 2));
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.footer-logo {
    color: var(--text);
    font-weight: 900;
}

.footer-social {
    display: flex;
    gap: 0.55rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 1.2rem;
    transition: 0.22s ease;
}

.footer-social a:hover {
    transform: translateY(-3px);
    border-color: rgba(49, 220, 200, 0.45);
}

@media (max-width: 640px) {
    .site-footer {
        display: grid;
        justify-items: center;
        text-align: center;
    }
}
