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

:root {
    --primary: #4A55E7;
    --primary-dark: #3B47D9;
    --primary-light: #6875F5;
    --ink: #0F172A;
    --ink-soft: #1E293B;
    --text: #334155;
    --text-muted: #64748B;
    --text-faint: #94A3B8;
    --surface: #ffffff;
    --page: #F8FAFC;
    --border: #E2E8F0;
    --border-soft: #F1F5F9;
    --accent-green: #10B981;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-card: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
    --shadow-card-hover: 0 4px 20px rgba(74,85,231,0.08);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--page);
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

::selection {
    background: var(--primary);
    color: white;
}

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

/* ── NAV ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 5vw;
    background: rgba(248,250,252,0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

nav.scrolled {
    padding: 12px 5vw;
    background: rgba(255,255,255,0.92);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-card);
}

.nav-logo {
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--ink);
    letter-spacing: -0.03em;
    z-index: 101;
}

.nav-logo span { color: var(--primary); }

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

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

.nav-cta {
    background: var(--primary);
    color: white !important;
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(74,85,231,0.2);
}

.nav-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(74,85,231,0.3);
}

.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 101;
    padding: 8px;
}

.burger-menu span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger-menu.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-menu.active span:nth-child(2) { opacity: 0; }
.burger-menu.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ── */
#hero {
    padding: 160px 5vw 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--page);
    position: relative;
}

.hero-inner {
    max-width: 720px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 32px;
    animation: fadeUp 0.6s ease both;
}

.hero-badge i { color: var(--accent-green); }

.hero-heading {
    font-size: clamp(2.5rem, 5.5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
    color: var(--ink);
    margin-bottom: 20px;
    animation: fadeUp 0.6s 0.08s ease both;
}

.hero-heading .accent {
    color: var(--primary);
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 540px;
    margin: 0 auto 40px;
    font-weight: 400;
    animation: fadeUp 0.6s 0.16s ease both;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeUp 0.6s 0.24s ease both;
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(74,85,231,0.2);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(74,85,231,0.3);
}

.btn-ghost {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    animation: fadeUp 0.6s 0.32s ease both;
}

.stat-item { text-align: center; }

.stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.03em;
    display: block;
    line-height: 1;
}

.stat-num span { color: var(--primary); }

.stat-label {
    font-size: 0.8rem;
    color: var(--text-faint);
    margin-top: 6px;
    font-weight: 500;
}

/* ── SHARED SECTION ── */
section {
    padding: 100px 5vw;
    position: relative;
}

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

.section-header {
    margin-bottom: 48px;
}

.section-header.centered {
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 48px;
}

.section-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 12px;
}

.section-heading {
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin-bottom: 16px;
}

.section-sub {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 520px;
}

.section-header.centered .section-sub {
    margin-left: auto;
    margin-right: auto;
}

/* ── PROBLEM ── */
#problem {
    background: var(--surface);
    border-top: 1px solid var(--border-soft);
}

.problem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.problem-card {
    background: var(--page);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: all 0.25s ease;
}

.problem-card:hover {
    box-shadow: var(--shadow-card-hover);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.problem-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 20px;
    background: var(--surface);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.problem-card:hover .problem-icon {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.problem-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
}

.problem-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── SOLUTION ── */
#solution {
    background: var(--page);
}

.solution-blocks {
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.solution-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.solution-block.reverse { direction: rtl; }
.solution-block.reverse > * { direction: ltr; }

.solution-text .solution-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 12px;
}

.solution-text h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    line-height: 1.2;
}

.solution-text p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 16px;
}

.solution-text ul {
    list-style: none;
    padding: 0;
}

.solution-text ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text);
    padding: 6px 0;
    font-weight: 500;
}

.solution-text ul li i {
    color: var(--accent-green);
    margin-top: 3px;
    flex-shrink: 0;
}

.solution-visual {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-card);
}

.solution-visual img {
    border-radius: 12px;
    width: 100%;
    height: auto;
}

.solution-visual-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-lg);
    padding: 32px;
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.solution-visual-card::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}

.solution-visual-card::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -20px;
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
}

.card-header {
    position: relative;
    z-index: 1;
}

.card-header .card-logo {
    font-weight: 800;
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 24px;
}

.card-header h4 {
    font-size: 1.3rem;
    font-weight: 700;
}

.card-header p {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 4px;
}

.card-qr {
    position: relative;
    z-index: 1;
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-qr i {
    font-size: 2rem;
    color: var(--primary);
}

.card-footer {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.card-footer .card-id {
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.6;
    letter-spacing: 0.08em;
}

/* ── HOW IT WORKS ── */
#how-it-works {
    background: var(--surface);
    border-top: 1px solid var(--border-soft);
}

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

.steps::before {
    content: '';
    position: absolute;
    top: 36px;
    left: calc(16.67% + 12px);
    right: calc(16.67% + 12px);
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--page);
    border: 2px solid var(--border);
    color: var(--text-muted);
    transition: all 0.25s ease;
}

.step:hover .step-number {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.step h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
}

.step p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
    max-width: 260px;
    margin: 0 auto;
}

/* ── TEAM ── */
#team {
    background: var(--page);
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 800px;
}

.team-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    transition: all 0.25s ease;
}

.team-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--primary);
}

.team-avatar {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
}

.av1 { background: var(--ink); }
.av2 { background: var(--primary); }

.team-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 4px;
}

.team-card .role {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 12px;
}

.team-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── CTA ── */
#cta {
    background: var(--ink);
    text-align: center;
    padding: 100px 5vw;
    color: white;
}

#cta .section-heading {
    color: white;
    max-width: 600px;
    margin: 0 auto 16px;
}

#cta p {
    color: var(--text-faint);
    font-size: 1.05rem;
    max-width: 480px;
    margin: 0 auto 36px;
    line-height: 1.6;
}

#cta .btn-primary {
    background: white;
    color: var(--ink);
    box-shadow: none;
}

#cta .btn-primary:hover {
    background: #f0f0f0;
    box-shadow: 0 4px 16px rgba(255,255,255,0.1);
}

#cta .btn-ghost {
    background: transparent;
    border-color: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.8);
}

#cta .btn-ghost:hover {
    border-color: rgba(255,255,255,0.4);
    color: white;
}

/* ── FOOTER ── */
footer {
    background: #060A14;
    padding: 36px 5vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

footer .nav-logo { color: white; }
footer p { font-size: 0.85rem; color: var(--text-faint); }

/* ── ANIMATION ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .burger-menu { display: flex; }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255,255,255,0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 32px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        font-size: 1.3rem;
        font-weight: 600;
        color: var(--ink);
    }

    .nav-links .nav-cta {
        display: inline-block;
        margin-top: 12px;
        color: white;
        font-size: 1rem;
    }

    section { padding: 72px 5vw; }

    #hero { padding: 130px 5vw 72px; }

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

    .solution-block,
    .solution-block.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .solution-block.reverse > * { direction: ltr; }

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

    .steps::before { display: none; }

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

    .hero-stats {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }

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