/* ===================================
   concengine.com - Holographic 3D Product
   =================================== */

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

:root {
    --void-black: #08080f;
    --holo-blue: #00d4ff;
    --holo-violet: #7b2ff7;
    --holo-pink: #ff6ec7;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --border-glow: rgba(0, 212, 255, 0.3);
    --text-color: #e0e8ff;
    --muted: #6a6a8a;
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Exo 2', sans-serif;
    --font-mono: 'Fira Mono', monospace;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--void-black);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 400;
    overflow-x: hidden;
}

/* --- Holographic Text Effect --- */
.holographic-text {
    background: linear-gradient(90deg, #00d4ff, #7b2ff7, #ff6ec7, #00d4ff);
    background-size: 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: shimmer 3s linear infinite;
}

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

/* --- Floating Particles --- */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    bottom: -10px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--holo-blue);
    opacity: 0;
    box-shadow: 0 0 6px currentColor;
    animation: floatUp var(--duration, 12s) var(--delay, 0s) linear infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh);
        opacity: 0;
    }
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, rgba(123, 47, 247, 0.08) 0%, var(--void-black) 60%);
    z-index: 1;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    margin-bottom: 3rem;
    z-index: 2;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 5rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(0.9rem, 2vw, 1.3rem);
    color: var(--muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* --- 3D Cube --- */
.cube-scene {
    perspective: 800px;
    width: 300px;
    height: 300px;
    position: relative;
    z-index: 2;
    margin: 1rem 0 4rem;
}

.cube {
    width: 300px;
    height: 300px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 30s linear infinite;
    transform-origin: center center;
}

@keyframes rotateCube {
    from { transform: rotateY(0deg) rotateX(15deg); }
    to { transform: rotateY(360deg) rotateX(15deg); }
}

.cube-face {
    position: absolute;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--holo-blue);
    background: rgba(0, 212, 255, 0.04);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.25), inset 0 0 30px rgba(123, 47, 247, 0.15);
    backface-visibility: visible;
}

.cube-face span {
    font-family: var(--font-display);
    font-size: clamp(0.8rem, 1.5vw, 1.2rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: linear-gradient(90deg, #00d4ff, #7b2ff7, #ff6ec7, #00d4ff);
    background-size: 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: shimmer 3s linear infinite;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.cube-front  { transform: rotateY(0deg) translateZ(150px); }
.cube-back   { transform: rotateY(180deg) translateZ(150px); }
.cube-right  { transform: rotateY(90deg) translateZ(150px); }
.cube-left   { transform: rotateY(-90deg) translateZ(150px); }
.cube-top    { transform: rotateX(90deg) translateZ(150px); }
.cube-bottom { transform: rotateX(-90deg) translateZ(150px); }

/* Cube Reflection */
.cube-reflection {
    position: absolute;
    top: 100%;
    left: 0;
    width: 300px;
    height: 300px;
    transform: scaleY(-1);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.35), transparent 60%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.35), transparent 60%);
    pointer-events: none;
    opacity: 0.4;
    perspective: 800px;
}

/* Scroll Hint */
.hero-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-arrow {
    display: block;
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--holo-blue);
    border-bottom: 2px solid var(--holo-blue);
    transform: rotate(45deg);
    opacity: 0.5;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.5; }
    50% { transform: rotate(45deg) translateY(10px); opacity: 1; }
}

/* --- Section Titles --- */
.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* --- Features Section --- */
.features {
    position: relative;
    z-index: 1;
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.features-grid .feature-card:nth-child(even) {
    margin-top: -40px;
}

/* Glass Card */
.glass-card {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: var(--glass-bg);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.glass-card:hover {
    border-color: var(--holo-blue);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.2), inset 0 0 30px rgba(0, 212, 255, 0.05);
    transform: translateY(-4px);
}

.feature-card {
    padding: 2rem;
    position: relative;
}

.feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(0,212,255,0.05), rgba(123,47,247,0.05), rgba(255,110,199,0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--holo-blue);
    margin-bottom: 0.75rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    position: relative;
}

.feature-desc {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.7;
    position: relative;
}

.feature-code {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--holo-pink);
    background: rgba(123, 47, 247, 0.1);
    padding: 0.6rem 0.85rem;
    border-radius: 6px;
    border-left: 3px solid var(--holo-violet);
    overflow-x: auto;
    white-space: nowrap;
    position: relative;
}

/* --- Metrics Section --- */
.metrics {
    position: relative;
    z-index: 1;
    padding: 6rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.metric-item {
    position: relative;
    padding: 1.5rem 0.5rem;
}

.metric-number {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 3.2rem);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    display: block;
    line-height: 1.2;
}

.metric-suffix {
    display: inline-block;
    margin-left: 0.25rem;
    font-family: var(--font-display);
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 700;
    background: linear-gradient(90deg, #00d4ff, #7b2ff7, #ff6ec7, #00d4ff);
    background-size: 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: shimmer 3s linear infinite;
}

.metric-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.75rem;
}

/* --- Code Section --- */
.code-section {
    position: relative;
    z-index: 1;
    padding: 6rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.code-block {
    overflow: hidden;
}

.code-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.code-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.code-dot.red { background: #ff5f57; }
.code-dot.yellow { background: #febc2e; }
.code-dot.green { background: #28c840; }

.code-filename {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--muted);
    margin-left: 0.5rem;
}

.code-content {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.8;
    padding: 1.5rem;
    color: var(--text-color);
    overflow-x: auto;
    white-space: pre;
    background: rgba(8, 8, 15, 0.4);
}

.code-keyword {
    color: var(--holo-violet);
    font-weight: 600;
}

.code-fn {
    color: var(--holo-blue);
}

.code-number {
    color: var(--holo-pink);
}

.code-comment {
    color: var(--muted);
    font-style: italic;
}

/* --- Footer --- */
.footer {
    position: relative;
    z-index: 1;
    padding: 4rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
}

.footer-cube-scene {
    perspective: 400px;
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
}

.cube-small {
    width: 60px;
    height: 60px;
    animation: rotateCube 20s linear infinite;
}

.cube-small .cube-face {
    width: 60px;
    height: 60px;
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.3);
}

.cube-small .cube-front  { transform: rotateY(0deg) translateZ(30px); }
.cube-small .cube-back   { transform: rotateY(180deg) translateZ(30px); }
.cube-small .cube-right  { transform: rotateY(90deg) translateZ(30px); }
.cube-small .cube-left   { transform: rotateY(-90deg) translateZ(30px); }
.cube-small .cube-top    { transform: rotateX(90deg) translateZ(30px); }
.cube-small .cube-bottom { transform: rotateX(-90deg) translateZ(30px); }

.footer-text {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--text-color);
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.footer-muted {
    font-size: 0.8rem;
    color: var(--muted);
    letter-spacing: 0.05em;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .features-grid .feature-card:nth-child(even) {
        margin-top: 0;
    }

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

@media (max-width: 600px) {
    .cube-scene {
        width: 200px;
        height: 200px;
    }

    .cube {
        width: 200px;
        height: 200px;
    }

    .cube-face {
        width: 200px;
        height: 200px;
    }

    .cube-front  { transform: rotateY(0deg) translateZ(100px); }
    .cube-back   { transform: rotateY(180deg) translateZ(100px); }
    .cube-right  { transform: rotateY(90deg) translateZ(100px); }
    .cube-left   { transform: rotateY(-90deg) translateZ(100px); }
    .cube-top    { transform: rotateX(90deg) translateZ(100px); }
    .cube-bottom { transform: rotateX(-90deg) translateZ(100px); }

    .cube-reflection {
        width: 200px;
        height: 200px;
    }

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

    .hero-title {
        font-size: clamp(1.5rem, 8vw, 3rem);
    }

    .features {
        padding: 4rem 1rem;
    }

    .feature-card {
        padding: 1.5rem;
    }
}
