:root {
    --bg: #050505;
    --bg-soft: #101010;
    --bg-panel: rgba(16, 16, 16, 0.88);
    --bg-panel-strong: rgba(10, 10, 10, 0.96);
    --text: #f2f2f2;
    --muted: #9a9a9a;
    --accent: #b31217;
    --accent-bright: #d51f26;
    --line: rgba(255, 255, 255, 0.08);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --max-width: 1180px;
    --site-font: "JetBrains Mono", monospace;
    --site-font-display: "JetBrains Mono", monospace;
}

@font-face {
    font-family: "Minecraft";
    src: url("minecraft.ttf") format("truetype");
    font-display: swap;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(179, 18, 23, 0.26), transparent 34%),
        radial-gradient(circle at 85% 18%, rgba(179, 18, 23, 0.18), transparent 24%),
        linear-gradient(180deg, #050505 0%, #090909 50%, #050505 100%);
    font-family: var(--site-font);
    min-height: 100vh;
    overflow-x: hidden;
}

body.font-minecraft {
    --site-font: "Minecraft", "JetBrains Mono", monospace;
    --site-font-display: "Minecraft", "JetBrains Mono", monospace;
}

body.font-jetbrains {
    --site-font: "JetBrains Mono", monospace;
    --site-font-display: "JetBrains Mono", monospace;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 95%);
}

body::after {
    content: "";
    position: fixed;
    inset: auto auto 8% -8%;
    width: 38vw;
    height: 38vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(213, 31, 38, 0.14), transparent 68%);
    filter: blur(18px);
    pointer-events: none;
    animation: driftGlow 14s ease-in-out infinite alternate;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(calc(100% - 32px), var(--max-width));
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(5, 5, 5, 0.72);
    border-bottom: 1px solid var(--line);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--site-font-display);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--accent-bright), #61090d);
    box-shadow: 0 12px 24px rgba(179, 18, 23, 0.35);
    font-weight: 700;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.brand:hover .brand-mark {
    transform: rotate(-8deg) scale(1.08);
    box-shadow: 0 18px 34px rgba(213, 31, 38, 0.42);
}

.nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    color: var(--muted);
    font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
    color: var(--text);
}

.nav a {
    position: relative;
    transition: color 0.25s ease;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left;
    background: linear-gradient(90deg, transparent, var(--accent-bright), transparent);
    transition: transform 0.25s ease;
}

.nav a:hover::after,
.nav a.active::after {
    transform: scaleX(1);
}

.topbar-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: end;
    gap: 14px;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-label {
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.toggle-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.toggle-chip {
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    font: inherit;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.toggle-chip:hover,
.toggle-chip.is-active {
    transform: translateY(-1px);
    border-color: rgba(213, 31, 38, 0.5);
    color: var(--text);
    background: rgba(179, 18, 23, 0.12);
}

.mobile-menu-toggle {
    display: none;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(213, 31, 38, 0.42);
    background: rgba(179, 18, 23, 0.14);
    color: var(--text);
    font: inherit;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(179, 18, 23, 0.14);
}

.page {
    padding: 56px 0 46px;
}

.hero {
    padding: 88px 0 54px;
}

.hero-shell,
.panel,
.card,
.timeline-item,
.contact-card,
.feature-card,
.stat {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--bg-panel);
    box-shadow: var(--shadow);
}

.hero-shell {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background:
        linear-gradient(140deg, rgba(179, 18, 23, 0.18), rgba(5, 5, 5, 0.06) 28%, rgba(10, 10, 10, 0.94) 70%),
        var(--bg-panel-strong);
    padding: 42px;
}

.hero-shell::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -120px;
    top: -120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(213, 31, 38, 0.28), transparent 70%);
    pointer-events: none;
    animation: orbitGlow 12s linear infinite;
}

.hero-grid,
.two-col,
.feature-grid,
.stats,
.demo-shell,
.demo-fields {
    display: grid;
    gap: 18px;
}

.hero-grid {
    position: relative;
    z-index: 1;
    grid-template-columns: 1.45fr 0.9fr;
    gap: 28px;
    align-items: center;
}

.hero-copy {
    position: relative;
    z-index: 1;
}

.two-col {
    grid-template-columns: 1.05fr 0.95fr;
}

.feature-grid {
    grid-template-columns: repeat(3, 1fr);
}

.utility-grid {
    margin-top: 6px;
}

.stats {
    grid-template-columns: repeat(4, 1fr);
    margin-top: 28px;
}

.demo-shell {
    grid-template-columns: 0.82fr 1.18fr;
    align-items: start;
}

.demo-sidebar {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: var(--shadow);
    padding: 20px;
}

.demo-search {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 0.92rem;
}

.demo-search input {
    width: 100%;
    min-height: 48px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    padding: 0 16px;
    font: inherit;
    outline: none;
}

.demo-search input:focus {
    border-color: rgba(213, 31, 38, 0.6);
    box-shadow: 0 0 0 4px rgba(179, 18, 23, 0.14);
}

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

.vault-item {
    width: 100%;
    display: grid;
    gap: 5px;
    text-align: left;
    padding: 16px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: 16px;
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.vault-item:hover,
.vault-item.active {
    transform: translateY(-2px);
    border-color: rgba(213, 31, 38, 0.55);
    background: rgba(179, 18, 23, 0.1);
    box-shadow: 0 14px 28px rgba(179, 18, 23, 0.18);
}

.vault-item strong {
    font-size: 1rem;
}

.vault-item span {
    color: var(--muted);
    font-size: 0.9rem;
}

.demo-view {
    padding: 28px;
}

.demo-topline {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.strength-pill {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(213, 31, 38, 0.28);
    background: rgba(179, 18, 23, 0.1);
    color: #ffd8da;
    font-family: var(--site-font-display);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.demo-fields {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 22px;
}

.demo-field {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    padding: 18px;
}

.demo-field span {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 0.9rem;
}

.demo-field strong {
    font-size: 1rem;
    line-height: 1.6;
}

.password-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.button-small {
    min-height: 40px;
    padding: 0 16px;
    font-size: 0.88rem;
}

.demo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 18px;
}

.demo-terminal pre {
    min-height: 130px;
}

.eyebrow,
.section-tag,
.feature-kicker {
    font-family: var(--site-font-display);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(213, 31, 38, 0.28);
    background: rgba(179, 18, 23, 0.1);
    color: #ffd8da;
    font-size: 0.84rem;
    letter-spacing: 0.04em;
}

h1 {
    margin: 18px 0;
    font-size: clamp(2.8rem, 7vw, 5.2rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
}

h2 {
    margin: 0;
    font-size: clamp(1.9rem, 4vw, 3rem);
    letter-spacing: -0.04em;
}

h3 {
    margin-top: 0;
    font-size: 1.2rem;
}

.lead,
.section-copy,
.card p,
.feature-card p,
.timeline-item p,
.contact-card p,
.content p,
.content li {
    color: var(--muted);
    line-height: 1.8;
}

.hero p {
    max-width: 660px;
    color: #d1d1d1;
    font-size: 1.06rem;
    line-height: 1.8;
    margin: 0 0 28px;
}

.hero-actions,
.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 22px;
    border-radius: 16px;
    border: 1px solid transparent;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease, box-shadow 0.24s ease;
}

.button:hover {
    transform: translateY(-3px) scale(1.01);
}

.button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 25%, rgba(255, 255, 255, 0.18) 50%, transparent 75%);
    transform: translateX(-120%);
    transition: transform 0.6s ease;
}

.button:hover::before {
    transform: translateX(120%);
}

.button-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-bright));
    box-shadow: 0 16px 34px rgba(179, 18, 23, 0.3);
}

.button-primary:hover {
    box-shadow: 0 22px 44px rgba(213, 31, 38, 0.38);
}

.button-secondary {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
}

.button-secondary:hover {
    border-color: rgba(213, 31, 38, 0.5);
    box-shadow: 0 14px 28px rgba(213, 31, 38, 0.12);
}

.panel,
.card,
.feature-card,
.stat,
.contact-card {
    padding: 24px;
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.panel:hover,
.card:hover,
.feature-card:hover,
.stat:hover,
.contact-card:hover,
.demo-sidebar:hover {
    border-color: rgba(213, 31, 38, 0.32);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
}

.terminal {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #090909;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
}

.terminal::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 35%);
    pointer-events: none;
}

.terminal-head {
    display: flex;
    gap: 8px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
}

.terminal-head span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.terminal pre {
    margin: 0;
    padding: 22px;
    color: #f4f4f4;
    font-family: var(--site-font-display);
    font-size: 0.88rem;
    line-height: 1.8;
    white-space: pre-wrap;
}

.section,
.content {
    padding: 28px 0;
}

.section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.section-tag,
.feature-kicker {
    color: var(--accent-bright);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 10px;
}

.card ul,
.feature-card ul,
.content ul {
    margin: 12px 0 0;
    padding-left: 18px;
}

.timeline {
    display: grid;
    gap: 14px;
}

.timeline-item {
    padding: 18px 20px;
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 18px;
    align-items: start;
}

.timeline-item strong {
    color: var(--accent-bright);
    font-family: var(--site-font-display);
    font-size: 0.88rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.contact-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    overflow: hidden;
    position: relative;
}

.contact-card::before {
    content: "";
    position: absolute;
    inset: auto -100px -120px auto;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(179, 18, 23, 0.25), transparent 72%);
    pointer-events: none;
}

.contact-card > * {
    position: relative;
    z-index: 1;
}

.project-warning {
    color: #ffd8da;
    font-size: 0.92rem;
}

.page-title {
    margin-bottom: 10px;
}

.breadcrumb {
    color: var(--muted);
    font-family: var(--site-font-display);
    font-size: 0.84rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

footer {
    padding: 28px 0 46px;
    color: var(--muted);
    text-align: center;
    font-size: 0.92rem;
}

.reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.08s;
}

.reveal-delay-2 {
    transition-delay: 0.16s;
}

.reveal-delay-3 {
    transition-delay: 0.24s;
}

.reveal-delay-4 {
    transition-delay: 0.32s;
}

.floating-panel {
    animation: floatCard 6.5s ease-in-out infinite;
}

.tilt-card {
    transform-style: preserve-3d;
    will-change: transform;
}

@keyframes driftGlow {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    100% {
        transform: translate3d(12vw, -4vh, 0) scale(1.12);
    }
}

@keyframes orbitGlow {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.05);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes floatCard {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@media (max-width: 1180px) {
    .topbar-inner {
        align-items: start;
        flex-direction: column;
    }

    .topbar-controls {
        justify-content: start;
    }
}

@media (max-width: 1024px) {
    .hero-grid,
    .two-col,
    .feature-grid,
    .demo-shell {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .floating-panel {
        animation-duration: 7.5s;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(calc(100% - 22px), var(--max-width));
    }

    .topbar {
        background: rgba(5, 5, 5, 0.9);
    }

    .topbar-inner {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 14px;
        padding: 12px 0;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .brand {
        min-height: 42px;
    }

    .brand-mark {
        width: 36px;
        height: 36px;
        border-radius: 12px;
    }

    .hero {
        padding: 34px 0 28px;
    }

    .hero-shell,
    .panel,
    .card,
    .feature-card,
    .contact-card,
    .stat {
        padding: 22px;
    }

    .nav {
        display: none;
    }

    body.mobile-nav-open .nav {
        grid-column: 1 / -1;
        display: grid;
        width: 100%;
        gap: 10px;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 22px;
        background: rgba(12, 12, 12, 0.96);
        box-shadow: var(--shadow);
    }

    body.mobile-nav-open .nav a {
        min-height: 44px;
        display: flex;
        align-items: center;
        padding: 0 12px;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.03);
    }

    body.mobile-nav-open .nav a.active,
    body.mobile-nav-open .nav a:hover {
        background: rgba(179, 18, 23, 0.12);
    }

    .topbar-controls {
        grid-column: 1 / -1;
        display: grid;
        width: 100%;
        gap: 10px;
    }

    .toggle-row {
        width: 100%;
    }

    .toggle-chip {
        flex: 1;
        justify-content: center;
        min-width: 0;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .section-header,
    .contact-card,
    .timeline-item,
    .demo-fields {
        grid-template-columns: 1fr;
        display: grid;
    }

    .timeline-item {
        gap: 10px;
    }

    .password-row,
    .demo-topline,
    .control-group {
        flex-direction: column;
        align-items: start;
    }

    .hero-actions,
    .button-row,
    .demo-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .button {
        width: 100%;
    }

    .eyebrow {
        align-items: start;
        white-space: normal;
    }

    h1 {
        font-size: clamp(2.55rem, 20vw, 4rem);
    }

    h2 {
        font-size: clamp(1.55rem, 10vw, 2.25rem);
    }

    .hero p,
    .lead,
    .section-copy,
    .card p,
    .feature-card p,
    .timeline-item p,
    .contact-card p,
    .content p,
    .content li {
        line-height: 1.7;
    }

    .terminal pre {
        padding: 18px;
        font-size: 0.78rem;
    }

    body::after {
        width: 70vw;
        height: 70vw;
    }
}

@media (max-width: 430px) {
    .hero-shell,
    .panel,
    .card,
    .feature-card,
    .contact-card,
    .stat,
    .demo-sidebar,
    .demo-view {
        padding: 18px;
        border-radius: 20px;
    }

    .section,
    .content {
        padding: 20px 0;
    }

    .control-label {
        font-size: 0.76rem;
    }

    .toggle-chip {
        padding: 0 9px;
        font-size: 0.78rem;
    }

    .demo-field {
        padding: 14px;
    }

    .timeline-item {
        padding: 16px;
    }

    footer {
        font-size: 0.78rem;
        line-height: 1.7;
    }
}
