/* =========================================================
   HOME — HERO
   ========================================================= */

.hero {
    display: flex;
    align-items: center;

    min-height: 760px;
    padding: 155px 0 100px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.03fr 0.97fr;
    align-items: center;
    gap: 70px;
}

.hero h1 {
    max-width: 760px;
    margin: 0;

    font-size: clamp(4rem, 6.3vw, 6.2rem);
}

.hero h1 span {
    display: block;

    color: #404249;
}

.hero h1 span::after {
    content: "";

    display: inline-block;

    width: 0.62em;
    height: 0.09em;
    margin-left: 0.1em;

    background: linear-gradient(
        90deg,
        var(--blue),
        var(--purple)
    );

    vertical-align: 0.18em;
}

.hero-lead {
    max-width: 680px;
    margin: 26px 0;

    font-size: 1.12rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.capability-line {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-top: 30px;

    color: #55585f;

    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;

    text-transform: uppercase;
}

.capability-line b {
    color: #bbbbbb;
    font-weight: 400;
}


/* =========================================================
   HOME — SYSTEM VISUAL
   ========================================================= */

.system-visual {
    position: relative;

    height: 520px;
    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 18px;

    background: linear-gradient(
        180deg,
        #fbfbfd,
        #f3f4f7
    );
}

.system-visual::before {
    content: "";

    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(#e9eaf0 1px, transparent 1px),
        linear-gradient(90deg, #e9eaf0 1px, transparent 1px);
    background-size: 32px 32px;

    opacity: 0.55;
}

.system-label {
    position: absolute;
    top: 18px;
    left: 20px;

    color: #6f7178;

    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.system-core {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;

    width: 230px;
    padding: 22px;

    border-radius: 14px;

    background: #0b0c0f;
    color: #ffffff;

    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.15);

    transform: translate(-50%, -50%);
}

.system-core small,
.system-core span {
    display: block;

    color: #9ea1a9;

    font-size: 0.67rem;
}

.system-core strong {
    display: block;

    margin: 10px 0;

    font-family: var(--display);
    font-size: 1.35rem;
    line-height: 1.05;
}

.node {
    position: absolute;
    z-index: 2;

    padding: 10px 13px;

    border: 1px solid #d9dae0;
    border-radius: 9px;

    background: #ffffff;

    font-size: 0.78rem;
    font-weight: 700;
}

.node-a {
    top: 85px;
    left: 35px;
}

.node-b {
    bottom: 85px;
    left: 35px;
}

.node-c {
    top: 75px;
    right: 35px;
}

.node-d {
    top: 225px;
    right: 35px;
}

.node-e {
    right: 35px;
    bottom: 70px;
}

.system-visual svg {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    fill: none;
    stroke: #8d91a0;
    stroke-width: 1.3;
    stroke-dasharray: 5 6;
}


/* =========================================================
   HOME — EDITORIAL TRANSITION
   ========================================================= */

.editorial-transition h2 {
    margin: 0;

    font-size: clamp(3.1rem, 5vw, 5.2rem);
}

.editorial-transition h2 span {
    color: #7d8089;
}

.editorial-transition p {
    color: #b9bbc2;
}


/* =========================================================
   HOME — PAIN POINTS
   ========================================================= */

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

    border-top: 1px solid #dfe1e6;
    border-left: 1px solid #dfe1e6;
}

.pain-item {
    min-height: 220px;
    padding: 34px;

    border-right: 1px solid #dfe1e6;
    border-bottom: 1px solid #dfe1e6;
}

.pain-item span,
.build-number {
    color: var(--blue);

    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.pain-item h3 {
    margin: 46px 0 10px;

    font-size: 1.85rem;
}

.section-inline-cta {
    display: flex;
    justify-content: space-between;
    gap: 20px;

    margin-top: 35px;
    padding-top: 22px;

    border-top: 1px solid #d8dae0;

    font-weight: 600;
}


/* =========================================================
   HOME / ABOUT — CAPABILITIES
   ========================================================= */

.capability-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

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

.capability {
    min-height: 280px;
    padding: 32px;

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

.capability h3 {
    margin: 65px 0 12px;

    font-size: 2rem;
}

.capability p {
    color: #aeb1b9;
}

.cap-icon {
    padding-bottom: 7px;

    border-bottom: 2px solid transparent;
    border-image: linear-gradient(
        90deg,
        var(--blue),
        var(--purple)
    ) 1;

    color: #8faeff;

    font-size: 0.75rem;
}


/* =========================================================
   HOME — WHAT WE BUILD
   ========================================================= */

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

.build-row {
    display: grid;
    grid-template-columns: 70px 1fr 280px;
    align-items: center;
    gap: 30px;

    padding: 32px 0;

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

.build-row h3 {
    margin: 0 0 8px;

    font-size: 2.2rem;
}

.build-row p {
    max-width: 600px;
    margin: 0;
}

.build-ui {
    display: flex;
    gap: 8px;

    height: 125px;
    padding: 15px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: #f7f8fa;
}

.website-ui {
    flex-direction: column;
}

.website-ui i {
    height: 12px;

    border-radius: 4px;

    background: #d8dbe2;
}

.website-ui i:nth-child(2) {
    height: 36px;

    background: #111111;
}

.app-ui {
    align-items: flex-end;
}

.app-ui span {
    width: 26%;
    height: 100%;

    border-radius: 7px;

    background: #111111;
}

.app-ui b {
    flex: 1;

    border-radius: 6px;

    background: #cfd3db;
}

.app-ui b:nth-of-type(1) {
    height: 55%;
}

.app-ui b:nth-of-type(2) {
    height: 80%;
}

.app-ui b:nth-of-type(3) {
    height: 40%;
}

.chart-ui {
    align-items: flex-end;
}

.chart-ui i {
    flex: 1;

    border-radius: 4px 4px 1px 1px;

    background: linear-gradient(
        180deg,
        var(--blue),
        var(--purple)
    );
}

.chart-ui i:nth-child(1) {
    height: 35%;
}

.chart-ui i:nth-child(2) {
    height: 60%;
}

.chart-ui i:nth-child(3) {
    height: 45%;
}

.chart-ui i:nth-child(4) {
    height: 85%;
}

.flow-ui {
    align-items: center;
    justify-content: center;
}

.flow-ui i {
    width: 44px;
    height: 44px;

    border-radius: 10px;

    background: #111111;
}

.flow-ui span {
    flex: 1;

    height: 1px;

    background: linear-gradient(
        90deg,
        var(--blue),
        var(--purple)
    );
}


/* =========================================================
   HOME — EDUCATION
   ========================================================= */

.education-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 70px;
}

.education h2,
.decision h2 {
    font-size: clamp(2.8rem, 4vw, 4.3rem);
}

.action-cloud {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    gap: 10px;
}

.action-cloud span {
    padding: 14px 18px;

    border: 1px solid #d8dae1;
    border-radius: 10px;

    background: #ffffff;

    font-weight: 700;
}


/* =========================================================
   DECISION / PROBLEM-FIRST
   ========================================================= */

.decision strong {
    display: block;

    margin-top: 22px;
}

.decision-map {
    padding: 28px;

    border: 1px solid var(--border);
    border-radius: 16px;
}

.decision-question {
    padding-bottom: 28px;

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

    font-family: var(--display);
    font-size: 2.1rem;
    font-weight: 700;
}

.decision-path {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;

    margin-top: 22px;
}

.decision-path span {
    position: relative;

    padding: 18px;

    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 10px;

    font-weight: 700;
}

.decision-path span::before {
    content: "";

    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;

    width: 3px;

    background: linear-gradient(
        var(--blue),
        var(--purple)
    );
}


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

.process-flow {
    position: relative;

    display: grid;
    grid-template-columns: repeat(6, 1fr);

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

.process-step {
    min-height: 230px;
    padding: 25px 22px 0 0;
}

.process-step span {
    color: var(--blue);

    font-size: 0.72rem;
    font-weight: 800;
}

.process-step h3 {
    margin: 52px 0 10px;

    font-size: 1.65rem;
}

.process-step:not(:last-child)::after {
    content: "→";

    position: absolute;

    margin-top: -120px;
    margin-left: 12px;

    color: #b4b6bd;
}


/* =========================================================
   CONCEPT DEMO
   ========================================================= */

.dashboard-demo {
    padding: 20px;

    border: 1px solid #2f3139;
    border-radius: 16px;

    background: #111319;

    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.dashboard-head {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding-bottom: 16px;

    border-bottom: 1px solid #2d3038;
}

.dashboard-head small {
    display: block;

    color: #7f8390;

    font-size: 0.62rem;
}

.dashboard-head strong {
    font-family: var(--display);
    font-size: 1.6rem;
}

.dashboard-head > span {
    padding: 7px 9px;

    border: 1px solid #41444e;
    border-radius: 7px;

    color: #b8bac3;

    font-size: 0.68rem;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;

    margin: 16px 0;
}

.metric-grid div {
    padding: 13px;

    border: 1px solid #2b2d34;
    border-radius: 9px;

    background: #181a20;
}

.metric-grid small {
    display: block;

    color: #888b95;

    font-size: 0.62rem;
}

.metric-grid b {
    font-size: 1.4rem;
}

.dashboard-body {
    display: grid;
    grid-template-columns: 1.45fr 0.75fr;
    gap: 12px;
}

.request-table,
.analytics-card {
    padding: 14px;

    border: 1px solid #2b2d34;
    border-radius: 10px;

    background: #181a20;
}

.table-title {
    display: flex;
    justify-content: space-between;

    font-size: 0.72rem;
    font-weight: 700;
}

.table-title span {
    color: #7f8390;
}

.tr {
    display: grid;
    grid-template-columns: 30px 1fr auto;
    align-items: center;
    gap: 10px;

    padding: 13px 0;

    border-bottom: 1px solid #292c32;
}

.tr:last-child {
    border-bottom: 0;
}

.tr > b {
    display: grid;
    place-items: center;

    width: 28px;
    height: 28px;

    border-radius: 7px;

    background: #292c34;

    font-size: 0.62rem;
}

.tr span strong,
.tr span small {
    display: block;
}

.tr span strong {
    font-size: 0.7rem;
}

.tr span small {
    color: #7f8390;

    font-size: 0.58rem;
}

.status {
    padding: 5px 7px;

    border-radius: 6px;

    font-size: 0.55rem;
    font-style: normal;
}

.processing {
    background: #202d5d;
    color: #b6c7ff;
}

.pending {
    background: #3a321d;
    color: #e5d18d;
}

.done {
    background: #153328;
    color: #9cdfc3;
}

.analytics-card small {
    color: #888b95;

    font-size: 0.6rem;
}

.analytics-card > strong {
    display: block;

    margin: 8px 0;

    font-size: 2rem;
}

.analytics-card > span {
    color: #80838e;

    font-size: 0.55rem;
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 7px;

    height: 110px;
}

.bar-chart i {
    flex: 1;

    border-radius: 3px 3px 0 0;

    background: linear-gradient(
        180deg,
        #596dff,
        #8a54ff
    );
}


/* =========================================================
   PROJECT GRID / CARDS
   ========================================================= */

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.project-card {
    min-width: 0;
    padding: 20px;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: #ffffff;
}

.project-card-top {
    display: flex;
    justify-content: space-between;
    gap: 14px;

    color: #6d7078;

    font-size: 0.65rem;
    letter-spacing: 0.06em;

    text-transform: uppercase;
}

.project-status {
    color: #111111;
    font-weight: 700;
}

.project-image,
.project-visual {
    height: 190px;
    margin: 18px 0;

    overflow: hidden;

    border-radius: 10px;
}

.project-image {
    border: 1px solid var(--border);

    background: #f2f3f5;
}

.project-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.project-visual {
    padding: 22px;

    background: #0c0d10;
}

.mini-window {
    height: 100%;
    padding: 10px;

    border: 1px solid #2d3038;
    border-radius: 7px;
}

.mini-window > span {
    display: inline-block;

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #555963;
}

.mini-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;

    margin-top: 25px;
}

.mini-layout i {
    height: 46px;

    border-radius: 6px;

    background: #1b1d23;
}

.mini-layout i:first-child {
    grid-row: span 2;

    height: 100px;

    background: linear-gradient(
        180deg,
        #1f2330,
        #17191e
    );
}

.project-card h3 {
    margin-bottom: 10px;

    font-size: 2rem;
}

.work-empty {
    max-width: 760px;
    padding: 54px;

    border: 1px solid var(--border);
    border-radius: 16px;

    background: #ffffff;
}

.work-empty h2 {
    max-width: 640px;

    font-size: clamp(2.6rem, 5vw, 4.4rem);
}

.work-empty p {
    max-width: 620px;
    margin-bottom: 26px;
}


/* =========================================================
   WHY VITALSCRYPT
   ========================================================= */

.why-list article {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 12px;

    padding: 24px 0;

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

.why-list article span {
    color: var(--blue);

    font-size: 0.72rem;
    font-weight: 800;
}

.why-list article h3 {
    margin: 0 0 5px;

    font-size: 1.7rem;
}

.why-list article p {
    margin: 0;
}


/* =========================================================
   FINAL CTA
   ========================================================= */

.final-cta h2 {
    max-width: 970px;
}

.final-cta h2 span {
    color: #8f929b;
}

.final-cta p {
    max-width: 650px;
    margin-bottom: 28px;

    color: #b4b6bd;

    font-size: 1.08rem;
}


/* =========================================================
   GENERIC PAGE HERO
   ========================================================= */

.page-hero {
    padding: 180px 0 100px;
}

.page-hero h1 {
    max-width: 940px;
}

.page-hero p {
    max-width: 760px;
}


/* =========================================================
   SOLUTIONS PAGE
   ========================================================= */

.solution-stack {
    border-top: 1px solid var(--border);
}

.solution-stack article {
    display: grid;
    grid-template-columns: 170px 1fr 1fr;
    gap: 30px;

    padding: 44px 0;

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

.solution-stack article > span {
    color: var(--blue);

    font-size: 0.73rem;
    font-weight: 800;
}

.solution-stack h2 {
    margin: 0;

    font-size: 2.5rem;
}

.solution-stack p {
    margin: 0;
}


/* =========================================================
   WORK DETAIL
   ========================================================= */

.project-back-link {
    margin-bottom: 28px;
}

.project-detail-status {
    display: inline-flex;

    margin-top: 18px;
    padding: 7px 10px;

    border: 1px solid var(--border);
    border-radius: 8px;

    font-size: 0.73rem;
    font-weight: 700;
}

.project-detail-media {
    padding: 0 0 42px;

    background: #ffffff;
}

.project-detail-media img {
    width: 100%;
    max-height: 680px;

    border: 1px solid var(--border);
    border-radius: 16px;

    object-fit: cover;
    object-position: top;
}

.project-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;

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

.project-detail-block {
    min-width: 0;
    padding: 36px;

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

.project-detail-block .section-number {
    color: var(--blue);

    font-size: 0.72rem;
    font-weight: 800;
}

.project-detail-block h2 {
    margin: 44px 0 18px;

    font-size: 3rem;
}

.project-detail-copy p {
    margin: 0 0 14px;
}

.project-detail-copy p:last-child {
    margin-bottom: 0;
}


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

.contact-page {
    min-height: 100vh;
    padding: 180px 0 120px;
}

.contact-page h1 {
    margin: 0;

    font-size: clamp(4rem, 7vw, 7rem);
}

.contact-lead {
    max-width: 720px;

    color: #b5b7bf;

    font-size: 1.18rem;
}

.contact-prompts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin: 34px 0;
}

.contact-prompts span {
    padding: 10px 12px;

    border: 1px solid #353840;
    border-radius: 9px;

    color: #c2c4cb;
}

.contact-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;

    max-width: 1100px;
}

.contact-option-card {
    display: flex;
    flex-direction: column;

    min-height: 220px;
    padding: 24px;

    border: 1px solid #30323a;
    border-radius: 14px;

    background: transparent;
    color: #ffffff;

    text-align: left;

    cursor: pointer;

    transition:
        transform 160ms ease,
        border-color 160ms ease,
        background 160ms ease;
}

.contact-option-card:hover {
    transform: translateY(-2px);

    border-color: #6f55ff;

    background: #0d0f13;
}

.contact-option-card small {
    color: #777b86;
}

.contact-option-card strong {
    margin: 20px 0;

    font-family: var(--display);
    font-size: 2rem;
    line-height: 1;
}

.contact-option-card span {
    margin-top: auto;

    color: #aeb0b6;
}

.contact-expectation {
    margin-top: 90px;
    padding-top: 40px;

    border-top: 1px solid #30323a;
}

.contact-expectation-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;

    border-top: 1px solid #30323a;
    border-left: 1px solid #30323a;
}

.contact-expectation-grid article {
    padding: 30px;

    border-right: 1px solid #30323a;
    border-bottom: 1px solid #30323a;
}

.contact-expectation-grid article > span {
    color: #8faeff;

    font-size: 0.72rem;
    font-weight: 800;
}

.contact-expectation-grid h2 {
    margin: 42px 0 12px;

    font-size: 2rem;
}

.contact-expectation-grid p {
    margin: 0;

    color: #aeb0b6;
}

/* =========================================================
   CONTACT PAGE — HERO POLISH
   ========================================================= */

.contact-page h1 {
    margin: 0 0 28px;

    font-size: clamp(4rem, 7vw, 7rem);
    line-height: 0.9;
}

.contact-lead {
    max-width: 720px;
    margin: 0;

    color: #b5b7bf;

    font-size: 1.18rem;
    line-height: 1.7;
}


/* =========================================================
   ABOUT PAGE
   ========================================================= */

.page-about .decision {
    border-top: 1px solid var(--border);
}
