/* ============================================
   holos.dev - Holographic 3D Product Aesthetic
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    background: #0a0a0f;
    color: #e2e8f0;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    overflow-x: hidden;
}

/* ============================================
   Keyframes
   ============================================ */

@keyframes holo {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes holoRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(25deg); }
    100% { transform: translateX(200%) rotate(25deg); }
}

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

@keyframes pulseGlow {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

@keyframes streakMove {
    0% { transform: translateX(-100vw) rotate(var(--streak-angle)); }
    100% { transform: translateX(200vw) rotate(var(--streak-angle)); }
}

@keyframes spectrumPulse {
    0%, 100% { opacity: 0.6; filter: blur(8px); }
    50% { opacity: 1; filter: blur(12px); }
}

@keyframes prismFlicker {
    0%, 100% { opacity: 0.6; }
    33% { opacity: 1; }
    66% { opacity: 0.3; }
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a0f;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* Hero light streaks */
.hero-streaks {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.streak {
    position: absolute;
    height: 1px;
    width: 300px;
    opacity: 0;
}

.streak-1 {
    --streak-angle: -15deg;
    top: 30%;
    background: linear-gradient(90deg, transparent, #ec4899, transparent);
    animation: streakMove 6s linear infinite;
    animation-delay: 0s;
    opacity: 0.3;
}

.streak-2 {
    --streak-angle: 10deg;
    top: 55%;
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
    animation: streakMove 8s linear infinite;
    animation-delay: 2s;
    opacity: 0.25;
}

.streak-3 {
    --streak-angle: -5deg;
    top: 75%;
    background: linear-gradient(90deg, transparent, #10b981, transparent);
    animation: streakMove 7s linear infinite;
    animation-delay: 4s;
    opacity: 0.2;
}

/* Hero particles container */
.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Holographic Card */
.holo-card {
    position: relative;
    z-index: 2;
    width: 520px;
    max-width: 90vw;
}

.holo-card-glow {
    position: absolute;
    inset: -40px;
    background: linear-gradient(135deg, #ec4899, #3b82f6, #10b981, #ec4899);
    background-size: 400% 400%;
    animation: holo 8s ease infinite;
    filter: blur(40px);
    opacity: 0.3;
    border-radius: 24px;
    z-index: -1;
}

.holo-card-surface {
    position: relative;
    background: #14141f;
    border: 1px solid #2a2a3a;
    border-radius: 16px;
    padding: 64px 48px;
    text-align: center;
    overflow: hidden;
}

.holo-card-surface::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 17px;
    background: linear-gradient(135deg, #ec4899, #3b82f6, #10b981, #ec4899);
    background-size: 400% 400%;
    animation: holo 8s ease infinite;
    z-index: -1;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    padding: 1px;
}

/* Light streaks on card surface */
.light-streak {
    position: absolute;
    pointer-events: none;
}

.light-streak-1 {
    top: -20%;
    left: -10%;
    width: 140%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(236, 72, 153, 0.15) 30%, rgba(59, 130, 246, 0.15) 60%, transparent 100%);
    transform: rotate(25deg);
    animation: shimmer 4s ease-in-out infinite;
}

.light-streak-2 {
    top: 40%;
    left: -10%;
    width: 140%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(16, 185, 129, 0.1) 40%, rgba(236, 72, 153, 0.1) 70%, transparent 100%);
    transform: rotate(-15deg);
    animation: shimmer 5s ease-in-out infinite;
    animation-delay: 2s;
}

/* Holographic shimmer overlay */
.holo-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(236, 72, 153, 0.03) 45%,
        rgba(59, 130, 246, 0.06) 50%,
        rgba(16, 185, 129, 0.03) 55%,
        transparent 60%
    );
    animation: shimmer 6s ease-in-out infinite;
    pointer-events: none;
}

.brand {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 56px;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #e2e8f0 0%, #e2e8f0 40%, #ec4899 60%, #3b82f6 80%, #10b981 100%);
    background-size: 300% 300%;
    animation: holo 8s ease infinite;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
}

.tagline {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    color: #64748b;
    letter-spacing: 0.5px;
}

/* Prismatic corner shapes */
.prism-corner {
    position: absolute;
    width: 0;
    height: 0;
    animation: prismFlicker 3s ease infinite;
}

.prism-tl {
    top: 12px;
    left: 12px;
    border-left: 8px solid #ec4899;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    transform: rotate(-45deg);
}

.prism-tr {
    top: 12px;
    right: 12px;
    border-right: 8px solid #3b82f6;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    transform: rotate(45deg);
}

.prism-bl {
    bottom: 12px;
    left: 12px;
    border-left: 8px solid #10b981;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    transform: rotate(-135deg);
}

.prism-br {
    bottom: 12px;
    right: 12px;
    border-right: 8px solid #ec4899;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    transform: rotate(135deg);
}

/* ============================================
   Features Section
   ============================================ */

.features {
    position: relative;
    min-height: 160vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 40px;
    background: #0a0a0f;
}

.features-grid {
    display: flex;
    flex-direction: column;
    gap: 48px;
    max-width: 640px;
    width: 100%;
}

.feature-card {
    position: relative;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animated chromatic border */
.feature-card-border {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, #ec4899, #3b82f6, #10b981, #ec4899);
    background-size: 400% 400%;
    animation: holo 8s ease infinite;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    pointer-events: none;
}

.feature-card-inner {
    position: relative;
    background: #14141f;
    border-radius: 12px;
    padding: 40px 36px;
    overflow: hidden;
}

.feature-card-inner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.2), transparent);
}

.feature-card .prism-tl {
    top: 10px;
    left: 10px;
}

.feature-card .prism-br {
    bottom: 10px;
    right: 10px;
}

.feature-icon {
    margin-bottom: 24px;
    opacity: 0.85;
}

.feature-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #e2e8f0;
    margin-bottom: 12px;
}

.feature-text {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #64748b;
    line-height: 1.7;
}

/* ============================================
   Spectrum Section
   ============================================ */

.spectrum {
    position: relative;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    background: #0a0a0f;
    overflow: hidden;
}

.spectrum-container {
    display: flex;
    align-items: center;
    gap: 32px;
    width: 100%;
    max-width: 900px;
}

.spectrum-label {
    font-family: 'Fira Code', monospace;
    font-size: 12px;
    color: #64748b;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.spectrum-band {
    position: relative;
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(
        90deg,
        #ec4899 0%,
        #f43f5e 12%,
        #f97316 24%,
        #eab308 36%,
        #10b981 48%,
        #06b6d4 60%,
        #3b82f6 72%,
        #8b5cf6 84%,
        #ec4899 100%
    );
    overflow: visible;
}

.spectrum-glow {
    position: absolute;
    inset: -6px 0;
    border-radius: 4px;
    background: linear-gradient(
        90deg,
        #ec4899 0%,
        #f43f5e 12%,
        #f97316 24%,
        #eab308 36%,
        #10b981 48%,
        #06b6d4 60%,
        #3b82f6 72%,
        #8b5cf6 84%,
        #ec4899 100%
    );
    filter: blur(8px);
    opacity: 0.6;
    animation: spectrumPulse 4s ease infinite;
}

.spectrum-tagline {
    margin-top: 48px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #64748b;
    letter-spacing: 0.3px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.spectrum-tagline.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   System Footer
   ============================================ */

.system {
    position: relative;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    background: #0a0a0f;
    gap: 20px;
}

.ring-mark {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 1s ease, transform 1s ease;
}

.ring-mark svg {
    display: block;
}

.ring-mark.visible {
    opacity: 1;
    transform: scale(1);
}

.system-brand {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #e2e8f0;
    letter-spacing: 1px;
    opacity: 0;
    transition: opacity 0.8s ease 0.3s;
}

.system-brand.visible {
    opacity: 1;
}

.version {
    font-family: 'Fira Code', monospace;
    font-size: 12px;
    color: #2a2a3a;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.8s ease 0.5s;
}

.version.visible {
    opacity: 1;
}

.system-line {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, #ec4899, #3b82f6, #10b981);
    background-size: 400% 400%;
    animation: holo 8s ease infinite;
    margin-top: 12px;
    opacity: 0;
    transition: opacity 0.8s ease 0.7s;
}

.system-line.visible {
    opacity: 0.5;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 640px) {
    .brand {
        font-size: 36px;
    }

    .holo-card-surface {
        padding: 48px 28px;
    }

    .features {
        padding: 80px 20px;
    }

    .feature-card-inner {
        padding: 32px 24px;
    }

    .feature-title {
        font-size: 20px;
    }

    .spectrum-container {
        flex-direction: column;
        gap: 16px;
    }

    .spectrum-band {
        width: 100%;
    }

    .spectrum-label {
        font-size: 11px;
    }
}
