/* ============================================
   INFILL MEDIA — Coming Soon
   Premium Landing Page Styles
   ============================================ */

/* ---------- CSS Variables ---------- */

:root {
    --bg: #FAFAFA;
    --primary: #111111;
    --secondary: #666666;
    --accent: #E30613;
    --glass: rgba(255, 255, 255, 0.55);
    --glass-border: rgba(255, 255, 255, 0.7);
    --shadow: 0 30px 100px rgba(0, 0, 0, 0.08);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Reset ---------- */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--primary);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    position: relative;
}

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

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

/* ---------- Loading Screen ---------- */

.loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s var(--ease-out-expo), visibility 0.8s;
}

.loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.loader__line {
    width: 40px;
    height: 1px;
    background: var(--accent);
    transform-origin: left center;
    animation: loaderLine 1.4s var(--ease-in-out) infinite;
}

.loader__line:nth-child(2) {
    animation-delay: 0.15s;
    opacity: 0.6;
}

.loader__line:nth-child(3) {
    animation-delay: 0.3s;
    opacity: 0.3;
}

@keyframes loaderLine {
    0%, 100% { transform: scaleX(0.3); opacity: 0.3; }
    50% { transform: scaleX(1); opacity: 1; }
}

.loader__text {
    font-size: 11px;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--secondary);
    font-weight: 500;
}

/* ---------- Cursor Glow ---------- */

.cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(227, 6, 19, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    will-change: transform;
    transition: opacity 0.3s;
    opacity: 0;
}

.cursor-glow.is-active {
    opacity: 1;
}

.cursor-spotlight {
    position: fixed;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9997;
    transform: translate(-50%, -50%);
    will-change: transform;
    opacity: 0;
    transition: opacity 0.3s;
}

.cursor-spotlight.is-active {
    opacity: 1;
}

/* ---------- Noise Overlay ---------- */

.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 9996;
    pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* ---------- Background Typography ---------- */

.bg-typography {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.bg-typography.is-visible {
    opacity: 1;
}

.bg-typography__track {
    display: flex;
    white-space: nowrap;
    animation: bgScroll 80s linear infinite;
    will-change: transform;
}

.bg-typography__track--reverse {
    animation-direction: reverse;
    animation-duration: 90s;
}

.bg-typography__track span {
    font-size: clamp(100px, 14vw, 220px);
    font-weight: 900;
    color: var(--primary);
    opacity: 0.02;
    letter-spacing: 0.05em;
    padding: 0 40px;
    filter: blur(1px);
    user-select: none;
    line-height: 0.85;
}

@keyframes bgScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---------- Grid Texture ---------- */

.grid-texture {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.025;
    background-image:
        linear-gradient(rgba(17, 17, 17, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 17, 17, 0.08) 1px, transparent 1px);
    background-size: 80px 80px;
}

/* ---------- Radial Light ---------- */

.radial-light {
    position: fixed;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 80%;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(227, 6, 19, 0.03) 0%, transparent 65%);
    animation: breatheLight 8s var(--ease-in-out) infinite;
}

@keyframes breatheLight {
    0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.05); }
}

/* ---------- SVG Ribbon ---------- */

.svg-ribbon {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 2s ease;
}

.svg-ribbon.is-visible {
    opacity: 1;
}

.ribbon-path {
    will-change: d;
}

/* ---------- Glass Spheres ---------- */

.glass-spheres {
    position: fixed;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.sphere {
    position: absolute;
    border-radius: 50%;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    box-shadow:
        var(--shadow),
        inset 0 0 30px rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    will-change: transform;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.glass-spheres.is-visible .sphere {
    opacity: 1;
}

.sphere--1 {
    width: 120px;
    height: 120px;
    top: 12%;
    right: 15%;
    animation: floatSphere1 12s var(--ease-in-out) infinite;
}

.sphere--2 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 10%;
    animation: floatSphere2 15s var(--ease-in-out) infinite;
    animation-delay: -3s;
}

.sphere--3 {
    width: 180px;
    height: 180px;
    top: 50%;
    right: -40px;
    animation: floatSphere3 18s var(--ease-in-out) infinite;
    animation-delay: -5s;
    opacity: 0;
}

.glass-spheres.is-visible .sphere--3 {
    opacity: 0.5;
}

.sphere--4 {
    width: 40px;
    height: 40px;
    top: 30%;
    left: 5%;
    animation: floatSphere4 10s var(--ease-in-out) infinite;
    animation-delay: -2s;
}

.sphere--5 {
    width: 90px;
    height: 90px;
    bottom: 10%;
    right: 25%;
    animation: floatSphere1 14s var(--ease-in-out) infinite;
    animation-delay: -7s;
}

@keyframes floatSphere1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(15px, -20px) rotate(3deg); }
    50% { transform: translate(-10px, -35px) rotate(-2deg); }
    75% { transform: translate(20px, -15px) rotate(4deg); }
}

@keyframes floatSphere2 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(25px, -15px); }
    66% { transform: translate(-15px, -30px); }
}

@keyframes floatSphere3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, -20px) scale(1.03); }
}

@keyframes floatSphere4 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10px, -25px); }
}

/* ---------- Abstract Shapes ---------- */

.abstract-shapes {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.shape {
    position: absolute;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.abstract-shapes.is-visible .shape {
    opacity: 1;
}

.shape--ring {
    width: 100px;
    height: 100px;
    border: 1.5px solid rgba(227, 6, 19, 0.12);
    border-radius: 50%;
    top: 18%;
    left: 8%;
    animation: floatSphere2 20s var(--ease-in-out) infinite;
}

.shape--cross {
    width: 30px;
    height: 30px;
    bottom: 25%;
    right: 12%;
    animation: floatSphere4 16s var(--ease-in-out) infinite;
    animation-delay: -4s;
}

.shape--cross::before,
.shape--cross::after {
    content: '';
    position: absolute;
    background: rgba(17, 17, 17, 0.08);
}

.shape--cross::before {
    width: 100%;
    height: 1.5px;
    top: 50%;
    transform: translateY(-50%);
}

.shape--cross::after {
    width: 1.5px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.shape--diamond {
    width: 20px;
    height: 20px;
    border: 1.5px solid rgba(17, 17, 17, 0.07);
    top: 65%;
    left: 18%;
    transform: rotate(45deg);
    animation: floatSphere1 22s var(--ease-in-out) infinite;
    animation-delay: -8s;
}

.shape--dot-cluster {
    display: grid;
    grid-template-columns: repeat(3, 5px);
    gap: 6px;
    top: 75%;
    right: 20%;
    animation: floatSphere2 18s var(--ease-in-out) infinite;
    animation-delay: -6s;
}

.shape--dot-cluster span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(17, 17, 17, 0.06);
}

/* ---------- Particles ---------- */

.particles {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: rgba(227, 6, 19, 0.15);
    will-change: transform, opacity;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) translateX(var(--drift));
        opacity: 0;
    }
}

/* ---------- Main Content ---------- */

.main {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100vw;
    padding: 40px;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 900px;
    width: 100%;
}

/* ---------- Logo ---------- */

.logo-wrapper {
    position: relative;
    margin-bottom: 48px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s var(--ease-out-expo) 0.3s, transform 1s var(--ease-out-expo) 0.3s;
}

.logo-wrapper.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 100px;
    background: radial-gradient(ellipse, rgba(227, 6, 19, 0.12) 0%, transparent 70%);
    filter: blur(30px);
    animation: logoBreathe 4s var(--ease-in-out) infinite;
    z-index: -1;
}

@keyframes logoBreathe {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

.logo {
    width: clamp(140px, 18vw, 200px);
    height: auto;
    animation: logoFloat 6s var(--ease-in-out) infinite;
    position: relative;
    z-index: 1;
}

.logo-fallback {
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--primary);
    animation: logoFloat 6s var(--ease-in-out) infinite;
    position: relative;
    z-index: 1;
    display: none;
}

.logo-fallback.is-active {
    display: block;
}

.logo.is-hidden {
    display: none;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ---------- Headline ---------- */

.headline {
    font-size: clamp(40px, 7vw, 82px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 28px;
    color: var(--primary);
}

.headline__line {
    display: block;
    overflow: hidden;
    padding: 4px 0;
}

.headline__word {
    display: inline-block;
    transform: translateY(110%);
    transition: transform 1s var(--ease-out-expo);
}

.headline.is-visible .headline__word {
    transform: translateY(0);
}

.headline__line:nth-child(2) .headline__word {
    transition-delay: 0.12s;
}

.headline__line:nth-child(3) .headline__word {
    transition-delay: 0.24s;
}

.headline__word--accent {
    color: var(--accent);
    animation: accentGlow 3s var(--ease-in-out) infinite;
    animation-delay: 1.2s;
}

@keyframes accentGlow {
    0%, 100% { text-shadow: 0 0 0 rgba(227, 6, 19, 0); }
    50% { text-shadow: 0 0 24px rgba(227, 6, 19, 0.45); }
}

/* ---------- Subtitle ---------- */

.subtitle {
    font-size: clamp(15px, 1.8vw, 18px);
    line-height: 1.7;
    color: var(--secondary);
    max-width: 580px;
    margin-bottom: 40px;
    font-weight: 400;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
}

.subtitle.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Pill ---------- */

.pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 100px;
    background: rgba(227, 6, 19, 0.06);
    border: 1px solid rgba(227, 6, 19, 0.12);
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(15px) scale(0.96);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
    cursor: default;
    position: relative;
    overflow: hidden;
}

.pill.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.pill::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 100px;
    background: rgba(227, 6, 19, 0.04);
    animation: pillPulse 3s var(--ease-in-out) infinite;
}

@keyframes pillPulse {
    0%, 100% { opacity: 0; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); }
}

.pill__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    position: relative;
    flex-shrink: 0;
}

.pill__dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: rgba(227, 6, 19, 0.3);
    animation: dotPulse 2s var(--ease-in-out) infinite;
}

@keyframes dotPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.8); opacity: 0; }
}

.pill__text {
    position: relative;
    z-index: 1;
}

/* ---------- Footer ---------- */

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 20px 40px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
}

.footer.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer__location,
.footer__copy {
    font-size: 12px;
    color: var(--secondary);
    font-weight: 400;
    letter-spacing: 0.5px;
}

.footer__divider {
    width: 1px;
    height: 12px;
    background: rgba(17, 17, 17, 0.12);
}

.footer__link {
    font-size: 12px;
    color: var(--secondary);
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    position: relative;
}

.footer__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s var(--ease-out-expo);
}

.footer__link:hover {
    color: var(--primary);
}

.footer__link:hover::after {
    width: 100%;
}

.footer__social {
    display: flex;
    gap: 14px;
}

.footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--secondary);
    transition: color 0.3s ease, background 0.3s ease, transform 0.3s var(--ease-out-expo);
}

.footer__social-link:hover {
    color: var(--accent);
    background: rgba(227, 6, 19, 0.06);
    transform: translateY(-2px);
}

/* ---------- Gradient Mesh ---------- */

.main::before {
    content: '';
    position: fixed;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 100%;
    background: radial-gradient(ellipse, rgba(227, 6, 19, 0.025) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
    animation: meshDrift 20s var(--ease-in-out) infinite;
}

.main::after {
    content: '';
    position: fixed;
    bottom: -40%;
    left: -20%;
    width: 70%;
    height: 80%;
    background: radial-gradient(ellipse, rgba(17, 17, 17, 0.02) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
    animation: meshDrift 25s var(--ease-in-out) infinite reverse;
}

@keyframes meshDrift {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -20px); }
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
    .sphere--1 { width: 80px; height: 80px; }
    .sphere--3 { width: 120px; height: 120px; }
    .sphere--5 { width: 60px; height: 60px; }
    .shape--ring { width: 70px; height: 70px; }
}

@media (max-width: 768px) {
    .main {
        padding: 30px 24px;
    }

    .logo-wrapper {
        margin-bottom: 36px;
    }

    .logo {
        width: 120px;
    }

    .logo-glow {
        width: 200px;
        height: 80px;
    }

    .headline {
        margin-bottom: 22px;
    }

    .subtitle {
        margin-bottom: 32px;
        max-width: 420px;
    }

    .pill {
        padding: 10px 22px;
        font-size: 11px;
    }

    .footer {
        padding: 16px 24px;
    }

    .footer__inner {
        gap: 12px;
    }

    .footer__divider:nth-of-type(3) {
        display: none;
    }

    .sphere--1 { width: 60px; height: 60px; top: 8%; right: 5%; }
    .sphere--2 { width: 40px; height: 40px; }
    .sphere--3 { display: none; }
    .sphere--4 { width: 30px; height: 30px; }
    .sphere--5 { width: 50px; height: 50px; }

    .shape--ring { width: 50px; height: 50px; }
    .shape--cross { width: 20px; height: 20px; }

    .bg-typography__track span {
        font-size: 80px;
        padding: 0 20px;
    }

    .cursor-glow,
    .cursor-spotlight {
        display: none;
    }

    .grid-texture {
        background-size: 50px 50px;
    }
}

@media (max-width: 480px) {
    .main {
        padding: 24px 18px;
    }

    .logo-wrapper {
        margin-bottom: 28px;
    }

    .logo {
        width: 100px;
    }

    .headline {
        font-size: 36px;
        margin-bottom: 18px;
    }

    .subtitle {
        font-size: 14px;
        margin-bottom: 28px;
        max-width: 320px;
    }

    .pill {
        padding: 9px 18px;
        font-size: 10px;
        letter-spacing: 1px;
    }

    .footer__inner {
        gap: 8px;
        font-size: 11px;
    }

    .footer__location,
    .footer__copy,
    .footer__link {
        font-size: 11px;
    }

    .sphere--1 { width: 40px; height: 40px; }
    .sphere--2 { width: 25px; height: 25px; }
    .sphere--4 { display: none; }
    .sphere--5 { width: 35px; height: 35px; }

    .shape--ring { display: none; }
    .shape--dot-cluster { display: none; }

    .bg-typography__track span {
        font-size: 60px;
        padding: 0 12px;
    }
}

/* ---------- Accessibility ---------- */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .bg-typography__track {
        animation: none;
    }
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
    border-radius: 4px;
}

/* ---------- Selection ---------- */

::selection {
    background: rgba(227, 6, 19, 0.15);
    color: var(--primary);
}
