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

:root {
    --bg: #ffffff;
    --bg-card: #f8fafc;
    --bg-card-hover: #f1f5f9;
    --text: #0f172a;
    --text-secondary: #64748b;
    --accent: #3b82f6;
    --accent-light: #60a5fa;
    --accent-bg: rgba(59, 130, 246, 0.08);
    --border: rgba(15, 23, 42, 0.08);
    --max-width: 1100px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-light);
}

img {
    max-width: 100%;
    height: auto;
}

/* === Navigation === */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.nav-icon-img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.nav-icon-img.nav-icon-sm {
    width: 28px;
    height: 28px;
    border-radius: 7px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

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

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

.nav-cta {
    background: var(--accent) !important;
    color: white !important;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600 !important;
    font-size: 14px;
    transition: opacity 0.2s !important;
}

.nav-cta:hover {
    opacity: 0.85;
    color: white !important;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 24px;
    cursor: pointer;
}

/* === Hero === */
.hero {
    padding: 140px 24px 60px;
    text-align: center;
    max-width: var(--max-width);
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-bg);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(36px, 6vw, 60px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    color: var(--text);
}

.hero h1 span {
    background: linear-gradient(135deg, var(--accent), #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: white;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    color: white;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--text);
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    border: 1px solid var(--border);
    transition: transform 0.2s, border-color 0.2s;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    color: var(--text);
}

/* === Hero Card Demo / Scan Animation === */
.hero-card-demo {
    display: flex;
    justify-content: center;
}

.demo-card {
    width: 200px;
    height: 280px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 2px solid var(--border);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.1), 0 4px 16px rgba(0,0,0,0.06);
}

.demo-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.scan-line {
    position: absolute;
    left: 10%;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    box-shadow: 0 0 12px var(--accent), 0 0 24px rgba(59, 130, 246, 0.3);
    animation: scanMove 3s ease-in-out infinite;
    border-radius: 2px;
}

@keyframes scanMove {
    0%, 100% { top: 10%; }
    50% { top: 88%; }
}

/* === Features === */
.features {
    padding: 80px 24px;
    max-width: var(--max-width);
    margin: 0 auto;
}

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

.section-header h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
    color: var(--text);
}

.section-header p {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 480px;
    margin: 0 auto;
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.08);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

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

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

/* === How It Works === */
.how-it-works {
    padding: 80px 24px;
    max-width: var(--max-width);
    margin: 0 auto;
}

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

.step {
    text-align: center;
}

.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #2563eb);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

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

/* === About === */
.about {
    padding: 80px 24px;
    max-width: 780px;
    margin: 0 auto;
}

.about article {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 48px;
}

.about article h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
}

.about article p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.about article p:last-child {
    margin-bottom: 0;
}

/* === CTA Banner === */
.cta-banner {
    padding: 80px 24px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.cta-inner {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(37, 99, 235, 0.12));
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 24px;
    padding: 64px 48px;
    text-align: center;
}

.cta-inner h2 {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}

.cta-inner p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 32px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* === Footer === */
.footer {
    border-top: 1px solid var(--border);
    padding: 48px 24px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

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

.footer-left span {
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 13px;
    transition: color 0.2s;
}

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

/* === Legal Pages (Terms & Privacy) === */
.legal {
    max-width: 780px;
    margin: 0 auto;
    padding: 120px 24px 80px;
}

.legal h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.legal .last-updated {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 40px;
}

.legal h2 {
    font-size: 22px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 16px;
    color: var(--text);
}

.legal h3 {
    font-size: 17px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--text);
}

.legal p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 14px;
}

.legal ul, .legal ol {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 14px;
    padding-left: 24px;
}

.legal li {
    margin-bottom: 6px;
}

.legal a {
    color: var(--accent);
}

/* === Responsive === */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

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

    .steps {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about article {
        padding: 28px;
    }

    .cta-inner {
        padding: 40px 24px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .demo-card {
        width: 160px;
        height: 224px;
    }
}
