/* ========================================
   ScanPut — Precision Scanner Theme
   ======================================== */

/* Reset & Custom Properties */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-deep: #030712;
    --bg: #0F172A;
    --bg-surface: #1E293B;
    --accent: #06B6D4;
    --accent-light: #22D3EE;
    --accent-glow: rgba(6, 182, 212, 0.10);
    --accent-glow-strong: rgba(6, 182, 212, 0.25);
    --text: #F1F5F9;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --border: rgba(148, 163, 184, 0.08);
    --border-accent: rgba(6, 182, 212, 0.2);
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    line-height: 1.6;
    background: var(--bg-deep);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3 {
    font-family: var(--font-display);
    line-height: 1.15;
}

/* ========================================
   Animations
   ======================================== */

@keyframes scanBeam {
    0%, 100% { top: 10%; opacity: 0; }
    8% { opacity: 1; }
    92% { opacity: 1; }
    50% { top: 82%; }
}

@keyframes cursorBlink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

@keyframes pulseDot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.5); }
    50% { box-shadow: 0 0 0 6px rgba(6, 182, 212, 0); }
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 0.6; }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--delay, 0s);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

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

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 14px 0;
    background: rgba(3, 7, 18, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-body);
    font-size: 26px;
    font-weight: 400;
    color: var(--text);
    letter-spacing: -0.3px;
}

.logo-accent {
    color: #4ECDC4;
}

.nav-links {
    display: flex;
    gap: 36px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

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

.nav-cta {
    font-family: var(--font-mono);
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    padding: 7px 20px;
    border: 1.5px solid var(--border-accent);
    border-radius: 8px;
    transition: all 0.2s;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-cta:hover {
    background: var(--accent-glow);
    border-color: var(--accent);
    box-shadow: 0 0 24px rgba(6, 182, 212, 0.12);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-deep);
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(6, 182, 212, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--text-muted);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.03);
}

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

.hero {
    position: relative;
    padding: 164px 0 100px;
    text-align: center;
    overflow: hidden;
    background: var(--bg-deep);
}

/* Subtle grid pattern */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(6, 182, 212, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.018) 1px, transparent 1px);
    background-size: 64px 64px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black, transparent);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black, transparent);
}

.hero-glow {
    position: absolute;
    top: -180px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(6, 182, 212, 0.07) 0%, transparent 65%);
    pointer-events: none;
    animation: glowPulse 7s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--accent);
    padding: 6px 18px;
    border: 1px solid var(--border-accent);
    border-radius: 100px;
    margin-bottom: 36px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulseDot 2s ease-in-out infinite;
}

.hero h1 {
    font-size: 58px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 44px;
    line-height: 1.75;
}

.hero-actions {
    margin-bottom: 80px;
}

.ios-note {
    margin-top: 16px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

.ios-coming-soon {
    margin-top: 28px;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: 0.2px;
}

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

.hero-demo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    max-width: 620px;
    margin: 0 auto;
}

.demo-source {
    position: relative;
    width: 220px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 182, 212, 0.03);
    border: 1px solid rgba(6, 182, 212, 0.12);
    border-radius: 4px;
    flex-shrink: 0;
}

.vf-corner {
    position: absolute;
    width: 14px;
    height: 14px;
}

.vf-tl {
    top: -1px;
    left: -1px;
    border-top: 2px solid var(--accent);
    border-left: 2px solid var(--accent);
}

.vf-tr {
    top: -1px;
    right: -1px;
    border-top: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
}

.vf-bl {
    bottom: -1px;
    left: -1px;
    border-bottom: 2px solid var(--accent);
    border-left: 2px solid var(--accent);
}

.vf-br {
    bottom: -1px;
    right: -1px;
    border-bottom: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
}

.demo-label {
    position: absolute;
    top: 8px;
    left: 12px;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.6;
}

.demo-scan-text {
    font-family: var(--font-mono);
    font-size: 17px;
    font-weight: 500;
    color: var(--text);
    letter-spacing: 0.3px;
}

.demo-beam {
    position: absolute;
    left: 10px;
    right: 10px;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    box-shadow: 0 0 14px var(--accent-glow-strong), 0 0 4px var(--accent);
    animation: scanBeam 3.2s ease-in-out infinite;
}

.demo-connector {
    color: var(--text-muted);
    flex-shrink: 0;
    opacity: 0.5;
}

.demo-target {
    position: relative;
    width: 260px;
    background: var(--bg-surface);
    border-radius: 10px;
    border: 1px solid var(--border);
    overflow: hidden;
    flex-shrink: 0;
}

.demo-bar {
    display: flex;
    gap: 5px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
}

.demo-bar span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text-muted);
    opacity: 0.25;
}

.demo-target .demo-label {
    position: static;
    display: block;
    padding: 12px 16px 4px;
}

.demo-typed-text {
    font-family: var(--font-mono);
    font-size: 15px;
    color: var(--text);
    padding: 2px 16px 16px;
    min-height: 38px;
    text-align: left;
}

.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 17px;
    background: var(--accent);
    vertical-align: text-bottom;
    margin-left: 1px;
    animation: cursorBlink 1s step-end infinite;
}

/* ========================================
   Section Titles
   ======================================== */

.section-title {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 64px;
    color: var(--text);
    letter-spacing: -1px;
}

/* ========================================
   How It Works
   ======================================== */

.how-it-works {
    padding: 120px 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.step {
    text-align: center;
    padding: 20px 28px;
    flex: 1;
    max-width: 300px;
}

.step-connector {
    width: 56px;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin-top: 51px;
    flex-shrink: 0;
    opacity: 0.4;
}

.step-number {
    width: 56px;
    height: 56px;
    background: transparent;
    border: 1.5px solid var(--accent);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 600;
    margin: 0 auto 22px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.step:hover .step-number {
    background: var(--accent);
    color: var(--bg-deep);
    box-shadow: 0 0 28px var(--accent-glow-strong);
}

.step h3 {
    font-size: 19px;
    margin-bottom: 12px;
    color: var(--text);
}

.step p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.65;
}

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

.features {
    padding: 120px 0;
    background: var(--bg-deep);
    border-top: 1px solid var(--border);
}

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

.feature-card {
    background: var(--bg);
    padding: 36px 28px;
    border-radius: 14px;
    border: 1px solid var(--border);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-5px);
    box-shadow: 0 12px 48px rgba(6, 182, 212, 0.06);
}

.feature-icon {
    font-size: 24px;
    margin-bottom: 18px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border: 1px solid rgba(6, 182, 212, 0.1);
    border-radius: 11px;
}

.feature-card h3 {
    font-size: 17px;
    margin-bottom: 10px;
    color: var(--text);
}

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

.feature-card p strong {
    color: var(--accent-light);
    font-weight: 600;
}

/* ========================================
   Screenshots
   ======================================== */

.screenshots {
    padding: 120px 0;
    background: var(--bg);
    overflow: hidden;
    border-top: 1px solid var(--border);
}

.screenshot-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 0 24px 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.screenshot-scroll::-webkit-scrollbar {
    height: 4px;
}

.screenshot-scroll::-webkit-scrollbar-track {
    background: var(--bg-surface);
    border-radius: 2px;
}

.screenshot-scroll::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 2px;
}

.screenshot-frame {
    flex-shrink: 0;
    scroll-snap-align: center;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    background: var(--bg-deep);
    padding: 5px;
}

.screenshot-frame:hover {
    transform: scale(1.03);
    border-color: var(--border-accent);
    box-shadow: 0 12px 48px rgba(6, 182, 212, 0.08);
}

.screenshot-frame img {
    width: 240px;
    height: auto;
    border-radius: 16px;
    display: block;
}

/* ========================================
   Lightbox
   ======================================== */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(3, 7, 18, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-img {
    max-height: 85vh;
    max-width: 90vw;
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
    transform: scale(0.92);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 36px;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    transition: color 0.2s;
    z-index: 1;
}

.lightbox-close:hover {
    color: var(--text);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 1;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text);
    border-color: var(--border-accent);
}

.lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* ========================================
   Pricing
   ======================================== */

.pricing {
    padding: 120px 0;
    background: var(--bg-deep);
    border-top: 1px solid var(--border);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 680px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg);
    padding: 44px 32px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border);
    position: relative;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pricing-card:hover {
    transform: translateY(-4px);
}

.pricing-card-pro {
    border-color: var(--accent);
    box-shadow: 0 0 48px rgba(6, 182, 212, 0.06);
}

.pricing-card-pro:hover {
    box-shadow: 0 12px 64px rgba(6, 182, 212, 0.12);
}

.pro-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--bg-deep);
    padding: 5px 22px;
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.pricing-card h3 {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--text);
}

.price {
    font-family: var(--font-mono);
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 32px;
    letter-spacing: 0.3px;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 36px;
    text-align: left;
}

.pricing-card li {
    padding: 10px 0;
    font-size: 15px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.pricing-card li::before {
    content: "\2713";
    color: var(--accent);
    font-weight: 700;
    margin-right: 12px;
}

/* ========================================
   Download
   ======================================== */

.download {
    padding: 120px 0;
    background: var(--bg);
    text-align: center;
    border-top: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.download::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 640px;
    height: 360px;
    background: radial-gradient(ellipse, rgba(6, 182, 212, 0.05) 0%, transparent 65%);
    pointer-events: none;
}

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

.download p {
    color: var(--text-secondary);
    margin-bottom: 36px;
    font-size: 16px;
}

.play-badge {
    height: 64px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.play-badge:hover {
    transform: scale(1.06);
    filter: drop-shadow(0 4px 20px rgba(6, 182, 212, 0.2));
}

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

.footer {
    background: var(--bg-deep);
    border-top: 1px solid var(--border);
    padding: 48px 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-logo {
    font-family: var(--font-body);
    font-size: 22px;
    font-weight: 400;
    color: var(--text);
}

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

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

.footer-copy {
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 12px;
    letter-spacing: 0.3px;
}

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

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

    .hero {
        padding: 124px 0 72px;
    }

    .hero h1 {
        font-size: 36px;
        letter-spacing: -1px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-actions {
        margin-bottom: 56px;
    }

    .hero-demo {
        flex-direction: column;
        gap: 16px;
    }

    .demo-source {
        width: 100%;
        max-width: 280px;
    }

    .demo-connector {
        transform: rotate(90deg);
    }

    .demo-target {
        width: 100%;
        max-width: 280px;
    }

    .steps {
        flex-direction: column;
        align-items: center;
    }

    .step {
        max-width: 100%;
    }

    .step-connector {
        width: 1.5px;
        height: 28px;
        background: linear-gradient(180deg, transparent, var(--accent), transparent);
        margin: 0;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

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

    .section-title {
        font-size: 32px;
        margin-bottom: 48px;
    }

    .screenshot-frame img {
        width: 200px;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 26px;
    }

    .how-it-works,
    .features,
    .screenshots,
    .pricing,
    .download {
        padding: 88px 0;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 30px;
        letter-spacing: -0.5px;
    }

    .hero-badge {
        font-size: 11px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 15px;
    }

    .feature-card {
        padding: 28px 22px;
    }

    .section-title {
        font-size: 28px;
    }

    .pricing-card {
        padding: 36px 24px;
    }
}
