/* ============ CamLive — modern clean light ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    color-scheme: light;
    --ink: #0B1220;
    --body: #475569;
    --muted: #8A94A8;
    --paper: #FFFFFF;
    --section: #F8FAFC;
    --card: #FFFFFF;
    --line: #E6EAF2;
    --teal: #0D9488;
    --teal-dark: #0B7C72;
    --teal-soft: #F0FDFA;
    --radius: 16px;
    --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.06);
    --shadow-md: 0 12px 32px -16px rgba(11, 18, 32, 0.18);
    /* compat aliases for legal.css */
    --primary: #0D9488;
    --primary-dark: #0B1220;
    --primary-color: #0D9488;
    --secondary-color: #16A34A;
    --bg-base: #FFFFFF;
    --bg-surface: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --bg-panel: #F8FAFC;
    --bg-input: #F1F5F9;
    --border: #E6EAF2;
    --border-color: #E6EAF2;
    --text-primary: #0B1220;
    --text-secondary: #475569;
    --text-faint: #8A94A8;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--body);
    background: var(--paper);
    line-height: 1.6;
    overflow-x: clip;
    min-width: 0;
}

h1, h2, h3, .logo-text, .step-number, .store-button strong {
    font-family: 'Inter', sans-serif;
    color: var(--ink);
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

img, svg, video { max-width: 100%; height: auto; }
a, p, li, h1, h2, h3 { overflow-wrap: anywhere; }

.container { max-width: 1120px; width: 100%; margin: 0 auto; padding: 0 20px; }
section, header[id] { overflow-x: clip; scroll-margin-top: 80px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
    padding: 0.85rem 1.6rem; border-radius: 12px;
    font-weight: 700; font-size: 0.98rem; text-decoration: none; cursor: pointer;
    border: 1px solid transparent; transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
}
.btn-primary { background: var(--teal); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn-nav { padding: 0.55rem 1.2rem; font-size: 0.9rem; background: var(--ink); color: #fff; border-radius: 10px; }
.btn-nav:hover { background: #1a2540; }

/* ---------- Navbar ---------- */
.navbar {
    position: fixed; inset: 0 0 auto 0; z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.navbar.scrolled { box-shadow: var(--shadow-sm); }
.nav-wrapper { display: flex; align-items: center; gap: 1rem; min-height: 66px; padding: 0.55rem 0; }
.logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; font-weight: 800; font-size: 1.25rem; }
.logo img { width: 36px; height: 36px; border-radius: 10px; }
.logo-text { color: var(--ink); letter-spacing: -0.02em; }
.nav-menu { display: flex; align-items: center; gap: 1.5rem; list-style: none; margin-left: auto; }
.nav-link { color: var(--body); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav-link:hover, .nav-link.active { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 0.7rem; margin-left: 1.2rem; }
.mobile-menu-toggle { display: none; flex-direction: column; gap: 5px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 9px; cursor: pointer; }
.mobile-menu-toggle span { width: 22px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 0.25s ease, opacity 0.2s; }
.mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 5px); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 128px 0 72px; background: linear-gradient(180deg, #F0FDFA 0%, #FFFFFF 60%); overflow: hidden; }
.hero-blob { display: none; }
.hero-content { position: relative; display: grid; gap: 2.5rem; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: #fff; border: 1px solid var(--line); border-radius: 999px;
    padding: 0.35rem 0.95rem; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--teal-dark); margin-bottom: 1.1rem;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #EF4444; animation: blink 1.6s infinite; flex-shrink: 0; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero-title { font-size: clamp(2rem, 5.5vw, 3.2rem); font-weight: 800; margin-bottom: 1rem; max-width: 16ch; }
.hero-description { font-size: 1.08rem; max-width: 34rem; margin-bottom: 1.6rem; }
.hero-buttons { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 1rem; }
.hero-note { font-size: 0.88rem; color: var(--muted); font-weight: 600; }

.hero-image { display: flex; justify-content: center; }
.phone-mockup { position: relative; perspective: 1200px; }
.phone-frame {
    width: min(460px, 84vw); aspect-ratio: 19 / 9.6;
    background: var(--ink); border-radius: 30px; padding: 10px;
    transform: rotateY(-10deg) rotateX(5deg);
    box-shadow: 24px 28px 50px -20px rgba(11, 18, 32, 0.45);
    transition: transform 0.4s ease;
}
.phone-mockup:hover .phone-frame { transform: rotateY(0) rotateX(0); }
.phone-frame img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 21px; background: #0B1220; }
.float-card {
    position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 12px;
    padding: 0.5rem 0.85rem; font-weight: 700; font-size: 0.8rem; color: var(--ink);
    box-shadow: var(--shadow-md); white-space: nowrap; animation: floaty 3.4s ease-in-out infinite;
}
.float-live { top: -18px; left: 22px; display: flex; align-items: center; gap: 0.45rem; }
.float-score { bottom: -18px; right: 22px; animation-delay: 1.2s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------- Sections ---------- */
.destinations { padding: 64px 0 8px; }
.disciplines { padding: 64px 0; background: var(--section); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.features { padding: 80px 0 8px; }
.stats-band { padding: 56px 0; }
.tour { padding: 72px 0; background: var(--section); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.how-it-works { padding: 80px 0; }
.download { padding: 0 0 88px; }
.about { padding: 0 0 88px; }
.section-header { text-align: left; max-width: 44rem; margin: 0 0 2.2rem; }
.section-header-center { text-align: center; margin-left: auto; margin-right: auto; }
.kicker { font-weight: 800; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-dark); margin-bottom: 0.6rem; }
.kicker-light { color: #5EEAD4; }
.section-title { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; margin-bottom: 0.6rem; }
.section-description { font-size: 1.05rem; }

/* ---------- Destination cards ---------- */
.dest-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.dest-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.6rem; transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.dest-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #CBD5E1; }
.dest-card h3 { font-size: 1.1rem; font-weight: 750; margin-bottom: 0.35rem; }
.dest-card p { font-size: 0.95rem; }
.dest-icon {
    width: 50px; height: 50px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; color: #fff;
}
.dest-yt { background: #DC2626; }
.dest-fb { background: #1877F2; }
.dest-rtmp { background: var(--teal); }

/* ---------- Disciplines ---------- */
.disc-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.disc-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.6rem; text-align: center; transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.disc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.disc-card h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 0.3rem; }
.disc-card p { font-size: 0.92rem; }
.disc-ball {
    width: 58px; height: 58px; margin: 0 auto 1rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.2rem; color: #fff;
    box-shadow: inset -6px -8px 0 rgba(0, 0, 0, 0.22), var(--shadow-sm);
}
.disc-red { background: radial-gradient(circle at 35% 30%, #F87171, #B91C1C); }
.disc-ink { background: radial-gradient(circle at 35% 30%, #475569, #0B1220); }
.disc-amber { background: radial-gradient(circle at 35% 30%, #FBBF24, #B45309); }
.disc-teal { background: radial-gradient(circle at 35% 30%, #2DD4BF, #0B7C72); }
/* ---------- Feature cards ---------- */
.features-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.feature-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.6rem; transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #CBD5E1; }
.feature-icon {
    width: 46px; height: 46px; border-radius: 12px; background: var(--teal-soft); color: var(--teal-dark);
    display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-title { font-size: 1.1rem; font-weight: 750; margin-bottom: 0.35rem; }
.feature-description { font-size: 0.95rem; }

/* ---------- Stats band ---------- */
.stats-band { background: var(--ink); }
.stats-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, 1fr); text-align: center; }
.stat strong { display: block; font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.stat span { font-size: 0.88rem; color: #94A3B8; font-weight: 600; }

/* ---------- Tour: 3D phones ---------- */
.tour-list { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); max-width: 1000px; margin: 0 auto; }
.tour-row { display: grid; gap: 1.75rem; grid-template-columns: 1fr; align-items: center; }
.tour-phone { display: flex; justify-content: center; perspective: 1100px; }
.tour-phone-frame {
    width: min(230px, 60vw); aspect-ratio: 9 / 19.1;
    background: var(--ink); border-radius: 38px; padding: 9px;
    transform: rotateY(-12deg) rotateX(3deg);
    box-shadow: 24px 28px 50px -20px rgba(11, 18, 32, 0.45);
    transition: transform 0.4s ease;
}
.tour-row.reverse .tour-phone-frame { transform: rotateY(12deg) rotateX(3deg); }
.tour-row:hover .tour-phone-frame { transform: rotateY(0) rotateX(0); }
.tour-phone-frame img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 30px; background: #F1F5F9; }
.tour-text .tour-step {
    display: inline-block; font-weight: 800; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--teal-dark); background: var(--teal-soft); border: 1px solid #CCFBF1;
    border-radius: 999px; padding: 0.28rem 0.85rem; margin-bottom: 0.7rem;
}
.tour-text h3 { font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 800; margin-bottom: 0.4rem; }
.tour-text p { font-size: 1rem; max-width: 26rem; }
.tour-row-wide .tour-browser {
    background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
    box-shadow: var(--shadow-md); transform: perspective(1200px) rotateX(4deg); transition: transform 0.4s ease;
}
.tour-row-wide:hover .tour-browser { transform: perspective(1200px) rotateX(0); }
.tour-browser-bar { display: flex; gap: 6px; padding: 0.65rem 1rem; border-bottom: 1px solid var(--line); background: var(--section); }
.tour-browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: #CBD5E1; }
.tour-browser-bar span:first-child { background: #F87171; }
.tour-browser-bar span:nth-child(2) { background: #FBBF24; }
.tour-browser-bar span:nth-child(3) { background: #34D399; }
.tour-browser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; display: block; }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; gap: 1rem; grid-template-columns: 1fr; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.step-number {
    width: 40px; height: 40px; margin-bottom: 0.9rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.05rem; font-weight: 800; color: var(--teal-dark);
    background: var(--teal-soft); border: 1px solid #CCFBF1;
}
.step-title { font-size: 1.05rem; font-weight: 750; margin-bottom: 0.3rem; }
.step-description { font-size: 0.94rem; }

/* ---------- About ---------- */
.about-content { display: grid; gap: 1.5rem; grid-template-columns: 1fr; align-items: start; }
.about-card { background: var(--section); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.about-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.about-card p { font-size: 0.95rem; margin-bottom: 0.5rem; }
.about-card a { color: var(--teal-dark); font-weight: 700; text-decoration: none; }
.about-card a:hover { text-decoration: underline; }

/* ---------- Download ---------- */
.download { padding: 0 0 88px; }
.download-panel {
    background: var(--ink); border-radius: 24px;
    padding: clamp(2.2rem, 6vw, 3.5rem) clamp(1.25rem, 5vw, 3rem);
    text-align: center; color: #fff;
}
.download-title { color: #fff; font-size: clamp(1.6rem, 4.5vw, 2.4rem); font-weight: 800; margin-bottom: 0.6rem; }
.download-description { color: #CBD5E1; max-width: 36rem; margin: 0 auto 1.6rem; }
.download-buttons { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.1rem; }
.store-button {
    display: inline-flex; align-items: center; gap: 0.8rem;
    background: #fff; color: var(--ink); border-radius: 12px;
    padding: 0.75rem 1.35rem; text-decoration: none; border: 1px solid transparent;
}
.store-button:hover { background: #F1F5F9; }
.store-button span { display: grid; text-align: left; line-height: 1.25; }
.store-button small { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; opacity: 0.6; }
.store-button strong { font-size: 1rem; }
.store-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.3); }
.store-ghost:hover { background: rgba(255,255,255,0.08); }
.store-ghost strong { color: #fff; }
.download-note { font-size: 0.84rem; color: #94A3B8; margin-bottom: 1rem; }
.download-info { list-style: none; display: flex; justify-content: center; gap: 1.2rem; flex-wrap: wrap; color: #CBD5E1; font-size: 0.86rem; font-weight: 600; }

/* ---------- Footer ---------- */
.footer { background: #fff; border-top: 1px solid var(--line); padding: 56px 0 28px; }
.footer-content { display: grid; gap: 2rem; grid-template-columns: 1fr; margin-bottom: 2.2rem; }
.footer-logo { display: flex; align-items: center; gap: 0.7rem; font-weight: 800; font-size: 1.25rem; margin-bottom: 0.7rem; }
.footer-logo img { width: 36px; height: 36px; border-radius: 10px; }
.footer-description { font-size: 0.93rem; max-width: 24rem; }
.footer-heading { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.9rem; color: var(--ink); }
.footer-links { list-style: none; display: grid; gap: 0.55rem; }
.footer-links a { color: var(--body); text-decoration: none; font-size: 0.93rem; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 1.4rem; text-align: center; font-size: 0.86rem; color: var(--muted); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s 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 (min-width: 640px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .dest-grid { grid-template-columns: repeat(3, 1fr); }
    .disc-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
    .about-content { grid-template-columns: 1.4fr 1fr; }
    .footer-content { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 899px) {
    .nav-menu {
        position: fixed; top: 66px; left: 0; right: 0; max-height: calc(100dvh - 66px);
        background: #fff; flex-direction: column; align-items: stretch;
        gap: 0; margin: 0; padding: 0.6rem 1.2rem 1.4rem; border-bottom: 1px solid var(--line);
        transform: translateY(-130%); opacity: 0; visibility: hidden;
        transition: transform 0.3s ease, opacity 0.25s ease, visibility 0.3s;
        overflow-y: auto; z-index: 999;
    }
    .nav-menu li { border-bottom: 1px solid var(--line); }
    .nav-menu li:last-child { border-bottom: none; }
    .nav-link { display: block; padding: 0.9rem 0.2rem; font-size: 1.02rem; }
    .nav-menu.active { transform: none; opacity: 1; visibility: visible; }
    .mobile-menu-toggle { display: flex; }
    .btn-nav { display: none; }
}

@media (min-width: 900px) {
    .hero { padding: 152px 0 88px; }
    .hero-content { grid-template-columns: 1fr 1fr; align-items: center; gap: 3rem; }
    .features-grid { grid-template-columns: repeat(3, 1fr); }
    .steps { grid-template-columns: repeat(4, 1fr); }
    .disc-grid { grid-template-columns: repeat(4, 1fr); }
    .footer-content { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
    .tour-row { grid-template-columns: 1fr 1fr; gap: 3rem; }
    .tour-row.reverse .tour-phone { order: 2; }
    .tour-row.reverse .tour-text { order: 1; text-align: right; }
    .tour-row.reverse .tour-text p { margin-left: auto; }
    .tour-row-wide { grid-template-columns: 1.5fr 1fr; }
}

@media (max-width: 420px) {
    .container { padding: 0 16px; }
    .hero { padding: 112px 0 56px; }
    .hero-buttons { flex-direction: column; align-items: stretch; }
    .hero-buttons .btn { justify-content: center; width: 100%; }
}

::selection { background: #CCFBF1; color: var(--ink); }
