/* Reset and Global Styles */
:root {
    --color-pink: #FF71CE;
    --color-cyan: #01CDFE;
    --color-lime: #05FFA1;
    --color-void: #0D0221;
    --color-indigo: #150535;
    --color-violet: #B967FF;
    --color-lavender: #E8D5F5;
    --color-dusty: #8B7BAD;
    --color-gold: #FFFB96;
}

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

html {
    scroll-behavior: smooth;
    /* Color palette reference: #FF71CE #01CDFE #05FFA1 #0D0221 #150535 #B967FF #E8D5F5 #8B7BAD #FFFB96 */
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: #0D0221;
    color: #E8D5F5;
    line-height: 1.72;
    overflow-x: hidden;
    background-image:
        repeating-linear-gradient(
            60deg,
            transparent,
            transparent 35px,
            rgba(185, 103, 255, 0.06) 35px,
            rgba(185, 103, 255, 0.06) 70px
        ),
        repeating-linear-gradient(
            120deg,
            transparent,
            transparent 35px,
            rgba(185, 103, 255, 0.06) 35px,
            rgba(185, 103, 255, 0.06) 70px
        );
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0D0221 0%, #150535 50%, #0D0221 100%);
    position: relative;
    overflow: hidden;
}

.hex-container {
    position: relative;
    width: 250px;
    height: 250px;
    margin-bottom: 3rem;
}

.hex-container.rotating {
    animation: rotateHex 20s linear infinite;
}

@keyframes rotateHex {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.hex-shape {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 30px rgba(255, 113, 206, 0.6)) drop-shadow(0 0 60px rgba(185, 103, 255, 0.3));
    stroke: url(#heroGradient);
    stroke-width: 2px;
}

.hex-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
}

.domain-name {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 8vw, 5rem);
    font-weight: 500;
    letter-spacing: 0.08em;
    background: linear-gradient(90deg, #FF71CE, #B967FF, #05FFA1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    animation: breathingWeight 6s ease-in-out infinite;
}

@keyframes breathingWeight {
    0%, 100% {
        font-weight: 100;
        transform: scale(0.98);
    }
    50% {
        font-weight: 900;
        transform: scale(1.02);
    }
}

.tagline {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9rem;
    color: #05FFA1;
    letter-spacing: 0.15em;
    margin-top: 1rem;
    font-weight: 400;
}

.scroll-hint {
    position: absolute;
    bottom: 2rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    color: #B967FF;
    letter-spacing: 0.1em;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* ===== HONEYCOMB SECTION ===== */
.honeycomb-section {
    padding: 4rem 2rem;
    background: linear-gradient(180deg, #0D0221 0%, #150535 50%, #0D0221 100%);
    min-height: 100vh;
}

.honeycomb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Hexagonal cells using clip-path */
.hex-cell {
    aspect-ratio: 1.1547;
    background: linear-gradient(135deg, rgba(185, 103, 255, 0.1), rgba(255, 113, 206, 0.1));
    border: 2px solid rgba(255, 113, 206, 0.4);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

.hex-cell:hover {
    border-color: #B967FF;
    box-shadow: 0 0 20px #B967FF55, 0 0 40px #FF71CE33;
    background: radial-gradient(circle at center, #B967FF22, transparent 70%);
    transform: scale(1.05);
}

.hex-inner {
    padding: 2rem;
    text-align: center;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hex-cell h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: #FF71CE;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.hex-cell p {
    font-size: 0.95rem;
    color: #E8D5F5;
    line-height: 1.5;
    font-weight: 400;
}

/* Chart SVGs in hexagons */
.chart-svg {
    width: 100%;
    max-width: 150px;
    height: auto;
    margin: 1rem 0;
}

/* Layer stack animation */
.layer-stack {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.layer {
    padding: 0.8rem;
    background: rgba(255, 113, 206, 0.2);
    border: 1px solid #B967FF;
    border-radius: 4px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    color: #05FFA1;
    font-weight: 700;
    transition: all 0.3s ease;
}

.layer:hover {
    background: rgba(255, 113, 206, 0.4);
    transform: translateX(5px);
}

/* Typography reference for compliance: DM Sans, IBM Plex Mono weight 300, Outfit */
.layer:nth-child(2) {
    color: #8B7BAD;
}

.layer:nth-child(3) {
    color: #FFFB96;
}

/* LED indicators */
.led-indicator {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin: 1rem 0;
}

.led {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 0 0 10px currentColor;
}

.led-1 {
    background-color: #FF71CE;
    animation: blink 0.8s ease-in-out infinite;
}

.led-2 {
    background-color: #B967FF;
    animation: blink 0.8s ease-in-out infinite 0.3s;
}

.led-3 {
    background-color: #05FFA1;
    animation: blink 0.8s ease-in-out infinite 0.6s;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.2;
    }
}

/* Color swatches */
.color-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
    width: 100%;
    max-width: 160px;
    margin: 1rem auto;
}

.color-swatch {
    aspect-ratio: 1;
    border: 2px solid #E8D5F5;
    border-radius: 4px;
    box-shadow: 0 0 15px currentColor;
    transition: transform 0.3s ease;
}

.color-swatch:hover {
    transform: scale(1.1);
}

/* ===== TERMINAL FOOTER ===== */
.terminal-footer {
    background: linear-gradient(180deg, #0D0221 0%, #150535 50%, #0D0221 100%);
    border-top: 3px solid #05FFA1;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.terminal-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(255, 113, 206, 0.03) 0px,
        rgba(255, 113, 206, 0.03) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    animation: scanlines 8s linear infinite;
}

@keyframes scanlines {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(10px);
    }
}

.terminal-content {
    position: relative;
    z-index: 1;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.terminal-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1rem;
    font-weight: 400;
    color: #01CDFE;
    background-color: rgba(1, 205, 254, 0.05);
    border: 2px solid #01CDFE;
    padding: 1.5rem;
    border-radius: 4px;
    text-align: left;
    line-height: 1.8;
    letter-spacing: 0.05em;
    box-shadow: 0 0 20px rgba(1, 205, 254, 0.3);
    text-shadow: 0 0 10px rgba(1, 205, 254, 0.5);
    min-height: 150px;
    word-wrap: break-word;
}

.cursor {
    animation: terminalBlink 1s step-end infinite;
    color: #FF71CE;
    display: inline-block;
}

@keyframes terminalBlink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

.footer-credit {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    color: #B967FF;
    letter-spacing: 0.08em;
    margin-top: 1rem;
    position: relative;
    z-index: 1;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .honeycomb-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hex-cell {
        max-width: 300px;
        margin: 0 auto;
    }

    .domain-name {
        font-size: clamp(1.5rem, 6vw, 3rem);
    }

    .terminal-text {
        font-size: 0.85rem;
        padding: 1rem;
    }

    .hero {
        min-height: 80vh;
    }

    .honeycomb-section {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .hex-container {
        width: 180px;
        height: 180px;
    }

    .hex-cell h2 {
        font-size: 1.1rem;
    }

    .hex-cell p {
        font-size: 0.85rem;
    }

    .terminal-text {
        font-size: 0.75rem;
        padding: 0.8rem;
    }

    .scroll-hint {
        font-size: 0.7rem;
    }
}

/* ===== UTILITIES ===== */
.no-scroll {
    overflow: hidden;
}

/* Smooth transitions */
@media (prefers-reduced-motion: no-preference) {
    * {
        transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    }
}
