/* Landing Page Styles */
/* Uses design tokens from styles.css */

/* Landing Navigation */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: color-mix(in srgb, var(--bg-elevated) 85%, transparent);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

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

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 32px 80px;
    background: linear-gradient(
        135deg,
        var(--bg-base) 0%,
        color-mix(in srgb, var(--accent) 8%, var(--bg-base)) 50%,
        color-mix(in srgb, var(--accent) 4%, var(--bg-base)) 100%
    );
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(
        ellipse at center,
        color-mix(in srgb, var(--accent) 6%, transparent) 0%,
        transparent 70%
    );
    pointer-events: none;
}

.hero-content {
    max-width: 600px;
    text-align: left;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--accent-subtle);
    color: var(--accent);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
    border-radius: 8px;
}

/* Hero Visual */
.hero-visual {
    flex: 1;
    max-width: 500px;
    margin-left: 80px;
    position: relative;
    z-index: 1;
}

.hero-graphic {
    position: relative;
    width: 400px;
    height: 300px;
}

.hero-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 8px 32px color-mix(in srgb, var(--accent) 40%, transparent),
        0 0 0 8px color-mix(in srgb, var(--accent) 15%, transparent);
    z-index: 2;
}

.hub-logo {
    width: 52px;
    height: 52px;
}

.hero-device {
    position: absolute;
    width: 56px;
    height: 56px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    z-index: 2;
}

.hero-device-1 {
    top: 20px;
    left: 40px;
}

.hero-device-2 {
    top: 40px;
    right: 40px;
}

.hero-device-3 {
    bottom: 20px;
    left: 80px;
}

.device-icon {
    font-size: 24px;
}

.device-pulse {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 12px;
    height: 12px;
    background: var(--success);
    border-radius: 50%;
    border: 2px solid var(--bg-card);
}

.device-pulse::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

.hero-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.connection-line {
    stroke: var(--border-default);
    stroke-width: 2;
    stroke-dasharray: 8 4;
    animation: dash 20s linear infinite;
}

@keyframes dash {
    to {
        stroke-dashoffset: -100;
    }
}

/* Section Styles */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

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

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

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

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

.feature-card {
    padding: 32px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.feature-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

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

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

/* Technology Section */
.technology {
    padding: 80px 0;
    background: var(--bg-base);
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 140px;
}

.tech-badge {
    padding: 12px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    font-family: 'Consolas', 'Monaco', monospace;
    transition: var(--theme-transition);
}

.tech-item:hover .tech-badge {
    border-color: var(--accent);
    background: var(--accent-subtle);
}

.tech-label {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

/* Stats Section */
.stats {
    padding: 80px 0;
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--accent) 10%, var(--bg-base)) 0%,
        color-mix(in srgb, var(--accent) 5%, var(--bg-base)) 100%
    );
}

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

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

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
}

.stats .stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: var(--bg-elevated);
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

/* Footer */
.landing-footer {
    background: var(--bg-base);
    border-top: 1px solid var(--border-subtle);
    padding: 32px 0;
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-brand .nav-logo {
    width: 28px;
    height: 28px;
    font-size: 10px;
}

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

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

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

.footer-copyright {
    font-size: 13px;
    color: var(--text-muted);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 140px 24px 80px;
    }

    .hero-content {
        text-align: center;
        max-width: 100%;
    }

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

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        margin-left: 0;
        margin-top: 60px;
    }

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

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

@media (max-width: 768px) {
    .landing-nav-container {
        padding: 12px 16px;
    }

    .landing-nav .theme-switcher {
        display: none;
    }

    .hero {
        padding: 100px 16px 60px;
        min-height: auto;
    }

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

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

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

    .hero-actions .btn {
        width: 100%;
    }

    .hero-visual {
        display: none;
    }

    .section-container {
        padding: 0 16px;
    }

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

    .features,
    .technology,
    .stats,
    .cta {
        padding: 60px 0;
    }

    .feature-card {
        padding: 24px;
    }

    .tech-grid {
        gap: 16px;
    }

    .tech-item {
        min-width: 100px;
    }

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

    .stat-number {
        font-size: 36px;
    }

    .footer-container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-links {
        order: -1;
    }
}

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

    .tech-badge {
        padding: 10px 16px;
        font-size: 12px;
    }

    .stat-number {
        font-size: 28px;
    }

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