/* ═══════════════════════════════════════════════════════════════════════════
   HOME PAGE STYLES
   Styles specific to the Homepage
   ═══════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════════════════ */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
}

.hero-content {
    max-width: 900px;
}

.hero-terminal {
    font-family: var(--font-mono);
    font-size: clamp(0.5rem, 1.2vw, 0.85rem);
    color: var(--accent-cyan);
    margin-bottom: 2rem;
    line-height: 1.4;
    opacity: 0.9;
    white-space: pre;
    overflow: hidden;
}

.hero-tagline {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-green);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 136, 0.08);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: var(--radius-sm);
}

.tagline-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

#hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

#hero h1 .line-1 {
    display: block;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#hero h1 .line-2 {
    display: block;
    color: var(--accent-cyan);
    -webkit-text-fill-color: var(--accent-cyan);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-decoration {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    height: 400px;
    pointer-events: none;
    opacity: 0.6;
}

.hero-decoration::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    animation: rotate 30s linear infinite;
}

.hero-decoration::after {
    content: '';
    position: absolute;
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    border: 1px dashed var(--accent-cyan);
    border-radius: 50%;
    opacity: 0.3;
    animation: rotate 20s linear infinite reverse;
}

/* ═══════════════════════════════════════════════════════════════════════════
   STATS BAR
   ═══════════════════════════════════════════════════════════════════════════ */
.stats-bar {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 2rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 40px;
    width: 1px;
    background: var(--border-color);
}

.stat-value {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-cyan);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PROBLEM / SOLUTION SECTION
   ═══════════════════════════════════════════════════════════════════════════ */
#problem {
    background: var(--bg-primary);
}

.problem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.problem-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.problem-list {
    list-style: none;
}

.problem-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.problem-list .icon {
    font-size: 1.1rem;
    margin-top: 0.2rem;
}

.problem-list .icon.negative {
    color: var(--accent-red);
}

.problem-list .icon.positive {
    color: var(--accent-green);
}

/* ═══════════════════════════════════════════════════════════════════════════
   PROCESS SECTION
   ═══════════════════════════════════════════════════════════════════════════ */
#process {
    background: var(--bg-primary);
}

.process-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 2rem 0;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--border-color);
    transform: translateY(-50%);
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.process-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    font-size: 1.5rem;
    transition: all var(--transition-medium);
}

.process-step:hover .process-icon {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 30px var(--accent-cyan-glow);
}

.process-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.process-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 180px;
    margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PHASES/SERVICES SECTION
   ═══════════════════════════════════════════════════════════════════════════ */
#phases {
    background: var(--bg-secondary);
}

/* Service Tiers */
.tiers-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.tier-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-medium);
}

.tier-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--tier-color);
}

.tier-card:hover {
    transform: translateY(-8px);
    border-color: var(--tier-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.tier-card.assess { --tier-color: var(--accent-cyan); }
.tier-card.build { --tier-color: var(--accent-green); }
.tier-card.operate { --tier-color: var(--accent-orange); }
.tier-card.validate { --tier-color: var(--accent-purple); }

.tier-number {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--tier-color);
    opacity: 0.6;
    margin-bottom: 1rem;
}

.tier-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--tier-color);
}

.tier-name {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 600;
    color: var(--tier-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.tier-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.tier-services {
    list-style: none;
    text-align: left;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.tier-services li {
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tier-services li::before {
    content: '›';
    color: var(--tier-color);
    font-weight: bold;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PLATFORMS SECTION
   ═══════════════════════════════════════════════════════════════════════════ */
#platforms {
    background: var(--bg-secondary);
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
}

.platform-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem 1rem;
    text-align: center;
    transition: all var(--transition-medium);
}

.platform-card:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-4px);
}

.platform-logo {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.platform-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.platform-type {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ABOUT SECTION ON HOME
   ═══════════════════════════════════════════════════════════════════════════ */
#about {
    background: var(--bg-secondary);
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN - HOME PAGE
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
    .hero-decoration {
        display: none;
    }

    .platforms-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

@media (max-width: 768px) {
    .hero-terminal {
        display: none;
    }

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

    .stat-item:not(:last-child)::after {
        display: none;
    }

    .stat-value {
        font-size: 2rem;
    }

    .problem-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .process-timeline {
        flex-direction: column;
        gap: 2rem;
        padding: 0;
    }

    .process-timeline::before {
        display: none;
    }

    .process-step {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 1.5rem;
    }

    .process-icon {
        width: 60px;
        height: 60px;
        min-width: 60px;
        margin: 0;
        font-size: 1.25rem;
    }

    .process-title {
        font-size: 1rem;
    }

    .process-desc {
        max-width: none;
        margin: 0;
    }

    .tiers-container {
        grid-template-columns: 1fr;
    }

    .platforms-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

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

    .process-step {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .process-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
        font-size: 1rem;
    }

    .process-title {
        font-size: 0.95rem;
    }

    .process-desc {
        font-size: 0.8rem;
    }
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    .hero-decoration::before,
    .hero-decoration::after {
        animation: none;
    }
}
