/* =====================================================
   CRYPTARC
   Adaptive Risk Control
===================================================== */


/* ================= VARIABLES ================= */

:root {
    --black: #1A1C21;
    --purple: #5B348C;
    --white: #F4F3F1;
    --light: #E8E6E2;
    --grey: #929096;
    --line: rgba(244, 243, 241, 0.18);
    --dark-line: rgba(26, 28, 33, 0.18);
}


/* ================= RESET ================= */

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--white);
    color: var(--black);
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}


/* ================= GENERAL ================= */

.section {
    min-height: 100vh;
    position: relative;
    padding: 120px 7vw;
}

.dark-section {
    background: var(--black);
    color: var(--white);
}

.eyebrow {
    font-size: 11px;
    letter-spacing: 0.2em;
    font-weight: 700;
    margin-bottom: 25px;
}

.section-heading {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 35px;
    margin-bottom: 80px;
}

.section-index {
    font-size: 12px;
    letter-spacing: 0.1em;
    padding-top: 8px;
    color: var(--purple);
    font-weight: 700;
}

.section-heading h2 {
    font-size: clamp(42px, 5vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.045em;
    font-weight: 500;
}


/* ================= NAV ================= */

.nav {
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;

    width: 100%;
    height: 72px;

    padding: 0 7vw;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: rgba(244, 243, 241, 0.96);
    border-bottom: 1px solid var(--dark-line);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.brand-mark {
    width: 27px;
    height: 27px;

    display: grid;
    place-items: center;

    border: 2px solid var(--purple);

    color: var(--purple);

    font-size: 13px;
    font-weight: 800;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;

    transition: color 0.2s ease;
}

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

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    padding: 10px;
    border: 1px solid var(--dark-line);
    background: transparent;
    color: var(--black);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 1px;
    margin: 4px auto;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}


/* ================= HERO ================= */

.hero {
    padding-top: 72px;

    min-height: 100vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-number {
    position: absolute;
    top: 105px;
    left: 7vw;

    font-size: 10px;
    letter-spacing: 0.2em;
    font-weight: 700;
}

.hero-content {
    width: min(850px, 100%);
    margin: 0 auto;
    text-align: center;

    display: flex;
    align-items: center;
    flex-direction: column;
}

.hero-logo {
    width: 135px;
    height: auto;
    margin-bottom: 25px;
}

.hero-kicker {
    color: var(--purple);

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.25em;

    margin-bottom: 30px;
}

.hero h1 {
    font-size: clamp(48px, 7vw, 100px);
    line-height: 0.94;

    letter-spacing: -0.06em;
    font-weight: 500;

    margin-bottom: 35px;
}

.hero h1 span {
    color: var(--grey);
}

.hero-description {
    max-width: 600px;

    font-size: 16px;
    line-height: 1.7;

    color: #55545A;
}

.scroll-link {
    margin-top: 55px;

    display: flex;
    gap: 20px;
    align-items: center;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.2em;

    transition: gap 0.25s ease;
}

.scroll-link:hover {
    gap: 28px;
    color: var(--purple);
}

.hero-footer {
    position: absolute;

    bottom: 35px;
    left: 7vw;
    right: 7vw;

    display: flex;
    justify-content: space-between;

    border-top: 1px solid var(--dark-line);

    padding-top: 15px;

    font-size: 9px;
    letter-spacing: 0.15em;
    font-weight: 700;
}


/* ================= SERVICES ================= */

.services {
    border-top: 1px solid var(--line);
}

.service-intro {
    width: min(550px, 100%);
    margin-left: auto;
    margin-bottom: 80px;
}

.service-intro p {
    color: #A9A7AD;
    font-size: 15px;
    line-height: 1.7;
}

.service-list {
    border-top: 1px solid var(--line);
}

.service-row {
    display: grid;
    grid-template-columns: 80px 1fr 1.2fr;

    gap: 40px;

    padding: 38px 0;

    border-bottom: 1px solid var(--line);

    transition:
        padding-left 0.3s ease,
        border-color 0.3s ease;
}

.service-row:hover {
    padding-left: 15px;
    border-color: var(--purple);
}

.service-number {
    color: var(--purple);

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.service-title h3 {
    font-size: clamp(24px, 3vw, 42px);

    font-weight: 500;
    letter-spacing: -0.03em;
}

.service-description p {
    color: #A9A7AD;

    font-size: 14px;
    line-height: 1.7;

    max-width: 480px;
}

.service-footer {
    margin-top: 50px;

    display: flex;
    flex-wrap: wrap;
    gap: 18px;

    color: #77757C;

    font-size: 9px;
    letter-spacing: 0.15em;
    font-weight: 800;
}

.service-footer span:nth-child(even) {
    color: var(--purple);
}


/* ================= IMPACT ================= */

.impact {
    background: var(--white);
}

.impact-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.4fr;

    gap: 10vw;
}

.impact-statement {
    border-top: 2px solid var(--purple);

    padding-top: 25px;

    align-self: start;
}

.impact-symbol {
    display: block;

    color: var(--purple);

    font-size: 40px;
    line-height: 1;

    margin-bottom: 30px;
}

.impact-statement p {
    font-size: clamp(24px, 2.5vw, 36px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.impact-list {
    border-top: 1px solid var(--dark-line);
}

.impact-item {
    display: grid;
    grid-template-columns: 50px 1fr;

    gap: 25px;

    padding: 28px 0;

    border-bottom: 1px solid var(--dark-line);
}

.impact-number {
    color: var(--purple);

    font-size: 10px;
    font-weight: 800;

    padding-top: 4px;
}

.impact-item h3 {
    font-size: 15px;
    letter-spacing: 0.08em;

    margin-bottom: 12px;
}

.impact-item p {
    max-width: 600px;

    color: #646269;

    font-size: 14px;
    line-height: 1.7;
}


/* ================= PROCESS ================= */

.process {
    min-height: auto;
}

.process-intro {
    max-width: 600px;

    margin-left: auto;
    margin-bottom: 90px;
}

.process-intro p {
    color: #A9A7AD;

    font-size: 15px;
    line-height: 1.7;
}

.pipeline {
    display: flex;
    align-items: stretch;

    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.pipeline-step {
    flex: 1;

    padding: 30px 20px;

    min-height: 270px;
}

.pipeline-step > span {
    display: block;

    color: var(--purple);

    font-size: 10px;
    font-weight: 800;

    margin-bottom: 65px;
}

.pipeline-step h3 {
    font-size: 15px;

    line-height: 1.2;

    letter-spacing: 0.04em;

    margin-bottom: 20px;
}

.pipeline-step p {
    color: #8C8A91;

    font-size: 12px;

    line-height: 1.6;
}

.pipeline-line {
    width: 1px;

    background: var(--line);

    position: relative;
}

.pipeline-line::after {
    content: "→";

    position: absolute;

    top: 50%;
    left: -5px;

    color: var(--purple);

    font-size: 12px;
}

.authorization-note {
    margin-top: 25px;

    color: #66646B;

    font-size: 9px;

    letter-spacing: 0.13em;

    line-height: 1.6;
}


/* ================= CONTACT ================= */

.contact {
    background: var(--purple);

    color: var(--white);

    min-height: 85vh;

    display: flex;
    flex-direction: column;
}

.contact-top {
    display: flex;
    justify-content: space-between;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.15em;

    border-bottom: 1px solid rgba(244, 243, 241, 0.3);

    padding-bottom: 18px;
}

.contact-content {
    margin: auto 0;

    max-width: 850px;
}

.contact-content .eyebrow {
    color: rgba(244, 243, 241, 0.65);
}

.contact h2 {
    font-size: clamp(50px, 8vw, 110px);

    line-height: 0.9;

    letter-spacing: -0.06em;

    font-weight: 500;

    margin-bottom: 35px;
}

.contact-content > p:not(.eyebrow) {
    max-width: 550px;

    color: rgba(244, 243, 241, 0.75);

    line-height: 1.7;

    font-size: 15px;

    margin-bottom: 35px;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    gap: 35px;

    border: 1px solid rgba(244, 243, 241, 0.5);

    padding: 17px 22px;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.15em;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        gap 0.25s ease;
}

.contact-button:hover {
    background: var(--white);
    color: var(--purple);

    gap: 45px;
}

.contact footer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    border-top: 1px solid rgba(244, 243, 241, 0.3);

    padding-top: 18px;

    font-size: 9px;

    letter-spacing: 0.13em;

    color: rgba(244, 243, 241, 0.6);
}

.contact footer div:nth-child(2) {
    text-align: center;
}

.contact footer div:last-child {
    text-align: right;
}


/* ================= REVEAL ANIMATION ================= */

.reveal {
    opacity: 0;

    transform: translateY(25px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;

    transform: translateY(0);
}


/* ================= RESPONSIVE ================= */

@media (max-width: 900px) {

    .section {
        padding: 100px 6vw;
    }

    .section-heading {
        grid-template-columns: 55px 1fr;

        gap: 20px;

        margin-bottom: 60px;
    }

    .hero-footer {
        left: 6vw;
        right: 6vw;
    }

    .service-row {
        grid-template-columns: 45px 1fr;
    }

    .service-description {
        grid-column: 2;
    }

    .impact-layout {
        grid-template-columns: 1fr;

        gap: 70px;
    }

    .pipeline {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .pipeline-line {
        display: none;
    }

    .pipeline-step {
        border-bottom: 1px solid var(--line);
        border-right: 1px solid var(--line);
    }

    .pipeline-step:nth-child(even) {
        border-right: none;
    }

    .pipeline-step:nth-last-child(-n+2) {
        border-bottom: none;
    }
}


@media (max-width: 600px) {

    .section {
        padding: 90px 5vw;
    }

    .nav {
        padding: 0 5vw;
    }

    .nav-links {
        gap: 15px;
    }

    .nav-brand span:last-child {
        display: none;
    }

    .hero {
        padding-top: 72px;
    }

    .hero-logo {
        width: 110px;
    }

    .hero h1 {
        font-size: clamp(42px, 13vw, 70px);
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-footer {
        display: none;
    }

    .section-heading {
        grid-template-columns: 40px 1fr;
    }

    .section-heading h2 {
        font-size: 43px;
    }

    .service-row {
        display: block;

        padding: 30px 0;
    }

    .service-number {
        margin-bottom: 15px;
    }

    .service-title {
        margin-bottom: 15px;
    }

    .service-footer {
        line-height: 1.8;
    }

    .impact-item {
        grid-template-columns: 35px 1fr;
    }

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

    .pipeline-step {
        border-right: none !important;
        border-bottom: 1px solid var(--line) !important;
        min-height: auto;
        padding: 28px 10px;
    }

    .pipeline-step:last-child {
        border-bottom: none !important;
    }

    .pipeline-step > span {
        margin-bottom: 35px;
    }

    .contact h2 {
        font-size: 55px;
    }

    .contact footer {
        grid-template-columns: 1fr;

        gap: 12px;
    }

    .contact footer div,
    .contact footer div:nth-child(2),
    .contact footer div:last-child {
        text-align: left;
    }
}


/* ================= ACCESSIBILITY ================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }

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



/* =====================================================
   RESPONSIVE DESIGN
===================================================== */

@media (max-width: 900px) {

    .section {
        padding: 100px 6vw;
    }

    /* HEADER */

    .nav {
        padding: 0 6vw;
    }

    .nav-links {
        gap: 20px;
    }

    .nav-links a {
        font-size: 9px;
        letter-spacing: 0.08em;
    }


    /* GENERAL HEADINGS */

    .section-heading {
        grid-template-columns: 50px 1fr;
        gap: 20px;
        margin-bottom: 60px;
    }

    .section-heading h2 {
        font-size: clamp(40px, 7vw, 60px);
    }


    /* HERO */

    .hero {
        padding-top: 100px;
    }

    .hero h1 {
        font-size: clamp(48px, 9vw, 80px);
    }

    .hero-description {
        max-width: 600px;
    }


    /* SERVICES */

    .service-row {
        grid-template-columns: 50px 1fr;
        gap: 25px;
    }

    .service-description {
        grid-column: 2;
    }


    /* IMPACT */

    .impact-layout {
        grid-template-columns: 1fr;
        gap: 70px;
    }

    .impact-statement {
        max-width: 650px;
    }


    /* PROCESS */

    .pipeline {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .pipeline-line {
        display: none;
    }

    .pipeline-step {
        min-height: 260px;
        border-bottom: 1px solid var(--line);
        border-right: 1px solid var(--line);
    }

    .pipeline-step:nth-child(even) {
        border-right: none;
    }

    .pipeline-step:nth-last-child(-n + 2) {
        border-bottom: none;
    }


    /* CONTACT */

    .contact footer {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .contact footer div,
    .contact footer div:nth-child(2),
    .contact footer div:last-child {
        text-align: left;
    }
}


/* =====================================================
   TABLET / LARGE PHONE
===================================================== */

@media (max-width: 700px) {

    .section {
        padding: 90px 5vw;
    }


    /* HEADER */

    .nav {
        height: 64px;
        padding: 0 5vw;
    }

    .nav-brand {
        font-size: 11px;
    }

    .brand-mark {
        width: 25px;
        height: 25px;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 64px;
        left: 5vw;
        right: 5vw;
        display: none;
        flex-direction: column;
        gap: 0;
        padding: 8px 0;
        background: var(--white);
        border: 1px solid var(--dark-line);
        box-shadow: 0 8px 20px rgba(26, 28, 33, 0.08);
    }

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

    .nav-links a {
        padding: 16px 20px;
        font-size: 10px;
    }

    .nav-toggle.is-open span:nth-child(1) {
        transform: translateY(5px) rotate(45deg);
    }

    .nav-toggle.is-open span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.is-open span:nth-child(3) {
        transform: translateY(-5px) rotate(-45deg);
    }


    /* HERO */

    .hero {
        padding-top: 80px;
        text-align: center;
    }

    .hero-number {
        top: 90px;
        left: 5vw;
    }

    .hero-logo {
        width: 105px;
    }

    .hero h1 {
        font-size: clamp(43px, 12vw, 65px);
        line-height: 0.95;
    }

    .hero-description {
        font-size: 14px;
        line-height: 1.7;
    }

    .hero-footer {
        display: none;
    }


    /* SECTION HEADINGS */

    .section-heading {
        grid-template-columns: 35px 1fr;
        gap: 15px;
        margin-bottom: 50px;
    }

    .section-heading h2 {
        font-size: clamp(38px, 10vw, 55px);
    }


    /* SERVICES */

    .service-intro {
        margin-left: 0;
        margin-bottom: 55px;
    }

    .service-row {
        display: block;
        padding: 30px 0;
    }

    .service-number {
        margin-bottom: 15px;
    }

    .service-title {
        margin-bottom: 14px;
    }

    .service-title h3 {
        font-size: 30px;
    }

    .service-description p {
        font-size: 13px;
    }


    /* IMPACT */

    .impact-layout {
        gap: 55px;
    }

    .impact-statement p {
        font-size: 26px;
    }

    .impact-item {
        grid-template-columns: 35px 1fr;
        gap: 15px;
    }

    .impact-item h3 {
        font-size: 13px;
    }

    .impact-item p {
        font-size: 13px;
    }


    /* PROCESS */

    .process-intro {
        margin-left: 0;
        margin-bottom: 55px;
    }

    .pipeline {
        display: block;
    }

    .pipeline-step {
        min-height: auto;

        padding: 30px 5px;

        border-right: none !important;
        border-bottom: 1px solid var(--line) !important;
    }

    .pipeline-step:last-child {
        border-bottom: none !important;
    }

    .pipeline-step > span {
        margin-bottom: 25px;
    }

    .pipeline-step h3 {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .pipeline-step p {
        max-width: 400px;
        font-size: 12px;
    }


    /* CONTACT */

    .contact {
        min-height: 90vh;
    }

    .contact h2 {
        font-size: clamp(50px, 14vw, 75px);
    }

    .contact-content > p:not(.eyebrow) {
        font-size: 14px;
    }
}


/* =====================================================
   SMALL PHONES
===================================================== */

@media (max-width: 480px) {

    .section {
        padding: 80px 20px;
    }


    /* HEADER */

    .nav {
        padding: 0 20px;
    }

    .nav-brand span:last-child {
        display: inline;
        font-size: 10px;
    }

    .nav-links {
        left: 20px;
        right: 20px;
    }


    /* HERO */

    .hero-number {
        left: 20px;
        top: 85px;
        font-size: 8px;
    }

    .hero-logo {
        width: 90px;
        margin-bottom: 20px;
    }

    .hero-kicker {
        font-size: 8px;
        letter-spacing: 0.18em;
        margin-bottom: 25px;
    }

    .hero h1 {
        font-size: 44px;
        line-height: 0.96;
    }

    .hero-description {
        font-size: 13px;
        max-width: 340px;
    }

    .scroll-link {
        margin-top: 40px;
    }


    /* HEADINGS */

    .section-heading {
        grid-template-columns: 30px 1fr;
        gap: 10px;
    }

    .section-index {
        font-size: 9px;
    }

    .section-heading h2 {
        font-size: 39px;
    }


    /* SERVICE */

    .service-title h3 {
        font-size: 27px;
    }


    /* IMPACT */

    .impact-statement p {
        font-size: 24px;
    }

    .impact-symbol {
        font-size: 32px;
    }


    /* CONTACT */

    .contact h2 {
        font-size: 50px;
    }

    .contact-button {
        width: 100%;
        justify-content: space-between;
    }
}