/* ============================================
   ethica.dev - Neomorphism Soft UI
   ============================================ */

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

body {
    background: #E4E9F0;
    color: #1E293B;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.7;
    overflow-x: hidden;
}

/* --- NEOMORPHIC SYSTEM --- */
.neo-raised {
    box-shadow: 8px 8px 16px #C8CDD5, -8px -8px 16px #FFFFFF;
    border-radius: 16px;
}

.neo-recessed {
    box-shadow: inset 8px 8px 16px #C8CDD5, inset -8px -8px 16px #FFFFFF;
    border-radius: 16px;
}

/* --- HERO --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    overflow: hidden;
}

.compass-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

.moral-compass {
    width: 400px;
    height: 400px;
    animation: compass-rotate 60s linear infinite;
}

@keyframes compass-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(10px);
}

.hero-content.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: 0.01em;
    color: #1E293B;
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #EDF1F7;
    margin-bottom: 1.5rem;
}

.hero-desc {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: #64748B;
    max-width: 50ch;
    margin: 0 auto 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.neo-btn {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: #6D5BBA;
    background: #EDF1F7;
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    cursor: pointer;
    box-shadow: 4px 4px 8px #C8CDD5, -4px -4px 8px #FFFFFF;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
    opacity: 0;
}

.neo-btn.raised {
    opacity: 1;
    box-shadow: 8px 8px 16px #C8CDD5, -8px -8px 16px #FFFFFF;
    transition: opacity 0.5s ease, box-shadow 0.5s ease;
}

.neo-btn:active,
.neo-btn.pressed {
    box-shadow: inset 8px 8px 16px #C8CDD5, inset -8px -8px 16px #FFFFFF;
    transform: scale(0.98);
}

/* --- SECTION TITLE --- */
.section-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.8rem;
    color: #1E293B;
    text-align: center;
    margin-bottom: 2rem;
}

/* --- BENTO GRID --- */
.showcase-section {
    padding: 4rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.neo-card {
    background: #EDF1F7;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 0 0 transparent;
    opacity: 0;
    transition: box-shadow 0.4s ease, opacity 0.4s ease;
}

.neo-card.visible {
    opacity: 1;
    box-shadow: 8px 8px 16px #C8CDD5, -8px -8px 16px #FFFFFF;
}

.card-wide {
    grid-column: span 2;
}

.card-tag {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

.tag-dilemma {
    background: rgba(109,91,186,0.15);
    color: #6D5BBA;
}

.tag-scenario {
    background: rgba(59,130,246,0.15);
    color: #3B82F6;
}

.tag-debate {
    background: rgba(52,211,153,0.15);
    color: #34D399;
}

.card-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: #1E293B;
    margin-bottom: 0.5rem;
}

.card-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #64748B;
    line-height: 1.7;
}

/* --- TOGGLE SWITCH --- */
.toggle-switch {
    width: 44px;
    height: 24px;
    border-radius: 12px;
    background: #E4E9F0;
    box-shadow: inset 4px 4px 8px #C8CDD5, inset -4px -4px 8px #FFFFFF;
    position: relative;
    margin-top: 1rem;
}

.toggle-circle {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #6D5BBA;
    position: absolute;
    top: 3px;
    left: 3px;
    box-shadow: 2px 2px 4px #C8CDD5;
}

/* --- CODE SECTION --- */
.code-section {
    padding: 4rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.code-panel {
    background: #1E1E2E;
    padding: 2rem;
    overflow-x: auto;
}

.code-content pre {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #E4E9F0;
}

.code-keyword { color: #6D5BBA; }
.code-function { color: #3B82F6; }
.code-string { color: #34D399; }
.code-comment { color: #64748B; font-style: italic; }

/* --- COMMUNITY --- */
.community-section {
    padding: 4rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.community-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contributor {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #EDF1F7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: #6D5BBA;
    box-shadow: 4px 4px 8px #C8CDD5, -4px -4px 8px #FFFFFF;
}

.contributor-name {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #64748B;
}

/* --- FOOTER --- */
.footer {
    padding: 4rem 2rem;
    text-align: center;
    background: #E4E9F0;
}

.footer-text {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #1E293B;
    margin-bottom: 0.5rem;
}

.footer-sub {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #6D5BBA;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .card-wide {
        grid-column: span 1;
    }

    .moral-compass {
        width: 250px;
        height: 250px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
