/* ===== TOKENS ===== */
:root {
    --bg: #f5f7fa;
    --bg2: #eaeef4;
    --card: #fff;
    --bd: #d6deea;
    --tx: #0e1726;
    --mu: #4d5c72;
    --a: #0c7a55;
    --b: #6440d0;
    --gl: rgba(12, 122, 85, .2);
    --nav: rgba(245, 247, 250, .78)
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 72px
}

body {
    font-family: Roboto, sans-serif;
    background: var(--bg);
    color: var(--tx);
    line-height: 1.65;
    overflow-x: hidden;
    transition: background .3s, color .3s
}

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

ul,
ol {
    list-style: none
}

:focus-visible {
    outline: 2px solid var(--a);
    outline-offset: 3px;
    border-radius: 6px
}

.wrap {
    width: min(1180px, 92%);
    margin: auto
}

.narrow {
    width: min(760px, 92%)
}

section {
    padding: 96px 0;
    position: relative
}

.alt {
    background: var(--bg2)
}

h1,
h2,
h3 {
    line-height: 1.15;
    letter-spacing: -.02em
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.9rem);
    font-weight: 700
}

.head {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 56px
}

.head p,
.lead {
    color: var(--mu);
    font-weight: 300;
    font-size: 1.1rem;
    margin-top: 14px
}

.grad {
    background: linear-gradient(90deg, var(--a), var(--b));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

/* ===== BACKGROUND ===== */
.bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(600px 400px at 85% 5%, rgba(167, 139, 250, .14), transparent), radial-gradient(500px 400px at 5% 40%, rgba(126, 224, 176, .09), transparent),
        linear-gradient(var(--bd) 1px, transparent 1px) 0 0/56px 56px, linear-gradient(90deg, var(--bd) 1px, transparent 1px) 0 0/56px 56px;
    -webkit-mask-image: linear-gradient(#000 40%, transparent);
    mask-image: linear-gradient(#000 40%, transparent);
    opacity: .55;
    animation: grid 30s linear infinite
}

@keyframes grid {
    to {
        background-position: 0 0, 0 0, 0 56px, 56px 0
    }
}

/* ===== CURSOR ===== */
.cursor {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    pointer-events: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--a);
    border-radius: 50%;
    background: rgba(12, 122, 85, .12);
    box-shadow: 0 0 12px var(--gl);
    transition: width .2s, height .2s, margin .2s, background .2s
}

.has-cursor .cursor {
    display: block
}

.has-cursor * {
    cursor: none !important
}

.cursor.big {
    width: 44px;
    height: 44px;
    margin: -12px 0 0 -12px;
    background: rgba(12, 122, 85, .15)
}

/* ===== NAV ===== */
.nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    transition: .3s;
    padding: 14px 0
}

.nav.scrolled {
    background: var(--nav);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--bd);
    padding: 8px 0
}

.nav-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px
}

.brand {
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-flex;
    gap: 8px;
    align-items: center
}

.code {
    color: var(--a);
    font-weight: 900;
    text-shadow: 0 0 12px var(--gl)
}

#menu {
    display: flex;
    gap: 26px
}

#menu a {
    font-size: .93rem;
    color: var(--mu);
    font-weight: 500;
    transition: .2s;
    position: relative
}

#menu a:hover {
    color: var(--tx)
}

#menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    height: 2px;
    width: 0;
    background: var(--a);
    transition: .25s
}

#menu a:hover::after {
    width: 100%
}

.nav-r {
    display: flex;
    gap: 10px;
    align-items: center
}

.icon-btn {
    background: var(--card);
    border: 1px solid var(--bd);
    color: var(--tx);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 1.05rem;
    transition: .2s
}

.icon-btn:hover {
    border-color: var(--a);
    box-shadow: 0 0 14px var(--gl)
}

.burger {
    display: none
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 26px;
    border-radius: 12px;
    font: 500 1rem Roboto;
    border: 1px solid transparent;
    transition: .25s;
    position: relative
}

.btn.sm {
    min-height: 40px;
    padding: 0 18px;
    font-size: .9rem
}

.btn-p {
    background: linear-gradient(135deg, var(--a), var(--b));
    color: #fff;
    font-weight: 700;
    box-shadow: 0 6px 24px var(--gl)
}

.btn-p:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px var(--gl)
}

.btn-g {
    border-color: var(--bd);
    background: var(--card)
}

.btn-g:hover {
    border-color: var(--a);
    transform: translateY(-2px)
}

/* ===== HERO ===== */
.hero {
    padding: 150px 0 40px
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 56px;
    align-items: center
}

.badge {
    display: inline-block;
    font: 500 .85rem monospace, Roboto;
    color: var(--a);
    border: 1px solid var(--bd);
    background: var(--card);
    padding: 6px 14px;
    border-radius: 99px;
    margin-bottom: 22px
}

h1 {
    font-size: clamp(2.3rem, 6vw, 4.5rem);
    font-weight: 900
}

.cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 32px
}

.editor {
    background: var(--card);
    border: 1px solid var(--bd);
    border-radius: 16px;
    box-shadow: 0 0 60px var(--gl);
    overflow: hidden;
    animation: float 6s ease-in-out infinite
}

@keyframes float {
    50% {
        transform: translateY(-10px)
    }
}

.ed-bar {
    display: flex;
    gap: 7px;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--bd)
}

.ed-bar i {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--bd)
}

.ed-bar i:first-child {
    background: #ff5f57
}

.ed-bar i:nth-child(2) {
    background: #febc2e
}

.ed-bar i:nth-child(3) {
    background: #28c840
}

.ed-bar span {
    margin-left: auto;
    font-size: .8rem;
    color: var(--mu)
}

pre {
    padding: 20px;
    font: 400 .88rem/1.8 "Courier New", monospace;
    overflow-x: auto;
    color: var(--tx)
}

.c {
    color: var(--mu)
}

.k {
    color: var(--b)
}

.f {
    color: var(--a)
}

.n {
    color: #b45309
}

.chips {
    display: flex;
    gap: 8px;
    padding: 0 20px 20px;
    flex-wrap: wrap
}

.chips span,
.tags span,
.techs span {
    font-size: .78rem;
    padding: 4px 12px;
    border: 1px solid var(--bd);
    border-radius: 99px;
    color: var(--mu)
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 80px;
    padding: 32px;
    border: 1px solid var(--bd);
    border-radius: 20px;
    background: var(--card)
}

.stat {
    text-align: center
}

.stat b {
    display: block;
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 900
}

.stat span {
    color: var(--mu);
    font-size: .9rem
}

/* ===== CARDS ===== */
.grid3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px
}

.card {
    background: var(--card);
    border: 1px solid var(--bd);
    border-radius: 18px;
    padding: 28px;
    transition: .3s;
    display: flex;
    flex-direction: column;
    gap: 14px
}

.card:hover {
    transform: translateY(-6px);
    border-color: var(--a);
    box-shadow: 0 14px 40px rgba(0, 0, 0, .1), 0 0 24px var(--gl)
}

.card .ico {
    font-size: 1.9rem;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--bg2);
    border: 1px solid var(--bd);
    font-weight: 900;
    color: var(--a);
    transition: .3s
}

.card:hover .ico {
    transform: scale(1.1) rotate(-4deg)
}

.card h3 {
    font-size: 1.25rem
}

.card p {
    color: var(--mu);
    font-size: .96rem
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px
}

.card .go {
    margin-top: auto;
    color: var(--a);
    font-weight: 500
}

.go i {
    display: inline-block;
    font-style: normal;
    transition: .25s
}

.card:hover .go i {
    transform: translateX(6px)
}

/* ===== FLOW / TIMELINE ===== */
.flow {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap
}

.flow li {
    position: relative;
    padding: 16px 22px;
    border: 1px solid var(--bd);
    background: var(--card);
    border-radius: 14px;
    font-weight: 500;
    min-width: 150px;
    text-align: center
}

.flow li:not(:last-child)::after {
    content: "→";
    position: absolute;
    right: -19px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--a);
    z-index: 1;
    animation: pulse 1.8s infinite
}

@keyframes pulse {
    50% {
        transform: translate(4px, -50%);
        opacity: .5
    }
}

.phil .flow li {
    border-color: var(--a);
    box-shadow: 0 0 18px var(--gl)
}

blockquote {
    margin: 56px auto 0;
    text-align: center;
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-weight: 300;
    max-width: 800px;
    padding: 32px;
    border-radius: 20px;
    border: 1px solid var(--bd);
    background: linear-gradient(135deg, rgba(126, 224, 176, .08), rgba(167, 139, 250, .1))
}

.timeline {
    position: relative;
    padding-left: 64px
}

.timeline::before {
    content: "";
    position: absolute;
    left: 23px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(var(--a), var(--b));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 1.6s
}

.timeline.in::before {
    transform: scaleY(1)
}

.timeline li {
    position: relative;
    margin-bottom: 26px;
    padding: 20px 24px
}

.timeline li::before {
    content: attr(data-n);
    position: absolute;
    left: -64px;
    top: 14px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--a);
    display: grid;
    place-items: center;
    font-weight: 900;
    color: var(--a);
    box-shadow: 0 0 16px var(--gl)
}

.timeline {
    counter-reset: x
}

.timeline li {
    background: var(--card);
    border: 1px solid var(--bd);
    border-radius: 14px
}

.timeline h3 {
    font-size: 1.15rem
}

.timeline .tags {
    margin-top: 10px
}

.example {
    margin-top: 64px
}

.example>h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 28px
}

.flow li b {
    display: block;
    color: var(--a)
}

.flow li small {
    display: block;
    color: var(--mu);
    font-size: .82rem;
    font-weight: 400;
    margin-top: 4px
}

.method .flow li {
    flex: 1;
    min-width: 170px
}

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

.step-n {
    color: var(--a);
    font: 700 .78rem Roboto;
    text-transform: uppercase;
    letter-spacing: .1em
}

.steps3 pre {
    padding: 12px;
    background: var(--bg2);
    border: 1px solid var(--bd);
    border-radius: 10px;
    font-size: .78rem
}

/* ===== TECH / ABOUT / CONTACT ===== */
.techs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center
}

.techs span {
    font: 500 .95rem monospace, Roboto;
    padding: 10px 20px;
    background: var(--card);
    color: var(--tx);
    transition: .25s
}

.techs span:hover {
    border-color: var(--a);
    color: var(--a);
    transform: translateY(-3px)
}

.about {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 64px;
    align-items: center
}

.about img {
    width: 100%;
    max-width: 420px;
    border-radius: 50%;
    border: 1px solid var(--bd);
    box-shadow: 0 0 60px var(--gl);
    display: block;
    margin: auto
}

.about p {
    color: var(--mu);
    margin-top: 16px
}

.ticks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 24px
}

.ticks li::before {
    content: "✓ ";
    color: var(--a);
    font-weight: 900
}

.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start
}

.info {
    margin-top: 28px;
    display: grid;
    gap: 14px
}

form {
    gap: 16px
}

label {
    display: grid;
    gap: 6px;
    font-size: .9rem;
    font-weight: 500
}

input,
select,
textarea {
    font: 400 1rem Roboto;
    background: var(--bg);
    color: var(--tx);
    border: 1px solid var(--bd);
    border-radius: 10px;
    padding: 12px 14px;
    width: 100%;
    transition: .2s
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--a);
    box-shadow: 0 0 0 3px var(--gl)
}

.ok {
    color: var(--a);
    font-weight: 500
}

.final {
    text-align: center;
    padding: 120px 0
}

.final .btn {
    margin-top: 32px
}

.final h2 {
    max-width: 800px;
    margin: auto
}

/* ===== FOOTER ===== */
.foot {
    border-top: 1px solid var(--bd);
    padding: 28px 0
}

.copy {
    text-align: center;
    color: var(--mu);
    font-size: .9rem
}

.made {
    display: inline-block;
    margin-top: 6px
}

.heart {
    color: #e0245e;
    display: inline-block;
    animation: beat 1.4s infinite
}

@keyframes beat {
    50% {
        transform: scale(1.2)
    }
}

/* ===== REVEAL ===== */
.rv {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s, transform .7s
}

.rv.in {
    opacity: 1;
    transform: none
}

@media(prefers-reduced-motion:reduce) {
    * {
        animation: none !important;
        transition: none !important
    }

    .rv {
        opacity: 1;
        transform: none
    }

    html {
        scroll-behavior: auto
    }
}

/* ===== RESPONSIVE ===== */
@media(max-width:1000px) {
    .steps3 {
        grid-template-columns: 1fr
    }

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

    .hero-grid,
    .about,
    .contact {
        grid-template-columns: 1fr;
        gap: 40px
    }

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

    section {
        padding: 72px 0
    }
}

@media(max-width:820px) {
    .burger {
        display: block
    }

    .nav-r .btn {
        display: none
    }

    #menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--bd);
        max-height: 0;
        overflow: hidden;
        transition: max-height .35s
    }

    #menu.open {
        max-height: 420px
    }

    #menu a {
        padding: 16px 4%;
        border-top: 1px solid var(--bd);
        font-size: 1rem
    }
}

@media(max-width:640px) {

    .grid3,
    .ticks {
        grid-template-columns: 1fr
    }

    .hero {
        padding-top: 120px
    }

    .stats {
        padding: 20px;
        margin-top: 48px
    }

    .flow {
        flex-direction: column;
        align-items: stretch
    }

    .flow li:not(:last-child)::after {
        content: "↓";
        right: auto;
        left: 50%;
        top: auto;
        bottom: -19px;
        transform: translateX(-50%);
        animation: none
    }

    .cta .btn {
        flex: 1
    }

    .timeline {
        padding-left: 56px
    }

    .timeline li::before {
        left: -56px;
        width: 42px;
        height: 42px
    }

    .timeline::before {
        left: 20px
    }
}

/* ===== EXPERIENCE LAYER ===== */
body {
    counter-reset: s
}

.head {
    counter-increment: s
}

.head::before {
    content: "// 0" counter(s);
    display: block;
    font: 500 .85rem monospace;
    color: var(--a);
    letter-spacing: .25em;
    margin-bottom: 10px
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(440px circle at var(--cx, 70%) var(--cy, 15%), var(--gl), transparent 70%)
}

#prog {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    z-index: 60;
    background: linear-gradient(90deg, var(--a), var(--b))
}

.hero canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none
}

.hero .wrap,
.hero .marquee {
    position: relative;
    z-index: 1
}

.grad {
    background-image: linear-gradient(90deg, var(--a), var(--b), var(--a));
    background-size: 200% 100%;
    animation: sh 5s linear infinite
}

@keyframes sh {
    to {
        background-position: -200% 0
    }
}

.card {
    position: relative;
    overflow: hidden
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s;
    background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), var(--gl), transparent 70%)
}

.card:hover::before {
    opacity: 1
}

.run {
    margin-left: 12px;
    font: 500 .78rem Roboto;
    color: var(--a);
    background: transparent;
    border: 1px solid var(--a);
    border-radius: 8px;
    padding: 3px 10px;
    transition: .2s
}

.run:hover {
    background: var(--a);
    color: #fff
}

.editor pre {
    min-height: 270px
}

.out {
    min-height: 3.6em;
    padding: 0 20px 14px;
    font: .85rem/1.7 monospace;
    color: var(--mu)
}

.marquee {
    overflow: hidden;
    margin-top: 56px;
    border-block: 1px solid var(--bd);
    padding: 14px 0
}

.marquee div {
    display: flex;
    width: max-content;
    animation: mq 32s linear infinite;
    font: 500 1rem monospace;
    color: var(--mu)
}

.marquee span {
    margin-right: 44px
}

@keyframes mq {
    to {
        transform: translateX(-50%)
    }
}

.pop {
    position: fixed;
    z-index: 9998;
    pointer-events: none;
    font: 700 15px monospace;
    color: var(--b);
    animation: pop .9s ease-out forwards
}

@keyframes pop {
    from {
        transform: translate(-50%, -50%)
    }

    to {
        transform: translate(calc(-50% + var(--dx)), -150px);
        opacity: 0
    }
}

/* ===== FUTURE SKIN: aurora, glass, neon gradients ===== */
:root {
    --bg: #f2f5ff;
    --bg2: #e9eeff;
    --card: rgba(255, 255, 255, .7);
    --bd: #d5dcf2;
    --tx: #0b1226;
    --mu: #4a5675;
    --a: #0e7490;
    --b: #6d28d9;
    --g1: #06b6d4;
    --g2: #7c3aed;
    --g3: #ec4899;
    --gl: rgba(6, 182, 212, .3);
    --nav: rgba(242, 245, 255, .72)
}

.bg {
    background: radial-gradient(520px 380px at 12% 8%, rgba(6, 182, 212, .28), transparent), radial-gradient(560px 420px at 88% 12%, rgba(124, 58, 237, .26), transparent), radial-gradient(480px 380px at 70% 72%, rgba(236, 72, 153, .16), transparent), linear-gradient(rgba(124, 58, 237, .09) 1px, transparent 1px) 0 0/48px 48px, linear-gradient(90deg, rgba(124, 58, 237, .09) 1px, transparent 1px) 0 0/48px 48px;
    opacity: 1;
    animation: none;
    -webkit-mask-image: none;
    mask-image: none
}

::selection {
    background: var(--g2);
    color: #fff
}

html {
    scrollbar-color: var(--g2) var(--bg2)
}

.nav.scrolled {
    box-shadow: 0 8px 30px rgba(109, 40, 217, .1)
}

#prog {
    background: linear-gradient(90deg, var(--g1), var(--g2), var(--g3))
}

.alt {
    background: rgba(233, 238, 255, .55)
}

/* hero */
h1 {
    font-size: clamp(2.5rem, 6.4vw, 5rem);
    letter-spacing: -.035em
}

.grad {
    background-image: linear-gradient(90deg, var(--g1), var(--g2), var(--g3), var(--g1));
    background-size: 300% 100%
}

.hero {
    overflow: hidden
}

.hero::after {
    content: "";
    position: absolute;
    right: -160px;
    top: 90px;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    border: 1px dashed rgba(124, 58, 237, .35);
    box-shadow: inset 0 0 80px rgba(6, 182, 212, .12);
    animation: spin 50s linear infinite;
    pointer-events: none
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

.badge {
    background: rgba(255, 255, 255, .7);
    border-color: rgba(124, 58, 237, .3);
    box-shadow: 0 0 20px var(--gl)
}

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

.perks span {
    padding: 7px 14px;
    border-radius: 99px;
    font-size: .85rem;
    font-weight: 500;
    background: rgba(255, 255, 255, .7);
    border: 1px solid var(--bd);
    backdrop-filter: blur(8px)
}

/* holographic dark console */
.editor {
    background: #0a0f20;
    border-color: transparent;
    box-shadow: 0 0 0 1px rgba(124, 58, 237, .55), 0 30px 80px rgba(109, 40, 217, .35), 0 0 60px rgba(6, 182, 212, .25);
    color: #e6edf7
}

.editor pre {
    color: #e6edf7
}

.editor .c {
    color: #8b98b3
}

.editor .k {
    color: #c4b5fd
}

.editor .f {
    color: #67e8f9
}

.editor .n {
    color: #fbbf24
}

.editor .ed-bar {
    border-color: rgba(255, 255, 255, .1)
}

.editor .ed-bar span {
    color: #8b98b3
}

.editor .out {
    color: #b6c2d9
}

.editor .chips span {
    color: #b6c2d9;
    border-color: rgba(255, 255, 255, .15)
}

.editor .run {
    color: #67e8f9;
    border-color: #67e8f9
}

.editor .run:hover {
    background: #67e8f9;
    color: #0a0f20
}

.stats {
    background: rgba(255, 255, 255, .65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-color: rgba(124, 58, 237, .2);
    box-shadow: 0 20px 60px rgba(109, 40, 217, .12)
}

.stat b {
    background: linear-gradient(135deg, var(--g1), var(--g2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

.marquee,
.flow li,
.timeline li,
.techs span {
    background: rgba(255, 255, 255, .65)
}

/* glass cards with gradient borders */
.card {
    background: rgba(255, 255, 255, .62);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-color: rgba(124, 58, 237, .12);
    box-shadow: 0 8px 30px rgba(60, 40, 140, .07)
}

.card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, var(--g1), var(--g2), var(--g3));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: .28;
    transition: opacity .3s;
    pointer-events: none
}

.card:hover::after {
    opacity: 1
}

.card:hover {
    border-color: transparent;
    box-shadow: 0 18px 50px rgba(124, 58, 237, .2), 0 0 30px var(--gl)
}

.card .ico {
    background: linear-gradient(135deg, rgba(6, 182, 212, .16), rgba(124, 58, 237, .16));
    border-color: transparent;
    box-shadow: inset 0 0 0 1px rgba(124, 58, 237, .18)
}

/* buttons */
.btn-p {
    background: linear-gradient(135deg, #0e7490, #6d28d9);
    color: #fff;
    box-shadow: 0 8px 28px rgba(109, 40, 217, .35);
    overflow: hidden
}

.btn-p::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35), transparent 70%);
    transform: translateX(-120%);
    transition: transform .6s
}

.btn-p:hover::after {
    transform: translateX(120%)
}

.btn-g {
    background: rgba(255, 255, 255, .6);
    backdrop-filter: blur(10px)
}

/* sections */
.timeline::before {
    background: linear-gradient(var(--g1), var(--g2), var(--g3))
}

.phil .flow li {
    border-color: var(--g2);
    box-shadow: 0 0 22px rgba(124, 58, 237, .2)
}

blockquote {
    background: linear-gradient(135deg, rgba(6, 182, 212, .1), rgba(124, 58, 237, .12), rgba(236, 72, 153, .1));
    border-color: rgba(124, 58, 237, .25);
    font-weight: 500
}

.final {
    background: radial-gradient(600px 300px at 20% 0, rgba(6, 182, 212, .35), transparent), radial-gradient(600px 300px at 90% 100%, rgba(236, 72, 153, .3), transparent), linear-gradient(135deg, #0a0f20, #1e1b4b);
    color: #fff
}

.final .lead {
    color: #c6d0e8
}

.final .btn-p {
    background: #fff;
    color: #0b1226
}

.cursor {
    border-color: var(--g1);
    background: rgba(6, 182, 212, .14);
    box-shadow: 0 0 14px var(--gl)
}

.cursor.big {
    border-color: var(--g2);
    background: rgba(124, 58, 237, .14)
}

/* boot-up intro (pure CSS, never blocks clicks) */
#boot {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #070b16;
    color: #67e8f9;
    display: grid;
    place-content: center;
    gap: 14px;
    font: 500 1rem monospace;
    pointer-events: none;
    animation: bootOut .5s 1.3s forwards
}

#boot span {
    overflow: hidden;
    white-space: nowrap;
    width: 0;
    animation: typeb 1s steps(33) .15s forwards
}

#boot i {
    display: block;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, var(--g1), var(--g3));
    animation: ld 1s .15s forwards
}

@keyframes typeb {
    to {
        width: 33ch
    }
}

@keyframes ld {
    to {
        width: 100%
    }
}

@keyframes bootOut {
    to {
        opacity: 0;
        visibility: hidden
    }
}

@media(prefers-reduced-motion:reduce) {
    #boot {
        display: none
    }
}

/* ===== NO HOVER COLOUR CHANGES (movement only) ===== */
body::before,
.card::before {
    display: none
}

.card:hover::after {
    opacity: .28
}

.card:hover {
    border-color: rgba(124, 58, 237, .12);
    box-shadow: 0 8px 30px rgba(60, 40, 140, .07)
}

.cursor.big {
    border-color: var(--g1);
    background: rgba(6, 182, 212, .14)
}

#menu a:hover {
    color: var(--mu)
}

.techs span:hover {
    border-color: var(--bd);
    color: var(--tx)
}

.btn-g:hover {
    border-color: var(--bd)
}

.icon-btn:hover {
    border-color: var(--bd);
    box-shadow: none
}

.editor .run:hover {
    background: transparent;
    color: #67e8f9
}

.foot a:hover {
    color: inherit
}

/* ===== PLAIN PAGE BACKGROUND (no colour blobs; faint grid only) ===== */
.bg {
    background: linear-gradient(rgba(124, 58, 237, .08) 1px, transparent 1px) 0 0/48px 48px, linear-gradient(90deg, rgba(124, 58, 237, .08) 1px, transparent 1px) 0 0/48px 48px
}

/* ===== TOP CALL BAR ===== */
.topbar {
    background: #0a0f20;
    text-align: center;
    padding: 6px 4%;
    font-size: .85rem
}

.topbar a {
    color: #e6edf7;
    display: inline-flex;
    gap: 8px;
    align-items: center
}

.topbar b {
    color: #67e8f9;
    font-weight: 700;
    letter-spacing: .02em
}

.topbar a:hover b {
    text-decoration: underline
}

.ring {
    display: inline-block;
    animation: ring 2.4s infinite
}

@keyframes ring {

    0%,
    60%,
    100% {
        transform: rotate(0)
    }

    65% {
        transform: rotate(-14deg)
    }

    75% {
        transform: rotate(14deg)
    }

    85% {
        transform: rotate(-10deg)
    }
}

.nav {
    padding: 0 0 12px
}

.nav.scrolled {
    padding: 0 0 8px
}

.nav-in {
    padding-top: 12px
}

.nav.scrolled .nav-in {
    padding-top: 8px
}

html {
    scroll-padding-top: 110px
}

.hero {
    padding-top: 190px
}

@media(max-width:640px) {
    .hero {
        padding-top: 165px
    }

    .topbar {
        font-size: .78rem
    }
}

.callbtn {
    min-height: 58px;
    font-size: 1.15rem
}

/* ===== WHAT MAKES US DIFFERENT ===== */
.core {
    text-align: center;
    color: var(--mu);
    font-size: 1.1rem;
    max-width: 660px;
    margin: -20px auto 24px
}

.diff {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin: 48px 0 72px
}

.pcard {
    position: relative;
    background: rgba(255, 255, 255, .7);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(124, 58, 237, .18);
    border-radius: 22px;
    padding: 36px 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
    transition: transform .3s, box-shadow .3s
}

.pcard:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(109, 40, 217, .15)
}

.pnum {
    position: absolute;
    top: 14px;
    right: 22px;
    font: 900 4.2rem/1 Roboto;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--g2);
    opacity: .35
}

.pcard h3 {
    font-size: 1.4rem;
    padding-right: 70px
}

.pcard p {
    color: var(--mu)
}

.pcard .psub {
    color: var(--a);
    font-weight: 500
}

.pcard .ticks {
    margin-top: 4px;
    grid-template-columns: 1fr;
    color: var(--tx);
    font-size: .96rem
}

.pq {
    margin: auto 0 0;
    font-size: 1.02rem;
    text-align: left;
    padding: 16px 18px;
    border-radius: 14px;
    border-left: 3px solid var(--g2)
}

.sub {
    text-align: center;
    color: var(--mu);
    font-weight: 500;
    margin-bottom: 28px
}

@media(max-width:1000px) {
    .diff {
        grid-template-columns: 1fr
    }
}

@media(max-width:640px) {
    .pcard {
        padding: 30px 22px 24px
    }

    .pnum {
        font-size: 3rem
    }
}

/* ===== RUN-THE-CODE TERMINAL ===== */
.term {
    max-width: 760px;
    margin: 0 auto 64px;
    animation: none
}

.term pre {
    min-height: 300px;
    max-height: 380px;
    overflow: auto;
    white-space: pre-wrap;
    font-size: .9rem;
    line-height: 1.7
}

.term pre div {
    animation: tin .35s
}

@keyframes tin {
    from {
        opacity: 0;
        transform: translateY(4px)
    }
}

.term pre b {
    display: block;
    margin-top: .8em;
    letter-spacing: .04em
}

.term .next {
    margin: 0 20px 20px
}

.term .next[hidden] {
    display: none
}