/* ==========================================================================
   Front Page — The Permanent Beta / Brutalist Tech
   ========================================================================== */

html {
    scroll-behavior: smooth;
}

/* --- Reset (scoped to #front-page) --- */
#front-page,
#front-page *,
#front-page *::before,
#front-page *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: 0;
    outline: 0;
    font-style: normal;
    text-decoration: none;
    list-style: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Wrapper --- */
#front-page {
    position: relative;
    width: 100%;
    background: #050505;
    color: #fff;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    letter-spacing: -0.01em;
    z-index: 1;
}

/* --- Shared --- */
#front-page .fp-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
}

#front-page .fp-mono {
    font-family: 'JetBrains Mono', monospace;
}

#front-page .fp-accent {
    color: #2394ab;
}

/* ==========================================================================
   Hero
   ========================================================================== */
#front-page .fp-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#front-page .fp-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 50% 0%, rgba(35, 148, 171, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

/* Grid background */
#front-page .fp-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(35, 148, 171, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(35, 148, 171, 0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    opacity: 0;
    animation: blpGridIn 2s ease forwards 0.5s;
}

@keyframes blpGridIn {
    to { opacity: 1; }
}

/* Status badge */
#front-page .fp-hero-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid rgba(35, 148, 171, 0.3);
    border-radius: 2px;
    margin-bottom: 48px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    opacity: 0;
    animation: blpFadeUp 0.8s ease forwards 0.3s;
}

#front-page .fp-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2394ab;
    animation: blpPulse 2s ease-in-out infinite;
}

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

@keyframes blpFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#front-page .fp-hero-status,
#front-page .fp-hero-title,
#front-page .fp-hero-sub,
#front-page .fp-hero-cta {
    transform: translateY(20px);
}

/* Hero logo */
#front-page .fp-hero-logo {
    opacity: 0;
    transform: translateY(20px);
    animation: blpFadeUp 0.8s ease forwards 0.6s;
}

#front-page .fp-logo {
    width: clamp(260px, 45vw, 520px);
    height: auto;
}

/* Hero subtitle */
#front-page .fp-hero-sub {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(11px, 1.5vw, 14px);
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 32px;
    text-transform: uppercase;
    opacity: 0;
    animation: blpFadeUp 0.8s ease forwards 0.9s;
}

/* Hero CTA */
#front-page .fp-hero-cta {
    margin-top: 48px;
    display: flex;
    gap: 16px;
    align-items: center;
    opacity: 0;
    animation: blpFadeUp 0.8s ease forwards 1.1s;
}

#front-page .fp-btn-outline {
    border-color: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.6);
}

#front-page .fp-btn-outline::before {
    background: #fff;
}

#front-page .fp-btn-outline:hover {
    color: #050505;
    border-color: #fff;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
}

/* Button */
#front-page .fp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 36px;
    border: 1px solid #2394ab;
    color: #2394ab;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    line-height: 1;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease, box-shadow 0.3s ease;
    background: transparent;
    text-decoration: none;
}

#front-page .fp-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #2394ab;
    transition: left 0.3s ease;
    z-index: 0;
}

#front-page .fp-btn:hover {
    color: #050505;
    box-shadow: 0 0 30px rgba(35, 148, 171, 0.3);
}

#front-page .fp-btn:hover::before {
    left: 0;
}

#front-page .fp-btn span {
    position: relative;
    z-index: 1;
}

/* Scroll hint */
#front-page .fp-scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: blpFadeUp 1s ease forwards 1.5s;
}

#front-page .fp-scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, #2394ab, transparent);
    animation: blpScrollLine 2s ease-in-out infinite;
}

@keyframes blpScrollLine {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }
    50% {
        transform: scaleY(1);
        transform-origin: top;
    }
    51% {
        transform-origin: bottom;
    }
    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* ==========================================================================
   Manifesto
   ========================================================================== */
#front-page .manifesto {
    padding: 120px 24px;
    position: relative;
}

#front-page .manifesto-inner {
    max-width: 900px;
    margin: 0 auto;
}

#front-page .manifesto-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #2394ab;
    margin-bottom: 48px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

#front-page .manifesto-label.fp-visible {
    opacity: 1;
    transform: translateY(0);
}

#front-page .manifesto-text {
    font-size: clamp(24px, 4vw, 42px);
    font-weight: 300;
    line-height: 1.4;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.08);
}

#front-page .manifesto-text .fp-word {
    display: inline-block;
    transition: color 0.5s ease;
    margin-right: 0.25em;
}

#front-page .manifesto-text .fp-word.fp-lit {
    color: #fff;
}

#front-page .manifesto-text .fp-word.fp-accent-word {
    color: #2394ab;
}

#front-page .manifesto-text .fp-line-break {
    display: block;
    height: 16px;
}

/* ==========================================================================
   Divider
   ========================================================================== */
#front-page .fp-divider {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(35, 148, 171, 0.3), transparent);
}

/* ==========================================================================
   Bento Grid
   ========================================================================== */
#front-page .fp-bento {
    padding: 120px 24px;
}

#front-page .fp-bento-header {
    text-align: center;
    margin-bottom: 64px;
}

#front-page .fp-bento-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #2394ab;
    margin-bottom: 16px;
}

#front-page .fp-bento-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    letter-spacing: -0.03em;
}

/* Grid layout */
#front-page .fp-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Cards */
#front-page .fp-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 40px 32px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
    cursor: default;
}

#front-page .fp-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at var(--mx, 50%) var(--my, 50%),
        rgba(35, 148, 171, 0.06) 0%,
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

#front-page .fp-card:hover {
    border-color: rgba(35, 148, 171, 0.4);
    box-shadow:
        0 0 40px rgba(35, 148, 171, 0.08),
        inset 0 0 40px rgba(35, 148, 171, 0.03);
    transform: translateY(-2px);
}

#front-page .fp-card:hover::before {
    opacity: 1;
}

#front-page .fp-card-span2 {
    grid-column: span 2;
}

#front-page .fp-card-icon {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(35, 148, 171, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px;
    color: #2394ab;
}

#front-page .fp-card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

#front-page .fp-card-desc {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
}

#front-page .fp-card-tag {
    display: inline-block;
    margin-top: 16px;
    padding: 4px 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid rgba(35, 148, 171, 0.2);
    color: rgba(35, 148, 171, 0.8);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    #front-page .fp-bento-grid {
        grid-template-columns: 1fr;
    }

    #front-page .fp-card-span2 {
        grid-column: span 1;
    }

    #front-page .fp-section {
        padding: 60px 20px;
    }
}
