/* ============================================================
   simai.xyz — Y2K Futurism × Ocean Depth
   Color Palette:
     #030D14  Abyss Black (Background Deep)
     #071828  Midnight Sea (Background Mid)
     #0A2535  Pressure Teal-Blue (Surface Panel)
     #00D2C8  Bioluminescent Cyan (Primary Accent / Border at 18%)
     #A8D8E8  Ice Chrome (Secondary Accent)
     #E8F4F8  Signal White (Highlight)
     #4A7A8A  Deep Slate (Dim Text)
     #1E3A5F  Depth Indigo (Data Accent)
     #007A74  Teal Dark
     #004A46  Deep Teal
     #2A4A5F  Ocean Dark
     #5A8A9F  Ocean Mid
   Typography:
     Space Grotesk 800/700/400 — Display / Headlines
     IBM Plex Mono 400/500 — Body / UI / Readouts
   ============================================================ */

/* === RESET & BASE === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #030D14;
    color: #A8D8E8;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
    /* Subtle horizontal grid lines — graph-paper substrate */
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 39px,
        rgba(0, 210, 200, 0.04) 39px,
        rgba(0, 210, 200, 0.04) 40px
    );
}

/* === GRID TEXTURE OVERLAY === */
#grid-texture {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 39px,
        rgba(0, 210, 200, 0.03) 39px,
        rgba(0, 210, 200, 0.03) 40px
    );
}

/* === SONAR SWEEP OVERLAY === */
#sonar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    opacity: 0.5;
}

#sonar-svg {
    width: 100%;
    height: 100%;
}

/* === CONTAINER === */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
    z-index: 10;
}

/* === STATUS BAR === */
#status-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 36px;
    z-index: 100;
    background-color: #030D14;
    border-bottom: 1px solid rgba(0, 210, 200, 0.25);
    display: flex;
    align-items: center;
    overflow: hidden;
    transition: background-color 300ms ease, backdrop-filter 300ms ease;
}

#status-bar.scrolled {
    background-color: rgba(3, 13, 20, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#status-ticker-wrap {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

#status-ticker {
    display: inline-block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.06em;
    color: #4A7A8A;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
}

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

/* === HERO === */
#hero {
    min-height: 100vh;
    padding-top: 36px;
    background: radial-gradient(ellipse at 30% 60%, #0A2535 0%, #030D14 70%);
    display: flex;
    align-items: stretch;
    position: relative;
    overflow: hidden;
}

#hero .container {
    width: 100%;
    display: flex;
    align-items: stretch;
}

#hero-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 32px;
    min-height: calc(100vh - 36px);
}

#hero-left {
    align-self: start;
    padding-top: 15vh;
    padding-bottom: 32px;
}

#hero-headline {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: clamp(64px, 15vw, 120px);
    color: #E8F4F8;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 24px;
}

#hero-subhead {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: 1.5rem;
    color: #A8D8E8;
    letter-spacing: 0.02em;
    margin-bottom: 16px;
    line-height: 1.4;
}

#hero-version {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    color: #4A7A8A;
    letter-spacing: 0.06em;
}

#hero-right {
    align-self: end;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding-bottom: 0;
}

#mountain-svg {
    width: 100%;
    max-width: 480px;
    height: auto;
    display: block;
}

.peak-glow polygon:first-child {
    animation: peak-pulse 4s ease-in-out infinite;
}

@keyframes peak-pulse {
    0%, 100% { opacity: 0.4; }
    50%       { opacity: 1.0; }
}

/* === FEATURES === */
#features {
    background-color: #071828;
    padding: 0 0 40px;
    position: relative;
    z-index: 10;
}

#features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-left: 1px solid rgba(0, 210, 200, 0.18);
    border-top: 1px solid rgba(0, 210, 200, 0.18);
}

.feature-module {
    padding: 32px;
    border-right: 1px solid rgba(0, 210, 200, 0.18);
    border-bottom: 1px solid rgba(0, 210, 200, 0.18);
    background-color: #071828;
    transition: transform 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border-color 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    transform: translateY(16px);
}

.feature-module.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 400ms ease, transform 400ms ease,
                box-shadow 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.feature-module:hover {
    transform: scale(1.04);
    box-shadow: 0 0 24px rgba(0, 210, 200, 0.12);
    border-color: rgba(0, 210, 200, 0.45);
    z-index: 1;
    position: relative;
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    transition: transform 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.feature-module:hover .feature-icon {
    transform: scale(1.12);
}

.feature-icon svg.iso-icon {
    width: 48px;
    height: 48px;
}

.feature-label {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    color: #00D2C8;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.feature-desc {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    color: #A8D8E8;
    line-height: 1.5;
    max-width: 22ch;
}

/* === SONAR DIVIDER === */
#sonar-divider {
    position: relative;
    z-index: 10;
    height: 80px;
    background-color: #071828;
    display: flex;
    align-items: center;
}

#sonar-divider svg {
    width: 100%;
    height: 80px;
}

.sonar-divider-line {
    position: relative;
    z-index: 10;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #00D2C8 50%, transparent 100%);
    margin: 0;
}

/* === PRIMARY CONTENT === */
#primary-content {
    background-color: #071828;
    padding: 80px 0;
    position: relative;
    z-index: 10;
}

#content-grid {
    display: grid;
    grid-template-columns: 8fr 4fr;
    gap: 40px;
    align-items: start;
}

#main-content {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 400ms ease, transform 400ms ease;
}

#main-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #00D2C8;
    margin-bottom: 16px;
    margin-top: 48px;
}

.section-heading:first-child {
    margin-top: 0;
}

#main-content p {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 16px;
    line-height: 1.7;
    color: #A8D8E8;
    margin-bottom: 24px;
    max-width: 72ch;
}

/* === SIDEBAR / DEPTH READOUT === */
#sidebar {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 400ms ease, transform 400ms ease;
    transition-delay: 50ms;
}

#sidebar.visible {
    opacity: 1;
    transform: translateY(0);
}

#depth-readout {
    background-color: #0A2535;
    border: 1px solid rgba(0, 210, 200, 0.18);
    padding: 24px;
    position: sticky;
    top: 60px;
}

.readout-header {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #00D2C8;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 210, 200, 0.18);
    margin-bottom: 16px;
}

.readout-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 14px;
    gap: 4px;
}

.readout-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #4A7A8A;
}

.readout-value {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    color: #A8D8E8;
    letter-spacing: 0.04em;
}

.bar-filled {
    color: #00D2C8;
}

.bar-empty {
    color: #1E3A5F;
}

.readout-pct {
    color: #A8D8E8;
}

.ping-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #00D2C8;
    border-radius: 50%;
    margin-right: 4px;
    vertical-align: middle;
    animation: ping-blink 2s ease-in-out infinite;
}

@keyframes ping-blink {
    0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(0, 210, 200, 0.8); }
    50%       { opacity: 0.3; box-shadow: none; }
}

/* === ICON GALLERY === */
#icon-gallery {
    background-color: #030D14;
    padding: 80px 0;
    position: relative;
    z-index: 10;
}

#gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    border-left: 1px solid rgba(0, 210, 200, 0.12);
    border-top: 1px solid rgba(0, 210, 200, 0.12);
}

.gallery-cell {
    border-right: 1px solid rgba(0, 210, 200, 0.12);
    border-bottom: 1px solid rgba(0, 210, 200, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    transition: border-color 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    transform: translateY(16px);
}

.gallery-cell.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 400ms ease, transform 400ms ease,
                border-color 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-cell:hover {
    border-color: #00D2C8;
}

.gallery-cell:hover .gallery-icon {
    filter: drop-shadow(0 0 8px rgba(0, 210, 200, 0.6));
}

.gallery-icon {
    width: 80px;
    height: 80px;
    transition: filter 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* === FOOTER === */
#footer {
    background-color: #030D14;
    border-top: 1px solid rgba(0, 210, 200, 0.18);
    padding: 64px 0 48px;
    position: relative;
    z-index: 10;
}

#footer-domain {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 3rem;
    color: rgba(232, 244, 248, 0.15);
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

#footer-transmission {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.06em;
    color: #4A7A8A;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    #hero-grid {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-bottom: 40px;
    }

    #hero-left {
        padding-top: 10vh;
    }

    #hero-right {
        justify-content: center;
    }

    #mountain-svg {
        max-width: 340px;
        margin: 0 auto;
    }

    #content-grid {
        grid-template-columns: 1fr;
    }

    #depth-readout {
        position: static;
    }

    #gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    #features-grid {
        grid-template-columns: 1fr;
    }

    #gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #hero-headline {
        font-size: clamp(48px, 18vw, 96px);
    }

    #hero-subhead {
        font-size: 1.2rem;
    }

    #footer-domain {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    #gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
