/**
 * vmount Website - Retro CRT Terminal Aesthetic
 * Bold, memorable design with phosphor glow and scanline effects
 */

/* ===== CSS Variables ===== */
:root {
    /* Colors - CRT phosphor palette */
    --bg-primary: #050808;
    --bg-secondary: #0a0f10;
    --bg-tertiary: #0f1516;
    --bg-card: #121a1c;
    --bg-elevated: #182022;

    /* Text */
    --text-primary: #e8f4f0;
    --text-secondary: #7a9490;
    --text-muted: #4a6460;

    /* Accents - phosphor green terminal */
    --accent-green: #00ff88;
    --accent-green-dim: rgba(0, 255, 136, 0.12);
    --accent-green-glow: rgba(0, 255, 136, 0.6);
    --accent-cyan: #00ffff;
    --accent-orange: #ffaa00;
    --accent-red: #ff4466;
    --accent-yellow: #ffdd44;
    --accent-purple: #aa77ff;
    --accent-purple-dim: rgba(170, 119, 255, 0.12);
    --accent-purple-glow: rgba(170, 119, 255, 0.6);

    /* Borders */
    --border-default: #1a2a28;
    --border-muted: #142220;

    /* Typography */
    --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;

    /* Layout */
    --nav-height: 56px;
    --container-max: 1200px;
    --border-radius: 6px;
    --border-radius-lg: 10px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* Subtle grid pattern */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(0, 255, 136, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
}

/* Scanline overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.12) 2px,
        rgba(0, 0, 0, 0.12) 4px
    );
    pointer-events: none;
    z-index: 9999;
    opacity: 0.35;
    animation: flicker 8s infinite;
}

@keyframes flicker {
    0%, 97%, 100% { opacity: 0.35; }
    97.5% { opacity: 0.32; }
    98% { opacity: 0.38; }
    98.5% { opacity: 0.33; }
}

/* CRT Vignette effect */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, transparent 60%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
    z-index: 0;
}

.hero > * {
    position: relative;
    z-index: 1;
}

a {
    color: inherit;
    text-decoration: none;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

/* ===== Container ===== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 10px 20px;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: all 0.2s;
}

.btn-primary {
    background: var(--accent-green);
    color: var(--bg-primary);
    padding: 14px 28px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    background: #00ff99;
    transform: translateY(-2px);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(0, 255, 136, 0.4),
        0 0 60px rgba(0, 255, 136, 0.2);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary svg {
    flex-shrink: 0;
}

.btn-large {
    padding: 12px 24px;
    font-size: 0.9375rem;
}

/* ===== Hero Section ===== */
.hero {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: var(--space-lg);
    animation: fadeInUp 0.8s ease-out;
}

.hero-logo-icon {
    border-radius: 22px;
}

.hero-logo-text {
    font-family: var(--font-mono);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent-green);
    letter-spacing: -0.03em;
    line-height: 1;
    text-shadow:
        0 0 10px rgba(0, 255, 136, 0.5),
        0 0 30px rgba(0, 255, 136, 0.3),
        0 0 60px rgba(0, 255, 136, 0.15);
    animation: textGlow 3s ease-in-out infinite alternate;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: transparent;
    border: 1px solid var(--border-default);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
    font-family: var(--font-mono);
    color: var(--text-muted);
    letter-spacing: 0.02em;
    margin-bottom: var(--space-lg);
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-badge .badge-icon {
    font-size: 0.45rem;
    color: var(--accent-green);
}

@keyframes textGlow {
    from {
        text-shadow:
            0 0 10px rgba(0, 255, 136, 0.5),
            0 0 30px rgba(0, 255, 136, 0.3),
            0 0 60px rgba(0, 255, 136, 0.15);
    }
    to {
        text-shadow:
            0 0 15px rgba(0, 255, 136, 0.7),
            0 0 40px rgba(0, 255, 136, 0.4),
            0 0 80px rgba(0, 255, 136, 0.2);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.hero-content {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

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

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-md);
}

.hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    animation: fadeInUp 0.6s ease-out 0.7s both;
}

.hero-meta .price-highlight {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.1em;
}

/* ===== Hero Typing Line ===== */
.hero-typing {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: var(--space-lg);
    font-size: 0.85rem;
    font-family: var(--font-mono);
    color: var(--accent-green);
    animation: fadeInUp 0.6s ease-out 0.9s both;
}

.prompt-symbol {
    color: var(--accent-green);
    font-weight: 600;
    flex-shrink: 0;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
}

.usecase-active {
    color: var(--accent-green);
    border-color: rgba(0, 255, 136, 0.2);
}

.usecase-active .typing-text {
    color: var(--accent-green);
}

.cursor {
    color: var(--accent-green);
    animation: blink 1s step-end infinite;
    text-shadow: 0 0 10px var(--accent-green-glow);
    font-weight: 400;
}

/* ===== Section Titles ===== */
.section-title {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: var(--space-xl);
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.15);
    letter-spacing: -0.01em;
}

.title-prefix {
    color: var(--accent-green);
    opacity: 0.5;
    margin-right: 6px;
    font-weight: 400;
}

.ai-title {
    text-shadow: 0 0 20px rgba(170, 119, 255, 0.15);
}

.ai-prefix {
    color: var(--accent-purple);
}

/* ===== Section Separator ===== */
.connect-section,
.ai-section {
    position: relative;
}

.connect-section::before,
.ai-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 1px;
    pointer-events: none;
}

.connect-section::before {
    background: linear-gradient(90deg, transparent, var(--accent-green), transparent);
    opacity: 0.4;
}

.ai-section::before {
    background: linear-gradient(90deg, transparent, var(--accent-purple), transparent);
    opacity: 0.4;
}

/* ===== Connect Section ===== */
.connect-section {
    padding: var(--space-2xl) 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-muted);
}

.connect-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-md);
}

.connect-card {
    padding: var(--space-lg);
    background: var(--bg-primary);
    border: 1px solid var(--border-default);
    border-radius: var(--border-radius-lg);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.connect-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.connect-card:hover {
    border-color: rgba(0, 255, 136, 0.3);
    transform: translateY(-4px);
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(0, 255, 136, 0.06);
}

.connect-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent-green);
    flex-shrink: 0;
}

.connect-icon.cyan {
    background: rgba(0, 255, 255, 0.1);
    color: var(--accent-cyan);
}

.connect-icon.purple {
    background: rgba(170, 119, 255, 0.1);
    color: var(--accent-purple);
}

.connect-icon.orange {
    background: rgba(255, 170, 0, 0.1);
    color: var(--accent-orange);
}

.connect-card h3 {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.connect-card p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.5;
    flex: 1;
}

/* ===== AI Section ===== */
.ai-section {
    padding: var(--space-2xl) 0;
    background: linear-gradient(
        180deg,
        var(--bg-primary) 0%,
        rgba(170, 119, 255, 0.02) 50%,
        var(--bg-primary) 100%
    );
    border-top: 1px solid rgba(170, 119, 255, 0.15);
}

.ai-grid {
    grid-template-columns: repeat(4, 1fr);
}

.ai-card {
    background: rgba(170, 119, 255, 0.03);
    border-color: rgba(170, 119, 255, 0.1);
}

.ai-card:hover {
    border-color: rgba(170, 119, 255, 0.35);
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(170, 119, 255, 0.06);
}

/* ===== Footer ===== */
.footer {
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--border-muted);
    background: var(--bg-secondary);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-green), transparent);
    opacity: 0.4;
}

.footer-simple {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.875rem;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.footer-brand:hover {
    color: var(--accent-green);
}

.footer-brand .logo-icon {
    filter: drop-shadow(0 0 5px rgba(0, 255, 136, 0.3));
    transition: filter 0.3s ease;
}

.footer-brand:hover .logo-icon {
    filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.5));
}

.footer-contact {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    letter-spacing: 0.02em;
    transition: color 0.2s;
}

.footer-contact:hover {
    color: var(--accent-green);
}

.footer-copy {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
    .connect-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

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

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

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

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

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

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

    .hero {
        padding-top: var(--space-xl);
    }

    .hero-logo-text {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 1.25rem;
    }
}

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

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .usecase {
        font-size: 0.7rem;
    }
}
