/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #007AFF;
    --primary-dark: #0056CC;
    --secondary-color: #5AC8FA;
    --accent-color: #34C759;
    --warning-color: #FF9500;
    --error-color: #FF3B30;
    --text-primary: #1D1D1F;
    --text-secondary: #6E6E73;
    --text-tertiary: #8E8E93;
    --background: #FFFFFF;
    --background-secondary: #F2F2F7;
    --background-tertiary: #FFFFFF;
    --border-color: #D1D1D6;
    --shadow-light: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-heavy: 0 16px 64px rgba(0, 0, 0, 0.16);
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.02em;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--border-radius-md);
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: var(--background-tertiary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

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

.cta-button {
    background: var(--gradient-primary);
    color: white !important;
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cta-button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-light);
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 32px;
    height: 32px;
}

.logo-text {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.2s ease;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #FAFBFF 0%, #F0F4FF 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%23007AFF" stop-opacity="0.05"/><stop offset="100%" stop-color="%23007AFF" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="200" fill="url(%23a)"/><circle cx="800" cy="800" r="300" fill="url(%23a)"/></svg>') no-repeat center center;
    background-size: cover;
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.hero-description {
    font-size: 20px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-top: 4px;
}

/* Phone Mockup */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background: linear-gradient(145deg, #2C2C2E 0%, #1C1C1E 100%);
    border-radius: 40px;
    padding: 8px;
    box-shadow: var(--shadow-heavy);
    position: relative;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #000000 0%, #1C1C1E 100%);
    border-radius: 32px;
    overflow: hidden;
    position: relative;
}

.app-interface {
    position: absolute;
    top: 60px;
    left: 20px;
    right: 20px;
    bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.qr-scanner {
    width: 200px;
    height: 200px;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius-md);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.scanner-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius-sm);
}

.scan-corners::before,
.scan-corners::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid var(--accent-color);
}

.scan-corners::before {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.scan-corners::after {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

.scan-text {
    color: white;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
}

/* Features Section */
.features {
    padding: 120px 0;
    background: var(--background);
}

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

.section-title {
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.section-description {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--background-tertiary);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: white;
}

.feature-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.feature-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* How It Works Section */
.how-it-works {
    padding: 120px 0;
    background: var(--background-secondary);
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.step {
    display: grid;
    grid-template-columns: 80px 1fr 400px;
    gap: 40px;
    align-items: center;
}

.step:nth-child(even) {
    grid-template-columns: 80px 400px 1fr;
}

.step:nth-child(even) .step-content {
    order: 3;
}

.step:nth-child(even) .step-visual {
    order: 2;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: white;
    box-shadow: var(--shadow-light);
}

.step-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

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

.step-visual {
    display: flex;
    justify-content: center;
}

.visual-card {
    background: var(--background-tertiary);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 400px;
}

/* Form Demo Styles */
.form-field {
    margin-bottom: 20px;
}

.field-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.field-input {
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 12px 16px;
    font-size: 16px;
    color: var(--text-primary);
}

/* QR Demo Styles */
.qr-demo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}

.qr-code {
    width: 120px;
    height: 120px;
    background: repeating-linear-gradient(
        0deg,
        var(--text-primary) 0px,
        var(--text-primary) 4px,
        transparent 4px,
        transparent 8px
    ),
    repeating-linear-gradient(
        90deg,
        var(--text-primary) 0px,
        var(--text-primary) 4px,
        transparent 4px,
        transparent 8px
    );
    border-radius: var(--border-radius-sm);
    margin-bottom: 16px;
    position: relative;
}

.scan-animation {
    width: 140px;
    height: 2px;
    background: var(--accent-color);
    position: relative;
    animation: scan 2s infinite;
}

@keyframes scan {
    0%, 100% { transform: translateY(-60px); opacity: 0; }
    50% { transform: translateY(60px); opacity: 1; }
}

.check-in-status {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.status-item {
    padding: 12px;
    background: var(--background-secondary);
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    color: var(--text-secondary);
}

.status-item.checked {
    background: rgba(52, 199, 89, 0.1);
    color: var(--accent-color);
    font-weight: 500;
}

/* Analytics Demo Styles */
.analytics-demo {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    background: var(--background-secondary);
    border-radius: var(--border-radius-sm);
}

.metric-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.metric-label {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 4px;
    text-align: center;
}

/* Download Section */
.download {
    padding: 120px 0;
    background: var(--background-tertiary);
    position: relative;
    overflow: hidden;
}

.download::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0.02;
}

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

.download-title {
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.download-description {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 48px;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    background: var(--text-primary);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius-md);
    transition: all 0.2s ease;
    min-width: 200px;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-icon {
    font-size: 32px;
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.btn-subtitle {
    font-size: 12px;
    opacity: 0.8;
}

.btn-title {
    font-size: 18px;
    font-weight: 600;
}

.download-info {
    display: flex;
    justify-content: center;
    gap: 32px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 16px;
}

.info-icon {
    color: var(--accent-color);
    font-weight: 600;
}

/* Footer */
.footer {
    padding: 60px 0 40px;
    background: var(--text-primary);
    color: white;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo .logo-text {
    color: white;
}

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

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-description {
        font-size: 18px;
    }

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

    .hero-stats {
        justify-content: center;
        gap: 24px;
    }

    .phone-mockup {
        width: 240px;
        height: 480px;
    }

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

    .section-description {
        font-size: 18px;
    }

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

    .feature-card {
        padding: 24px;
    }

    .steps {
        gap: 60px;
    }

    .step {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }

    .step:nth-child(even) {
        grid-template-columns: 1fr;
    }

    .step:nth-child(even) .step-content {
        order: 2;
    }

    .step:nth-child(even) .step-visual {
        order: 3;
    }

    .step-number {
        justify-self: center;
    }

    .download-title {
        font-size: 32px;
    }

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

    .download-info {
        flex-direction: column;
        gap: 16px;
    }

    .footer-content {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }

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

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

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

    .step-title {
        font-size: 24px;
    }

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

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.btn:focus,
.nav-link:focus,
.download-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Animation utilities */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --text-secondary: #000000;
    }
}

/* Privacy Policy Styles */
.privacy-policy-page {
    padding: 120px 0 60px;
    background: var(--background);
    min-height: 100vh;
}

.privacy-header {
    text-align: center;
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.privacy-title {
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.privacy-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.update-date {
    font-weight: 500;
    color: var(--primary-color);
}

.privacy-intro {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

.privacy-content {
    max-width: 800px;
    margin: 0 auto;
}

.privacy-section {
    margin-bottom: 48px;
    background: var(--background-tertiary);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.privacy-section h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
}

.privacy-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 24px 0 12px 0;
}

.privacy-section p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.privacy-section ul {
    margin: 16px 0;
    padding-left: 0;
}

.privacy-section li {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
}

.privacy-section li::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

.privacy-section strong {
    color: var(--text-primary);
    font-weight: 600;
}

.contact-info {
    background: var(--background-secondary);
    border-radius: var(--border-radius-md);
    padding: 24px;
    margin-top: 20px;
}

.contact-method {
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.6;
}

.contact-method:last-child {
    margin-bottom: 0;
}

.contact-method strong {
    color: var(--text-primary);
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.contact-method a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-method a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.contact-method address {
    font-style: normal;
    color: var(--text-secondary);
    line-height: 1.5;
}

.privacy-footer {
    text-align: center;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.back-link {
    margin-bottom: 24px;
}

.policy-summary {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Privacy Policy Responsive Design */
@media (max-width: 768px) {
    .privacy-policy-page {
        padding: 100px 0 40px;
    }

    .privacy-title {
        font-size: 32px;
    }

    .privacy-intro {
        font-size: 16px;
    }

    .privacy-section {
        padding: 24px 20px;
        margin-bottom: 32px;
    }

    .privacy-section h2 {
        font-size: 24px;
    }

    .privacy-section h3 {
        font-size: 18px;
    }

    .contact-info {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .privacy-title {
        font-size: 28px;
    }

    .privacy-section {
        padding: 20px 16px;
    }

    .privacy-section h2 {
        font-size: 22px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
