/* ========================================================================
   Alt Time — Product Page
   Matches MMH Adventures v4 design system
   ======================================================================== */

:root {
    --dark-950: #06090f;
    --dark-900: #0c1220;
    --dark-800: #131d33;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --accent-400: #22d3ee;
    --accent-500: #06b6d4;
    --accent-600: #0891b2;
    --accent-glow: rgba(6, 182, 212, 0.15);
    --accent-glow-strong: rgba(6, 182, 212, 0.25);
    --font-display: 'Sora', system-ui, sans-serif;
    --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    background: var(--white);
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ========== Navbar ========== */

.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 0 32px;
}

.navbar.scrolled {
    background: rgba(12, 18, 32, 0.95);
    backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    color: var(--white);
    letter-spacing: -0.02em;
}

.navbar-mark {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, var(--accent-400), var(--accent-600));
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 14px; color: var(--dark-950);
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.navbar-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-400);
    transition: color 0.2s ease;
}

.navbar-links a:hover { color: var(--white); }

.navbar-cta {
    padding: 10px 22px !important;
    background: var(--accent-500) !important;
    color: var(--dark-950) !important;
    font-weight: 600 !important;
    border-radius: 8px;
    transition: background 0.2s ease, transform 0.15s ease;
}

.navbar-cta:hover {
    background: var(--accent-400) !important;
    transform: translateY(-1px);
}

/* ========== Hero ========== */

.hero {
    position: relative;
    background: var(--dark-900);
    padding: 150px 32px 80px;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-glow-1 {
    position: absolute;
    width: 700px; height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
    top: -200px; right: -100px;
    filter: blur(80px);
}

.hero-glow-2 {
    position: absolute;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249,115,22,0.06) 0%, transparent 65%);
    bottom: -200px; left: -100px;
    filter: blur(80px);
}

.hero-grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--accent-400);
    margin-bottom: 32px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.back-link:hover {
    color: var(--accent-500);
    transform: translateX(-4px);
}

.app-icon {
    width: 100px;
    height: 100px;
    border-radius: 22px;
    margin: 0 auto 24px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.06);
}

.hero h1 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(48px, 7vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.035em;
    color: var(--white);
    margin-bottom: 16px;
}

.hero-tagline {
    font-size: clamp(17px, 1.8vw, 22px);
    font-weight: 400;
    color: var(--gray-300);
    margin-bottom: 8px;
    line-height: 1.4;
}

.hero-price {
    font-size: 15px;
    color: var(--gray-500);
    margin-bottom: 36px;
}

/* ========== Buttons ========== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--accent-500);
    color: var(--dark-950);
    box-shadow: 0 0 20px var(--accent-glow), 0 2px 8px rgba(0,0,0,0.3);
}

.btn-primary:hover {
    background: var(--accent-400);
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--accent-glow-strong), 0 4px 16px rgba(0,0,0,0.3);
}

.btn-arrow { transition: transform 0.2s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ========== Sections ========== */

.section {
    padding: 100px 32px;
}

.section-gray {
    background: var(--gray-50);
}

.section-dark {
    background: var(--dark-900);
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 20px;
    background: rgba(6, 182, 212, 0.08);
    color: var(--accent-600);
    border: 1px solid rgba(6, 182, 212, 0.15);
}

.section-dark .section-badge {
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-400);
    border-color: rgba(6, 182, 212, 0.15);
}

.section-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(28px, 3.8vw, 44px);
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--gray-900);
    margin-bottom: 16px;
    text-wrap: balance;
}

.section-dark .section-title { color: var(--white); }

.section-sub {
    font-size: 17px;
    color: var(--gray-500);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.6;
}

.section-dark .section-sub { color: var(--gray-400); }

/* ========== Features ========== */

.features-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: var(--gray-500);
}

.feature-item strong {
    color: var(--gray-900);
    font-weight: 600;
}

.feature-dash {
    color: var(--gray-300);
}

.feature-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-500);
    flex-shrink: 0;
}

/* ========== Widget scroll strip ========== */

.widget-scroll-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    overflow: hidden;
}

.widget-scroll {
    display: flex;
    gap: 16px;
    justify-content: center;
    padding: 10px 0 24px;
    flex-wrap: nowrap;
}

.widget-frame {
    flex: 0 1 200px;
    text-align: center;
}

@media (max-width: 1060px) {
    .widget-scroll {
        justify-content: flex-start;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--gray-300) transparent;
    }

    .widget-scroll::-webkit-scrollbar { height: 4px; }
    .widget-scroll::-webkit-scrollbar-track { background: transparent; }
    .widget-scroll::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 2px; }

    .widget-frame {
        flex: 0 0 180px;
        scroll-snap-align: start;
    }
}

.widget-frame img {
    width: 200px;
    height: auto;
    border-radius: 14px;
    background: var(--dark-900);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 8px 28px rgba(0,0,0,0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.widget-frame:hover img {
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(0,0,0,0.2);
}

.widget-label {
    display: block;
    margin-top: 12px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
}

/* ========== Explanation ========== */

.explanation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.explanation-card {
    background: var(--dark-800);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 32px;
    transition: background 0.2s ease;
}

.explanation-card:hover {
    background: rgba(30, 45, 74, 0.8);
}

.explanation-label {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-400);
    margin-bottom: 14px;
}

.explanation-card p {
    font-size: 15px;
    color: var(--gray-400);
    line-height: 1.7;
}

/* ========== Gallery ========== */

.gallery-wrapper {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

.gallery-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0 30px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-300) var(--gray-50);
}

.gallery-scroll::-webkit-scrollbar { height: 6px; }
.gallery-scroll::-webkit-scrollbar-track { background: var(--gray-50); border-radius: 3px; }
.gallery-scroll::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }

.gallery-item {
    flex: 0 0 240px;
    text-align: center;
    scroll-snap-align: start;
}

.gallery-item img {
    width: 240px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transition: transform 0.25s ease;
}

.gallery-item img:hover {
    transform: scale(1.03);
}

.gallery-caption {
    display: block;
    margin-top: 12px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
}

.gallery-btn {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid var(--gray-300);
    background: var(--white);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
    color: var(--gray-600);
}

.gallery-btn:hover {
    background: var(--gray-900);
    border-color: var(--gray-900);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.gallery-btn svg { stroke: currentColor; }

.gallery-btn-left { left: -22px; }
.gallery-btn-right { right: -22px; }

/* ========== CTA ========== */

.cta {
    background: var(--dark-900);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(80px);
    opacity: 0.4;
}

.cta-content { position: relative; z-index: 1; }

.cta-detail {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--accent-400);
    margin-bottom: 16px;
}

.cta .section-title {
    color: var(--white);
}

.cta-sub {
    font-size: 18px;
    color: var(--gray-400);
    margin-bottom: 36px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--gray-300);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

/* ========== Footer ========== */

.footer {
    background: var(--dark-900);
    color: var(--gray-400);
    padding: 32px;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--gray-600);
    flex-wrap: wrap;
    gap: 12px;
}

.footer-links-row {
    display: flex;
    gap: 24px;
}

.footer-links-row a {
    color: var(--gray-500);
    font-size: 13px;
    transition: color 0.15s ease;
}

.footer-links-row a:hover { color: var(--white); }

/* ========== Responsive ========== */

@media (max-width: 768px) {
    .navbar-links { display: none; }

    .hero { padding: 120px 20px 60px; }
    .hero h1 { font-size: 40px; }

    .section { padding: 64px 20px; }

    .features-row { gap: 12px; }

    .explanation-grid {
        grid-template-columns: 1fr;
    }

    .gallery-btn-left { left: 4px; }
    .gallery-btn-right { right: 4px; }
    .gallery-btn { width: 38px; height: 38px; }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .container, .section, .hero, .cta, .footer { padding-left: 16px; padding-right: 16px; }
    .navbar { padding: 0 16px; }

    .hero h1 { font-size: 34px; }
    .hero-tagline { font-size: 16px; }
    .app-icon { width: 80px; height: 80px; border-radius: 18px; }

    .section-title { font-size: 24px; }
    .section-sub { font-size: 15px; }

    .features-row { flex-direction: column; align-items: flex-start; gap: 10px; }

    .widget-frame img { width: 160px; }
    .widget-frame { flex: 0 0 160px; }

    .explanation-card { padding: 24px 20px; }

    .gallery-item { flex: 0 0 200px; }
    .gallery-item img { width: 200px; border-radius: 12px; }
    .gallery-btn { display: none; }

    .cta .section-title { font-size: 26px; }
    .cta-detail { font-size: 12px; }
}
