/* QR-Entra Website Styles */

:root {
    --primary: #F5A623;
    --primary-dark: #D97706;
    --primary-deeper: #E8830E;
    --primary-light: #FFF5E6;
    --gradient-primary: linear-gradient(135deg, #F5A623 0%, #E8830E 100%);
    --text-primary: #1a1a1a;
    --text-secondary: #666;
    --text-tertiary: #999;
    --border: #E4DCCF;
    --bg-gray: #F2ECE1;
    --bg-page: #FAF6EF;
    --surface: #FFFDF9;
    --white: #ffffff;
    --black: #333;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
    --shadow-brand: 0 8px 24px rgba(245, 166, 35, 0.28);
    --qr-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Crect x='0' y='0' width='8' height='8' fill='%23F5A623'/%3E%3Crect x='16' y='0' width='8' height='8' fill='%23F5A623'/%3E%3Crect x='32' y='0' width='8' height='8' fill='%23F5A623'/%3E%3Crect x='8' y='8' width='8' height='8' fill='%23F5A623'/%3E%3Crect x='40' y='8' width='8' height='8' fill='%23F5A623'/%3E%3Crect x='0' y='16' width='8' height='8' fill='%23F5A623'/%3E%3Crect x='24' y='16' width='8' height='8' fill='%23F5A623'/%3E%3Crect x='8' y='24' width='8' height='8' fill='%23F5A623'/%3E%3Crect x='32' y='24' width='8' height='8' fill='%23F5A623'/%3E%3Crect x='40' y='24' width='8' height='8' fill='%23F5A623'/%3E%3Crect x='16' y='32' width='8' height='8' fill='%23F5A623'/%3E%3Crect x='24' y='32' width='8' height='8' fill='%23F5A623'/%3E%3Crect x='0' y='40' width='8' height='8' fill='%23F5A623'/%3E%3Crect x='32' y='40' width='8' height='8' fill='%23F5A623'/%3E%3C/svg%3E");
    --qr-pattern-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Crect x='0' y='0' width='8' height='8' fill='%23ffffff'/%3E%3Crect x='16' y='0' width='8' height='8' fill='%23ffffff'/%3E%3Crect x='32' y='0' width='8' height='8' fill='%23ffffff'/%3E%3Crect x='8' y='8' width='8' height='8' fill='%23ffffff'/%3E%3Crect x='40' y='8' width='8' height='8' fill='%23ffffff'/%3E%3Crect x='0' y='16' width='8' height='8' fill='%23ffffff'/%3E%3Crect x='24' y='16' width='8' height='8' fill='%23ffffff'/%3E%3Crect x='8' y='24' width='8' height='8' fill='%23ffffff'/%3E%3Crect x='32' y='24' width='8' height='8' fill='%23ffffff'/%3E%3Crect x='40' y='24' width='8' height='8' fill='%23ffffff'/%3E%3Crect x='16' y='32' width='8' height='8' fill='%23ffffff'/%3E%3Crect x='24' y='32' width='8' height='8' fill='%23ffffff'/%3E%3Crect x='0' y='40' width='8' height='8' fill='%23ffffff'/%3E%3Crect x='32' y='40' width='8' height='8' fill='%23ffffff'/%3E%3C/svg%3E");
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background: var(--bg-page);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-anchor: none;
}

h1, h2, h3, h4 {
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
}

/* Header */
header {
    border-bottom: 1px solid transparent;
    padding: 24px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 245, 230, 0.72);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    transition: padding 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
    padding-top: 14px;
    padding-bottom: 14px;
    background: rgba(255, 245, 230, 0.92);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.logo {
    height: 45px;
    transition: height 0.3s ease;
}

header.scrolled .logo {
    height: 36px;
}

nav {
    display: flex;
    gap: 16px;
    font-size: 15px;
    align-items: center;
}

nav a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s, background-color 0.2s;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 999px;
    position: relative;
}

.nav-actions {
    display: none;
}

nav a:hover {
    color: var(--primary-dark);
    background: rgba(245, 166, 35, 0.08);
}

nav a.active {
    color: var(--primary-dark);
    font-weight: 700;
    background: var(--primary-light);
    box-shadow: inset 0 0 0 1px rgba(245, 166, 35, 0.3);
}

nav a.active::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -8px;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 2px 6px rgba(245, 166, 35, 0.5);
}

.header-cta {
    display: flex;
    gap: 60px;
    align-items: center;
}

.header-cta .btn-primary {
    position: relative;
    animation: ctaPulse 2.6s ease-in-out infinite;
}

.header-cta .btn-primary:hover {
    animation: none;
}

@keyframes ctaPulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(245, 166, 35, 0.32), 0 0 0 0 rgba(245, 166, 35, 0.55);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 6px 18px rgba(245, 166, 35, 0.48), 0 0 0 12px rgba(245, 166, 35, 0);
        transform: scale(1.04);
    }
}

@media (prefers-reduced-motion: reduce) {
    .header-cta .btn-primary {
        animation: none;
    }
}

.btn-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1.5px solid var(--border);
    background: var(--surface);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    line-height: 1;
}

.btn-login svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.btn-login:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(245, 166, 35, 0.18);
}

.btn-login:hover svg {
    transform: translateX(2px);
}

.btn-login:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

@media (max-width: 480px) {
    .btn-login span {
        display: none;
    }
    .btn-login {
        padding: 9px 11px;
    }
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-toggle:hover {
    background: rgba(15, 23, 42, 0.04);
}

.nav-toggle:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.btn {
    padding: 10px 20px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    font-family: inherit;
}

.btn:focus-visible {
    outline: 2px solid var(--primary-dark);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(245, 166, 35, 0.32);
}

.btn-primary:hover {
    box-shadow: 0 8px 24px rgba(245, 166, 35, 0.45);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--black);
    color: var(--black);
    border-radius: 6px;
}

.btn-secondary:hover {
    background: var(--black);
    color: var(--white);
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

/* Hero */
.hero {
    padding: 100px 60px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--qr-pattern);
    background-size: 48px 48px;
    opacity: 0.06;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at center, black 10%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 10%, transparent 70%);
}

.hero > * {
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-block;
    background: var(--surface);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 32px;
    color: var(--primary-dark);
    border: 1px solid rgba(245, 166, 35, 0.3);
    box-shadow: 0 2px 8px rgba(245, 166, 35, 0.1);
}

.hero h1 {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.08;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.hero p {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 40px;
    color: var(--text-secondary);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.hero-visual {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--surface) 100%);
    border-radius: 16px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.hero-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 80px rgba(245, 166, 35, 0.1);
    pointer-events: none;
    border-radius: 16px;
}

.phone-mockup {
    width: 260px;
    height: 520px;
    border: 6px solid var(--black);
    border-radius: 36px;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.phone-qr {
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-qr img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.phone-form {
    width: 200px;
    height: 120px;
    border: 2px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border-radius: 4px;
}

.form-line {
    height: 8px;
    background: var(--bg-gray);
    border-radius: 2px;
}

/* Stats Bar */
.stats-bar {
    padding: 60px;
    background: var(--primary-light);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.stats-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--qr-pattern);
    background-size: 48px 48px;
    opacity: 0.08;
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-value {
    font-family: 'Sora', sans-serif;
    font-size: 40px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Sections */
.section {
    padding: 100px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-subtitle {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    text-align: center;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.section h2 {
    font-size: 44px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-primary);
}

.section-gray {
    background: var(--bg-gray);
}

/* Modules */
.modules-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.module-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 48px;
    background: var(--surface);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.module-card:hover {
    border-color: rgba(245, 166, 35, 0.4);
    box-shadow: 0 16px 40px rgba(245, 166, 35, 0.12);
    transform: translateY(-6px);
}

.module-card:hover::before {
    transform: scaleX(1);
}

.module-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-light);
    border: 2px solid var(--primary);
    border-radius: 12px;
    margin-bottom: 24px;
}

.module-card h3 {
    font-size: 30px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.module-card p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.feature-list-title {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.feature-item {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.feature-item::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.module-card .btn {
    width: 100%;
    margin-top: 24px;
}

/* Benefits */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.benefit-item {
    text-align: center;
    padding: 32px 24px;
    border-radius: 16px;
    transition: all 0.3s ease;
    background: transparent;
}

.benefit-item:hover {
    background: var(--surface);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.benefit-icon {
    width: 72px;
    height: 72px;
    background: var(--surface);
    border: 2px solid var(--primary);
    border-radius: 50%;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.benefit-item:hover .benefit-icon {
    box-shadow: 0 0 0 8px rgba(245, 166, 35, 0.08), 0 8px 20px rgba(245, 166, 35, 0.2);
}

/* Enriched benefit icon variant (gradient + SVG) */
.benefits-grid--enriched {
    gap: 32px;
}

.benefits-grid--four {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1023px) and (min-width: 769px) {
    .benefits-grid--four {
        grid-template-columns: repeat(2, 1fr);
    }
}

.benefit-icon--gradient {
    width: 84px;
    height: 84px;
    border-radius: 24px;
    background: var(--gradient-primary);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: var(--shadow-brand);
    position: relative;
    overflow: hidden;
}

.benefit-icon--gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--qr-pattern-white);
    background-size: 24px 24px;
    opacity: 0.15;
    pointer-events: none;
}

.benefit-icon--gradient::after {
    content: '';
    position: absolute;
    inset: -50% -50% auto auto;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.35), transparent 60%);
    pointer-events: none;
}

.benefit-icon--gradient svg {
    width: 38px;
    height: 38px;
    stroke-width: 2;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.benefit-item:hover .benefit-icon--gradient {
    transform: rotate(-6deg) scale(1.08);
    box-shadow: 0 16px 40px rgba(245, 166, 35, 0.5);
}

.benefit-item:hover .benefit-icon--gradient svg {
    transform: rotate(6deg) scale(1.05);
}

.benefits-grid--enriched .benefit-item {
    border: 1px solid transparent;
}

.benefits-grid--enriched .benefit-item:hover {
    border-color: rgba(245, 166, 35, 0.15);
}

.benefit-item h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.benefit-item p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

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

.step-number {
    width: 88px;
    height: 88px;
    background: var(--surface);
    border: 3px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Sora', sans-serif;
    font-size: 32px;
    font-weight: 700;
    margin: 0 auto 24px;
    color: var(--primary);
    box-shadow: 0 8px 24px rgba(245, 166, 35, 0.15);
    transition: all 0.3s ease;
}

.step-item:hover .step-number {
    background: var(--gradient-primary);
    color: var(--white);
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(245, 166, 35, 0.35);
}

.step-item h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

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

/* Flows (How it works dual track) */
.flows-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1120px;
    margin: 0 auto;
}

.flow-block {
    position: relative;
    background: var(--surface);
    border-radius: 24px;
    padding: 48px 40px 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flow-block:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.flow-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
}

.flow-block::after {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    background: var(--qr-pattern);
    background-size: 32px 32px;
    opacity: 0.05;
    transform: rotate(8deg);
    pointer-events: none;
}

.flow-block--alt::before {
    background: linear-gradient(135deg, #E8830E 0%, #F5A623 100%);
}

.flow-header {
    text-align: center;
    margin-bottom: 40px;
}

.flow-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 8px 20px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Sora', sans-serif;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.flow-tagline {
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

.flow-steps {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 16px;
    align-items: start;
}

.flow-step {
    text-align: center;
    padding: 8px 4px;
    transition: transform 0.3s ease;
}

.flow-step:hover {
    transform: translateY(-6px);
}

.flow-step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 18px;
    border-radius: 22px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: var(--shadow-brand);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.flow-step-icon::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 26px;
    border: 2px dashed var(--primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.flow-step:hover .flow-step-icon {
    transform: scale(1.06) rotate(-3deg);
    box-shadow: 0 14px 40px rgba(245, 166, 35, 0.45);
}

.flow-step:hover .flow-step-icon::after {
    opacity: 0.4;
}

.flow-step-icon svg {
    width: 34px;
    height: 34px;
}

.flow-step-number {
    display: inline-block;
    background: var(--surface);
    border: 2px solid var(--primary);
    color: var(--primary-dark);
    border-radius: 999px;
    padding: 3px 12px;
    font-size: 12px;
    font-weight: 700;
    font-family: 'Sora', sans-serif;
    margin-bottom: 12px;
    letter-spacing: 0.08em;
}

.flow-step h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.flow-step p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 240px;
    margin: 0 auto;
}

.flow-arrow {
    align-self: center;
    margin-top: 28px;
    color: var(--primary);
    opacity: 0.55;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flow-arrow svg {
    width: 36px;
    height: 36px;
}

@media (max-width: 768px) {
    .flow-block {
        padding: 36px 20px 28px;
    }

    .flow-block::after {
        display: none;
    }

    .flow-header {
        margin-bottom: 28px;
    }

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

    .flow-arrow {
        margin: 4px auto;
        transform: rotate(90deg);
    }

    .flow-arrow svg {
        width: 28px;
        height: 28px;
    }

    .flow-step p {
        max-width: none;
    }
}

/* CTA */
.cta-section {
    padding: 80px 60px;
    background: var(--gradient-primary);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--qr-pattern-white);
    background-size: 48px 48px;
    opacity: 0.1;
    pointer-events: none;
}

.cta-section > * {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--white);
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 32px;
    color: var(--white);
    opacity: 0.95;
}

.cta-section .btn {
    background: var(--surface);
    color: var(--primary-dark);
    font-weight: 600;
    padding: 18px 48px;
    font-size: 18px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.cta-section .btn:hover {
    background: var(--bg-gray);
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    padding: 60px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-content {
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-bottom: 16px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* Animations */
.animate-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .animate-in { opacity: 1; transform: none; transition: none; }
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Responsive */
@media (max-width: 768px) {
    header {
        padding: 16px 20px;
        flex-wrap: wrap;
        position: relative;
    }

    .header-cta {
        gap: 8px;
    }

    .header-cta .btn-secondary,
    .header-cta .btn-login {
        display: none;
    }

    header.scrolled {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .logo {
        height: 35px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    nav {
        display: none;
        order: 99;
        flex-basis: 100%;
        flex-direction: column;
        gap: 4px;
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid rgba(15, 23, 42, 0.08);
    }

    nav > a {
        padding: 12px 4px;
        font-size: 16px;
        border-radius: 6px;
    }

    nav > a.active {
        background: rgba(15, 23, 42, 0.04);
    }

    header.nav-open nav {
        display: flex;
    }

    .nav-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 12px;
        padding-top: 16px;
        border-top: 1px solid rgba(15, 23, 42, 0.08);
    }

    .nav-actions .btn {
        width: 100%;
        text-align: center;
        padding: 12px 16px;
        font-size: 15px;
    }

    header.nav-open .nav-toggle-bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    header.nav-open .nav-toggle-bar:nth-child(2) {
        opacity: 0;
    }

    header.nav-open .nav-toggle-bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero {
        padding: 60px 20px;
    }

    .hero h1 {
        font-size: 40px;
    }

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

    .hero-cta {
        flex-direction: column;
    }

    .hero-visual {
        max-width: 100%;
    }

    .phone-mockup {
        width: 200px;
        height: 400px;
    }

    .phone-qr {
        width: 140px;
        height: 140px;
    }

    .stats-bar {
        padding: 40px 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .stat-value {
        font-size: 32px;
    }

    .section {
        padding: 60px 20px;
    }

    .section h2 {
        font-size: 32px;
    }

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

    .module-card {
        padding: 32px;
    }

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

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

    .cta-section {
        padding: 60px 20px;
    }

    .cta-section h2 {
        font-size: 32px;
    }

    footer {
        padding: 40px 20px;
    }

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

/* ===== Zoomable screenshots + Lightbox ===== */
.zoomable {
    cursor: zoom-in;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.zoomable:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: rgba(15, 15, 20, 0.88);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0s linear 0.22s;
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.22s ease, visibility 0s linear 0s;
}

.lightbox-img {
    max-width: min(96vw, 1500px);
    max-height: 92vh;
    width: auto;
    height: auto;
    border-radius: 10px;
    background: var(--surface);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
    transform: scale(0.97);
    transition: transform 0.22s ease;
}

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

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 46px;
    height: 46px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
    background: rgba(255, 255, 255, 0.28);
    outline: none;
}

@media (max-width: 768px) {
    .lightbox {
        padding: 16px;
    }

    .lightbox-close {
        top: 12px;
        right: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .zoomable,
    .lightbox,
    .lightbox-img {
        transition: none;
    }

    .zoomable:hover {
        transform: none;
    }

    .lightbox.is-open .lightbox-img {
        transform: none;
    }
}
