/* =============================================
   UPLINX — Main Stylesheet
   ============================================= */

/* --- Reset & Variables --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --black: #000;
    --white: #fff;
    --cyan: #00e5ff;
    --magenta: #cc00ff;
    --purple: #7b2fff;
    --gdark: #0d0d0d;
    --gmid: #1a1a1a;
    --gborder: #2a2a2a;
    --gtext: #777;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--black);
    color: var(--white);
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Utilities --- */
.grad {
    background: linear-gradient(90deg, #00e5ff 0%, #cc00ff 60%, #7b2fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =============================================
   NAV
   ============================================= */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 56px;
    background: transparent;
    backdrop-filter: none;
    border-bottom: none;
    transform: translateY(0);
    transition: transform .35s ease, background .35s ease, backdrop-filter .35s ease;
}

nav.scrolled {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

nav.hidden {
    transform: translateY(-100%);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 30px;
    letter-spacing: 4px;
    background: linear-gradient(90deg, #00e5ff, #cc00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 36px;
}

nav ul a {
    color: var(--gtext);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    transition: color .2s;
}

nav ul a:hover {
    color: #fff;
}

.nbtn {
    background: var(--cyan) !important;
    color: #000 !important;
    padding: 9px 22px;
    border-radius: 3px;
    font-weight: 700 !important;
}

.nbtn:hover {
    box-shadow: 0 0 24px rgba(0, 229, 255, .45) !important;
}

/* =============================================
   HERO
   ============================================= */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 56px 80px;
    background:
        linear-gradient(rgba(0, 229, 255, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, .025) 1px, transparent 1px),
        #000;
    background-size: 64px 64px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 5%;
    right: 5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 229, 255, .06) 0%, transparent 65%);
    pointer-events: none;
}

.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero .eyebrow {
    justify-content: center;
}

/* PROCESS FLOW — minimal timeline */
.hero-right {
    display: none;
}

.flow {
    width: 100%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    position: relative;
    padding-left: 36px;
}

/* vertical spine */
.flow::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 10px;
    bottom: 10px;
    width: 1px;
    background: rgba(255, 255, 255, 0.07);
    z-index: 0;
}

.flow-step {
    position: relative;
    padding: 0 0 56px 0;
    opacity: 0;
    animation: flowIn 0.5s ease forwards;
}

.flow-step:last-child {
    padding-bottom: 0;
}

.flow-step:nth-child(1) {
    animation-delay: 0.15s;
}

.flow-step:nth-child(2) {
    animation-delay: 0.45s;
}

.flow-step:nth-child(3) {
    animation-delay: 0.75s;
}

.flow-step:nth-child(4) {
    animation-delay: 1.05s;
}

@keyframes flowIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.flow-node {
    position: absolute;
    left: -36px;
    top: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.flow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

/* Step 1 — cyan ring with pulsing inner dot */
.flow-step:nth-child(1) .flow-node {
    top: 12px;
}

.flow-step:nth-child(1) .flow-dot {
    width: 16px;
    height: 16px;
    background: transparent;
    border: 1.5px solid var(--cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -4px;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

.flow-step:nth-child(1) .flow-dot::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan);
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.6);
    }
}

/* Step 4 — solid green dot */
.flow-step:nth-child(4) .flow-dot {
    width: 12px;
    height: 12px;
    background: #27c840;
    margin-left: -2px;
    box-shadow: 0 0 14px rgba(39, 200, 64, 0.45);
}

.flow-label {
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.28);
    margin-bottom: 7px;
}

.flow-step:nth-child(4) .flow-label {
    color: rgba(39, 200, 64, 0.55);
}

.flow-title {
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.flow-step:nth-child(4) .flow-title {
    color: #27c840;
}

/* --- Shared Eyebrow --- */
.eyebrow {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.eyebrow::before {
    content: '';
    width: 28px;
    height: 1px;
    background: var(--cyan);
}

/* --- Hero Typography --- */
.hero h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(68px, 9vw, 140px);
    line-height: .93;
    letter-spacing: 2px;
    max-width: 820px;
    margin-bottom: 28px;
}

.hero-sub {
    font-size: 17px;
    color: var(--gtext);
    max-width: 480px;
    line-height: 1.75;
    margin-bottom: 44px;
}

.hero-btns {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-p {
    background: var(--cyan);
    color: #000;
    padding: 14px 34px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all .2s;
    display: inline-block;
}

.btn-p:hover {
    box-shadow: 0 0 32px rgba(0, 229, 255, .4);
    transform: translateY(-2px);
}

.btn-g {
    color: var(--gtext);
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color .2s;
    font-weight: 500;
}

.btn-g:hover {
    color: #fff;
}

.btn-g span {
    display: inline-block;
    transition: transform .2s;
}

.btn-g:hover span {
    transform: translateX(4px);
}

/* =============================================
   TICKER
   ============================================= */
.ticker {
    background: var(--cyan);
    padding: 11px 0;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-t {
    display: inline-flex;
    animation: tick 30s linear infinite;
}

.ti {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 16px;
    letter-spacing: 3px;
    color: #000;
    padding: 0 40px;
}

.td {
    color: rgba(0, 0, 0, .3);
}

@keyframes tick {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* =============================================
   SECTIONS
   ============================================= */
.sec {
    padding: 108px 56px;
}

.sec-dark {
    background: var(--gdark);
}

h2.st {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(44px, 5.5vw, 78px);
    line-height: .95;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

/* --- Problem --- */
.prob-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: start;
    margin-top: 60px;
}

.prob-items {
    display: flex;
    flex-direction: column;
}

.pi {
    display: flex;
    gap: 18px;
    padding: 26px 0;
    border-bottom: 1px solid var(--gborder);
}

.pi:first-child {
    border-top: 1px solid var(--gborder);
}

.pn {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    color: var(--cyan);
    letter-spacing: 2px;
    margin-top: 3px;
    min-width: 26px;
    flex-shrink: 0;
}

.pb strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
}

.pb p {
    font-size: 14px;
    color: var(--gtext);
    line-height: 1.65;
}

.stat-box {
    background: var(--gmid);
    border: 1px solid var(--gborder);
    border-radius: 6px;
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: sticky;
    top: 90px;
}

.sn {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 76px;
    line-height: 1;
    background: linear-gradient(90deg, #00e5ff, #cc00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sl {
    font-size: 13px;
    color: var(--gtext);
    line-height: 1.6;
    margin-top: 4px;
}

.shr {
    height: 1px;
    background: var(--gborder);
}

/* --- How It Works --- */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    margin-top: 60px;
}

.step {
    background: var(--gmid);
    padding: 44px 36px;
    position: relative;
    overflow: hidden;
    transition: background .25s;
}

.step:hover {
    background: #222;
}

.step-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #00e5ff, #cc00ff, #7b2fff);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s ease;
}

.step:hover .step-bar {
    transform: scaleX(1);
}

.sn2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 60px;
    color: rgba(0, 229, 255, .08);
    line-height: 1;
    margin-bottom: 20px;
}

.step h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.step p {
    font-size: 14px;
    color: var(--gtext);
    line-height: 1.7;
}

/* --- Industries --- */
.ind-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    margin-top: 60px;
}

.ic {
    background: #000;
    border: 1px solid var(--gborder);
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: border-color .3s;
}

.ic:hover {
    border-color: rgba(0, 229, 255, .25);
}

.ic::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(0, 229, 255, .12), transparent 70%);
    opacity: 0;
    transition: opacity .4s;
    pointer-events: none;
}

.ic:hover::after {
    opacity: 1;
}

.ii {
    font-size: 30px;
    margin-bottom: 16px;
    display: block;
}

.ic h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.ic p {
    font-size: 14px;
    color: var(--gtext);
    line-height: 1.7;
    margin-bottom: 18px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border: 1px solid var(--gborder);
    border-radius: 2px;
    color: rgba(255, 255, 255, .3);
}

/* --- Services --- */
.svc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 60px;
}

.sc {
    border: 1px solid var(--gborder);
    border-radius: 6px;
    padding: 34px 30px;
    background: var(--gdark);
    transition: border-color .3s, transform .3s;
}

.sc:hover {
    border-color: var(--cyan);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 229, 255, .07);
}

.si {
    width: 46px;
    height: 46px;
    background: rgba(0, 229, 255, .07);
    border: 1px solid rgba(0, 229, 255, .15);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 20px;
}

.sc h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.sc p {
    font-size: 14px;
    color: var(--gtext);
    line-height: 1.7;
}

/* --- About --- */
.about-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 72px;
    align-items: center;
    margin-top: 60px;
}

.about-card {
    background: var(--gmid);
    border: 1px solid var(--gborder);
    border-radius: 8px;
    padding: 40px 34px;
    text-align: center;
}

.av {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00e5ff, #cc00ff, #7b2fff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    color: #000;
    margin: 0 auto 16px;
    letter-spacing: 2px;
}

.about-card h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 4px;
}

.role {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--cyan);
    display: block;
    margin-bottom: 14px;
}

.about-card p {
    font-size: 13px;
    color: var(--gtext);
    line-height: 1.7;
}

.aq {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(30px, 3.5vw, 50px);
    line-height: 1.1;
    margin-bottom: 24px;
}

.ab {
    font-size: 15px;
    color: var(--gtext);
    line-height: 1.85;
    max-width: 500px;
}

/* =============================================
   CTA
   ============================================= */
.cta {
    padding: 140px 56px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: var(--gdark);
}

.cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(0, 229, 255, .05) 0%, transparent 65%);
    pointer-events: none;
}

.cta h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(52px, 8vw, 110px);
    line-height: .95;
    max-width: 700px;
    margin: 12px auto 24px;
    position: relative;
    z-index: 1;
}

.cta p {
    font-size: 16px;
    color: var(--gtext);
    max-width: 420px;
    margin: 0 auto 40px;
    position: relative;
    z-index: 1;
}

.cta-note {
    margin-top: 28px;
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .2);
    position: relative;
    z-index: 1;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
    border-top: 1px solid var(--gborder);
    padding: 34px 56px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.fl {
    list-style: none;
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.fl a {
    color: var(--gtext);
    text-decoration: none;
    font-size: 13px;
    transition: color .2s;
}

.fl a:hover {
    color: #fff;
}

.fc {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, .2);
}

/* =============================================
   SCROLL REVEAL
   ============================================= */

/* Single-element reveal */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Optional delay helpers */
.reveal.d1 {
    transition-delay: 0.1s;
}

.reveal.d2 {
    transition-delay: 0.2s;
}

.reveal.d3 {
    transition-delay: 0.3s;
}

/* Grid stagger — children animate in sequence */
.reveal-grid>* {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-grid.is-visible>*:nth-child(1) {
    opacity: 1;
    transform: none;
    transition-delay: 0.00s;
}

.reveal-grid.is-visible>*:nth-child(2) {
    opacity: 1;
    transform: none;
    transition-delay: 0.12s;
}

.reveal-grid.is-visible>*:nth-child(3) {
    opacity: 1;
    transform: none;
    transition-delay: 0.24s;
}

.reveal-grid.is-visible>*:nth-child(4) {
    opacity: 1;
    transform: none;
    transition-delay: 0.36s;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
    nav {
        padding: 14px 24px;
    }

    nav ul li:not(:last-child) {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 110px 24px 60px;
    }

    .hero-right {
        display: none;
    }

    .sec,
    .cta {
        padding-left: 24px;
        padding-right: 24px;
    }

    .prob-grid,
    .about-grid {
        grid-template-columns: 1fr;
    }

    .stat-box {
        position: static;
    }

    .steps,
    .svc-grid {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .ind-grid {
        grid-template-columns: 1fr;
    }

    footer {
        padding: 28px 24px;
        flex-direction: column;
        text-align: center;
    }

    .fl {
        justify-content: center;
    }
}