/* tanso.biz - Y2K Carbon Data Portal */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --space-indigo: #0A0A18;
    --midnight-chrome: #141428;
    --chrome-start: #E0E0F0;
    --chrome-end: #606080;
    --y2k-blue: #60C0FF;
    --y2k-pink: #FF60A0;
    --text-primary: #E8E8F0;
    --text-body: #B8B8D0;
    --data-color: #8888B0;
}
body {
    background: var(--space-indigo);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    font-weight: 400;
    overflow-x: hidden;
    position: relative;
}

/* Starfield */
.starfield {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 25% 45%, rgba(255,255,255,0.2), transparent),
        radial-gradient(2px 2px at 40% 10%, rgba(255,255,255,0.15), transparent),
        radial-gradient(1px 1px at 55% 65%, rgba(255,255,255,0.25), transparent),
        radial-gradient(1px 1px at 70% 30%, rgba(255,255,255,0.1), transparent),
        radial-gradient(2px 2px at 85% 55%, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 15% 75%, rgba(255,255,255,0.15), transparent),
        radial-gradient(1px 1px at 90% 80%, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 50% 90%, rgba(255,255,255,0.1), transparent),
        radial-gradient(2px 2px at 30% 85%, rgba(255,255,255,0.2), transparent);
    animation: starDrift 60s linear infinite;
}
@keyframes starDrift {
    0% { transform: translateX(0); }
    100% { transform: translateX(-30px); }
}

/* Hero */
#hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}
.hero-hex {
    text-align: center;
    padding: 3rem;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: var(--midnight-chrome);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    width: 360px;
    aspect-ratio: 1 / 1.15;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.hero-title {
    font-family: 'Bodoni Moda', serif;
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--chrome-start), var(--chrome-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-meta {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    color: var(--y2k-blue);
    margin-top: 0.5rem;
}

/* Grid */
#grid {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem 3rem;
    position: relative;
    z-index: 1;
}
.hex-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    justify-items: center;
}

/* Hex Cells */
.hex-cell {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1 / 1.15;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(135deg, rgba(224,224,240,0.08), rgba(96,96,128,0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hex-cell:hover {
    transform: translateY(-4px);
}
.hex-cell:nth-child(even) {
    transform: translateY(50%);
}
.hex-cell:nth-child(even):hover {
    transform: translateY(calc(50% - 4px));
}
.hex-inner {
    padding: 2rem 1.5rem;
    text-align: center;
}
.cell-title {
    font-family: 'Bodoni Moda', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}
.cell-body {
    font-size: 0.85rem;
    color: var(--text-body);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}
.data-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--y2k-blue);
}

/* Section animation */
.section {
    opacity: 0;
    transform: translateY(15px) scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.section.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.hex-cell:nth-child(even).visible {
    transform: translateY(50%) scale(1);
}

/* Footer */
#footer {
    text-align: center;
    padding: 3rem 2rem;
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(96,192,255,0.1);
}
.footer-text {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: var(--data-color);
}

/* Responsive */
@media (max-width: 800px) {
    .hex-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
    .hex-grid { grid-template-columns: 1fr; }
    .hex-cell:nth-child(even) { transform: none; }
    .hex-cell:nth-child(even).visible { transform: none; }
    .hero-hex { width: 280px; }
}
