:root {
    --primary-color: #333333;
    --secondary-color: #666666;
    --text-color: #ffffff;
    --background-color: #111111;
    --lumon-white: #ffffff;
    --lumon-light-gray: #f1f2f3;
    --lumon-dark-gray: #333333;
    --lumon-medium-gray: #666666;
    --lumon-black: #000000;
    --font-family-main: 'Lexend', sans-serif;
    --font-family-mono: 'Space Mono', monospace;
    --spacing-unit: 8px;
    --letter-spacing-normal: 0.02em;
    --letter-spacing-wide: 0.05em;
    --letter-spacing-wider: 0.1em;
    
    /* Mode-specific colors */
    --outie-bg: #111111;
    --outie-text: #ffffff;
    --outie-card-bg: #222222;
    --innie-bg: #ffffff;
    --innie-text: #333333;
    --innie-card-bg: #f1f2f3;
}

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

html {
    scroll-behavior: smooth;
    filter: grayscale(100%) contrast(105%);
}

body {
    font-family: var(--font-family-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
    position: relative;
    letter-spacing: var(--letter-spacing-normal);
    font-weight: 300;
}

/* Film grain effect */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    pointer-events: none;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

.hidden-message {
    position: fixed;
    color: rgba(0, 0, 0, 0.02);
    font-size: 100px;
    z-index: -1;
    user-select: none;
    pointer-events: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-family: var(--font-family-mono);
}

/* Header and Navigation */
header {
    background-color: var(--lumon-black);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: calc(var(--spacing-unit) * 2) var(--spacing-unit);
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
    margin-right: 12px;
}

.logo h1 {
    font-weight: 400;
    color: var(--lumon-white);
    font-size: 24px;
    letter-spacing: var(--letter-spacing-wider);
    text-transform: uppercase;
}

.logo-innie {
    display: none;
}

.logo-outie {
    display: block;
}

.innie-mode .logo-innie {
    display: block;
}

.innie-mode .logo-outie {
    display: none;
}

.innie-mode .logo h1 {
    color: var(--lumon-black);
}

.header-bifurcation-wrapper {
    margin-left: auto;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: calc(var(--spacing-unit) * 3);
}

nav ul li a {
    text-decoration: none;
    color: var(--lumon-white);
    font-weight: 400;
    transition: color 0.3s ease;
    letter-spacing: var(--letter-spacing-wide);
    text-transform: uppercase;
    font-size: 14px;
}

nav ul li a:hover {
    color: var(--lumon-light-gray);
}

/* Mobile menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 25px;
    position: relative;
    z-index: 200;
}

.menu-toggle span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--lumon-white);
    border-radius: 1px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.menu-toggle span:nth-child(1) {
    top: 0px;
}

.menu-toggle span:nth-child(2),
.menu-toggle span:nth-child(3) {
    top: 10px;
}

.menu-toggle span:nth-child(4) {
    top: 20px;
}

.menu-toggle.active span:nth-child(1) {
    top: 10px;
    width: 0%;
    left: 50%;
}

.menu-toggle.active span:nth-child(2) {
    transform: rotate(45deg);
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
}

.menu-toggle.active span:nth-child(4) {
    top: 10px;
    width: 0%;
    left: 50%;
}

/* Hero Section */
.hero {
    background-color: var(--outie-bg);
    padding: calc(var(--spacing-unit) * 16) 0 calc(var(--spacing-unit) * 10);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h2 {
    font-size: 42px;
    font-weight: 400;
    margin-bottom: calc(var(--spacing-unit) * 5);
    color: var(--outie-text);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: var(--letter-spacing-wide);
    text-transform: uppercase;
}

.hero p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto calc(var(--spacing-unit) * 6);
    color: var(--outie-text);
    letter-spacing: var(--letter-spacing-normal);
    line-height: 1.7;
}

.featured-at {
    font-size: 14px !important;
    opacity: 0.8;
    font-style: italic;
    letter-spacing: var(--letter-spacing-normal);
    margin-top: calc(var(--spacing-unit) * 4) !important;
    font-family: var(--font-family-mono);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: calc(var(--spacing-unit) * 2);
    margin-top: calc(var(--spacing-unit) * 6);
}

.btn {
    display: inline-block;
    padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 3);
    border-radius: 0; /* Severance uses more angular design */
    font-weight: 400;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wide);
    font-size: 14px;
}

.btn-primary {
    background-color: var(--lumon-black);
    color: white;
}

.btn-primary:hover {
    background-color: var(--lumon-dark-gray);
}

.btn-secondary {
    background-color: var(--lumon-light-gray);
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: #e1e2e3;
}

/* Disabled button styles for innies */
.btn.disabled,
.btn[disabled] {
    background-color: #666;
    color: #aaa;
    cursor: not-allowed;
    opacity: 0.7;
    text-decoration: line-through;
    pointer-events: none;
}

.btn.disabled:hover,
.btn[disabled]:hover {
    background-color: #666;
}

/* About Section */
.about {
    padding: calc(var(--spacing-unit) * 12) 0;
    background-color: var(--background-color);
}

.about h2 {
    font-size: 32px;
    margin-bottom: calc(var(--spacing-unit) * 6);
    color: var(--text-color);
    text-align: center;
    letter-spacing: var(--letter-spacing-wide);
    text-transform: uppercase;
    font-weight: 400;
}

.about p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto calc(var(--spacing-unit) * 8);
    text-align: center;
    line-height: 1.7;
    letter-spacing: var(--letter-spacing-normal);
    color: var(--text-color);
}

.quote {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.quote blockquote {
    font-style: italic;
    font-size: 18px;
    color: var(--text-color);
    position: relative;
    padding: 0 calc(var(--spacing-unit) * 4);
    font-family: var(--font-family-mono);
    letter-spacing: 0;
    line-height: 1.5;
}

.quote blockquote:before,
.quote blockquote:after {
    content: '"';
    font-size: 40px;
    position: absolute;
    opacity: 0.3;
    font-family: var(--font-family-main);
}

.quote blockquote:before {
    left: 0;
    top: -10px;
}

.quote blockquote:after {
    right: 0;
    bottom: -20px;
}

/* Features Section */
.features {
    padding: calc(var(--spacing-unit) * 12) 0;
    background-color: var(--outie-bg);
}

.features h2 {
    font-size: 32px;
    margin-bottom: calc(var(--spacing-unit) * 8);
    color: var(--outie-text);
    text-align: center;
    letter-spacing: var(--letter-spacing-wide);
    text-transform: uppercase;
    font-weight: 400;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(var(--spacing-unit) * 4);
}

.feature-card {
    background-color: var(--outie-card-bg);
    padding: calc(var(--spacing-unit) * 4);
    border-radius: 0; /* Angular, Severance-style */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: calc(var(--spacing-unit) * 3);
    color: var(--outie-text);
    letter-spacing: var(--letter-spacing-wide);
    text-transform: uppercase;
    font-weight: 400;
}

.feature-card p {
    font-size: 16px;
    color: var(--outie-text);
    letter-spacing: var(--letter-spacing-normal);
    line-height: 1.7;
}

/* Initially hide mysterious department for outies */
.mysterious-department {
    display: none; /* Hidden by default (for outies) */
    position: relative;
    background-color: var(--lumon-white) !important;
    color: var(--lumon-black) !important;
}

.mysterious-department h3 {
    color: var(--lumon-black) !important;
}

.mysterious-department p {
    color: rgba(0, 0, 0, 0.8) !important;
    font-family: var(--font-family-mono);
    letter-spacing: 0;
}

.innie-mode .mysterious-department {
    display: block; /* Only visible for innies */
}

/* Only show animation pointers in innie mode */
.outie-mode .lumexicon-term, 
.outie-mode .mysterious-department,
.outie-mode .goat-image {
    pointer-events: none !important;
}

.innie-mode .lumexicon-term, 
.innie-mode .mysterious-department,
.innie-mode .goat-image {
    pointer-events: auto !important;
}

.hidden-goat {
    position: absolute;
    bottom: 0;
    right: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    width: 120px;
    height: 120px;
    overflow: hidden;
    z-index: 10;
}

.mysterious-department:hover .hidden-goat {
    opacity: 1;
}

.goat-image {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 60px;
    transition: transform 0.5s ease, filter 1s ease;
}

/* Goat animation states */
.goat-image.active {
    filter: none;
    animation: goat-wiggle 0.5s ease;
}

.goat-image.escape {
    filter: none;
    transform: scale(1.5) translate(20px, -20px);
    animation: goat-escape 3s ease forwards;
}

.goat-image.dance {
    filter: none;
    animation: goat-dance 1s infinite alternate;
}

.goat-image.spin {
    filter: none;
    animation: goat-spin 1s ease;
}

.goat-image.severance {
    filter: none;
    animation: goat-severance 2s ease forwards;
}

/* Floating goat that appears during transitions */
.floating-goat {
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 50px;
    width: 100px;
    height: 100px;
    pointer-events: none;
    z-index: 5000;
    opacity: 0;
    transition: opacity 0.3s ease;
    transform: rotate(0deg);
}

.floating-goat.visible {
    opacity: 1;
    animation: float-around 10s linear infinite, goat-spin 5s linear infinite;
}

.elevator-transition .floating-goat.visible {
    filter: invert(100%);
}

/* Goat animations */
@keyframes goat-wiggle {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    50% { transform: rotate(10deg); }
    75% { transform: rotate(-5deg); }
    100% { transform: rotate(0deg); }
}

@keyframes goat-escape {
    0% { transform: scale(1) translate(0, 0); }
    20% { transform: scale(1.2) translate(20px, -20px); }
    40% { transform: scale(1.5) translate(40px, -40px); }
    60% { transform: scale(1.8) translate(60px, -60px); }
    80% { transform: scale(2) translate(80px, -80px); }
    100% { transform: scale(0) translate(100px, -100px); opacity: 0; }
}

@keyframes goat-dance {
    0% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-5px) rotate(5deg); }
    50% { transform: translateY(0) rotate(0deg); }
    75% { transform: translateY(-5px) rotate(-5deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

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

@keyframes goat-severance {
    0% { transform: scale(1); filter: grayscale(100%); }
    50% { transform: scale(1.2); filter: grayscale(0); }
    100% { transform: scale(1); filter: grayscale(0); }
}

@keyframes float-around {
    0% { top: 100%; left: 0%; }
    25% { top: 0%; left: 25%; }
    50% { top: 50%; left: 100%; }
    75% { top: 75%; left: 50%; }
    100% { top: 100%; left: 0%; }
}

/* How It Works Section */
.how-it-works {
    padding: calc(var(--spacing-unit) * 12) 0;
    background-color: var(--background-color);
}

.how-it-works h2 {
    font-size: 32px;
    margin-bottom: calc(var(--spacing-unit) * 8);
    color: var(--text-color);
    text-align: center;
    letter-spacing: var(--letter-spacing-wide);
    text-transform: uppercase;
    font-weight: 400;
}

.diagram {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 3);
    max-width: 700px;
    margin: 0 auto;
}

.diagram-step {
    display: flex;
    align-items: flex-start;
    gap: calc(var(--spacing-unit) * 3);
    padding: calc(var(--spacing-unit) * 3);
    background-color: var(--outie-card-bg);
    border-radius: 0; /* Angular Severance-style */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: all 0.2s ease;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--lumon-white);
    color: var(--lumon-black);
    border-radius: 0; /* Angular Severance-style */
    font-weight: 400;
    flex-shrink: 0;
    font-family: var(--font-family-mono);
}

.step-content h3 {
    font-size: 18px;
    margin-bottom: calc(var(--spacing-unit));
    color: var(--outie-text);
    letter-spacing: var(--letter-spacing-wide);
    text-transform: uppercase;
    font-weight: 400;
}

.step-content p {
    font-size: 16px;
    color: var(--outie-text);
    letter-spacing: var(--letter-spacing-normal);
    line-height: 1.7;
}

.step-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Signup Section */
.signup {
    padding: calc(var(--spacing-unit) * 12) 0;
    background-color: var(--outie-bg);
}

.signup h2 {
    font-size: 32px;
    margin-bottom: calc(var(--spacing-unit) * 3);
    color: var(--outie-text);
    text-align: center;
    letter-spacing: var(--letter-spacing-wide);
    text-transform: uppercase;
    font-weight: 400;
}

.signup p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto calc(var(--spacing-unit) * 8);
    text-align: center;
    letter-spacing: var(--letter-spacing-normal);
    line-height: 1.7;
    color: var(--outie-text);
}

.signup-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: calc(var(--spacing-unit) * 2);
    border: 1px solid #ddd;
    border-radius: 0; /* Angular Severance-style */
    font-family: var(--font-family-mono);
    font-size: 16px;
    letter-spacing: 0;
}

.form-group textarea {
    height: 100px;
    resize: none;
    background-color: var(--lumon-light-gray);
}

.compunction-label {
    display: block;
    margin-bottom: calc(var(--spacing-unit));
    font-weight: 400;
    letter-spacing: var(--letter-spacing-wide);
    text-transform: uppercase;
    font-size: 14px;
}

.signup-form button {
    display: block;
    width: 100%;
    padding: calc(var(--spacing-unit) * 2);
    background-color: var(--lumon-black);
    color: white;
    border: none;
    border-radius: 0; /* Angular Severance-style */
    font-family: var(--font-family-main);
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.3s ease;
    letter-spacing: var(--letter-spacing-wide);
    text-transform: uppercase;
}

.signup-form button:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

/* Quote styling for signup section */
.signup .quote {
    margin-bottom: calc(var(--spacing-unit) * 8);
}

.signup .quote blockquote {
    font-family: var(--font-family-mono);
    font-size: 20px;
    font-style: italic;
    line-height: 1.6;
}

/* Footer */
footer {
    background-color: var(--lumon-black);
    color: white;
    padding: calc(var(--spacing-unit) * 6) 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 3);
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.footer-logo p {
    font-weight: 400;
    font-size: 16px;
    letter-spacing: var(--letter-spacing-wide);
    text-transform: uppercase;
}

.footer-info p {
    opacity: 0.8;
    font-size: 14px;
    letter-spacing: var(--letter-spacing-normal);
    line-height: 1.7;
}

.footer-kier {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: calc(var(--spacing-unit) * 3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kier-quote {
    font-style: italic;
    opacity: 0.6;
    font-size: 14px;
    font-family: var(--font-family-mono);
    letter-spacing: 0;
}

.tiny-goat {
    width: 20px;
    height: 20px;
    opacity: 0.5;
    font-size: 16px;
}

.tiny-goat:after {
    content: '🐐@';
}

/* Waffle party easter egg */
#waffle-party {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

#waffle-party.active {
    opacity: 1;
    pointer-events: all;
}

#waffle-party h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.waffle-emoji-container {
    font-size: 4rem;
    line-height: 1.5;
    text-align: center;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 2rem;
    animation: waffle-dance 3s infinite alternate;
}

@keyframes waffle-dance {
    0% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
    100% { transform: rotate(-3deg); }
}

#close-waffle {
    margin-top: 2rem;
    padding: 1rem 2rem;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#close-waffle:hover {
    background-color: #555;
}

/* Glitch Effect */
@keyframes glitch {
    0% {
        clip-path: inset(40% 0 61% 0);
    }
    20% {
        clip-path: inset(92% 0 1% 0);
    }
    40% {
        clip-path: inset(43% 0 1% 0);
    }
    60% {
        clip-path: inset(25% 0 58% 0);
    }
    80% {
        clip-path: inset(54% 0 7% 0);
    }
    100% {
        clip-path: inset(58% 0 43% 0);
    }
}

/* Media Queries */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 32px;
    }
    .hero p {
        font-size: 16px;
    }
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-content {
        flex-direction: column;
        gap: var(--spacing-unit);
    }
    .diagram-step {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

@media (max-width: 480px) {
    header .container {
        padding: calc(var(--spacing-unit) * 1.5) var(--spacing-unit);
    }
    
    .logo h1 {
        font-size: 20px;
    }
    
    .severance-switch {
        font-size: 12px;
    }
    
    .hero h2 {
        font-size: 28px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: calc(var(--spacing-unit) * 2);
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}

/* Elevator transition for mode switching */
.elevator-transition {
    position: relative;
    animation: elevator-fade 2.5s ease-in-out;
    overflow: hidden;
}

@keyframes elevator-fade {
    0% {
        opacity: 1;
    }
    20% {
        opacity: 0;
    }
    80% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Innie mode styles */
.innie-mode {
    background-color: var(--innie-bg) !important;
    color: var(--innie-text) !important;
}

.innie-mode .hero,
.innie-mode .about,
.innie-mode .features,
.innie-mode .how-it-works,
.innie-mode .signup {
    background-color: var(--innie-bg);
    color: var(--innie-text);
}

.innie-mode .hero h2,
.innie-mode .about h2,
.innie-mode .features h2,
.innie-mode .how-it-works h2,
.innie-mode .signup h2 {
    color: var(--innie-text);
}

.innie-mode .hero p,
.innie-mode .about p,
.innie-mode .signup p,
.innie-mode .quote blockquote {
    color: var(--innie-text);
}

.innie-mode .feature-card {
    background-color: var(--innie-card-bg);
    color: var(--innie-text);
}

.innie-mode .feature-card h3 {
    color: var(--innie-text);
}

.innie-mode .feature-card p {
    color: var(--innie-text);
}

.innie-mode .diagram-step {
    background-color: var(--innie-bg);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.innie-mode .step-number {
    background-color: var(--lumon-black);
    color: var(--lumon-white);
}

.innie-mode .step-content h3 {
    color: var(--innie-text);
}

.innie-mode .step-content p {
    color: var(--innie-text);
}

.innie-mode .hidden-message {
    font-weight: 600;
    opacity: 0.05;
}

.innie-mode .mysterious-department {
    background-color: var(--lumon-black) !important;
    color: var(--lumon-white) !important;
}

.innie-mode .mysterious-department h3 {
    color: var(--lumon-white) !important;
}

.innie-mode .mysterious-department p {
    color: rgba(255, 255, 255, 0.8) !important;
}

.innie-mode header {
    background-color: var(--lumon-white);
}

.innie-mode .logo h1 {
    color: var(--lumon-black);
}

.innie-mode nav ul li a {
    color: var(--lumon-black);
}

.innie-mode .menu-toggle span {
    background: var(--lumon-black);
}

/* Severance switch styles */
.bifurcation-switch {
    position: relative;
    background-color: var(--lumon-white);
    color: var(--lumon-black) !important;
    padding: calc(var(--spacing-unit) * 0.5) calc(var(--spacing-unit) * 1.5) !important;
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
    letter-spacing: var(--letter-spacing-wide);
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.bifurcation-switch:hover {
    background-color: var(--lumon-light-gray);
}

.innie-mode .bifurcation-switch {
    background-color: var(--lumon-black);
    color: var(--lumon-white) !important;
}

.innie-mode .bifurcation-switch:hover {
    background-color: var(--lumon-dark-gray);
}

/* Success message styles */
.success-message {
    text-align: center;
    padding: calc(var(--spacing-unit) * 4) calc(var(--spacing-unit) * 2);
    background-color: var(--lumon-black);
    color: var(--lumon-white);
    border-radius: 0;
    margin-top: calc(var(--spacing-unit) * 2);
}

.success-message h3 {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: calc(var(--spacing-unit) * 2);
    letter-spacing: var(--letter-spacing-wide);
}

.success-message p {
    margin-bottom: calc(var(--spacing-unit) * 2);
    font-size: 16px;
    line-height: 1.6;
}

.bsky-intent-btn {
    display: inline-block;
    margin-top: calc(var(--spacing-unit) * 3);
    background-color: #0085ff !important;
    color: white !important;
    transition: background-color 0.3s ease;
}

.bsky-intent-btn:hover {
    background-color: #0066cc !important;
}

/* MDR (Macrodata Refinement) styles */
.mdr-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mdr-container {
    background-color: var(--lumon-white);
    padding: calc(var(--spacing-unit) * 4);
    border-radius: 0;
    width: 90%;
    max-width: 700px;
    text-align: center;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.mdr-container h3 {
    font-size: 24px;
    margin-bottom: calc(var(--spacing-unit) * 4);
    letter-spacing: var(--letter-spacing-wider);
    text-transform: uppercase;
    font-weight: 400;
    text-decoration: underline;
}

.mdr-visualization {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 5);
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.mdr-numbers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
    justify-content: center;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.mdr-number {
    width: 60px;
    height: 60px;
    background-color: var(--lumon-accent);
    color: var(--lumon-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    cursor: grab;
    user-select: none;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.mdr-bin {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--background-color);
    font-family: var(--font-family-mono);
    font-size: 28px;
    position: relative;
    border: 2px dashed #666;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.8);
}

.mdr-bin[data-temper="woe"] {
    border-bottom: 5px solid blue;
}

.mdr-bin[data-temper="frolic"] {
    border-bottom: 5px solid green;
}

.mdr-bin[data-temper="dread"] {
    border-bottom: 5px solid red;
}

.mdr-bin[data-temper="malice"] {
    border-bottom: 5px solid purple;
}

.mdr-bin.drag-over {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
    border: 2px dashed white;
}

.refined-number {
    position: absolute;
    font-size: 24px;
    color: white;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.completion-message {
    margin-top: calc(var(--spacing-unit) * 4);
    padding: calc(var(--spacing-unit) * 3);
    background-color: var(--lumon-light-gray);
}

.completion-message h3 {
    margin-bottom: calc(var(--spacing-unit) * 2);
    font-size: 20px;
}

#close-mdr {
    padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 4);
    background-color: var(--lumon-black);
    color: white;
    border: none;
    font-family: var(--font-family-main);
    cursor: pointer;
    font-weight: 400;
    letter-spacing: var(--letter-spacing-wide);
    text-transform: uppercase;
    margin-top: 20px;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

#close-mdr:hover {
    background-color: #333;
}

/* Music Dance Experience */
.mde-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2100;
    background: linear-gradient(
        to right,
        rgba(255, 0, 0, 0.2),
        rgba(0, 255, 0, 0.2),
        rgba(0, 0, 255, 0.2)
    );
    animation: mde-colors 5s infinite alternate;
    pointer-events: none;
}

@keyframes mde-colors {
    0% {
        background: linear-gradient(
            to right,
            rgba(255, 0, 0, 0.2),
            rgba(0, 255, 0, 0.2),
            rgba(0, 0, 255, 0.2)
        );
    }
    50% {
        background: linear-gradient(
            to left,
            rgba(0, 255, 255, 0.2),
            rgba(255, 0, 255, 0.2),
            rgba(255, 255, 0, 0.2)
        );
    }
    100% {
        background: linear-gradient(
            to right,
            rgba(255, 0, 0, 0.2),
            rgba(0, 255, 0, 0.2),
            rgba(0, 0, 255, 0.2)
        );
    }
}

.mde-active {
    animation: dance 0.5s infinite alternate;
}

@keyframes dance {
    0% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(-5px, 5px);
    }
    50% {
        transform: translate(5px, -5px);
    }
    75% {
        transform: translate(-5px, -5px);
    }
    100% {
        transform: translate(5px, 5px);
    }
}

/* Lumexicon term styles */
.lumexicon-term {
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-thickness: 1px;
    cursor: help;
    position: relative;
}

.lumexicon-term:hover {
    color: var(--lumon-white);
    font-weight: 500;
}

.innie-mode .lumexicon-term:hover {
    color: var(--lumon-black);
}

.lumexicon-tooltip {
    position: absolute;
    background-color: var(--lumon-black);
    color: white;
    padding: calc(var(--spacing-unit) * 1.5);
    border-radius: 0;
    font-size: 14px;
    max-width: 250px;
    z-index: 1000;
    font-family: var(--font-family-mono);
    display: none;
    letter-spacing: 0;
}

.lumexicon-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto calc(var(--spacing-unit) * 5);
    font-size: 18px;
    color: var(--text-color);
}

.innie-mode .lumexicon-intro {
    color: var(--innie-text);
}

.innie-mode .footer-kier .kier-quote {
    opacity: 1;
    color: white;
}

/* Outie mode styles (dark theme) */
.outie-mode {
    background-color: var(--outie-bg) !important;
    color: var(--outie-text) !important;
}

.outie-mode .hidden-message {
    color: rgba(255, 255, 255, 0.02);
}

/* Form and button adjustments for dark mode */
.outie-mode .form-group input,
.outie-mode .form-group textarea {
    background-color: #333;
    color: white;
    border-color: #555;
}

.outie-mode .form-group input::placeholder {
    color: #aaa;
}

.outie-mode .compunction-label {
    color: var(--outie-text);
}

/* Adjust some contrasts for better readability */
.outie-mode .feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.outie-mode a:not(.btn):not(.bifurcation-switch) {
    color: #9ecaff;
}

.outie-mode a:not(.btn):not(.bifurcation-switch):hover {
    color: #c5e1ff;
}

/* Outie mode buttons (dark theme) */
.outie-mode .btn-primary {
    background-color: var(--lumon-white);
    color: var(--lumon-black);
}

.outie-mode .btn-primary:hover {
    background-color: var(--lumon-light-gray);
}

.outie-mode .btn-secondary {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--lumon-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.outie-mode .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Innie mode buttons (light theme) */
.innie-mode .btn-primary {
    background-color: var(--lumon-black);
    color: var(--lumon-white);
}

.innie-mode .btn-primary:hover {
    background-color: var(--lumon-dark-gray);
}

.innie-mode .btn-secondary {
    background-color: var(--lumon-light-gray);
    color: var(--lumon-black);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.innie-mode .btn-secondary:hover {
    background-color: #e1e2e3;
}

/* Footer link styles */
.footer-info a {
    color: #9ecaff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-info a:hover {
    color: #c5e1ff;
    text-decoration: underline;
}

.innie-mode .footer-info a {
    color: #0066cc;
}

.innie-mode .footer-info a:hover {
    color: #004999;
}

/* AT Protocol styling in emojis */
.goat-image, .floating-goat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.innie-mode .goat-image, .innie-mode .floating-goat {
    color: var(--lumon-black);
}

.outie-mode .goat-image, .outie-mode .floating-goat {
    color: var(--lumon-white);
}

/* MDR Instructions */
.mdr-instructions {
    margin-bottom: 20px;
    background-color: rgba(0, 0, 0, 0.1);
    padding: 15px;
    border-left: 4px solid #333;
}

.mdr-instructions p {
    margin: 5px 0;
    font-size: 16px;
    color: #333;
}

/* MDR Active Indicator */
.mdr-active-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #22c55e;
    animation: pulse 1.5s infinite;
}

/* Pulse animation for the numbers when they first appear */
.mdr-number.pulse {
    animation: number-pulse 2s ease;
}

@keyframes pulse {
    0% { opacity: 0.5; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { opacity: 1; box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { opacity: 0.5; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@keyframes number-pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.1); }
    50% { transform: scale(1.1); box-shadow: 0 0 20px rgba(0, 0, 0, 0.3); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.1); }
}

/* Improve the visibility of the MDR overlay on mobile */
@media (max-width: 768px) {
    .mdr-container {
        width: 95%;
        padding: calc(var(--spacing-unit) * 3);
    }
    
    .mdr-number {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    .mdr-bin {
        width: 80px;
        height: 80px;
        font-size: 20px;
    }
}

/* MDE (Music Dance Experience) styles */
.mde-visualization {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    min-height: 200px;
}

.mde-animation-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 30px;
    border-radius: 5px;
    animation: pulse 2s infinite alternate;
}

.mde-visual-element {
    width: 40px;
    height: 40px;
    background-color: #333;
    border-radius: 50%;
}

.mde-visual-element:nth-child(1) {
    animation: dance-element 0.5s infinite alternate;
    background-color: rgba(255, 0, 0, 0.7);
}

.mde-visual-element:nth-child(2) {
    animation: dance-element 0.7s infinite alternate 0.1s;
    background-color: rgba(0, 255, 0, 0.7);
}

.mde-visual-element:nth-child(3) {
    animation: dance-element 0.6s infinite alternate 0.2s;
    background-color: rgba(0, 0, 255, 0.7);
}

.mde-visual-element:nth-child(4) {
    animation: dance-element 0.8s infinite alternate 0.15s;
    background-color: rgba(255, 255, 0, 0.7);
}

@keyframes dance-element {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-20px) scale(1.5); }
}

#close-mde {
    padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 4);
    background-color: var(--lumon-black);
    color: white;
    border: none;
    font-family: var(--font-family-main);
    cursor: pointer;
    font-weight: 400;
    letter-spacing: var(--letter-spacing-wide);
    text-transform: uppercase;
    margin-top: 20px;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

#close-mde:hover {
    background-color: #333;
}

/* Lumexicon mode-specific styles */
.innie-content {
    display: none;
}

.outie .outie-content {
    display: block;
}

.outie .innie-content {
    display: none;
}

.innie .innie-content {
    display: block;
}

.innie .outie-content {
    display: none;
}

/* Add highlight effect for innie Lumexicon */
.innie .diagram-step {
    background-color: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.innie .diagram-step:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.innie .step-content h3 {
    color: #00c3ff;
}

/* Lumexicon modal styles */
.lumexicon-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--lumon-black);
    border: 1px solid var(--lumon-border);
    width: 80%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    animation: modal-appear 0.3s ease;
    color: white;
}

.outie .modal-content h3 {
    color: white;
}

.outie .close-modal {
    color: white;
}

.outie .modal-details em {
    color: #00c3ff;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--accent-color);
}

.innie .close-modal:hover {
    color: var(--lumon-accent);
}

.modal-details {
    margin-top: 1rem;
    line-height: 1.6;
}

.modal-details ul {
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.modal-details li {
    margin-bottom: 0.5rem;
}

.modal-details em {
    display: block;
    margin-top: 1.5rem;
    font-style: italic;
    text-align: center;
    color: var(--accent-color);
}

.innie .modal-details em {
    color: var(--lumon-accent);
}

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

.innie .modal-content {
    background-color: var(--lumon-bg);
    border: 1px solid var(--lumon-border);
    color: var(--lumon-text);
}

.mdr-number:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.mdr-number.dragging {
    opacity: 0.7;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.mdr-bins {
    display: flex;
    justify-content: space-around;
    gap: calc(var(--spacing-unit) * 2);
    margin-top: 30px;
}

/* Hide signup section for innies */
.innie-mode .signup form,
.innie-mode .signup p,
.innie-mode .signup .quote,
.innie-mode .signup h2,
.innie-mode .signup-action {
    display: none !important;
}

.innie-mode .signup {
    background-color: var(--lumon-bg);
    color: var(--lumon-text);
    padding: calc(var(--spacing-unit) * 6) 0;
}

.innie-message {
    display: none;
    max-width: 800px;
    margin: 0 auto;
    padding: calc(var(--spacing-unit) * 5);
    border: 1px solid var(--lumon-border);
    background-color: rgba(0, 0, 0, 0.05);
    text-align: center;
}

.innie-mode .innie-message {
    display: block;
}

.innie-message p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: calc(var(--spacing-unit) * 2);
    color: var(--lumon-text);
}

.innie-message .innie-kier-quote {
    font-style: italic;
    font-family: var(--font-family-mono);
    margin-top: calc(var(--spacing-unit) * 3);
    font-size: 1.2rem;
    color: var(--lumon-accent);
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.logo a:hover {
    opacity: 0.9;
}

.signup-action {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.signup-action .form-group {
    width: 100%;
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.compunction-statement {
    width: 100%;
    padding: calc(var(--spacing-unit) * 2);
    background-color: rgba(0, 0, 0, 0.05);
    border: 1px solid var(--lumon-border);
    color: var(--text-color);
    font-family: var(--font-family-mono);
    font-size: 14px;
    line-height: 1.6;
    height: 120px;
    resize: none;
}

.signup-action button {
    padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 4);
    background-color: var(--lumon-black);
    color: white;
    border: none;
    cursor: pointer;
    font-family: var(--font-family-main);
    letter-spacing: var(--letter-spacing-wide);
    text-transform: uppercase;
    transition: all 0.3s ease;
    margin: 0 auto;
    display: block;
    min-width: 300px;
    text-align: center;
}

.signup-action button:hover {
    background-color: var(--lumon-dark-gray);
} 