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

:root {
    --primary: #6C47FF;
    --primary-dark: #5435CC;
    --primary-light: #EEE9FF;
    --dark: #0D0D1A;
    --gray-900: #1A1A2E;
    --gray-700: #4A4A6A;
    --gray-400: #9999BB;
    --gray-100: #F5F5FA;
    --white: #FFFFFF;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 4px 24px rgba(108,71,255,0.12);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--dark);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* ─── Buttons ─────────────────────────────────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary);
    color: #fff !important;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    transition: background 0.2s, transform 0.15s;
    border: none;
    cursor: pointer;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-primary.btn-lg { padding: 15px 32px; font-size: 17px; border-radius: 14px; }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    color: var(--gray-700);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    transition: background 0.2s;
}
.btn-ghost:hover { background: var(--gray-100); }
.btn-ghost.btn-lg { padding: 15px 32px; font-size: 17px; border-radius: 14px; }

.btn-outline {
    display: block;
    padding: 12px 24px;
    border: 2px solid var(--primary);
    color: var(--primary) !important;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    transition: all 0.2s;
}
.btn-outline:hover { background: var(--primary); color: #fff !important; }

/* ─── Nav ─────────────────────────────────────────────────────────────────── */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 68px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 800;
    color: var(--dark);
}
.logo-icon { font-size: 24px; }

.nav-links {
    display: flex;
    gap: 28px;
    flex: 1;
}
.nav-links a {
    color: var(--gray-700);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }

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

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    margin-left: auto;
}

.nav-mobile {
    display: none;
    flex-direction: column;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--gray-100);
}
.nav-mobile.open { display: flex; }
.nav-mobile a { color: var(--gray-700); font-weight: 500; }

/* ─── Section Commons ─────────────────────────────────────────────────────── */
.section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-light);
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--gray-700);
    max-width: 560px;
    margin: 0 auto 48px;
}

/* ─── Hero ────────────────────────────────────────────────────────────────── */
.hero {
    text-align: center;
    padding: 80px 24px 60px;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-light);
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 900;
    line-height: 1.1;
    color: var(--dark);
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, #FF6BDC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 19px;
    color: var(--gray-700);
    margin-bottom: 36px;
    line-height: 1.6;
}

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

.hero-note {
    font-size: 13px;
    color: var(--gray-400);
    margin-bottom: 60px;
}

/* ─── QR Generator ───────────────────────────────────────────────────────── */
.qr-generator {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0,0,0,0.08);
    padding: 28px;
    max-width: 600px;
    margin: 0 auto 48px;
    text-align: left;
}

.qr-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    background: var(--gray-100);
    padding: 4px;
    border-radius: 10px;
}

.qr-tab {
    flex: 1;
    padding: 9px 12px;
    border: none;
    background: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: var(--gray-700);
    font-family: inherit;
    transition: all 0.2s;
}

.qr-tab.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.qr-panel { display: none; }
.qr-panel.active { display: block; }

.qr-input {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid #e8e8f0;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    color: var(--dark);
    background: white;
}

.qr-input:focus { border-color: var(--primary); }

.qr-select {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid #e8e8f0;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    background: white;
    color: var(--dark);
    cursor: pointer;
}

.qr-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn-generate {
    width: 100%;
    margin-top: 16px;
    justify-content: center;
    padding: 13px;
    font-size: 16px;
}

.qr-output {
    display: none;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-100);
    text-align: center;
}

.qr-output.visible { display: block; }

#qrCanvas {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

#qrCanvas canvas, #qrCanvas img {
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.qr-output-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.btn-ghost-dark {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    border: 2px solid var(--gray-100);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    transition: all 0.2s;
}
.btn-ghost-dark:hover { border-color: var(--primary); color: var(--primary); }

.qr-output-note {
    font-size: 13px;
    color: var(--gray-400);
}

/* ─── Hero Preview (Fake Dashboard) ──────────────────────────────────────── */
.hero-preview {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0,0,0,0.08);
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.preview-bar {
    background: var(--gray-100);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.red { background: #FF5F57; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #28CA41; }

.preview-url {
    margin-left: 12px;
    font-size: 12px;
    color: var(--gray-400);
    background: white;
    padding: 3px 12px;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.08);
}

.preview-body {
    display: flex;
    min-height: 220px;
}

.preview-sidebar {
    width: 160px;
    background: var(--gray-900);
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
}

.preview-nav-item {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    padding: 8px 10px;
    border-radius: 8px;
    cursor: default;
}

.preview-nav-item.active {
    background: var(--primary);
    color: white;
}

.preview-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.preview-stats {
    display: flex;
    gap: 16px;
}

.preview-stat {
    background: var(--gray-100);
    border-radius: 10px;
    padding: 14px 18px;
    flex: 1;
}

.stat-num {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 11px;
    color: var(--gray-400);
    margin-top: 2px;
}

.preview-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 80px;
}

.chart-bar {
    flex: 1;
    background: var(--primary-light);
    border-radius: 4px 4px 0 0;
    transition: height 0.3s;
}

.chart-bar.active {
    background: var(--primary);
}

/* ─── Trust ───────────────────────────────────────────────────────────────── */
.trust {
    text-align: center;
    padding: 40px 24px;
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
}

.trust-label {
    font-size: 13px;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 20px;
}

.trust-logos {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.trust-logos span {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-400);
}

/* ─── Features ────────────────────────────────────────────────────────────── */
.features {
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    text-align: left;
    margin-top: 16px;
}

.feature-card {
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.feature-card--highlight {
    background: var(--primary);
    color: white;
}

.feature-card--highlight p { color: rgba(255,255,255,0.8); }

.feature-icon {
    font-size: 32px;
    margin-bottom: 14px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
}

.feature-card--highlight h3 { color: white; }

.feature-card p {
    font-size: 15px;
    color: var(--gray-700);
    line-height: 1.6;
}

/* ─── How It Works ────────────────────────────────────────────────────────── */
.how {
    padding: 80px 24px;
    background: var(--gray-100);
    text-align: center;
}

.how .section-title, .how .section-label { margin: 0 auto 16px; display: block; }

.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 48px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.step {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    flex: 1;
    min-width: 200px;
    max-width: 240px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.step-num {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    margin: 0 auto 16px;
}

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

.step p {
    font-size: 14px;
    color: var(--gray-700);
}

.step-arrow {
    font-size: 28px;
    color: var(--primary);
    font-weight: 300;
}

/* ─── Pricing ─────────────────────────────────────────────────────────────── */
.pricing {
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    text-align: left;
    margin-top: 16px;
}

.pricing-card {
    border: 2px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 28px;
    position: relative;
    transition: border-color 0.2s, transform 0.2s;
}

.pricing-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.pricing-card--popular {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    white-space: nowrap;
}

.plan-name {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-400);
    margin-bottom: 12px;
}

.plan-price {
    margin-bottom: 24px;
}

.price-num {
    font-size: 40px;
    font-weight: 900;
    color: var(--dark);
}

.price-period {
    font-size: 15px;
    color: var(--gray-400);
}

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}

.plan-features li {
    font-size: 14px;
    color: var(--gray-700);
}

.pricing-note {
    margin-top: 40px;
    font-size: 15px;
    color: var(--gray-700);
}

.pricing-note a {
    color: var(--primary);
    font-weight: 600;
}

/* ─── FAQ ─────────────────────────────────────────────────────────────────── */
.faq {
    padding: 80px 24px;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.faq-list {
    margin-top: 40px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 18px 20px;
    text-align: left;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
}

.faq-question::after {
    content: '+';
    font-size: 22px;
    color: var(--primary);
    transition: transform 0.2s;
}

.faq-item.open .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding: 0 20px 18px;
    font-size: 15px;
    color: var(--gray-700);
    line-height: 1.7;
}

.faq-item.open .faq-answer {
    display: block;
}

/* ─── CTA ─────────────────────────────────────────────────────────────────── */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, #9B6DFF 100%);
    color: white;
    text-align: center;
    padding: 100px 24px;
    margin: 0 40px 60px;
    border-radius: 28px;
}

.cta h2 {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 900;
    margin-bottom: 16px;
}

.cta p {
    font-size: 18px;
    opacity: 0.85;
    margin-bottom: 36px;
}

.cta .btn-primary {
    background: white;
    color: var(--primary) !important;
    font-size: 17px;
    padding: 15px 36px;
}

.cta .btn-primary:hover {
    background: var(--gray-100);
}

/* ─── Footer ──────────────────────────────────────────────────────────────── */
.footer {
    background: var(--dark);
    color: white;
    padding: 60px 24px 24px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.footer-brand {
    flex: 1;
    min-width: 200px;
}

.footer-brand .logo-text {
    font-size: 22px;
    font-weight: 800;
}

.footer-brand p {
    margin-top: 8px;
    font-size: 14px;
    color: rgba(255,255,255,0.4);
}

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

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 4px;
}

.footer-col a {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    transition: color 0.2s;
}

.footer-col a:hover { color: white; }

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    font-size: 13px;
    color: rgba(255,255,255,0.3);
    text-align: center;
}

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .nav-links, .nav-actions { display: none; }
    .nav-toggle { display: block; }

    .hero { padding: 48px 20px 40px; }

    .preview-sidebar { display: none; }

    .steps { flex-direction: column; align-items: center; }
    .step-arrow { transform: rotate(90deg); }

    .cta { margin: 0 16px 40px; padding: 60px 20px; border-radius: 20px; }

    .footer-inner { flex-direction: column; gap: 32px; }
    .footer-links { gap: 32px; }
}
