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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'IBM Plex Sans', sans-serif;
    background: #0a0a0f;
    color: #d4dce8;
    line-height: 1.75;
    letter-spacing: 0.015em;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 30% 40%, #0d0d2b 0%, transparent 100%);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    animation: fadeInGlow 600ms ease-out 300ms forwards;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.05) 2px,
        rgba(0, 0, 0, 0.05) 4px
    );
    pointer-events: none;
    z-index: 9999;
}

@keyframes fadeInGlow {
    to {
        opacity: 1;
    }
}

.status-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 48px;
    background: #0a0a0f;
    border-bottom: 1px solid rgba(0, 229, 255, 0.15);
    display: flex;
    align-items: center;
    padding: 0 20px;
    z-index: 100;
    overflow: hidden;
}

.status-ticker {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    color: #00e5ff;
    letter-spacing: 0.08em;
    white-space: nowrap;
    animation: tickerScroll 40s linear infinite;
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
}

.status-bar:hover .status-ticker {
    animation-play-state: paused;
}

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

.comms-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 36px;
    background: #0a0a0f;
    border-top: 1px solid rgba(255, 0, 228, 0.5);
    display: flex;
    align-items: center;
    padding: 0 20px;
    z-index: 100;
    overflow: hidden;
}

.comms-text {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    color: #00e5ff;
    letter-spacing: 0.08em;
    white-space: nowrap;
    animation: commsSlide 45s linear infinite;
}

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

.main-container {
    display: grid;
    grid-template-columns: 180px 1fr 180px;
    gap: 0;
    margin-top: 48px;
    margin-bottom: 36px;
    min-height: calc(100vh - 84px);
    position: relative;
    z-index: 10;
}

@media (max-width: 1200px) {
    .main-container {
        grid-template-columns: 1fr;
    }
}

.left-rail {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 40px 20px;
    align-items: center;
}

@media (max-width: 1200px) {
    .left-rail {
        display: none;
    }
}

.status-indicator {
    color: #00e5ff;
    animation: pulseIndicator 3s ease-in-out infinite;
}

.status-indicator:nth-child(2) {
    animation-delay: 1s;
}

.status-indicator:nth-child(3) {
    animation-delay: 2s;
}

@keyframes pulseIndicator {
    0%, 100% {
        color: #00e5ff;
        opacity: 1;
    }
    50% {
        color: #333842;
        opacity: 0.4;
    }
}

.main-feed {
    padding: clamp(2rem, 5vh, 5rem) clamp(1.5rem, 3vw, 3rem);
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, 6vh, 6rem);
}

.right-rail {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

@media (max-width: 1200px) {
    .right-rail {
        display: none;
    }
}

.right-rail-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: 'Chakra Petch', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.4em;
    color: rgba(255, 0, 228, 0.3);
    white-space: nowrap;
    animation: railTextAppear 600ms ease-out 3.5s forwards;
    opacity: 0;
}

@keyframes railTextAppear {
    to {
        opacity: 1;
    }
}

.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 60px 40px;
    text-align: center;
    animation: heroFadeIn 1s ease-out 300ms forwards;
    opacity: 0;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.domain-name {
    font-family: 'Chakra Petch', sans-serif;
    font-size: clamp(3.5rem, 10vw, 8rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #d4dce8;
    text-shadow: 0 0 12px rgba(0, 229, 255, 0.3);
    display: flex;
    justify-content: center;
    gap: 0.05em;
    flex-wrap: wrap;
}

.domain-name .letter {
    display: inline-block;
    opacity: 0;
    animation: letterDrop 500ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
    position: relative;
}

@keyframes letterDrop {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.domain-name .letter:nth-child(1) { animation-delay: 1.5s; }
.domain-name .letter:nth-child(2) { animation-delay: 1.56s; }
.domain-name .letter:nth-child(3) { animation-delay: 1.62s; }
.domain-name .letter:nth-child(4) { animation-delay: 1.68s; }
.domain-name .letter:nth-child(5) { animation-delay: 1.74s; }
.domain-name .letter:nth-child(6) { animation-delay: 1.8s; }
.domain-name .letter:nth-child(7) { animation-delay: 1.86s; }
.domain-name .letter:nth-child(8) { animation-delay: 1.92s; }
.domain-name .letter:nth-child(9) { animation-delay: 1.98s; }
.domain-name .letter:nth-child(10) { animation-delay: 2.04s; }
.domain-name .letter:nth-child(11) { animation-delay: 2.1s; }
.domain-name .letter:nth-child(12) { animation-delay: 2.16s; }
.domain-name .letter:nth-child(13) { animation-delay: 2.22s; }

.hero-divider-top,
.hero-divider-bottom {
    width: 60%;
    height: 1px;
    max-width: 400px;
    stroke: #00e5ff;
    stroke-width: 1;
    opacity: 0.4;
    animation: expandLine 400ms ease-out forwards;
}

.hero-divider-top {
    animation-delay: 2.5s;
    opacity: 0;
}

.hero-divider-bottom {
    animation-delay: 2.5s;
    opacity: 0;
}

@keyframes expandLine {
    from {
        transform: scaleX(0);
        opacity: 0.4;
    }
    to {
        transform: scaleX(1);
        opacity: 0.4;
    }
}

.hero-subtitle {
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    letter-spacing: 0.3em;
    color: rgba(255, 0, 228, 0.6);
    text-transform: uppercase;
    animation: subtitleFade 600ms ease-out 3.5s forwards;
    opacity: 0;
}

@keyframes subtitleFade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.content-panel {
    padding: 40px;
    border: 1px solid rgba(0, 229, 255, 0.15);
    clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
    background: rgba(26, 28, 46, 0.5);
    animation: panelEnter 500ms ease-out forwards;
    opacity: 0;
    position: relative;
}

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

.content-panel:nth-of-type(2) {
    animation-delay: 3.8s;
}

.content-panel:nth-of-type(3) {
    animation-delay: 3.8s;
}

.content-panel:nth-of-type(4) {
    animation-delay: 3.8s;
}

.content-panel:nth-of-type(5) {
    animation-delay: 3.8s;
}

.content-panel:hover {
    border-color: rgba(0, 229, 255, 0.4);
    filter: brightness(1.08);
}

.channel-header {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    color: #ffab00;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}

.section-icon {
    margin: 0 0 20px 0;
    color: #00e5ff;
    opacity: 0.8;
    animation: iconScale 500ms ease-out forwards;
    transform-origin: center;
}

@keyframes iconScale {
    from {
        transform: scale(0.7);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 0.8;
    }
}

.content-panel:nth-of-type(2) .section-icon {
    animation-delay: 4.0s;
}

.content-panel:nth-of-type(3) .section-icon {
    animation-delay: 4.0s;
}

.content-panel:nth-of-type(4) .section-icon {
    animation-delay: 4.0s;
}

.content-panel:nth-of-type(5) .section-icon {
    animation-delay: 4.0s;
}

.content-panel h2 {
    font-family: 'Chakra Petch', sans-serif;
    font-size: clamp(1.8rem, 4.5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #d4dce8;
    margin-bottom: 20px;
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.15);
}

.content-panel h2:hover {
    color: #00e5ff;
    cursor: pointer;
}

.content-panel p {
    font-size: clamp(0.95rem, 1.1vw, 1.15rem);
    color: rgba(212, 220, 232, 0.85);
    margin-bottom: 16px;
}

.content-panel p:last-child {
    margin-bottom: 0;
}

.footer-section {
    text-align: center;
    padding: 60px 40px;
    animation: panelEnter 500ms ease-out 4.2s forwards;
    opacity: 0;
}

.transmission-status {
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    letter-spacing: 0.3em;
    color: rgba(0, 229, 255, 0.6);
    text-transform: uppercase;
}

a {
    color: #d4dce8;
    text-decoration: none;
    transition: color 150ms ease;
    position: relative;
    background: linear-gradient(to right, currentColor 0%, currentColor 0%, transparent 0%) bottom / 0% 1px no-repeat;
    transition: background-size 200ms ease;
}

a:hover {
    color: #00e5ff;
    background-size: 100% 1px;
}

@media (max-width: 768px) {
    .main-container {
        grid-template-columns: 1fr;
        margin-bottom: 40px;
    }

    .main-feed {
        padding: clamp(1.5rem, 4vh, 3rem) clamp(1rem, 2vw, 2rem);
        gap: clamp(1.5rem, 4vh, 4rem);
    }

    .content-panel {
        padding: 24px;
    }

    .domain-name {
        font-size: clamp(2rem, 8vw, 4rem);
    }

    .hero-section {
        padding: 40px 20px;
    }
}
