/* Landing Page Hero Styles */

.hero {
    padding: 8rem 2rem 6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: var(--max-width);
    margin: 0 auto;
    gap: 5rem;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-light); /* Adaptive background */
    color: var(--accent); /* Adaptive accent text */
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    margin-bottom: 2.5rem;
    letter-spacing: 0.02em;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--accent); /* Adaptive accent dot */
    border-radius: 50%;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 5rem);
    line-height: 1.05;
    color: var(--ink); /* Adaptive dark/light text */
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.teal-text {
    color: var(--accent); /* Adaptive accent text */
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--ink-soft); /* Adaptive ink-soft color */
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 640px;
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
}

.btn-hero-primary {
    background: var(--ink); /* Adaptive ink button */
    color: var(--paper); /* Adaptive paper button text */
    padding: 1rem 2.25rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-hero-primary:hover {
    background: var(--accent); /* Adapt to theme accent */
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-hero-secondary {
    background: transparent;
    color: var(--ink); /* Adaptive ink text */
    padding: 1rem 2.25rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.05rem;
    border: 2px solid var(--border); /* Adaptive border */
    transition: all 0.2s ease;
}

.btn-hero-secondary:hover {
    border-color: var(--ink);
    transform: translateY(-2px);
}

/* Modal Styles */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #0d9488;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* App Preview Frame */

.hero-preview {
    width: 100%;
    max-width: 960px;
    padding: 0 1rem;
}

.preview-frame {
    background: var(--paper); /* Adaptive background */
    border: 1px solid var(--border); /* Adaptive border */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.frame-header {
    height: 44px;
    background: var(--paper-card); /* Adaptive paper-card */
    display: flex;
    align-items: center;
    padding: 0 1.25rem;
    border-bottom: 1px solid var(--border-soft); /* Adaptive border-soft */
}

.traffic-lights {
    display: flex;
    gap: 8px;
}

.traffic-lights span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.traffic-lights span:nth-child(1) { background: #ff5f57; }
.traffic-lights span:nth-child(2) { background: #febc2e; }
.traffic-lights span:nth-child(3) { background: #28c840; }

.frame-content {
    padding: 3rem;
}

.preview-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--paper-card); /* Adaptive paper-card */
    padding: 1.75rem;
    border-radius: 16px;
    border: 1px solid var(--border-soft); /* Adaptive border-soft */
    text-align: left;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ink-muted); /* Adaptive ink-muted color */
    margin-bottom: 0.75rem;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--ink); /* Adaptive ink color */
    font-weight: 700;
}

.preview-chart {
    background: var(--paper-card); /* Adaptive paper-card */
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-soft); /* Adaptive border-soft */
    text-align: left;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.chart-header {
    margin-bottom: 2rem;
}

.chart-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--ink); /* Adaptive ink color */
}

.chart-bars {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.chart-row {
    display: grid;
    grid-template-columns: 100px 1fr 80px;
    align-items: center;
    gap: 1.5rem;
}

.bar-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink-soft); /* Adaptive ink-soft color */
}

.bar-track {
    height: 10px;
    background: var(--border-soft); /* Adaptive border-soft */
    border-radius: 999px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--accent); /* Adaptive accent fill */
    border-radius: 999px;
}

.bar-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink); /* Adaptive ink color */
    text-align: right;
}

@media (max-width: 1024px) {
    .preview-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .preview-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .frame-content {
        padding: 1.5rem;
    }
    
    .hero {
        padding: 4rem 1rem;
        gap: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    
    .btn-hero-primary, .btn-hero-secondary {
        width: 100%;
    }
    
    .chart-row {
        grid-template-columns: 80px 1fr 60px;
        gap: 1rem;
    }
}
