/* NxCorp | css/sections.css
   General sections, work, services (old), process, about, contact, footer, scrolling band, mobile menu button
   Load order matters: files are linked in index.html in this order. */

/* ========== SECTION: SECTIONS (CSS) ========== */
section {
    padding: 80px 0;
}

.sec-h {
    margin-bottom: 30px;
}

.sec-h h2 {
    font-size: clamp(34px,5vw,56px);
    font-weight: 800;
    margin: 10px 0 10px;
}

.sec-h p {
    color: var(--mute);
    margin: 0;
    max-width: 52ch;
}

.pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

/* ========== SECTION: WORK (CSS) ========== */
.work {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
}

/* ========== SECTION: WORK CARDS (CSS) ========== */
.proj {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    transition: transform .2s;
}

.proj:hover {
    transform: translateY(-4px);
}

.proj[hidden] {
    display: none;
}

.c2 {
    background: var(--pop);
    color: #0e1130;
}

.c3 {
    background: var(--lilac);
    color: var(--blue);
}

.proj .in {
    padding: 18px 20px 22px;
}

.proj .mono {
    color: var(--mute);
    font-size: 12px;
}

.proj h3 {
    font-size: 21px;
    margin: 6px 0;
}

.proj p {
    margin: 0 0 10px;
    color: var(--mute);
    font-size: 15px;
}

.proj a {
    font-weight: 500;
    font-size: 14.5px;
    color: var(--blue);
    text-decoration: none;
}

.note {
    color: var(--mute);
    font-size: 14px;
    margin-top: 18px;
}

/* ========== SECTION: SERVICES (OLD LAYOUT) (CSS) ========== */
.svc {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.panel {
    border-radius: 22px;
    padding: 32px;
}

.panel.a {
    background: var(--blue);
    color: #fff;
}

.panel.b {
    background: var(--lilac);
}

.panel h3 {
    font-size: 32px;
    margin-bottom: 14px;
}

.panel ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.panel li {
    padding: 11px 0;
    border-top: 1px solid color-mix(in srgb,currentColor 30%,transparent);
}

.panel li small {
    display: block;
    opacity: .85;
    font-size: 14.5px;
}

/* ========== SECTION: PROCESS (CSS) ========== */
.steps {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    counter-reset: s;
}

.steps div {
    padding: 22px 22px 0 0;
    border-top: 3px solid var(--ink);
    counter-increment: s;
}

.steps div::before {
    content: counter(s);
    display: block;
    font: 800 38px 'Bricolage Grotesque',sans-serif;
    color: var(--blue);
}

.steps h3 {
    font-size: 22px;
    margin-bottom: 6px;
}

.steps p {
    margin: 0;
    color: var(--mute);
    font-size: 15.5px;
}

/* ========== SECTION: ABOUT (CSS) ========== */
.about {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 44px;
    align-items: start;
}

.about h2 {
    font-size: clamp(34px,4.6vw,54px);
    margin: 10px 0 16px;
}

.about p {
    color: var(--mute);
    max-width: 54ch;
}

.about p b {
    color: var(--ink);
    font-weight: 500;
}

dl {
    margin: 26px 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
}

dl div {
    border-top: 1px solid var(--line);
    padding: 12px 0;
}

dt {
    font-size: 13.5px;
    color: var(--mute);
}

dd {
    margin: 0;
    font-weight: 500;
}

/* ========== SECTION: CONTACT (CSS) ========== */
.contact {
    background: var(--ink);
    color: var(--bg);
    border-radius: 28px;
    padding: clamp(26px,6vw,60px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
}

.contact .mono {
    color: var(--pop);
}

.contact h2 {
    font-size: clamp(34px,5vw,58px);
    margin: 10px 0 14px;
}

.contact p {
    opacity: .8;
    margin: 0 0 18px;
}

.contact .links a {
    display: inline-block;
    margin: 0 14px 6px 0;
    font-weight: 500;
}

.contact label {
    display: block;
    font-size: 14px;
    margin-bottom: 12px;
}

.contact input,
.contact textarea,
.contact select {
    display: block;
    width: 100%;
    margin-top: 5px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1.5px solid color-mix(in srgb,var(--bg) 35%,transparent);
    background: transparent;
    color: inherit;
    font: inherit;
}

.contact option {
    color: #0e1130;
}

.contact .btn {
    background: var(--pop);
    color: #0e1130;
}

#msg {
    margin-top: 12px;
    font-size: 15px;
}

/* ========== SECTION: FOOTER (CSS) ========== */
footer {
    padding: 48px 0 36px;
    border-top: 1px solid var(--line);
    margin-top: 40px;
    color: var(--mute);
    font-size: 14.5px;
}

footer .cols {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

footer h4 {
    margin: 0 0 10px;
    color: var(--ink);
    font-size: 15px;
}

footer a {
    display: block;
    text-decoration: none;
    margin-bottom: 6px;
}

footer .logo {
    display: inline-block;
    margin-bottom: 8px;
}

@media (max-width: 860px) {
    .work {
        grid-template-columns: 1fr 1fr;
    }
    .svc,
    .about,
    .contact {
        grid-template-columns: 1fr;
    }
    .steps {
        grid-template-columns: 1fr 1fr;
        gap: 24px 0;
    }
    .stats {
        grid-template-columns: 1fr 1fr;
    }
    nav a:not(.btn) {
        display: none;
    }
    footer .cols {
        grid-template-columns: 1fr 1fr;
    }
    footer .cols>div:first-child {
        grid-column: 1/-1;
    }
    section {
        padding: 56px 0;
    }
}

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

.hero {
    position: relative;
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .5;
    z-index: 0;
    animation: drift 14s ease-in-out infinite alternate;
}

.hero::before {
    width: 380px;
    height: 380px;
    background: var(--blue);
    top: -120px;
    right: -80px;
}

.hero::after {
    width: 300px;
    height: 300px;
    background: var(--pop);
    bottom: -120px;
    left: 30%;
    animation-delay: -6s;
}

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

@keyframes drift {
    to {
        transform: translate(-60px,50px) scale(1.15);
    }
}

@keyframes up {
    from {
        opacity: 0;
        transform: translateY(26px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.hgrid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 44px;
    align-items: center;
}

.hgrid>div:first-child>* {
    animation: up .8s both;
}

.hgrid>div:first-child>:nth-child(2) {
    animation-delay: .1s;
}

.hgrid>div:first-child>:nth-child(3) {
    animation-delay: .2s;
}

.hgrid>div:first-child>:nth-child(4) {
    animation-delay: .3s;
}

.ed {
    position: relative;
    animation: up 1s .3s both;
}

.win {
    background: #0f1022;
    color: #eceeff;
    border: 1.5px solid #2f3260;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 60px -20px rgba(79,70,229,.5);
}

.win .tb {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 11px 14px;
    background: #171830;
    border-bottom: 1px solid #2a2c4d;
    font: 500 12.5px 'JetBrains Mono',monospace;
    color: #a3a8cc;
}

.win .tb i {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: block;
}

.win .tb i:nth-child(1) {
    background: #ff6058;
}

.win .tb i:nth-child(2) {
    background: #ffc130;
}

.win .tb i:nth-child(3) {
    background: #2bc841;
}

.win .tb span {
    margin-left: 10px;
}

#code {
    margin: 0;
    padding: 16px 18px;
    min-height: 262px;
    font: 400 13.5px/1.7 'JetBrains Mono',monospace;
    white-space: pre-wrap;
    color: #eceeff;
}

#code i {
    font-style: normal;
}

.k {
    color: #ff6b3d;
}

.s {
    color: #7fe3b0;
}

.c {
    color: #7c82ad;
}

.n {
    color: #ffd166;
}

.caret {
    display: inline-block;
    width: 8px;
    height: 1.1em;
    background: #ff6b3d;
    vertical-align: text-bottom;
    margin-left: 1px;
    animation: blink 1s steps(1) infinite;
}

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

.pv {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    grid-template-areas: "a c" "b c" "d c";
    gap: 10px;
    padding: 14px;
    border-top: 1px solid #2a2c4d;
    background: #12132a;
}

.pv>* {
    opacity: 0;
    transform: translateY(14px) scale(.96);
    transition: opacity .5s,transform .5s;
}

.pv>.on {
    opacity: 1;
    transform: none;
}

.p0 {
    grid-area: a;
    background: #171830;
    border-radius: 10px;
    padding: 10px;
}

.p0 s {
    display: block;
    height: 7px;
    border-radius: 4px;
    background: #2f3260;
    margin-bottom: 6px;
}

.p0 s:first-child {
    width: 60%;
    background: #818cf8;
}

.p1 {
    grid-area: b;
    background: #818cf8;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font: 800 18px 'Bricolage Grotesque',sans-serif;
    padding: 10px;
    min-height: 48px;
}

.p2 {
    grid-area: c;
    background: #ff6b3d;
    color: #0e1130;
    border-radius: 12px;
    display: grid;
    place-items: center;
    text-align: center;
    font: 800 20px/1.1 'Bricolage Grotesque',sans-serif;
    padding: 8px;
}

.p3 {
    grid-area: d;
    justify-self: start;
    background: #143d2b;
    color: #7fe3b0;
    border-radius: 999px;
    padding: 4px 12px;
    font: 500 12.5px 'JetBrains Mono',monospace;
}

#st {
    padding: 9px 16px;
    background: #0a0b18;
    border-top: 1px solid #2a2c4d;
    font: 400 12.5px 'JetBrains Mono',monospace;
    color: #a3a8cc;
}

#st.on {
    color: #7fe3b0;
}

.chip {
    position: absolute;
    background: var(--card);
    color: var(--ink);
    border: 1.5px solid var(--ink);
    border-radius: 12px;
    padding: 7px 13px;
    font: 500 13px 'JetBrains Mono',monospace;
    box-shadow: 4px 4px 0 var(--pop);
    animation: float 5s ease-in-out infinite alternate;
}

.chip.c1x {
    top: -16px;
    right: 14px;
}

.chip.c2x {
    bottom: 34px;
    left: -20px;
    animation-delay: -2.5s;
    box-shadow: 4px 4px 0 var(--blue);
}

@keyframes float {
    to {
        transform: translateY(-12px);
    }
}

/* ========== SECTION: SCROLLING BAND (CSS) ========== */
.mq {
    overflow: hidden;
    border-block: 1px solid var(--line);
    background: var(--ink);
    color: var(--bg);
    padding: 14px 0;
}

.mq div {
    display: flex;
    width: max-content;
    animation: mq 28s linear infinite;
}

.mq span {
    font: 800 26px 'Bricolage Grotesque',sans-serif;
    letter-spacing: -.02em;
    padding: 0 26px;
    white-space: nowrap;
}

.mq span::after {
    content: "✦";
    color: var(--pop);
    margin-left: 52px;
    font-size: 20px;
}

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

#bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 3px;
    width: 0;
    background: var(--pop);
    z-index: 2;
}

nav a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    height: 2px;
    width: 100%;
    background: var(--blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s;
}

nav a:not(.btn) {
    position: relative;
}

nav a:not(.btn):hover::after {
    transform: scaleX(1);
}

.btn {
    position: relative;
    overflow: hidden;
    transition: transform .2s,box-shadow .2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -6px var(--blue);
}

.rv {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .8s cubic-bezier(.2,.7,.2,1),transform .8s cubic-bezier(.2,.7,.2,1);
}

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

.proj.in:hover {
    transform: translateY(-5px);
}

.prices,
.quotes,
.posts {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
}

.price {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.price h3 {
    font-size: 28px;
}

.price .q {
    font: 500 14px 'JetBrains Mono',monospace;
    color: var(--mute);
    margin: 6px 0 16px;
}

.price ul {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
    flex: 1;
}

.price li {
    padding: 9px 0 9px 26px;
    border-top: 1px solid var(--line);
    position: relative;
    font-size: 15.5px;
}

.price li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--blue);
    font-weight: 800;
}

.price.hot {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
    transform: translateY(-8px);
}

.price.hot .q {
    color: #dcd9ff;
}

.price.hot li {
    border-color: rgba(255,255,255,.25);
}

.price.hot li::before {
    color: var(--pop);
}

.price.hot .btn {
    background: var(--pop);
    color: #0e1130;
}

.quote {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 26px;
    margin: 0;
}

.quote p {
    margin: 0 0 18px;
    font-size: 17px;
}

.quote p::before {
    content: "“";
    display: block;
    font: 800 52px/0.8 'Bricolage Grotesque',sans-serif;
    color: var(--blue);
    margin-bottom: 6px;
}

.quote footer {
    all: unset;
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 14.5px;
    color: var(--mute);
}

.quote .av {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--lilac);
    color: var(--blue);
    display: grid;
    place-items: center;
    font: 800 15px 'Bricolage Grotesque',sans-serif;
}

.quote b {
    display: block;
    color: var(--ink);
    font-weight: 500;
}

.post {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
}

.post .in {
    padding: 18px 20px 22px;
}

.post h3 {
    font-size: 21px;
    margin: 6px 0 8px;
}

.post .mono {
    color: var(--mute);
    font-size: 12px;
}

.post a {
    font-weight: 500;
    font-size: 14.5px;
    color: var(--mute);
    text-decoration: none;
}

.wa {
    position: fixed;
    right: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom,0px));
    z-index: 6;
    background: #25d366;
    color: #08330f;
    font-weight: 500;
    text-decoration: none;
    border-radius: 999px;
    padding: 12px 20px;
    box-shadow: 0 10px 24px -8px rgba(0,0,0,.4);
    animation: float 3s ease-in-out infinite alternate;
}

/* ========== SECTION: MOBILE MENU BUTTON (CSS) ========== */
.burger {
    display: none;
    width: 42px;
    height: 42px;
    border: 1.5px solid var(--ink);
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
    position: relative;
}

.burger i {
    position: absolute;
    left: 10px;
    right: 10px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .3s,opacity .2s;
}

.burger i:nth-child(1) {
    top: 13px;
}

.burger i:nth-child(2) {
    top: 19px;
}

.burger i:nth-child(3) {
    top: 25px;
}

.burger.x i:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.burger.x i:nth-child(2) {
    opacity: 0;
}

.burger.x i:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}
