/* =============================================================================
   CTI PLATFORM — LANDING PAGE STYLES
   assets/css/landing.css
   ============================================================================= */

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
    position: relative;
    overflow: hidden;
}

/* Radial glow in hero background */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(0, 200, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(232, 23, 58, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 4rem;
    }
}

.hero-tag {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
}

.hero-sub {
    font-size: 1rem;
    color: var(--muted-fg);
    max-width: 540px;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.hero-terminal {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(10, 10, 15, 0.8);
    border: 1px solid var(--border);
    clip-path: var(--chamfer-sm);
    max-width: 420px;
}

.hero-typewriter {
    font-family: var(--font-body);
    font-size: 0.9rem;
}

/* Hero HUD Panel */
.hero-hud {
    display: none;
}

@media (min-width: 1024px) {
    .hero-hud {
        display: block;
    }
}

.hud-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.hud-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.hud-stat {
    text-align: center;
}

.hud-bar {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.progress-track {
    width: 100%;
    height: 6px;
    background: var(--muted);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--destructive));
    box-shadow: 0 0 8px rgba(0, 200, 255, 0.4);
    transition: width 1s ease;
}

/* ── Section Headers ───────────────────────────────────────────────────────── */
.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--muted-fg);
    max-width: 600px;
    margin: 0 auto;
}

/* ── Feature Cards ─────────────────────────────────────────────────────────── */
.feature-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    margin-bottom: 1rem;
    color: var(--accent);
    clip-path: var(--chamfer-sm);
    transition: all 200ms ease;
}

.card:hover .feature-icon {
    border-color: currentColor;
    filter: drop-shadow(0 0 6px currentColor);
}

.card h3 {
    margin-bottom: 0.75rem;
}

.card p {
    color: var(--muted-fg);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* ── API Integration Cards ─────────────────────────────────────────────────── */
.api-card-body {
    position: relative;
    z-index: 1;
}

.api-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid currentColor;
    clip-path: var(--chamfer-sm);
    flex-shrink: 0;
}

.api-meta {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

/* ── How It Works Steps ────────────────────────────────────────────────────── */
.steps {
    max-width: 700px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
    min-width: 4rem;
    text-align: center;
    text-shadow: 0 0 10px currentColor;
}

.step-content h3 {
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--muted-fg);
    font-size: 0.85rem;
    line-height: 1.6;
}

.step-connector {
    width: 2px;
    height: 2.5rem;
    background: linear-gradient(to bottom, var(--accent), transparent);
    margin-left: 2rem;
}

/* ── Stats Bar ─────────────────────────────────────────────────────────────── */
.stats-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 2.5rem;
    background: var(--card);
    border: 1px solid var(--border);
    clip-path: var(--chamfer);
    text-align: center;
}

.stat-divider {
    display: none;
}

@media (min-width: 768px) {
    .stats-bar {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }

    .stat-divider {
        display: block;
        width: 1px;
        height: 3rem;
        background: var(--border);
    }
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ── Login Section ─────────────────────────────────────────────────────────── */
.login-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .login-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.login-info h2 {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.login-info > p {
    color: var(--muted-fg);
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.login-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.login-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
}

/* Login Card */
.login-card {
    padding: 2rem;
}

.login-card-header {
    margin-bottom: 1.5rem;
}

.login-card-header h3 {
    margin-top: 0.25rem;
}

.login-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.login-cred {
    font-family: var(--font-body);
    font-size: 0.7rem;
    color: var(--muted-fg);
    background: var(--bg);
    padding: 0.2rem 0.5rem;
    border: 1px solid var(--border);
}

/* ── Footer ────────────────────────────────────────────────────────────────── */
.footer {
    background: var(--card);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 3rem;
    }
}

.footer-brand p {
    color: var(--muted-fg);
    font-size: 0.8rem;
    max-width: 280px;
}

.footer-heading {
    font-family: var(--font-accent);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--fg);
    margin-bottom: 1rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-col a {
    color: var(--muted-fg);
    font-size: 0.8rem;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ── Mobile Menu ───────────────────────────────────────────────────────────── */
.mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--card);
    border-top: 1px solid var(--border);
}

.mobile-menu a {
    font-family: var(--font-accent);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-fg);
    padding: 0.5rem 0;
}

.mobile-menu a:hover {
    color: var(--accent);
}

.mobile-menu-theme {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-top: 1px solid var(--border);
    margin-top: 0.25rem;
}

.mobile-menu-theme .label {
    color: var(--muted-fg);
}

@media (min-width: 1024px) {
    .mobile-menu {
        display: none !important;
    }
}
