:root {
    --yellow: #FFD700;
    --black: #050505;
    --dark-grey: #111111;
    --grey: #222222;
    --light-grey: #888888;
    --white: #F4F4F5;
    
    --font-sans: 'Inter', sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    background-color: var(--black);
    color: var(--white);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Noise overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    background-image: url('data:image/svg+xml;utf8,%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');
}

/* Typography */
h1, h2, h3, h4, .tagline, .nav-logo {
    font-family: var(--font-display);
    text-transform: uppercase;
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

.text-center {
    text-align: center;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-display);
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--yellow);
    color: var(--black);
    border: 2px solid var(--yellow);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--yellow);
    box-shadow: 4px 4px 0px var(--yellow);
    transform: translate(-4px, -4px);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--black);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: transparent;
    color: var(--white);
    box-shadow: 4px 4px 0px var(--white);
    transform: translate(-4px, -4px);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--black);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(5,5,5,0.95) 0%, rgba(5,5,5,0) 100%);
    backdrop-filter: blur(4px);
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--yellow);
    letter-spacing: -0.02em;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-links a:hover:not(.btn) {
    color: var(--yellow);
}

.nav-links .btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 5% 4rem; /* Top padding added to prevent navbar overlap */
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 850px;
    position: relative;
    z-index: 10;
}

.tagline {
    color: var(--yellow);
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--yellow);
    font-size: clamp(0.8rem, 2vw, 1rem);
}

.massive-headline {
    font-size: clamp(3rem, 8vw, 6.5rem);
    line-height: 0.9;
    margin-bottom: 1.5rem;
    color: var(--white);
    word-break: break-word;
}

.subheadline {
    font-size: clamp(1rem, 3vw, 1.25rem);
    max-width: 600px;
    margin-bottom: 2.5rem;
    color: var(--light-grey);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.justify-center {
    justify-content: center;
}

.hero-bg-runway {
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vh;
    background: radial-gradient(circle at center, rgba(255,215,0,0.15) 0%, rgba(5,5,5,0) 70%);
    z-index: 1;
    transform: rotate(-15deg);
}

/* Sections */
section {
    padding: 6rem 0;
    position: relative;
}

/* Story Section */
.story {
    background-color: var(--yellow);
    color: var(--black);
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.story-text h2 {
    color: var(--black);
}

.story-text p {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.story-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-box {
    background-color: var(--black);
    color: var(--white);
    padding: 2rem;
    border-radius: 4px;
    border-left: 8px solid var(--white);
    box-shadow: 8px 8px 0px rgba(0,0,0,0.2);
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 900;
    line-height: 1;
    color: var(--yellow);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-weight: 700;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
}

/* Terminal Activity */
.terminal-activity {
    background-color: var(--dark-grey);
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem 2rem;
    border-bottom: 1px solid #333;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.terminal-header h2 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin: 0;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-weight: 700;
    color: #4ade80;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: #4ade80;
    border-radius: 50%;
}

.blinking {
    animation: blink 1s infinite;
}

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

.terminal-feed-container {
    height: 300px;
    overflow: hidden;
    position: relative;
    padding: 0 2rem;
}

.terminal-feed-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, var(--dark-grey), transparent);
    pointer-events: none;
}

.terminal-feed {
    list-style: none;
    font-family: 'Courier New', Courier, monospace;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: var(--yellow);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transform: translateY(0);
}

.terminal-feed li {
    padding: 0.5rem;
    background: rgba(255,215,0,0.05);
    border-left: 2px solid var(--yellow);
    animation: slideIn 0.3s ease-out forwards;
    opacity: 0;
    word-break: break-word;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* How It Works */
.how-it-works .section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.step-card {
    background-color: var(--dark-grey);
    padding: 2.5rem 2rem;
    border-top: 4px solid var(--yellow);
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.step-card:hover {
    transform: translateY(-10px);
    background-color: var(--grey);
}

.step-num {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255, 215, 0, 0.2);
    position: absolute;
    top: 1rem;
    right: 1rem;
    line-height: 1;
}

.step-card h3 {
    margin-top: 1.5rem;
    color: var(--yellow);
}

/* Boarding Passes */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.pass-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.pass-card.custom {
    grid-column: 1 / -1;
    background-color: var(--black);
    color: var(--white);
}

.pass-card {
    background-color: var(--white);
    color: var(--black);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-left: 10px solid var(--black);
}

.pass-card:hover {
    transform: scale(1.02) rotate(1deg);
}

.pass-header {
    background-color: var(--black);
    color: var(--white);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    font-family: var(--font-display);
    font-weight: 700;
}

.pass-body {
    padding: 1.5rem;
}

.route {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 900;
    font-family: var(--font-display);
    margin-bottom: 1.5rem;
}

.route .arrow {
    color: var(--yellow);
}

.pass-details {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.pass-details small {
    color: #666;
    font-weight: 700;
}

.pass-details strong {
    font-size: 1.5rem;
}

.requirement {
    border-top: 1px dashed #ccc;
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.barcode {
    font-family: 'Courier New', Courier, monospace;
    font-size: clamp(1rem, 3vw, 1.5rem);
    text-align: center;
    background-color: #eee;
    padding: 0.5rem;
    letter-spacing: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Specific pass coloring */
.pass-card.economy { border-left-color: #666; }
.pass-card.economy .pass-header { background-color: #666; }

.pass-card.business { border-left-color: #222; }
.pass-card.business .pass-header { background-color: #222; }

.pass-card.first { border-left-color: var(--black); }

.pass-card.founding { border-left-color: var(--yellow); }
.pass-card.founding .pass-header { background-color: var(--yellow); color: var(--black); }

/* Token System */
.token-system {
    background-color: var(--yellow);
    color: var(--black);
}

.token-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.token-info h2 {
    color: var(--black);
}

.token-info p {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.token-info .btn {
    border-color: var(--black);
    color: var(--black);
    margin-top: 1rem;
}

.token-info .btn:hover {
    background-color: var(--black);
    color: var(--yellow);
}

.chart-box {
    background-color: var(--black);
    color: var(--white);
    padding: 2.5rem;
    border-radius: 4px;
}

.chart-box h3 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: 1.5rem;
}

.distribution-list {
    list-style: none;
}

.distribution-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.color-box {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 2px;
    flex-shrink: 0;
}

/* Route Map */
.route-map {
    background-color: var(--dark-grey);
    text-align: center;
    overflow: hidden;
}

.map-container {
    position: relative;
}

.svg-map-wrapper {
    width: 100%;
    height: 400px;
    margin-top: 2rem;
    position: relative;
}

/* Social Community */
.social-gates {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.gate-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    background-color: var(--dark-grey);
    text-decoration: none;
    color: var(--white);
    border: 2px solid #333;
    transition: var(--transition);
    text-align: center;
}

.gate-link:hover {
    border-color: var(--yellow);
    background-color: rgba(255, 215, 0, 0.05);
    transform: translateY(-5px);
}

.gate-num {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 900;
    color: var(--yellow);
    margin-bottom: 0.5rem;
}

.gate-name {
    font-weight: 700;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
}

/* Final CTA */
.final-cta {
    background-color: var(--yellow);
    color: var(--black);
    text-align: center;
    padding: 8rem 2rem;
}

.final-cta h2 {
    font-size: clamp(2.5rem, 8vw, 4rem);
}

.final-cta p {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    font-weight: 600;
    margin-bottom: 3rem;
}

.final-cta .btn-outline {
    border-color: var(--black);
    color: var(--black);
}

.final-cta .btn-outline:hover {
    background-color: var(--black);
    color: var(--yellow);
}

.final-cta .btn-primary {
    background-color: var(--black);
    color: var(--yellow);
    border-color: var(--black);
}

.final-cta .btn-primary:hover {
    background-color: transparent;
    color: var(--black);
    box-shadow: 4px 4px 0px var(--black);
}

/* Footer */
footer {
    padding: 3rem 0;
    background-color: var(--black);
    border-top: 1px solid #333;
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-brand {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.25rem;
    color: var(--yellow);
}

.footer-links {
    color: var(--light-grey);
    font-size: 0.9rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--light-grey);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--yellow);
}

/* Manifesto Page specific */
.manifesto-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.15rem;
}

.manifesto-content h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 2rem;
    color: var(--yellow);
    border-bottom: 2px solid var(--yellow);
    padding-bottom: 1rem;
}

.manifesto-content p {
    margin-bottom: 1.5rem;
}

.manifesto-content ul {
    margin-bottom: 2rem;
    margin-left: 2rem;
}

.manifesto-content li {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Media Queries */
@media (max-width: 1024px) {
    .story-grid, .token-grid, .pass-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    section {
        padding: 4rem 0;
    }

    .hero {
        min-height: auto;
        padding-top: 100px;
    }
    
    .social-gates {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .nav-links {
        display: none; /* Consider a hamburger menu for full implementation, hiding for now for simplicity */
    }

    .footer-flex {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }

    .pass-details {
        gap: 1rem;
    }
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content.terminal-style {
    background: var(--dark-grey);
    border: 1px solid #333;
    border-top: 4px solid var(--yellow);
    width: 90%;
    max-width: 500px;
    max-height: 95vh;
    overflow-y: hidden;
    padding: 2rem;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal-content.terminal-style.modal-large {
    max-width: 800px;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--light-grey);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

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

.modal-header {
    border-bottom: 1px solid #333;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.modal-header h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin: 0;
    color: var(--white);
}

.modal-body {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}
.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 215, 0, 0.05);
}
.modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3);
    border-radius: 3px;
}
.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--yellow);
}

.modal-body p {
    font-size: 1.1rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.modal-list {
    list-style: none;
    margin-bottom: 1.5rem;
    margin-left: 0;
    padding-left: 0;
}

.modal-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--yellow);
    font-weight: 600;
}

.modal-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--yellow);
}

.modal-footer-msg {
    margin-top: 2rem;
    border-top: 1px dashed #333;
    padding-top: 1rem;
}

.disclaimer {
    display: block;
    color: #666;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.terminal-msg {
    font-family: 'Courier New', Courier, monospace;
    color: var(--yellow);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Modal Pass Grid */
.modal-pass-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.modal-pass-item {
    background: var(--black);
    border: 1px solid #333;
    border-radius: 4px;
    overflow: hidden;
}

.mpi-header {
    background: #666;
    color: var(--white);
    padding: 0.75rem 1rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
}

.mpi-body {
    padding: 0.75rem;
}

.mpi-desc {
    display: none !important; /* Hidden everywhere inside modal to save vertical space */
}

.mpi-body small {
    display: block;
    color: #666;
    font-weight: 700;
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

.mpi-body strong {
    display: block;
    color: var(--yellow);
    font-family: var(--font-display);
    font-size: 1.1rem;
}

.terminal-loading-state {
    background: rgba(255,215,0,0.05);
    border: 1px solid var(--yellow);
    padding: 1.5rem;
    font-family: 'Courier New', Courier, monospace;
    color: var(--yellow);
}

.terminal-loading-state p {
    font-size: 1rem;
    color: var(--yellow);
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

.terminal-loading-state p:nth-child(2) { animation-delay: 0.5s; }
.terminal-loading-state p:nth-child(3) { animation-delay: 1s; margin-bottom: 0; }

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

/* Payment UI Additions */
.terminal-input {
    background: transparent;
    border: 2px solid #333;
    color: var(--yellow);
    padding: 1rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
    transition: var(--transition);
}

.terminal-input:focus {
    outline: none;
    border-color: var(--yellow);
    background: rgba(255,215,0,0.05);
}

.w-100 {
    width: 100%;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.provider-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.provider-btn {
    background: var(--dark-grey);
    border: 1px solid #333;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--white);
    text-align: left;
}

.provider-btn:hover {
    border-color: var(--yellow);
    background: rgba(255,215,0,0.05);
}

.provider-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--yellow);
}

.provider-details {
    font-size: 0.8rem;
    color: var(--light-grey);
}

.payment-processing-state {
    background: var(--black);
    border: 1px solid var(--yellow);
    padding: 1.5rem;
    font-family: 'Courier New', Courier, monospace;
    color: var(--yellow);
}

.payment-processing-state p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.blinking-cursor {
    animation: blink 1s infinite;
}

@media (max-width: 768px), (max-height: 850px) {
    .modal-content.terminal-style {
        padding: clamp(1rem, 3vh, 1.5rem);
    }
    .modal-header {
        margin-bottom: clamp(0.5rem, 2vh, 1rem);
        padding-bottom: clamp(0.5rem, 2vh, 1rem);
    }
    .modal-header h2 {
        font-size: clamp(1.1rem, 3vh, 1.5rem);
    }
    .modal-body p {
        font-size: clamp(0.85rem, 2.5vh, 1rem);
        margin-bottom: clamp(0.5rem, 2vh, 1rem) !important;
    }
    .modal-list {
        margin-bottom: clamp(0.5rem, 2vh, 1rem);
    }
    .modal-list li {
        font-size: clamp(0.85rem, 2.5vh, 1rem);
        margin-bottom: 0.25rem;
    }
    .modal-pass-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(0.5rem, 1.5vh, 1rem);
        margin-bottom: clamp(0.5rem, 2vh, 1rem);
    }
    .mpi-header {
        padding: clamp(0.25rem, 1vh, 0.5rem);
        font-size: clamp(0.7rem, 2vh, 0.8rem);
    }
    .mpi-body {
        padding: clamp(0.5rem, 1.5vh, 0.75rem);
    }
    .mpi-desc {
        display: none !important; /* Hide descriptions to save huge vertical space */
    }
    .mpi-body small {
        font-size: clamp(0.6rem, 1.5vh, 0.7rem);
        margin-bottom: 0.1rem;
    }
    .mpi-body strong {
        font-size: clamp(0.8rem, 2.5vh, 1rem);
    }
    .terminal-loading-state {
        padding: clamp(0.5rem, 1.5vh, 1rem);
    }
    .terminal-loading-state p {
        font-size: clamp(0.75rem, 2vh, 0.9rem);
        margin-bottom: 0.2rem;
    }
    .modal-footer-msg {
        margin-top: clamp(0.5rem, 2vh, 1.5rem);
        padding-top: clamp(0.5rem, 2vh, 1rem);
    }
    .modal-actions {
        margin-top: clamp(0.5rem, 2vh, 1rem) !important;
    }
    .btn-primary {
        padding: clamp(0.5rem, 2vh, 1rem) 1rem;
    }
    .custom-contribution {
        margin-top: clamp(0.25rem, 1vh, 0.5rem) !important;
        padding: clamp(0.5rem, 1.5vh, 0.75rem) !important;
    }
    .custom-contribution h3 {
        font-size: clamp(0.7rem, 2vh, 0.8rem) !important;
    }
    .custom-contribution p {
        display: none !important; /* Hide description on small screens */
    }
    .custom-contribution div:first-child {
        margin-bottom: clamp(0.25rem, 1vh, 0.5rem) !important;
    }
    .custom-contribution input {
        padding: clamp(0.25rem, 1.5vh, 0.5rem) !important;
        font-size: clamp(0.8rem, 2.5vh, 1rem) !important;
    }
    .custom-contribution button {
        padding: clamp(0.25rem, 1.5vh, 0.5rem) clamp(0.5rem, 2vh, 1rem) !important;
        font-size: clamp(0.7rem, 2vh, 0.8rem) !important;
    }
}

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

/* Live Telemetry Styles */
.live-telemetry-panel {
    position: fixed;
    top: 90px;
    right: 20px;
    background: rgba(5,5,5,0.9);
    border: 1px solid #333;
    border-top: 2px solid var(--yellow);
    padding: 1.2rem;
    z-index: 1000;
    font-family: 'Courier New', Courier, monospace;
    min-width: 280px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
}

.live-telemetry-panel h4 {
    color: var(--yellow);
    margin: 0 0 1rem 0;
    font-size: 0.85rem;
    letter-spacing: 2px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed #333;
    padding-bottom: 0.5rem;
}

.telemetry-dot {
    width: 8px;
    height: 8px;
    background-color: #4ade80;
}

.telemetry-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: #aaa;
}

.telemetry-row:last-child {
    margin-bottom: 0;
}

.telemetry-val {
    font-weight: bold;
    transition: text-shadow 0.3s;
}

.highlight-green {
    color: #4ade80;
    font-size: 0.95rem;
}

.highlight-yellow {
    color: var(--yellow);
}

.highlight-white {
    color: var(--white);
}

@media (max-width: 768px) {
    .live-telemetry-panel {
        position: relative;
        top: 0;
        right: 0;
        margin: 80px auto -80px; /* Offset hero padding visually */
        width: 90%;
        max-width: 400px;
        min-width: unset;
        z-index: 10;
        background: rgba(5,5,5,0.95);
    }
}
