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

:root {
    --color-red: #ff2e2e;
    --color-red-dark: #971313;
    --color-black: #000000;
    --color-white: #ffffff;
    --color-gray-50: #f8f9fa;
    --color-gray-100: #e9ecef;
    --color-gray-200: #dee2e6;
    --color-gray-800: #343a40;
    --color-gray-900: #212529;
    --color-blue: #0066ff;
    
    --transition-default: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-white);
    color: var(--color-black);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Background Elements */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, rgba(0, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    opacity: 0.4;
    pointer-events: none;
}

.bg-dots {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: -1;
    opacity: 0.3;
    pointer-events: none;
}

.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* SECTION 1: HERO */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.logo-wrapper {
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo-visual {
    position: relative;
    width: 80px;
    height: 80px;
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: float 6s ease-in-out infinite;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(255, 46, 46, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: pulse-glow 4s ease-in-out infinite;
}

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

@keyframes pulse-glow {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.05); }
}

.logo-main {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.logo-text {
    font-size: 4.5rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    position: relative;
    background: linear-gradient(90deg, var(--color-black) 70%, rgba(0,0,0,0.8) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.text-span {
    color: var(--color-red-dark);
}

.accent-dot {
    width: 12px;
    height: 12px;
    background-color: var(--color-red);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.accent-line {
    width: 40px;
    height: 2px;
    background-color: var(--color-red);
    transform-origin: left;
    animation: stretch 3s infinite;
    margin-left: 0.5rem;
}

.sub-headline {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-gray-800);
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 600px;
}

.text-reveal {
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.text-reveal::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-white);
    animation: revealText 1.5s ease forwards;
    animation-delay: 0.5s;
}

@keyframes revealText {
    from { transform: translateX(0); }
    to { transform: translateX(101%); }
}

.hero-body {
    margin-top: 4rem;
}

.body-text {
    font-size: 2rem;
    font-weight: 300;
    line-height: 1.4;
    margin-bottom: 4rem;
    max-width: 800px;
}

.text-highlight {
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.text-highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-red);
    transform: scaleX(0);
    transform-origin: left;
    animation: underlineReveal 1s ease forwards;
    animation-delay: 1.5s;
}

.terminal-preview {
    background-color: var(--color-gray-900);
    border-radius: 16px;
    padding: 1.5rem;
    max-width: 600px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 0 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all var(--transition-default);
    position: relative;
}

.terminal-preview:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 46, 46, 0.1),
        inset 0 0 40px rgba(0, 0, 0, 0.4);
}

.terminal-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-red), transparent);
    animation: scanline 2s linear infinite;
}

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

.terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.terminal-dots {
    display: flex;
    gap: 0.5rem;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: transform var(--transition-default);
}

.terminal-dot.red { background-color: #ff5f56; }
.terminal-dot.yellow { background-color: #ffbd2e; }
.terminal-dot.green { background-color: #27c93f; }

.terminal-dots:hover .terminal-dot {
    transform: scale(1.2);
}

.terminal-title {
    color: var(--color-gray-100);
    font-size: 0.875rem;
    opacity: 0.7;
    font-family: 'Monaco', 'Consolas', monospace;
}

.terminal-body {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.95rem;
}

.terminal-line {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    transform: translateY(10px);
    animation: lineAppear 0.5s ease forwards;
}

.terminal-line:nth-child(1) { animation-delay: 0.3s; }
.terminal-line:nth-child(2) { animation-delay: 0.6s; }
.terminal-line:nth-child(3) { animation-delay: 0.9s; }
.terminal-line:nth-child(4) { animation-delay: 1.2s; }
.terminal-line:nth-child(5) { animation-delay: 1.5s; }

@keyframes lineAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.terminal-prompt {
    color: var(--color-red);
    font-weight: 600;
}

.terminal-command {
    color: var(--color-white);
    position: relative;
}

.terminal-command::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-red);
    animation: typewriter 1s ease forwards;
    animation-delay: 1.8s;
}

@keyframes typewriter {
    to { width: 100%; }
}

.terminal-output {
    color: var(--color-gray-100);
    opacity: 0.8;
}

.terminal-cursor {
    color: var(--color-red);
    animation: blink 1s infinite;
}

.blinking {
    animation: blinkCursor 1s infinite;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: transform var(--transition-default);
}

.scroll-indicator:hover {
    transform: translateX(-50%) translateY(5px);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--color-red), transparent);
    animation: scrollLine 2s infinite;
}

.scroll-text {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--color-gray-800);
    font-weight: 500;
}

/* SECTION 2: DIMENSIONS */
.switch-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 4rem;
    position: relative;
    overflow: hidden;
}

.switch-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gray-200), transparent);
}

.dimension-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    height: 70vh;
    max-height: 700px;
    position: relative;
    margin-bottom: 3rem;
}

.dimension {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    transition: all var(--transition-slow);
    cursor: pointer;
    background-color: var(--color-white);
}

.dimension-syifa {
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 
        -20px 0 40px rgba(0, 0, 0, 0.05),
        inset 1px 0 0 rgba(255, 255, 255, 0.8);
}

.dimension-kaishi {
    background-color: var(--color-black);
    border: 1px solid rgba(255, 46, 46, 0.2);
    box-shadow: 
        20px 0 40px rgba(255, 46, 46, 0.1),
        inset -1px 0 0 rgba(255, 46, 46, 0.1);
}

.dimension-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0.3) 100%
    );
    z-index: 1;
    transition: opacity var(--transition-slow);
}

.dimension-kaishi .dimension-overlay {
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        rgba(0, 0, 0, 0.3) 100%
    );
}

.dimension:hover .dimension-overlay {
    opacity: 0.7;
}

.dimension-content {
    position: relative;
    z-index: 2;
    padding: 3rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform var(--transition-slow);
}

.dimension:hover .dimension-content {
    transform: translateY(-10px);
}

.dimension-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.dimension-name {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.dimension-syifa .dimension-name {
    color: var(--color-black);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dimension-kaishi .dimension-name {
    color: var(--color-white);
    text-shadow: 0 2px 4px rgba(255, 46, 46, 0.2);
}

.dimension-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.dimension-tag.red {
    background-color: rgba(255, 46, 46, 0.2);
    color: var(--color-red);
}

.dimension-description {
    margin-bottom: 3rem;
    max-width: 80%;
}

.dimension-description-syifa h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-gray-900);
}

.dimension-description-kaishi h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.dimension-description-syifa p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.8;
}

.dimension-description-kaishi p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.8;
    color: var(--color-white);
}

.dimension-features {
    display: flex;
    gap: 1.5rem;
    margin: 1rem 0 3rem 0;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    opacity: 0.9;
}

.feature i {
    font-size: 1rem;
}

.feature-kaishi {
    color: var(--color-white);
}

.feature-kaishi i {
    color: var(--color-red);
}

.dimension-enter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    background-color: var(--color-black);
    color: var(--color-white);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    transition: all var(--transition-bounce);
    width: fit-content;
    border: 2px solid transparent;
}

.dimension-enter-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background-color: var(--color-red-dark);
}

.dimension-enter-btn.red {
    background-color: var(--color-red-dark);
}

.dimension-enter-btn.red:hover {
    background-color: var(--color-white);
    color: var(--color-red-dark);
}

.dimension-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0;
    transition: opacity var(--transition-slow);
    pointer-events: none;
}

.dimension:hover .dimension-grid {
    opacity: 1;
}

.dimension-grid.dark {
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}

.dimension-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity var(--transition-slow);
    pointer-events: none;
}

.dimension:hover .dimension-particles {
    opacity: 0.3;
}

.dimension-particles::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at var(--x, 50%) var(--y, 50%), 
        rgba(255, 46, 46, 0.2) 0%, 
        transparent 50%);
}

.dimension-divider {
    position: relative;
    width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.divider-center {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.divider-orbit {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px dashed rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

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

.orbit-circle {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: var(--color-red);
    border-radius: 50%;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
}

.orbit-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: var(--color-black);
    border-radius: 50%;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.5;
}

.divider-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-gray-800);
    background-color: var(--color-white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    border: 1px solid var(--color-gray-200);
    position: relative;
    z-index: 2;
}

.context-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
}

.indicator-line {
    width: 300px;
    height: 2px;
    background-color: rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.indicator-slider {
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    height: 100%;
    background-color: var(--color-red);
    transition: all var(--transition-default);
    border-radius: 1px;
}

.dimension-syifa:hover ~ .context-indicator .indicator-slider {
    left: 0;
    width: 50%;
}

.dimension-kaishi:hover ~ .context-indicator .indicator-slider {
    left: 50%;
    width: 50%;
}

.indicator-text {
    display: flex;
    gap: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.indicator-active {
    color: var(--color-red);
    transition: color var(--transition-default);
}

.indicator-inactive {
    opacity: 0.5;
    transition: opacity var(--transition-default);
}

.dimension-syifa:hover ~ .context-indicator .indicator-active {
    color: var(--color-black);
}

.dimension-syifa:hover ~ .context-indicator .indicator-inactive {
    opacity: 0.3;
}

.dimension-kaishi:hover ~ .context-indicator .indicator-active {
    color: var(--color-red);
}

/* SECTION 3: FOOTER */
.footer-section {
    padding: 4rem 0 3rem;
    background-color: var(--color-white);
    border-top: 1px solid var(--color-gray-100);
    position: relative;
    overflow: hidden;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.footer-identity {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.footer-logo-img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.footer-tagline {
    font-size: 0.875rem;
    color: var(--color-gray-800);
    line-height: 1.4;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.link-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.link-title {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--color-gray-800);
    margin-bottom: 0.5rem;
}

.footer-link {
    text-decoration: none;
    color: var(--color-black);
    font-size: 0.875rem;
    transition: transform 200ms ease, color 150ms ease;
    position: relative;
    display: inline-block;
    padding: 0.25rem 0;
}

.footer-link:hover {
    color: var(--color-red);
    transform: translateX(5px);
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-red);
    transition: width var(--transition-default);
}

.footer-link:hover::after {
    width: 100%;
}

.footer-bottom {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 3rem;
    margin-top: 3rem;
    border-top: 1px solid var(--color-gray-100);
}

.system-status {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #27c93f;
    animation: pulse 2s infinite;
}

.status-dot.active {
    background-color: #27c93f;
}

.status-text {
    font-size: 0.75rem;
    color: var(--color-gray-800);
    font-weight: 500;
}

.status-data {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--color-gray-800);
    opacity: 0.7;
}

.data-item {
    position: relative;
    padding-left: 1rem;
}

.data-item::before {
    content: '■';
    position: absolute;
    left: 0;
    color: var(--color-red);
    font-size: 0.5rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .dimension-container {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto 1fr;
        height: auto;
        min-height: 120vh;
        gap: 2rem;
    }
    
    .dimension-divider {
        width: 100%;
        height: 100px;
    }
    
    .divider-center {
        transform: rotate(90deg);
    }
}

@media (max-width: 768px) {
    .logo-wrapper {
        flex-direction: row;
        align-items: flex-start;
        gap: 1rem;
    }

    .dimension-container {
        padding: 0 1.5rem;
    }
    
    .logo-text {
        font-size: 3rem;
    }
    
    .logo-visual {
        width: 60px;
        height: 60px;
    }
    
    .sub-headline {
        font-size: 1.25rem;
    }
    
    .body-text {
        font-size: 1.5rem;
    }
    
    .dimension-content {
        padding: 2rem;
    }
    
    .dimension-name {
        font-size: 2rem;
    }
    
    .dimension-features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .system-status {
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-section {
        padding: 1rem 0 3rem;
    }
    
    .logo-text {
        font-size: 2.5rem;
    }
    
    .terminal-preview {
        padding: 1rem;
    }
    
    .switch-section {
        padding: 3rem 0;
    }
    
    .dimension-content {
        padding: 1.5rem;
    }
}