/* ================================
   ScreenTime Locker Homepage Styles
   ================================ */

/* Variables */
:root {
    --stl-primary: #6366f1;
    --stl-primary-dark: #4f46e5;
    --stl-primary-light: #818cf8;
    --stl-secondary: #0ea5e9;
    --stl-accent: #10b981;
    --stl-dark: #0f172a;
    --stl-text: #334155;
    --stl-text-muted: #64748b;
    --stl-bg: #f8fafc;
    --stl-white: #ffffff;
    --stl-border: #e2e8f0;
    --stl-gradient: linear-gradient(135deg, #6366f1 0%, #0ea5e9 100%);
    --stl-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --stl-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --stl-shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --stl-radius: 8px;
    --stl-radius-lg: 16px;
    --stl-radius-xl: 24px;
}

/* Reset for homepage */
.stl-homepage {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--stl-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.stl-homepage * {
    box-sizing: border-box;
}

.stl-homepage img {
    max-width: 100%;
    height: auto;
}

/* ================================
   Hero Section
   ================================ */
.stl-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 80px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.stl-hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(14, 165, 233, 0.1) 100%);
    color: var(--stl-primary);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 24px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.stl-hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--stl-dark);
    margin: 0 0 24px 0;
}

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

.stl-hero-subtitle {
    font-size: 20px;
    color: var(--stl-text-muted);
    margin: 0 0 32px 0;
    line-height: 1.7;
}

.stl-hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

/* Buttons */
.stl-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--stl-radius-lg);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.stl-btn-primary {
    background: var(--stl-gradient);
    color: var(--stl-white);
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.4);
}

.stl-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(99, 102, 241, 0.5);
    color: var(--stl-white);
}

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

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

.stl-btn-large {
    padding: 18px 36px;
    font-size: 18px;
}

/* Hero Stats */
.stl-hero-stats {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.stl-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--stl-text-muted);
    font-size: 14px;
}

.stl-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--stl-bg);
    border-radius: 50%;
}

.stl-stat-icon svg {
    stroke: var(--stl-primary);
}

/* Hero Visual */
.stl-hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.stl-phone-mockup {
    width: 280px;
    height: 560px;
    background: linear-gradient(180deg, #1e1e2e 0%, #2d2d44 100%);
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--stl-shadow-xl);
    position: relative;
}

.stl-phone-mockup::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 24px;
    background: #000;
    border-radius: 12px;
}

.stl-phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #6366f1 0%, #4f46e5 100%);
    border-radius: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.stl-app-icon {
    width: 100px;
    height: 100px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--stl-shadow-lg);
    margin-bottom: 30px;
}

.stl-app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stl-code-preview {
    text-align: center;
}

.stl-code-dots {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 12px;
}

.stl-code-dots span {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
}

.stl-code-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin: 0;
}

/* Floating Cards */
.stl-floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--stl-white);
    padding: 12px 18px;
    border-radius: var(--stl-radius-lg);
    box-shadow: var(--stl-shadow-lg);
    font-size: 14px;
    font-weight: 500;
    color: var(--stl-text);
    animation: float 3s ease-in-out infinite;
}

.stl-card-1 {
    top: 80px;
    right: 20px;
    animation-delay: 0s;
}

.stl-card-2 {
    bottom: 100px;
    left: 20px;
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ================================
   Problem Section
   ================================ */
.stl-problem {
    background: var(--stl-dark);
    padding: 100px 40px;
}

.stl-problem-content {
    max-width: 1200px;
    margin: 0 auto;
}

.stl-problem .stl-section-title {
    color: var(--stl-white);
    text-align: center;
    font-size: 40px;
    margin-bottom: 60px;
}

.stl-problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.stl-problem-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--stl-radius-lg);
    padding: 32px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.stl-problem-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.08);
}

.stl-problem-icon {
    width: 56px;
    height: 56px;
    background: var(--stl-gradient);
    border-radius: var(--stl-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.stl-problem-icon svg {
    stroke: var(--stl-white);
}

.stl-problem-card h3 {
    color: var(--stl-white);
    font-size: 20px;
    margin: 0 0 12px 0;
}

.stl-problem-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    margin: 0;
    line-height: 1.7;
}

/* ================================
   Solution Section
   ================================ */
.stl-solution {
    padding: 100px 40px;
    background: var(--stl-bg);
}

.stl-solution-content {
    max-width: 900px;
    margin: 0 auto;
}

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

.stl-section-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(14, 165, 233, 0.1) 100%);
    color: var(--stl-primary);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.stl-section-title {
    font-size: 40px;
    font-weight: 800;
    color: var(--stl-dark);
    margin: 0 0 16px 0;
}

.stl-section-subtitle {
    font-size: 18px;
    color: var(--stl-text-muted);
    margin: 0;
}

/* Steps */
.stl-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.stl-step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    background: var(--stl-white);
    padding: 32px;
    border-radius: var(--stl-radius-lg);
    box-shadow: var(--stl-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stl-step:hover {
    transform: translateX(8px);
    box-shadow: var(--stl-shadow-lg);
}

.stl-step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--stl-gradient);
    color: var(--stl-white);
    font-size: 20px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stl-step-content h3 {
    font-size: 20px;
    color: var(--stl-dark);
    margin: 0 0 8px 0;
}

.stl-step-content p {
    font-size: 16px;
    color: var(--stl-text-muted);
    margin: 0;
    line-height: 1.7;
}

/* ================================
   Features Section
   ================================ */
.stl-features {
    padding: 100px 40px;
    background: var(--stl-white);
}

.stl-features-content {
    max-width: 1200px;
    margin: 0 auto;
}

.stl-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.stl-feature {
    padding: 32px;
    border: 1px solid var(--stl-border);
    border-radius: var(--stl-radius-lg);
    transition: all 0.2s ease;
}

.stl-feature:hover {
    border-color: var(--stl-primary);
    box-shadow: var(--stl-shadow);
}

.stl-feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(14, 165, 233, 0.1) 100%);
    border-radius: var(--stl-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.stl-feature-icon svg {
    stroke: var(--stl-primary);
}

.stl-feature h4 {
    font-size: 18px;
    color: var(--stl-dark);
    margin: 0 0 8px 0;
}

.stl-feature p {
    font-size: 15px;
    color: var(--stl-text-muted);
    margin: 0;
    line-height: 1.6;
}

/* ================================
   Use Cases Section
   ================================ */
.stl-usecases {
    padding: 100px 40px;
    background: var(--stl-bg);
}

.stl-usecases-content {
    max-width: 1200px;
    margin: 0 auto;
}

.stl-usecases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.stl-usecase {
    background: var(--stl-white);
    padding: 40px;
    border-radius: var(--stl-radius-xl);
    text-align: center;
    box-shadow: var(--stl-shadow);
    transition: transform 0.2s ease;
}

.stl-usecase:hover {
    transform: translateY(-4px);
}

.stl-usecase-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(14, 165, 233, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.stl-usecase-icon svg {
    stroke: var(--stl-primary);
}

.stl-usecase h4 {
    font-size: 20px;
    color: var(--stl-dark);
    margin: 0 0 12px 0;
}

.stl-usecase p {
    font-size: 15px;
    color: var(--stl-text-muted);
    margin: 0;
    line-height: 1.7;
}

/* ================================
   CTA Section
   ================================ */
.stl-cta {
    padding: 100px 40px;
    background: var(--stl-gradient);
    text-align: center;
}

.stl-cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.stl-cta h2 {
    font-size: 44px;
    font-weight: 800;
    color: var(--stl-white);
    margin: 0 0 16px 0;
}

.stl-cta > .stl-cta-content > p:first-of-type {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 32px 0;
}

.stl-cta .stl-btn-primary {
    background: var(--stl-white);
    color: var(--stl-primary);
    box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.2);
}

.stl-cta .stl-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(0, 0, 0, 0.3);
}

.stl-cta .stl-btn-primary svg {
    stroke: var(--stl-primary);
}

.stl-cta-note {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin: 20px 0 0 0;
}

/* ================================
   Disclaimer Section
   ================================ */
.stl-disclaimer {
    padding: 40px;
    background: var(--stl-bg);
    text-align: center;
}

.stl-disclaimer p {
    font-size: 13px;
    color: var(--stl-text-muted);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ================================
   Responsive Design
   ================================ */
@media (max-width: 1024px) {
    .stl-hero {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 60px 24px;
    }

    .stl-hero-content {
        text-align: center;
    }

    .stl-hero-cta {
        justify-content: center;
    }

    .stl-hero-stats {
        justify-content: center;
    }

    .stl-hero-visual {
        min-height: 400px;
    }

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

    .stl-problem-grid,
    .stl-features-grid,
    .stl-usecases-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

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

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

@media (max-width: 768px) {
    .stl-hero {
        padding: 40px 20px;
    }

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

    .stl-hero-subtitle {
        font-size: 17px;
    }

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

    .stl-btn {
        width: 100%;
        justify-content: center;
        max-width: 300px;
    }

    .stl-hero-stats {
        flex-direction: column;
        gap: 16px;
    }

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

    .stl-floating-card {
        display: none;
    }

    .stl-problem,
    .stl-solution,
    .stl-features,
    .stl-usecases,
    .stl-cta {
        padding: 60px 20px;
    }

    .stl-step {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .stl-cta h2 {
        font-size: 28px;
    }

    .stl-cta .stl-btn-large {
        padding: 16px 24px;
        font-size: 16px;
    }
}

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

    .stl-section-title {
        font-size: 26px;
    }

    .stl-problem-card,
    .stl-feature,
    .stl-usecase {
        padding: 24px;
    }

    .stl-step {
        padding: 24px;
    }
}
