:root {
    /* HTB-inspired accent color reference: #9FEF00 */
    --bg-0: #070b0f;
    --bg-1: #0c1218;
    --bg-2: #131b24;
    --line: #22303e;
    --text: #e6f6ec;
    --muted: #9fb1a7;
    --blue: #9fef00;
    --blue-strong: #77bc00;
    --green: #9fef00;
    --font-main: "Chakra Petch", sans-serif;
    --font-mono: "JetBrains Mono", monospace;
    --shadow: 0 22px 44px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    font-family: var(--font-main);
    color: var(--text);
    background:
        radial-gradient(circle at 12% 10%, rgba(159, 239, 0, 0.22), transparent 28%),
        radial-gradient(circle at 84% 12%, rgba(67, 88, 102, 0.28), transparent 32%),
        linear-gradient(170deg, var(--bg-0) 0%, var(--bg-1) 42%, var(--bg-2) 100%);
    position: relative;
    overflow-x: hidden;
}

.bg-orb {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(12px);
    z-index: 0;
}

.orb-a {
    width: 280px;
    height: 280px;
    top: -90px;
    right: -70px;
    background: rgba(159, 239, 0, 0.22);
}

.orb-b {
    width: 220px;
    height: 220px;
    left: -80px;
    bottom: 12%;
    background: rgba(120, 145, 160, 0.22);
}

.container {
    width: min(1120px, 92vw);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(159, 239, 0, 0.2);
    background: rgba(8, 11, 15, 0.8);
}

.header-row {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.brand-badge {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, var(--blue), var(--blue-strong));
    color: #0a1300;
    font-family: var(--font-mono);
    font-size: 0.86rem;
    box-shadow: 0 10px 18px rgba(159, 239, 0, 0.3);
}

.menu {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.menu a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.93rem;
    border: 1px solid transparent;
    padding: 6px 12px;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.menu a:hover {
    color: var(--text);
    border-color: rgba(159, 239, 0, 0.3);
    background: rgba(20, 32, 42, 0.72);
}

.top-cta {
    text-decoration: none;
    color: #071101;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 10px 16px;
    border-radius: 12px;
    background: linear-gradient(130deg, var(--blue), var(--blue-strong));
    box-shadow: 0 12px 22px rgba(159, 239, 0, 0.26);
    transition: transform 0.2s ease;
}

.top-cta:hover {
    transform: translateY(-1px);
}

.shell {
    padding: 34px 0 58px;
    display: grid;
    gap: 20px;
}

h1,
h2,
h3,
p {
    margin: 0;
}

.hero,
.panel {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(16, 23, 31, 0.93), rgba(10, 14, 19, 0.98));
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero {
    padding: clamp(22px, 4vw, 36px);
    display: grid;
    grid-template-columns: 1fr min(300px, 36vw);
    gap: clamp(24px, 4vw, 48px);
    align-items: center;
}

.hero-left {
    display: grid;
    gap: 24px;
    min-width: 0;
}

.hero-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.shield-stats {
    width: 100%;
    max-width: 300px;
    display: grid;
    gap: 10px;
    text-align: center;
}

.shield-amounts {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    align-items: center;
    gap: 0;
    border: 1px solid rgba(159, 239, 0, 0.14);
    border-radius: 14px;
    background: rgba(14, 22, 30, 0.72);
    overflow: hidden;
}

.shield-amount-block {
    padding: 12px 10px;
    display: grid;
    gap: 3px;
}

.shield-amount-divider {
    width: 1px;
    height: 100%;
    background: rgba(159, 239, 0, 0.14);
    align-self: stretch;
}

.shield-amount-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
}

.shield-amount-value {
    display: block;
    font-family: var(--font-mono);
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1;
    color: #d8ffa0;
    letter-spacing: 0.01em;
}

.shield-amount-muted {
    color: #7a9e6a;
}

.shield-progress-text {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: #7a956a;
    letter-spacing: 0.04em;
}

.hero-intro {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.hero-copy {
    flex: 1;
    min-width: 0;
}

.eyebrow {
    margin: 0;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #95bf43;
}

h1 {
    margin-top: 10px;
    font-size: clamp(1.85rem, 5vw, 3rem);
    line-height: 1.08;
    max-width: 18ch;
}

.academy-name {
    margin-top: 16px;
    font-family: var(--font-mono);
    color: #c3f167;
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.lead {
    margin-top: 18px;
    max-width: 60ch;
    color: var(--muted);
    line-height: 1.64;
    font-size: 1.02rem;
}

.hero-actions {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
}

.btn {
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 700;
    border-radius: 11px;
    padding: 11px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(130deg, var(--blue), var(--blue-strong));
    color: #061100;
}

.btn-ghost {
    background: rgba(25, 35, 45, 0.72);
    color: #d2e5d9;
    border: 1px solid rgba(159, 239, 0, 0.24);
}

.bank-card {
    border-radius: 18px;
    border: 1px solid rgba(159, 239, 0, 0.24);
    background: linear-gradient(162deg, rgba(18, 27, 36, 0.96), rgba(11, 17, 24, 0.96));
    padding: 22px;
    display: grid;
    align-content: start;
    gap: 14px;
}

.hero-logo {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, var(--blue), var(--blue-strong));
    font-family: var(--font-mono);
    font-weight: 700;
    box-shadow: 0 10px 18px rgba(159, 239, 0, 0.32);
    margin-top: 2px;
    flex-shrink: 0;
}

.card-label {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    color: #95bf43;
}

.shield-wrapper {
    position: relative;
    width: 100%;
    max-width: 300px;
    filter:
        drop-shadow(0 0 16px rgba(159, 239, 0, 0.14))
        drop-shadow(0 18px 40px rgba(0, 0, 0, 0.65));
}

.shield-svg {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
}

.shield-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-align: center;
    pointer-events: none;
    padding-bottom: 14%;
    background: radial-gradient(circle at center 43%, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 30%, transparent 60%);
}

.shield-percent {
    font-family: var(--font-mono);
    font-size: clamp(1.6rem, 5vw, 2.4rem);
    font-weight: 700;
    line-height: 1;
    color: #f1ffd2;
    text-shadow: 0 0 16px rgba(159, 239, 0, 0.45);
}

.shield-caption {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #aac189;
}

.supporters-note {
    color: var(--muted);
    font-size: 0.82rem;
}

.supporters-note span {
    font-family: var(--font-mono);
    color: #c3f167;
    font-weight: 700;
}

.panel {
    padding: clamp(20px, 4vw, 30px);
    display: grid;
    gap: 18px;
}

.dropdown-panel {
    padding: 0;
    gap: 0;
}

.dropdown-trigger {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    padding: clamp(18px, 3vw, 24px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.4;
}

.dropdown-title-wrap {
    display: grid;
    gap: 6px;
}

.dropdown-title {
    font-size: clamp(1.2rem, 2.6vw, 1.65rem);
    font-weight: 700;
}

.dropdown-caret {
    width: 12px;
    height: 12px;
    border-right: 2px solid #9fb0d4;
    border-bottom: 2px solid #9fb0d4;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-right: 3px;
}

.dropdown-panel.open .dropdown-caret {
    transform: rotate(225deg);
}

.dropdown-content {
    padding: 0 clamp(18px, 3vw, 24px) clamp(18px, 3vw, 24px);
}

.compact-bank-list .bank-row {
    background: rgba(15, 24, 46, 0.58);
}

.section-head {
    display: grid;
    gap: 8px;
}

.section-head h2 {
    font-size: clamp(1.35rem, 3vw, 1.95rem);
    line-height: 1.18;
}

.section-head p {
    color: var(--muted);
    line-height: 1.6;
    max-width: 68ch;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.guide-box {
    border: 1px solid rgba(159, 176, 212, 0.22);
    border-radius: 16px;
    background: linear-gradient(170deg, rgba(19, 31, 59, 0.95), rgba(16, 27, 48, 0.95));
    padding: 16px;
    display: grid;
    gap: 10px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.guide-box:hover {
    transform: scale(1.02);
    border-color: rgba(159, 239, 0, 0.4);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(159, 239, 0, 0.15);
    z-index: 2;
}

.guide-box h3 {
    font-size: 1.03rem;
}

.steps,
.bullet-list,
.info-list {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.65;
    display: grid;
    gap: 8px;
}

.bank-list {
    display: grid;
    gap: 12px;
}

.bank-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    border: 1px solid rgba(159, 176, 212, 0.22);
    border-radius: 12px;
    background: linear-gradient(170deg, rgba(19, 31, 59, 0.95), rgba(16, 27, 48, 0.95));
    padding: 14px;
}

.bank-key {
    margin: 0;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8ea4d1;
}

.bank-value {
    margin: 5px 0 0;
    font-family: var(--font-mono);
    font-size: 0.92rem;
    color: #d5e1fb;
}

.copy-btn {
    border: 1px solid rgba(159, 239, 0, 0.3);
    border-radius: 10px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--green);
    background: rgba(159, 239, 0, 0.05);
    transition: all 0.2s ease;
}

.copy-btn:hover {
    transform: translateY(-2px);
    background: rgba(159, 239, 0, 0.15);
    box-shadow: 0 4px 10px rgba(159, 239, 0, 0.15);
}

.copy-btn svg {
    transition: stroke 0.2s ease;
}

.contributors-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.contributor-item {
    border-radius: 14px;
    border: 1px solid rgba(159, 176, 212, 0.22);
    background: linear-gradient(170deg, rgba(19, 31, 59, 0.95), rgba(16, 27, 48, 0.95));
    padding: 14px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.contributor-item:hover {
    transform: scale(1.02);
    border-color: rgba(159, 239, 0, 0.4);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(159, 239, 0, 0.15);
    z-index: 2;
}

.contributor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(159, 176, 212, 0.1);
    padding-bottom: 8px;
    margin-bottom: 10px;
}

.contributor-item .name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
}

.usr-tag {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    opacity: 0.7;
}

.contributor-item .amount {
    color: #c3f167;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
}

.contributor-item .description {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.5;
    margin: 0;
    font-style: italic;
}

.syllabus-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.syllabus-item {
    border-radius: 14px;
    border: 1px solid rgba(159, 176, 212, 0.22);
    background: linear-gradient(170deg, rgba(19, 31, 59, 0.95), rgba(16, 27, 48, 0.95));
    padding: 16px;
}

.syllabus-item h3 {
    font-size: 1rem;
}

.syllabus-item p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.93rem;
    line-height: 1.58;
}

.site-footer {
    border-top: 1px solid rgba(159, 176, 212, 0.18);
    background: rgba(8, 13, 26, 0.72);
    margin-top: 8px;
}

.footer-inner {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    color: #9fb0d4;
    font-size: 0.86rem;
}

.toast {
    position: fixed;
    bottom: 18px;
    right: 18px;
    background: #132236;
    color: #fff;
    border-radius: 12px;
    padding: 10px 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    font-size: 0.9rem;
    z-index: 40;
}

.toast.show {
    opacity: 1;
}

.reveal {
    opacity: 0;
    transform: translateY(16px);
    animation: rise 0.65s ease forwards;
}

.shell section:nth-child(1) { animation-delay: 0.04s; }
.shell section:nth-child(2) { animation-delay: 0.12s; }
.shell section:nth-child(3) { animation-delay: 0.2s; }
.shell section:nth-child(4) { animation-delay: 0.28s; }
.shell section:nth-child(5) { animation-delay: 0.36s; }

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 980px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-right {
        order: -1;
    }

    .shield-wrapper {
        max-width: 220px;
    }

    .guide-grid,
    .contributors-grid,
    .syllabus-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 700px) {
    .header-row {
        min-height: 64px;
    }

    .menu {
        display: none;
    }

    .top-cta {
        padding: 9px 14px;
    }

    .bank-card {
        padding: 18px;
    }

    .bank-row {
        grid-template-columns: 1fr;
    }

    .shield-wrapper {
        max-width: 180px;
    }

    .shield-percent {
        font-size: clamp(1.35rem, 7vw, 2rem);
    }
}

/* Console Syllabus Styling */
.console-window {
    background-color: var(--bg-1);
    border: 1px solid rgba(159, 239, 0, 0.4);
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(159, 239, 0, 0.1);
    overflow: hidden;
    font-family: var(--font-mono);
    color: var(--text);
    max-height: 480px;
    display: flex;
    flex-direction: column;
    margin-top: 10px;
    margin-bottom: 20px;
}

.console-header {
    background-color: var(--bg-2);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(159, 239, 0, 0.2);
}

.console-dots {
    display: flex;
    gap: 6px;
}

.console-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background-color: #ff5f56; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #27c93f; }

.console-title {
    flex-grow: 1;
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted);
    user-select: none;
    letter-spacing: 1px;
}

.console-body {
    padding: 16px;
    overflow-y: auto;
    font-size: 0.92rem;
    line-height: 1.6;
}

.console-line {
    display: flex;
    gap: 12px;
    margin-bottom: 6px;
}

.console-line.mt-4 {
    margin-top: 16px;
}

.console-prompt {
    color: var(--green); /* Hack The Box green */
    white-space: nowrap;
    font-weight: bold;
}

.console-text {
    flex-grow: 1;
    opacity: 0.9;
}

.blink {
    animation: blinker 1s linear infinite;
    background-color: var(--green);
    display: inline-block;
    width: 8px;
    height: 1.1em;
    vertical-align: middle;
}

@keyframes blinker {
    50% { opacity: 0; }
}

/* Scrollbar styling for pure terminal feel */
.console-body::-webkit-scrollbar {
    width: 10px;
}
.console-body::-webkit-scrollbar-track {
    background: var(--bg-1);
    border-left: 1px solid rgba(159, 239, 0, 0.1);
}
.console-body::-webkit-scrollbar-thumb {
    background: rgba(159, 239, 0, 0.4);
    border-radius: 5px;
}
.console-body::-webkit-scrollbar-thumb:hover {
    background: rgba(159, 239, 0, 0.8);
}
