:root {
    --bg: #070a0c;
    --bg2: #0b0f12;
    --panel: rgba(10, 16, 20, .72);
    --panel2: rgba(9, 14, 18, .55);
    --line: rgba(120, 255, 210, .12);
    --text: #d7ffe9;
    --muted: #9adbbf;
    --accent: #67ffcc;
    --accent2: #7aa7ff;
    --warn: #ffd26f;
    --danger: #ff6f8f;
    --shadow: 0 18px 60px rgba(0, 0, 0, .55);
    --radius: 18px;
    --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

html {
    min-height: 100%;
    background: radial-gradient(1000px 600px at 20% 10%, rgba(103, 255, 204, .12), transparent 60%),
        radial-gradient(900px 700px at 80% 20%, rgba(122, 167, 255, .10), transparent 55%),
        radial-gradient(1200px 900px at 50% 110%, rgba(103, 255, 204, .08), transparent 60%),
        linear-gradient(180deg, var(--bg), var(--bg2));
    background-attachment: fixed;
    background-repeat: no-repeat;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: transparent;
    font-family: var(--sans);
    overflow-x: hidden;
}

/* Background: particles (behind grid/scanlines/noise) */
#fxParticles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: .55;
}

.fx-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(to right, rgba(103, 255, 204, .06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(103, 255, 204, .05) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(700px 600px at 50% 20%, rgba(0, 0, 0, 1), transparent 65%);
    opacity: .55;
    z-index: 0;
}

.fx-scanlines {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(to bottom,
            rgba(255, 255, 255, .05),
            rgba(255, 255, 255, .05) 1px,
            rgba(0, 0, 0, 0) 3px,
            rgba(0, 0, 0, 0) 6px);
    opacity: .07;
    mix-blend-mode: overlay;
    z-index: 0;
}

.fx-noise {
    position: fixed;
    inset: -40px;
    pointer-events: none;
    opacity: .08;
    z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
    background-size: 220px 220px;
    animation: noiseShift 9s linear infinite;
    mix-blend-mode: overlay;
}

@keyframes noiseShift {
    0% {
        transform: translate3d(0, 0, 0);
    }

    25% {
        transform: translate3d(-2%, 1%, 0);
    }

    50% {
        transform: translate3d(1%, -2%, 0);
    }

    75% {
        transform: translate3d(2%, 2%, 0);
    }

    100% {
        transform: translate3d(0, 0, 0);
    }
}

/* Layout */
.wrap {
    position: relative;
    z-index: 1;
    width: min(1120px, 92vw);
    margin: 0 auto;
    padding: 26px 0 90px;
}

header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
    background: linear-gradient(180deg, rgba(7, 10, 12, .72), rgba(7, 10, 12, .35));
    border-bottom: 1px solid rgba(103, 255, 204, .10);
}

.nav {
    width: min(1120px, 92vw);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--mono);
    letter-spacing: .2px;
    user-select: none;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 22px rgba(103, 255, 204, .55);
}

.brand b {
    font-weight: 800;
    color: var(--text);
}

.brand small {
    color: rgba(154, 219, 191, .9);
    display: block;
    font-size: 12px;
    margin-top: 1px;
}

nav a {
    color: rgba(215, 255, 233, .86);
    text-decoration: none;
    font-family: var(--mono);
    font-size: 13px;
    padding: 10px 10px;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: .18s ease;
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

nav a:hover {
    border-color: rgba(103, 255, 204, .20);
    background: rgba(103, 255, 204, .06);
    transform: translateY(-1px);
}

.navRight {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.hero {
    padding: 36px 0 26px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: stretch;
}

@media (max-width: 900px) {

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

    .navRight {
        justify-content: flex-start;
    }
}

.card {
    background: var(--panel);
    border: 1px solid rgba(103, 255, 204, .14);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

.card::before {
    content: "";
    position: absolute;
    inset: -1px;
    background:
        radial-gradient(700px 320px at 30% 0%, rgba(103, 255, 204, .12), transparent 55%),
        radial-gradient(650px 340px at 100% 15%, rgba(122, 167, 255, .12), transparent 58%);
    pointer-events: none;
    opacity: .9;
    z-index: 0;
}

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

.card.bigCard,
.card.form,
.card.statusPanel {
    padding: 0;
}

.terminalTop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 14px 10px;
    background: rgba(0, 0, 0, .28);
    border-bottom: 1px solid rgba(103, 255, 204, .12);
    font-family: var(--mono);
    color: rgba(215, 255, 233, .82);
    font-size: 12px;
}

.winBtns {
    display: flex;
    gap: 8px;
    align-items: center;
}

.winBtns span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    opacity: .9;
}

.winBtns .r {
    background: #ff5f57;
}

.winBtns .y {
    background: #febc2e;
}

.winBtns .g {
    background: #28c840;
}

.terminalBody {
    padding: 16px 16px 18px;
    font-family: var(--mono);
    line-height: 1.5;
    color: rgba(215, 255, 233, .92);
    min-height: 290px;
}

/* Glitch title */
.glitch {
    font-family: var(--mono);
    font-weight: 900;
    letter-spacing: .5px;
    font-size: clamp(34px, 5vw, 54px);
    margin: 8px 0 10px;
    position: relative;
    display: inline-block;
    text-transform: none;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    overflow: hidden;
    clip-path: inset(0 0 0 0);
    opacity: .85;
    pointer-events: none;
}

.glitch::before {
    transform: translate(2px, 0);
    color: rgba(122, 167, 255, .9);
    animation: glitch 2.6s infinite linear alternate-reverse;
}

.glitch::after {
    transform: translate(-2px, 0);
    color: rgba(103, 255, 204, .9);
    animation: glitch 2.15s infinite linear alternate;
}

@keyframes glitch {
    0% {
        clip-path: inset(0 0 92% 0);
    }

    10% {
        clip-path: inset(18% 0 62% 0);
    }

    20% {
        clip-path: inset(66% 0 20% 0);
    }

    30% {
        clip-path: inset(36% 0 44% 0);
    }

    40% {
        clip-path: inset(84% 0 6% 0);
    }

    50% {
        clip-path: inset(6% 0 82% 0);
    }

    60% {
        clip-path: inset(44% 0 38% 0);
    }

    70% {
        clip-path: inset(74% 0 14% 0);
    }

    80% {
        clip-path: inset(22% 0 58% 0);
    }

    90% {
        clip-path: inset(56% 0 28% 0);
    }

    100% {
        clip-path: inset(10% 0 78% 0);
    }
}

.lead {
    color: rgba(154, 219, 191, .94);
    margin: 0 0 14px;
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.55;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.badge {
    font-family: var(--mono);
    font-size: 12px;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(103, 255, 204, .18);
    background: rgba(103, 255, 204, .06);
    color: rgba(215, 255, 233, .88);
    display: inline-flex;
    gap: 8px;
    align-items: center;
    white-space: nowrap;
}

.badge i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent2);
    display: inline-block;
    box-shadow: 0 0 18px rgba(122, 167, 255, .45);
}

.ctaRow {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.btn {
    appearance: none;
    border: 1px solid rgba(103, 255, 204, .22);
    background: rgba(103, 255, 204, .08);
    color: var(--text);
    font-family: var(--mono);
    font-size: 13px;
    padding: 11px 14px;
    border-radius: 14px;
    cursor: pointer;
    transition: .18s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn:disabled,
.btn[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.65;
    transform: none;
    box-shadow: none;
}

.btn:hover {
    transform: translateY(-1px);
    border-color: rgba(103, 255, 204, .35);
    background: rgba(103, 255, 204, .12);
    box-shadow: 0 12px 40px rgba(103, 255, 204, .10);
}

.btn.primary {
    background: linear-gradient(90deg, rgba(103, 255, 204, .16), rgba(122, 167, 255, .14));
    border-color: rgba(122, 167, 255, .25);
}

.btn .arrow {
    opacity: .9;
}

/* Right panel */
.statusPanel {
    padding: 14px 14px 16px;
}

.miniTitle {
    font-family: var(--mono);
    font-size: 12px;
    color: rgba(215, 255, 233, .85);
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pulse {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 16px rgba(103, 255, 204, .55);
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(.9);
        opacity: .7;
    }

    50% {
        transform: scale(1.15);
        opacity: 1;
    }
}

/* Fix for invalid keyframes name above (kept look but valid) */
@keyframes pulseAnim {

    0%,
    100% {
        transform: scale(.9);
        opacity: .7;
    }

    50% {
        transform: scale(1.15);
        opacity: 1;
    }
}

.pulse {
    animation: pulseAnim 1.5s infinite ease-in-out;
}

.kpis {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.kpi {
    background: rgba(0, 0, 0, .25);
    border: 1px solid rgba(103, 255, 204, .12);
    border-radius: 14px;
    padding: 12px 12px;
}

.kpi b {
    display: block;
    font-family: var(--mono);
    font-size: 13px;
    margin-bottom: 6px;
}

.kpi span {
    display: block;
    color: rgba(154, 219, 191, .92);
    font-size: 12px;
    line-height: 1.35;
}

.divider {
    height: 1px;
    background: rgba(103, 255, 204, .14);
    margin: 12px 0;
}

.list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 10px;
    border-radius: 14px;
    border: 1px solid rgba(103, 255, 204, .10);
    background: rgba(0, 0, 0, .18);
}

.li .tag {
    font-family: var(--mono);
    font-size: 11px;
    padding: 5px 8px;
    border-radius: 999px;
    border: 1px solid rgba(122, 167, 255, .22);
    color: rgba(215, 255, 233, .88);
    background: rgba(122, 167, 255, .08);
    white-space: nowrap;
}

.li p {
    margin: 0;
    color: rgba(154, 219, 191, .92);
    font-size: 12.5px;
    line-height: 1.45;
}

/* Sections */
section {
    margin-top: 18px;
    padding-top: 16px;
}

.sectionHead {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin: 18px 0 10px;
}

.sectionHead h2 {
    margin: 0;
    font-family: var(--mono);
    font-size: 15px;
    letter-spacing: .2px;
    color: rgba(215, 255, 233, .92);
}

.sectionHead .hint {
    color: rgba(154, 219, 191, .75);
    font-size: 12px;
    font-family: var(--mono);
    white-space: nowrap;
}

.grid3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

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

.tile {
    background: var(--panel2);
    border: 1px solid rgba(103, 255, 204, .14);
    border-radius: var(--radius);
    padding: 14px 14px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, .35);
    position: relative;
    overflow: hidden;
    transform: translateY(10px);
    opacity: 0;
    transition: .55s ease;
}

.tile.reveal {
    transform: translateY(0);
    opacity: 1;
}

/* Generic reveal for non-tile blocks */
.revealOnScroll {
    transform: translateY(10px);
    opacity: 0;
    transition: .55s ease;
}

.revealOnScroll.reveal {
    transform: translateY(0);
    opacity: 1;
}


.tile::after {
    content: "";
    position: absolute;
    inset: -1px;
    background: radial-gradient(420px 220px at 30% 0%, rgba(103, 255, 204, .14), transparent 55%);
    opacity: .7;
    pointer-events: none;
}

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

.tile h3 {
    margin: 0 0 8px;
    font-family: var(--mono);
    font-size: 13px;
    color: rgba(215, 255, 233, .92);
    display: flex;
    gap: 10px;
    align-items: center;
}

.tile h3 .ic {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent2);
    box-shadow: 0 0 18px rgba(122, 167, 255, .45);
}

.tile p {
    margin: 0;
    color: rgba(154, 219, 191, .92);
    font-size: 13px;
    line-height: 1.5;
}

.tile ul {
    margin: 10px 0 0;
    padding-left: 18px;
    color: rgba(154, 219, 191, .92);
    font-size: 12.8px;
    line-height: 1.6;
}

.tile li {
    margin: 4px 0;
}

.bigCard {
    margin-top: 12px;
    padding: 16px 16px;
}

.bigCard .cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 10px;
}

@media (max-width: 900px) {
    .bigCard .cols {
        grid-template-columns: 1fr;
    }
}

.bigCard h3 {
    margin: 0;
    font-family: var(--mono);
    font-size: 14px;
}

.bigCard p {
    margin: 10px 0 0;
    color: rgba(154, 219, 191, .92);
    line-height: 1.55;
    font-size: 13.2px;
}

/* Contact */
.contactStack {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 12px;
}

.form {
    padding: 16px 16px 18px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

label {
    font-family: var(--mono);
    font-size: 12px;
    color: rgba(215, 255, 233, .86);
}

input,
textarea,
select {
    width: 100%;
    background: rgba(0, 0, 0, .25);
    border: 1px solid rgba(103, 255, 204, .16);
    border-radius: 14px;
    padding: 12px 12px;
    color: var(--text);
    outline: none;
    font-family: var(--mono);
    font-size: 13px;
    transition: .18s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(122, 167, 255, .35);
    box-shadow: 0 0 0 4px rgba(122, 167, 255, .10);
}

textarea {
    min-height: 140px;
    resize: vertical;
}

.formRow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

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

.formFoot {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}

.note {
    font-family: var(--mono);
    color: rgba(154, 219, 191, .78);
    font-size: 11.5px;
    line-height: 1.4;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%) translateY(20px);
    background: rgba(0, 0, 0, .65);
    border: 1px solid rgba(103, 255, 204, .18);
    padding: 12px 14px;
    border-radius: 14px;
    font-family: var(--mono);
    font-size: 12.5px;
    color: rgba(215, 255, 233, .92);
    box-shadow: 0 16px 45px rgba(0, 0, 0, .55);
    opacity: 0;
    pointer-events: none;
    transition: .28s ease;
    z-index: 999;
    max-width: min(640px, 92vw);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

footer {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid rgba(103, 255, 204, .10);
    color: rgba(154, 219, 191, .72);
    font-family: var(--mono);
    font-size: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
}

/* Fake CLI typing */
.cli {
    margin-top: 8px;
    padding: 12px 12px;
    background: rgba(0, 0, 0, .22);
    border: 1px solid rgba(103, 255, 204, .12);
    border-radius: 14px;
    min-height: 150px;
}

.cliLine {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    white-space: pre-wrap;
    word-break: break-word;
}

.prompt {
    color: rgba(122, 167, 255, .95);
    min-width: 104px;
}

.cmd {
    color: rgba(215, 255, 233, .92);
    flex: 1;
}

/* CLI warning line */
.cliLine.warn .prompt {
    color: rgba(255, 210, 111, .95);
    min-width: 0;
}

.cliLine.warn .cmd {
    color: rgba(255, 210, 111, .90);
    text-shadow: 0 0 14px rgba(255, 210, 111, .16);
}

.cliLine.warn {
    margin-top: 4px;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: rgba(103, 255, 204, .9);
    vertical-align: -3px;
    margin-left: 6px;
    animation: blink 1s steps(1) infinite;
    box-shadow: 0 0 18px rgba(103, 255, 204, .45);
}

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

/* subtle CRT flicker */
.crt {
    animation: crtFlicker 7.5s infinite;
}

@keyframes crtFlicker {

    0%,
    100% {
        filter: brightness(1) contrast(1.02);
    }

    50% {
        filter: brightness(1.02) contrast(1.03);
    }

    55% {
        filter: brightness(.99) contrast(1.02);
    }

    60% {
        filter: brightness(1.01) contrast(1.03);
    }
}

/* Anchor offset for sticky header */
.anchor {
    scroll-margin-top: 92px;
}

/* Back to top button */
#backToTop {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1000;

    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 11px 14px;
    border-radius: 14px;

    border: 1px solid rgba(103, 255, 204, .22);
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(10px);

    color: rgba(215, 255, 233, .92);
    font-family: var(--mono);
    font-size: 12.5px;

    cursor: pointer;

    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: .18s ease;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .45);
}

#backToTop.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#backToTop:hover {
    border-color: rgba(103, 255, 204, .35);
    background: rgba(103, 255, 204, .10);
    transform: translateY(-1px);
}

/* After submit: fade + disable interactions */
.form.submitted {
    opacity: 0.35;
    filter: blur(0.2px);
    pointer-events: none;
    user-select: none;
    transition: opacity .25s ease, filter .25s ease;
}

.captchaRow {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Reserve space so Turnstile load doesn't "jump" */
.captchaRow .cf-turnstile {
    min-height: 65px;
    display: flex;
    align-items: center;
}

.sendRow {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.inlineMsg {
    font-family: var(--mono);
    font-size: 12px;
    color: rgba(154, 219, 191, .86);
}

/* Animated hide on success */
.formFields {
    overflow: hidden;
    max-height: 1200px;
    opacity: 1;
    transform: translateY(0);
    transition: max-height .45s ease, opacity .35s ease, transform .45s ease;
}

.form.is-sent .formFields {
    max-height: 0;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
}

.sentMsg {
    display: none;
    margin-top: 10px;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid rgba(103, 255, 204, .18);
    background: rgba(0, 0, 0, .22);
    font-family: var(--mono);
    font-size: 12.5px;
    color: rgba(215, 255, 233, .92);
}

.form.is-sent .sentMsg {
    display: block;
    animation: sentIn .35s ease both;
}

@keyframes sentIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}