/* =========================================
   QuitScroll Landing Page
   Dark Sentinel Theme
   ========================================= */

:root {
    --bg: #0A0A0F;
    --bg-card: rgba(255,255,255,0.04);
    --bg-card-hover: rgba(255,255,255,0.07);
    --orange: #FF6B00;
    --orange-glow: rgba(255,107,0,0.3);
    --red: #FF3B30;
    --green: #00FF88;
    --text: #F5F5F5;
    --text-secondary: #8A8A9A;
    --text-tertiary: #55556A;
    --border: rgba(255,255,255,0.08);
    --font-mono: 'JetBrains Mono', monospace;
    --font-sans: 'Inter', -apple-system, sans-serif;
    --max-width: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.text-orange { color: var(--orange); }

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-tag {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--orange);
    display: block;
    margin-bottom: 16px;
}

.section-sub {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.6;
}

h2 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
}

/* ---- NAV ---- */

.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 16px 24px;
    transition: background .3s, backdrop-filter .3s;
}

.nav.scrolled {
    background: rgba(10,10,15,0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-bar {
    display: inline-block;
    width: 28px;
    height: 6px;
    background: var(--orange);
    border-radius: 1px;
    box-shadow: 0 0 15px var(--orange-glow);
}

.logo-text {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
    background: var(--orange) !important;
    color: var(--bg) !important;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 700 !important;
    transition: transform .2s, box-shadow .2s;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--orange-glow);
}

.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: .3s;
}

.nav-mobile-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-mobile-toggle.open span:nth-child(2) { opacity: 0; }
.nav-mobile-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---- BUTTONS ---- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
    background: var(--orange);
    color: var(--bg);
    box-shadow: 0 4px 30px var(--orange-glow);
}

.btn-primary:hover {
    box-shadow: 0 8px 40px rgba(255,107,0,0.4);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255,255,255,0.15);
}

.btn-lg { padding: 18px 40px; font-size: 17px; }

/* ---- HERO ---- */

.hero {
    position: relative;
    padding: 160px 24px 80px;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    top: -100px;
    right: -100px;
    background: radial-gradient(circle, var(--orange-glow) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0.4;
}

.hero-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 80px;
}

.hero-text { flex: 1; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-secondary);
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 20px;
    margin-bottom: 24px;
}

.badge-dot {
    width: 6px; height: 6px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero h1 {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 24px;
}

.hero-sub {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 480px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.hero-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.stars {
    color: #FFD700;
    font-size: 16px;
    letter-spacing: 2px;
}

.hero-phone { flex-shrink: 0; }

/* ---- PHONE FRAME ---- */

.phone-frame {
    width: 280px;
    height: 572px;
    background: #1A1A24;
    border-radius: 40px;
    padding: 12px;
    border: 2px solid rgba(255,255,255,0.1);
    box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 60px var(--orange-glow);
    position: relative;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 28px;
    background: #0A0A0F;
    border-radius: 20px;
    z-index: 2;
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    background: var(--bg);
    position: relative;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phone-placeholder {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 100%;
    color: var(--text-tertiary);
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 2px;
}

.phone-placeholder .small {
    font-size: 10px;
    color: var(--text-tertiary);
    opacity: 0.6;
    letter-spacing: 1px;
}

.phone-screen.placeholder .phone-placeholder { display: flex; }
.phone-screen.placeholder img { display: none; }

.phone-frame-sm {
    width: 220px;
    height: 450px;
    border-radius: 32px;
    padding: 10px;
}

.phone-frame-sm::before {
    width: 80px;
    height: 22px;
    top: 10px;
}

.phone-frame-sm .phone-screen { border-radius: 24px; }

/* ---- STATS ---- */

.stats {
    padding: 60px 24px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
}

.stat {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s, transform .6s;
}

.stat.visible { opacity: 1; transform: translateY(0); }

.stat-number {
    display: block;
    font-family: var(--font-mono);
    font-size: 40px;
    font-weight: 800;
    color: var(--orange);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    max-width: 180px;
    display: block;
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: var(--border);
}

/* ---- FEATURES ---- */

.features {
    padding: 120px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    transition: transform .3s, border-color .3s, background .3s;
    opacity: 0;
    transform: translateY(20px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,107,0,0.3);
    background: var(--bg-card-hover);
}

.feature-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,107,0,0.1);
    border-radius: 12px;
    color: var(--orange);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ---- HOW IT WORKS ---- */

.how-it-works {
    padding: 120px 0;
    background: rgba(255,255,255,0.02);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.steps {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity .6s, transform .6s;
}

.step.visible { opacity: 1; transform: translateX(0); }

.step:last-child { border-bottom: none; }

.step-number {
    font-family: var(--font-mono);
    font-size: 48px;
    font-weight: 800;
    color: var(--orange);
    opacity: 0.3;
    flex-shrink: 0;
    width: 90px;
}

.step-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-content p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.65;
    max-width: 500px;
}

/* ---- SCREENSHOTS ---- */

.screenshots {
    padding: 120px 0;
}

.screenshot-scroll {
    display: flex;
    gap: 32px;
    margin-top: 48px;
    overflow-x: auto;
    padding-bottom: 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.screenshot-scroll::-webkit-scrollbar { height: 4px; }
.screenshot-scroll::-webkit-scrollbar-track { background: var(--border); border-radius: 2px; }
.screenshot-scroll::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 2px; }

.screenshot-item {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    scroll-snap-align: start;
}

.screenshot-label {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-tertiary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ---- PRICING ---- */

.pricing {
    padding: 120px 0;
    background: rgba(255,255,255,0.02);
    border-top: 1px solid var(--border);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
    align-items: start;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px 28px;
    text-align: center;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s, transform .6s;
}

.pricing-card.visible { opacity: 1; transform: translateY(0); }

.pricing-card-featured {
    border-color: var(--orange);
    background: rgba(255,107,0,0.05);
    box-shadow: 0 0 40px rgba(255,107,0,0.1);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    background: var(--orange);
    color: var(--bg);
    padding: 4px 16px;
    border-radius: 4px;
}

.pricing-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.pricing-price {
    font-family: var(--font-mono);
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 8px;
}

.pricing-price span {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 500;
}

.pricing-save {
    font-size: 13px;
    color: var(--green);
    font-weight: 600;
    margin-bottom: 8px;
}

.pricing-card ul {
    text-align: left;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    margin-top: 16px;
}

.pricing-card li {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.pricing-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 6px;
    height: 6px;
    background: var(--orange);
}

.pricing-card-featured li::before {
    background: var(--orange);
    box-shadow: 0 0 6px var(--orange-glow);
}

.pricing-card .btn {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
}

/* ---- CTA ---- */

.cta {
    position: relative;
    padding: 120px 0;
    text-align: center;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    width: 600px;
    height: 400px;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, var(--orange-glow) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0.3;
}

.cta .section-sub {
    margin: 0 auto 40px;
    text-align: center;
}

.cta .btn { margin: 0 auto; }

/* ---- FOOTER ---- */

.footer {
    padding: 48px 24px;
    border-top: 1px solid var(--border);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links {
    display: flex;
    gap: 24px;
    font-size: 14px;
    color: var(--text-secondary);
}

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

.footer-copy {
    width: 100%;
    text-align: center;
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 24px;
}

/* ---- RESPONSIVE ---- */

@media (max-width: 900px) {
    .hero-content { flex-direction: column; gap: 48px; text-align: center; }
    .hero-sub { margin: 0 auto 40px; }
    .hero-actions { justify-content: center; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
    .stats-inner { flex-direction: column; gap: 32px; }
    .stat-divider { width: 48px; height: 1px; }
}

@media (max-width: 640px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(10,10,15,0.95);
        backdrop-filter: blur(20px);
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--border);
    }
    .nav-links.open { display: flex; }
    .nav-mobile-toggle { display: flex; }
    .feature-grid { grid-template-columns: 1fr; }
    .hero { padding: 120px 24px 60px; }
    .hero h1 { font-size: 36px; }
    .step { flex-direction: column; gap: 8px; }
    .step-number { font-size: 32px; width: auto; }
    .screenshot-scroll { gap: 20px; }
    .phone-frame { width: 240px; height: 490px; border-radius: 34px; }
    .phone-frame-sm { width: 180px; height: 370px; }
    .footer-inner { flex-direction: column; text-align: center; }
}
