/* home.css — Home page (BoringWorx landing) specific styles
 * Hero section, marquee strip, product showcase, philosophy cards,
 * and email capture section unique to the root index.html page.
 */

/* ══════════════════════════════════════════
   HERO
   ══════════════════════════════════════════ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: var(--space-4xl) 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
    /* CSS grid pattern */
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 255, 43, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.hero-status {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: var(--space-xl);
}

.hero-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse 2s ease-in-out infinite;
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(48px, 7vw, 88px);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-lg);
}

.hero-headline-accent {
    font-weight: 500;
    color: var(--accent);
}

.hero-headline-dim {
    color: var(--text-dim);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 540px;
    line-height: 1.7;
    margin-bottom: var(--space-2xl);
}

.hero-cta {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    padding: 16px 32px;
    background: var(--accent);
    color: var(--bg);
    border-radius: var(--border-radius-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(212, 255, 43, 0.25);
    opacity: 1;
}

.hero-cta:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .hero {
        padding-top: calc(var(--nav-height) + var(--space-3xl));
        min-height: auto;
    }

    .hero-subtitle {
        max-width: 100%;
        font-size: 16px;
    }

    .hero-glow {
        width: 400px;
        height: 400px;
        top: -10%;
        right: -20%;
    }
}

/* ══════════════════════════════════════════
   MARQUEE STRIP
   ══════════════════════════════════════════ */

.marquee {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    padding: var(--space-md) 0;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0 var(--space-xl);
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
}

.marquee-bullet {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

/* ══════════════════════════════════════════
   FIRST PRODUCT
   ══════════════════════════════════════════ */

.product-section {
    padding: var(--space-4xl) 0;
}

.product-section .container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.product-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

.product-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 500px;
    line-height: 1.7;
    margin-bottom: var(--space-2xl);
}

.product-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    padding: var(--space-2xl);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.3s ease, background 0.3s ease;
}

.product-card:hover {
    border-color: rgba(212, 255, 43, 0.25);
    background: var(--bg-card-hover);
    opacity: 1;
}

.product-card-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: var(--space-lg);
}

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

.product-card-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 500;
    margin-bottom: var(--space-md);
}

.product-card-desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.product-card-link {
    font-size: 14px;
    color: var(--accent);
    font-weight: 500;
}

/* Code mockup */

.product-code {
    background: var(--bg-accent);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-md);
    padding: var(--space-lg);
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-muted);
    overflow-x: auto;
}

.product-code-comment {
    color: var(--text-dim);
}

.product-code-placeholder {
    color: var(--accent);
}

.product-code-output {
    color: var(--text-dim);
    margin-top: var(--space-md);
}

.product-code-success {
    color: var(--success);
}

.product-code-ellipsis {
    color: var(--text-dim);
    padding-left: 20px;
}

@media (max-width: 768px) {
    .product-card {
        grid-template-columns: 1fr;
        padding: var(--space-lg);
    }

    .product-section {
        padding: var(--space-3xl) 0;
    }
}

@media (min-width: 769px) {
    .product-section .container {
        padding: 0 32px;
    }
}

/* ══════════════════════════════════════════
   PHILOSOPHY
   ══════════════════════════════════════════ */

.philosophy-section {
    padding: var(--space-4xl) 0;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-card) 50%, var(--bg) 100%);
}

.philosophy-section .container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.philosophy-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    margin-bottom: var(--space-2xl);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.philosophy-card {
    padding: var(--space-xl);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-md);
}

.philosophy-card-icon {
    font-size: 28px;
    margin-bottom: var(--space-md);
}

.philosophy-card-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

.philosophy-card-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

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

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

    .philosophy-section {
        padding: var(--space-3xl) 0;
    }
}

@media (min-width: 769px) {
    .philosophy-section .container {
        padding: 0 32px;
    }
}

/* ══════════════════════════════════════════
   STAY IN THE LOOP
   ══════════════════════════════════════════ */

.loop-section {
    padding: var(--space-4xl) 0;
}

.loop-section .container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.loop-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

.loop-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}

@media (max-width: 768px) {
    .loop-section {
        padding: var(--space-3xl) 0;
    }
}

@media (min-width: 769px) {
    .loop-section .container {
        padding: 0 32px;
    }
}
