/* ============================================================
   GENIUS PAY — "Kinective" variant
   Corporate navy / teal / green, light paper surfaces, IBM Plex
   ============================================================ */

:root {
    --navy: #0d2340;
    --navy-2: #17335a;
    --teal: #12909b;
    --teal-light: #63bdc6;
    --teal-soft: #edf6f7;
    --green: #6fb33b;
    --green-soft: #f3f9ec;
    --amber: #d99a2b;
    --ink: #16202e;
    --body: #37475d;
    --muted: #687b96;
    --faint: #93a3b8;
    --line: #d8e1ea;
    --line-soft: #ebf0f5;
    --paper: #ffffff;
    --alt: #f4f7fa;
    --sans: "IBM Plex Sans", "Segoe UI", Helvetica, Arial, sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
    --radius: 10px;
    --maxw: 1160px;
}

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

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

body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

img,
svg {
    display: block;
    max-width: 100%;
}

.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 28px;
}

.grad-text {
    color: var(--teal);
}

.hero .grad-text,
.cta-card .grad-text {
    color: var(--teal-light);
}

/* ---------------- Nav ---------------- */

.nav {
    position: fixed;
    top: 18px;
    left: 0;
    right: 0;
    z-index: 100;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 62px;
    padding: 0 12px 0 20px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--line);
    border-radius: 12px;
    max-width: 1080px;
    margin: 0 auto;
    box-shadow: 0 8px 30px rgba(13, 35, 64, 0.08);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: -0.02em;
    color: var(--navy);
}

.brand-mark {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--navy);
    position: relative;
}

.brand-mark::after {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: var(--paper);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--navy);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--sans);
    font-size: 14.5px;
    font-weight: 600;
    padding: 13px 26px;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
}

.btn-grad {
    background: var(--navy);
    color: #fff;
}

.btn-grad:hover {
    background: var(--navy-2);
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(13, 35, 64, 0.25);
}

.hero .btn-grad,
.cta-card .btn-grad {
    background: var(--teal);
}

.hero .btn-grad:hover,
.cta-card .btn-grad:hover {
    background: #0f7d87;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
}

.btn-glass {
    background: var(--paper);
    border-color: var(--line);
    color: var(--navy);
}

.btn-glass:hover {
    border-color: var(--navy);
}

.hero .btn-glass,
.cta-card .btn-glass {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.hero .btn-glass:hover,
.cta-card .btn-glass:hover {
    border-color: rgba(255, 255, 255, 0.7);
}

.nav .btn {
    padding: 10px 20px;
    font-size: 13.5px;
}

.nav-toggle {
    display: none;
    background: var(--alt);
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--navy);
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 600;
    padding: 9px 16px;
    cursor: pointer;
}

/* ---------------- Hero ---------------- */

.hero {
    padding: 190px 0 90px;
    text-align: center;
    position: relative;
    background: var(--navy);
    color: #fff;
    overflow: hidden;
}

.hero .motif {
    position: absolute;
    right: -70px;
    top: -70px;
    width: 500px;
    height: 500px;
    opacity: 0.45;
    pointer-events: none;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 4px;
    padding: 8px 16px 8px 8px;
    margin-bottom: 32px;
    position: relative;
}

.pill b {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: var(--teal);
    border-radius: 3px;
    padding: 4px 10px;
}

.hero h1 {
    font-size: clamp(42px, 5.6vw, 72px);
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -0.025em;
    max-width: 900px;
    margin: 0 auto 28px;
    position: relative;
}

.hero .lede {
    color: rgba(255, 255, 255, 0.72);
    font-size: 18.5px;
    line-height: 1.65;
    max-width: 640px;
    margin: 0 auto 40px;
    position: relative;
}

.hero-ctas {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

/* ---------------- Hero orbit visual ---------------- */

.orbit {
    position: relative;
    width: min(720px, 100%);
    height: 380px;
    margin: 70px auto 0;
}

.orbit svg {
    width: 100%;
    height: 100%;
}

.orbit-ring {
    fill: none;
    stroke: rgba(255, 255, 255, 0.16);
    stroke-width: 1;
}

.orbit-ring.dashed {
    stroke-dasharray: 3 8;
}

.orbit-node {
    fill: #10294b;
    stroke: rgba(255, 255, 255, 0.3);
    stroke-width: 1.2;
}

.orbit-label {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 1.5px;
    fill: rgba(255, 255, 255, 0.5);
}

.orbit-core {
    fill: url(#coreGrad);
}

.orbit-spin {
    transform-origin: 360px 200px;
    animation: spin 40s linear infinite;
}

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

/* ---------------- Stats ---------------- */

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 60px;
    position: relative;
}

.stat {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: var(--radius);
    padding: 28px 26px;
    text-align: left;
}

.stat .num {
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 10px;
    color: #fff;
}

.stat .num.grad-text {
    color: var(--teal-light);
}

.stat .lbl {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13.5px;
}

/* ---------------- Sections ---------------- */

section {
    padding: 110px 0;
}

#how {
    background: var(--alt);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}

.sec-head {
    max-width: 720px;
    margin-bottom: 56px;
}

.sec-head.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 18px;
}

.kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--green);
}

h2.sec-title {
    font-size: clamp(30px, 3.6vw, 46px);
    font-weight: 600;
    letter-spacing: -0.018em;
    line-height: 1.12;
    color: var(--navy);
    margin-bottom: 20px;
}

h2.sec-title::after {
    content: "";
    display: block;
    height: 3px;
    width: 70px;
    background: var(--green);
    margin-top: 22px;
}

.sec-head.center h2.sec-title::after {
    margin-left: auto;
    margin-right: auto;
}

.sec-desc {
    color: var(--body);
    font-size: 17.5px;
    line-height: 1.65;
}

/* ---------------- Bento grid ---------------- */

.bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.tile {
    position: relative;
    background: var(--paper);
    border: 1px solid var(--line);
    border-top: 3px solid var(--navy);
    border-radius: var(--radius);
    padding: 32px 30px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.tile.span-4 {
    grid-column: span 4;
    border-top-color: var(--teal);
}

.tile.span-3 {
    grid-column: span 3;
}

.tile.span-2 {
    grid-column: span 2;
}

.tile:hover {
    border-color: #b9c6d6;
    border-top-color: var(--teal);
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(13, 35, 64, 0.09);
}

.tile-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: var(--teal-soft);
    border: 1px solid #d3e6e8;
    display: grid;
    place-items: center;
    color: var(--teal);
    margin-bottom: 22px;
}

.tile h3 {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--navy);
    margin-bottom: 10px;
}

.tile p {
    color: var(--body);
    font-size: 15.5px;
    line-height: 1.65;
}

.tile-big-num {
    font-size: 60px;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 14px;
}

.tile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.tile-tags span {
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: 0.04em;
    color: var(--muted);
    background: var(--alt);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 5px 12px;
}

/* ---------------- Process ---------------- */

.process {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    position: relative;
}

.proc {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 34px 30px 32px;
    position: relative;
}

.proc-num {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 24px;
}

.proc h3 {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--navy);
    margin-bottom: 10px;
}

.proc p {
    color: var(--body);
    font-size: 15.5px;
    line-height: 1.65;
}

.proc .latency {
    margin-top: 22px;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.05em;
    color: var(--teal);
}

/* ---------------- Ledger terminal ---------------- */

.terminal {
    background: var(--navy);
    border: 1px solid var(--navy-2);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 26px 60px rgba(13, 35, 64, 0.28);
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

.terminal-bar i {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #24436f;
    display: block;
}

.terminal-bar span {
    margin-left: auto;
    font-family: var(--mono);
    font-size: 11.5px;
    color: #6d81a0;
}

.terminal pre {
    padding: 26px 28px;
    font-family: var(--mono);
    font-size: 13.5px;
    line-height: 1.85;
    color: #c3cfe0;
    overflow-x: auto;
}

.terminal .k {
    color: var(--teal-light);
}

.terminal .s {
    color: #9ccb6b;
}

.terminal .n {
    color: #e0b45c;
}

.terminal .c {
    color: #6d81a0;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 60px;
    align-items: center;
}

.check-list {
    list-style: none;
    margin-top: 28px;
}

.check-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 12px 0;
    color: var(--body);
    font-size: 15.5px;
    border-top: 1px solid var(--line-soft);
}

.check-list li svg {
    flex: none;
    margin-top: 4px;
    color: var(--green);
}

/* ---------------- CTA ---------------- */

.cta {
    padding: 40px 0 110px;
}

.cta-card {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    border-top: 4px solid var(--green);
    padding: 90px 40px;
    text-align: center;
    background: var(--navy);
}

.cta-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 46%;
    background: repeating-linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.045) 0 2px,
        transparent 2px 26px
    );
    pointer-events: none;
}

.cta-card h2 {
    font-size: clamp(32px, 4.2vw, 54px);
    font-weight: 600;
    letter-spacing: -0.022em;
    line-height: 1.08;
    color: #fff;
    max-width: 760px;
    margin: 0 auto 20px;
    position: relative;
}

.cta-card p {
    color: rgba(255, 255, 255, 0.68);
    font-size: 18px;
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.65;
    position: relative;
}

/* ---------------- Footer ---------------- */

footer {
    padding: 0 0 48px;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 22px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
}

.footer-copy {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--faint);
}

.footer-links {
    display: flex;
    gap: 26px;
}

.footer-links a {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--navy);
}

/* ---------------- SDK sections ---------------- */

.split {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.split.flip {
    grid-template-columns: 1.1fr 1fr;
}

.split.flip > :first-child {
    order: 2;
}

.sdk-tabs {
    display: flex;
    gap: 4px;
    padding: 5px;
    background: var(--alt);
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-bottom: 14px;
    width: fit-content;
}

.sdk-tabs button {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    background: transparent;
    border: 0;
    border-radius: 5px;
    padding: 7px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sdk-tabs button:hover {
    color: var(--navy);
}

.sdk-tabs button.active {
    color: #fff;
    background: var(--navy);
}

.sdk-pane {
    display: none;
}

.sdk-pane.active {
    display: block;
}

.platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 26px;
}

.platforms span {
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: 0.04em;
    color: var(--muted);
    background: var(--alt);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 6px 13px;
}

.platforms span::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    margin-right: 8px;
    vertical-align: middle;
}

.sdk-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 44px;
}

@media (max-width: 1024px) {
    .split,
    .split.flip {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .split.flip > :first-child {
        order: 0;
    }

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

/* ---------------- Reveal ---------------- */

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 1024px) {
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .tile.span-4,
    .tile.span-3,
    .tile.span-2 {
        grid-column: span 1;
    }

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

    .two-col {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 720px) {
    .nav {
        top: 10px;
    }

    .nav-inner {
        margin: 0 14px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 74px;
        left: 14px;
        right: 14px;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid var(--line);
        border-radius: 12px;
        padding: 10px 24px 16px;
        box-shadow: 0 20px 50px rgba(13, 35, 64, 0.15);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        display: block;
        padding: 13px 0;
    }

    .nav-cta {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .hero {
        padding-top: 140px;
    }

    .orbit {
        height: 260px;
    }

    section {
        padding: 76px 0;
    }

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

    .cta-card {
        padding: 64px 24px;
    }
}
