@font-face {
    font-family: "JetBrains Mono";
    src: url("../../../../fonts/JetBrainsMono/JetBrainsMono-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "JetBrains Mono";
    src: url("../../../../fonts/JetBrainsMono/JetBrainsMono-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-color: #0b0f16;
    --card-bg: #141a24;
    --text-primary: #f5f7fb;
    --text-secondary: #a9b4c2;
    --accent-color: #4be4ff;
    --accent-hover: #21c3e6;
    --cta-green: #3b8d4a;
    --cta-green-hover: #46a157;
    --border-color: #243245;
}

body {
    font-family: "JetBrains Mono", "Trebuchet MS", sans-serif;
    background: radial-gradient(circle at top, rgba(75, 228, 255, 0.12), transparent 55%),
        radial-gradient(circle at 20% 20%, rgba(22, 211, 41, 0.12), transparent 45%),
        var(--bg-color);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(120deg, rgba(20, 26, 36, 0.85) 0%, rgba(11, 15, 22, 0.92) 55%, rgba(11, 15, 22, 1) 100%);
    pointer-events: none;
    z-index: 0;
}

.main-content,
.footer {
    position: relative;
    z-index: 1;
}

.sidebar {
    z-index: 100;
}

.main-content {
    /* Margin handled by styles.css and media queries */
    padding: 20px 40px;
    padding-bottom: 60px;
}

@media (max-width: 1200px) {
    .main-content {
        margin-left: 0;
    }
}

.nav-tree a {
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.nav-item {
    color: var(--text-primary);
}

.nav-item.disabled {
    opacity: 0.6;
    cursor: default;
}

.nav-badge {
    margin-left: auto;
    padding: 2px 8px;
    font-size: 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.brand-mark {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: #0f151f;
    display: block;
}

.brand-mark-hero {
    width: 90px;
    height: 90px;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    background: #0f151f;
    display: block;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    align-items: center;
}

.hero-image {
    width: 100%;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.hero-kickers {
    display: flex;
    flex-wrap: wrap;
    gap: 0px;
    margin: 14px 0 20px;
}

.hero-kicker {
    padding: 6px 6px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    font-size: 1.0rem;
    color: var(--text-secondary);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.ghost-button {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    text-decoration: none;
    transition: border 0.2s ease, transform 0.2s ease;
}

.ghost-button:hover {
    transform: translateY(-2px);
    border-color: var(--accent-color);
}

.signal-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    margin-top: 20px;
}

.signal-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    background: rgba(20, 26, 36, 0.6);
}

.signal-card h4 {
    margin-bottom: 8px;
    font-size: 1rem;
}

.signal-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.hero-section {
    padding: 30px 20px;
    margin-bottom: 30px;
}

.hero-section h1 {
    font-size: 2.6rem;
    margin-bottom: 12px;
}

h1 {
    color: var(--text-primary);
    background: none;
    -webkit-text-fill-color: initial;
}

.gradient-text {
    color: var(--text-primary);
    background: none;
    -webkit-text-fill-color: initial;
}

.play-fair-text {
    color: #5ad6ff;
}

.build-true-text {
    color: #31b24a;
}

.sidebar-title {
    color: var(--text-primary);
    background: none;
    -webkit-text-fill-color: initial;
}

.footer-motto {
    color: var(--text-primary);
    background: none;
    -webkit-text-fill-color: initial;
}

.cta-button {
    background: var(--cta-green);
    box-shadow: 0 8px 18px rgba(59, 141, 74, 0.25);
}

.cta-button:hover {
    background: var(--cta-green-hover);
    box-shadow: 0 10px 20px rgba(59, 141, 74, 0.35);
}

.section {
    margin-bottom: 30px;
}

.section-title {
    font-family: "JetBrains Mono", sans-serif;
}

.section-icon {
    /* ...existing code... */
    width: 64px;
    /* Set a fixed width */
    height: 64px;
    /* Set the same fixed height */
    line-height: 64px;
    /* Center text vertically */
    display: flex;
    /* Use flexbox for centering */
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    /* This will now make a perfect circle */
}

.grid-card {
    cursor: default;
}

.grid-card .card-content {
    max-height: none;
    padding: 20px;
}

.home-content {
    padding: 20px 40px;
    padding-bottom: 40px;
}

.content-frame {
    width: 100%;
    border: 0;
    display: none;
    min-height: 100vh;
    background-color: #000000;
}

.frame-mode .content-frame {
    display: block;
}

.frame-mode .home-content {
    display: none;
}

.frame-mode .main-content {
    padding: 0;
}

.frame-mode .footer {
    display: none;
}