:root {
    --bg-color: #000000;
    --border-color: #333333;
    --border-hover: #FFFFFF;
    --accent-color: #a8f931;
    --accent-hover: #93E229;
    --fg-color: #ffffff;
    --muted-text: #aaaaaa;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--fg-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 10%, rgba(168, 249, 49, 0.05) 0%, rgba(0, 0, 0, 0) 40%);
    z-index: -1;
    pointer-events: none;
}

/* Header */
.logo-container {
    position: absolute;
    top: 24px;
    left: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

.logo {
    height: 72px;
    object-fit: contain;
}

.logo-text {
    font-weight: 700;
    font-size: 16px;
    color: var(--fg-color);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    padding-top: 60px;
    /* Space for logo */
    padding-bottom: 60px;
    /* Space for footer */
    flex: 1;
}

.header {
    text-align: center;
    max-width: 900px;
    margin: 24px auto 36px auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 24px;
}

.title {
    color: var(--accent-color);
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 800;
    letter-spacing: 1px;
}

.subtitle {
    font-size: 16px;
    color: var(--fg-color);
    font-weight: 400;
}

.hint {
    font-size: 13px;
    color: #cccccc;
    margin-top: 4px;
}

/* Grid */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 24px;
    padding: 0 24px;
}

/* App Card */
.app-card {
    background: #000000;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color 0.2s;
}

.app-card:hover {
    border-color: var(--border-hover);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.card-title {
    font-weight: 800;
    font-size: 20px;
    color: var(--accent-color);
}

.type-badge {
    background: #000000;
    border: 1px solid var(--fg-color);
    border-radius: 11px;
    padding: 2px 10px;
    font-weight: 700;
    font-size: 11px;
    color: var(--fg-color);
    white-space: nowrap;
}

.card-purpose {
    color: var(--fg-color);
    font-weight: 600;
    font-size: 14px;
}

.card-desc {
    background: #000000;
    border: 1px solid #444444;
    border-radius: 12px;
    padding: 12px;
    color: var(--fg-color);
    font-size: 14px;
    line-height: 1.4;
    min-height: 120px;
    flex: 1;
    overflow-y: auto;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.action-btn {
    background: var(--accent-color);
    color: #000000;
    border: none;
    border-radius: 12px;
    padding: 10px 20px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.action-btn:hover {
    background: var(--accent-hover);
}

.action-btn:active {
    transform: scale(0.98);
}

.outline-btn {
    background: #000000;
    color: var(--fg-color);
    border: 1px solid #555555;
}

.outline-btn:hover {
    background: #111111;
}

.status-label {
    font-size: 13px;
    font-weight: 600;
    color: #FFDD88;
}

/* Status Bar */
.status-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #000000;
    border-top: 1px solid var(--border-color);
    padding: 8px 24px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--fg-color);
    z-index: 100;
}

.status-bar .credit {
    opacity: 0.7;
    text-align: center;
}

.status-bar .credit strong {
    color: var(--accent-color, #ffffff);
    font-weight: 600;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 24px;
}

.modal-content {
    background: #000000;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 24px;
    gap: 16px;
}

.modal-title {
    color: var(--accent-color);
    font-weight: 800;
    font-size: 22px;
    text-align: center;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    background: #000000;
    border: 1px solid #444444;
    border-radius: 8px;
    padding: 16px;
}

.eula-text {
    color: var(--fg-color);
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-wrap;
    font-family: inherit;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: #333333;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #444444;
}

/* Responsive */
@media (max-width: 768px) {
    .logo-container {
        position: relative;
        top: 0;
        left: 0;
        justify-content: center;
        padding-top: 24px;
    }

    .container {
        padding-top: 0;
    }

    .grid-container {
        grid-template-columns: 1fr;
    }
}

/* Landing & Agenda Specifics */
.landing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    padding: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.huge-card {
    background: #050505;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 48px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 16px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.huge-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.huge-card:hover {
    border-color: var(--accent-hover);
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(168, 249, 49, 0.1);
}

.huge-card:hover::after {
    transform: scaleX(1);
}

.huge-card .icon {
    font-size: 56px;
    margin-bottom: 8px;
    color: var(--fg-color);
}

.huge-card:hover .icon {
    color: var(--accent-color);
    transform: scale(1.1);
    transition: transform 0.3s ease, color 0.3s ease;
}

.huge-card h2 {
    color: var(--accent-color);
    font-size: 28px;
    font-weight: 800;
}

.huge-card p {
    color: var(--fg-color);
    font-size: 16px;
    line-height: 1.5;
}

.top-nav-actions {
    position: fixed;
    top: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2000;
}

.nav-back {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    background: rgba(5, 5, 5, 0.8);
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(4px);
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    white-space: nowrap;
}

.nav-back:hover {
    background: rgba(168, 249, 49, 0.1);
    border-color: var(--accent-color);
}

/* Agenda Modules (Track Details) */
.agenda-track {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.agenda-module {
    background: #050505;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.2s ease;
    position: relative;
    border-left: 4px solid #333;
}

.agenda-module:hover {
    border-color: var(--accent-hover);
    border-left-color: var(--accent-color);
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.agenda-module-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.module-number {
    background: rgba(168, 249, 49, 0.1);
    color: var(--accent-color);
    font-size: 14px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 8px;
    letter-spacing: 1px;
}

.agenda-module h2 {
    color: var(--accent-color);
    font-size: 22px;
    margin: 0;
}

.agenda-module ul {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.agenda-module ul li {
    color: var(--fg-color);
    font-size: 15px;
    line-height: 1.6;
    padding-left: 24px;
    position: relative;
    margin-bottom: 8px;
    opacity: 0.9;
}

.agenda-module ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    opacity: 0.7;
}

.link-placeholder {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed var(--border-color);
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--accent-color);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.link-placeholder:hover {
    background: rgba(168, 249, 49, 0.05);
    border-color: var(--accent-color);
}

/* Inline Buttons */
.inline-btn {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.inline-btn.tool-btn {
    background: rgba(168, 249, 49, 0.1);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}
.inline-btn.tool-btn:hover {
    background: var(--accent-color);
    color: #121212;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(168, 249, 49, 0.2);
}

.inline-btn.ext-btn {
    background: rgba(100, 200, 255, 0.1);
    color: #64c8ff;
    border: 1px solid #64c8ff;
}
.inline-btn.ext-btn:hover {
    background: #64c8ff;
    color: #121212;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(100, 200, 255, 0.2);
}

.inline-btn.activity-btn {
    border-color: #ffab00;
    color: #ffab00;
    background: rgba(255, 171, 0, 0.1);
}

.inline-btn.activity-btn:hover {
    background: #ffab00;
    color: #121212;
}

.module-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

/* Accessibility Large Text Overrides */
html.large-text body {
    font-size: 18px;
}
html.large-text .subtitle {
    font-size: 19px;
}
html.large-text .card-desc {
    font-size: 17px;
}
html.large-text .nav-back {
    font-size: 17px;
    padding: 10px 20px;
}
html.large-text .module-number {
    font-size: 17px;
}
html.large-text .agenda-module h2 {
    font-size: 26px;
}
html.large-text .agenda-module ul li {
    font-size: 18px;
}
html.large-text .inline-btn {
    font-size: 18px;
    padding: 12px 18px;
}