/*
Theme Name: Vital Sync Theme
Author: Vital Sync
Version: 1.0.0
Text Domain: vitalsync-theme
*/

:root {
    --vs-blue: #0B1F3A;
    --vs-blue-2: #12345D;
    --vs-white: #FFFFFF;
    --vs-surface: #F8FAFC;
    --vs-gold: #D8A928;
    --vs-muted: #64748B;
    --vs-line: #E2E8F0;
    --vs-text: #172033;
    --vs-green: #0F766E;
    --vs-red: #B42318;
    --vs-shadow: 0 14px 34px rgba(11, 31, 58, .07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--vs-surface);
    color: var(--vs-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.vs-site-header {
    min-height: 76px;
    padding: 0 7vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--vs-line);
    position: sticky;
    top: 0;
    z-index: 30;
}

.vs-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--vs-blue);
    font-size: 21px;
    font-weight: 900;
}
.vs-brand img { width: 42px; height: 42px; }
.vs-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--vs-muted);
    font-weight: 800;
}
.vs-nav a {
    padding: 8px 0;
    transition: color .16s ease, transform .16s ease;
}
.vs-nav a:hover { color: var(--vs-blue); }
.vs-nav .login-link {
    min-height: 40px;
    padding: 9px 14px;
    border: 1px solid var(--vs-blue);
    border-radius: 8px;
    background: var(--vs-blue);
    color: var(--vs-white);
}
.vs-nav .login-link:hover { transform: translateY(-1px); }

.vs-main { min-height: calc(100svh - 76px); }
.vs-hero {
    min-height: calc(88svh - 76px);
    display: grid;
    align-items: end;
    position: relative;
    overflow: hidden;
    background: var(--vs-blue);
}
.vs-hero-media {
    position: absolute;
    inset: 0;
    background: var(--vs-blue);
}
.vs-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .44;
}
.vs-hero-media img[src$="vitalsync-logo.svg"] {
    width: min(620px, 78vw);
    height: auto;
    object-fit: contain;
    opacity: .16;
    position: absolute;
    right: 7vw;
    bottom: 8vh;
}
.vs-hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(11, 31, 58, .66);
}
.vs-hero-copy {
    position: relative;
    max-width: 760px;
    padding: 0 7vw 68px;
    color: var(--vs-white);
    animation: vsRise .48s ease both;
}
.vs-eyebrow {
    margin: 0 0 12px;
    color: var(--vs-gold);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.vs-hero h1 {
    margin: 0 0 18px;
    font-size: clamp(48px, 9vw, 104px);
    line-height: .95;
    color: var(--vs-white);
}
.vs-lead {
    max-width: 610px;
    margin: 0 0 24px;
    color: #E6ECF3;
    font-size: 18px;
    line-height: 1.65;
}
.vs-button,
button.vs-button,
.button,
button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--vs-blue);
    border-radius: 8px;
    background: var(--vs-blue);
    color: var(--vs-white);
    padding: 11px 16px;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}
.vs-button:hover,
button:hover { background: var(--vs-blue-2); }
.vs-button.light {
    background: var(--vs-white);
    color: var(--vs-blue);
    border-color: var(--vs-white);
}
.vs-button.ghost,
.button.ghost {
    background: var(--vs-white);
    color: var(--vs-blue);
}
.vs-button.small,
.button.small { min-height: 34px; padding: 7px 12px; font-size: 13px; }
.vs-button.danger,
.button.danger { background: var(--vs-red); border-color: var(--vs-red); color: var(--vs-white); }
.vs-button.full { width: 100%; }

.vs-section {
    padding: 70px 7vw;
    background: var(--vs-surface);
}
.vs-section.white { background: var(--vs-white); }
.vs-section-inner {
    max-width: 1160px;
    margin: 0 auto;
}
.vs-section h2 {
    margin: 0 0 14px;
    color: var(--vs-blue);
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
}
.vs-columns {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: 52px;
    align-items: center;
}
.vs-list {
    display: grid;
    gap: 0;
    margin-top: 24px;
    border-top: 1px solid var(--vs-line);
}
.vs-list span {
    display: block;
    border-bottom: 1px solid var(--vs-line);
    border-left: 0;
    background: transparent;
    padding: 18px 0 18px 18px;
    color: var(--vs-blue);
    font-weight: 850;
    position: relative;
}
.vs-list span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 24px;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--vs-gold);
}
.vs-photo-panel {
    min-height: 380px;
    border: 1px solid var(--vs-line);
    border-radius: 8px;
    overflow: hidden;
    background: var(--vs-white);
    box-shadow: var(--vs-shadow);
}
.vs-photo-panel img {
    width: 100%;
    height: 100%;
    min-height: 380px;
    object-fit: cover;
}
.vs-page {
    max-width: 1360px;
    margin: 0 auto;
    padding: 66px 7vw;
}
.vs-page-heading {
    max-width: 720px;
    margin-bottom: 26px;
}
.vs-page h1 {
    color: var(--vs-blue);
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.05;
    margin: 0;
}
.vs-page-content {
    background: var(--vs-white);
    border: 1px solid var(--vs-line);
    border-radius: 8px;
    padding: clamp(28px, 4vw, 48px);
    box-shadow: var(--vs-shadow);
}
.vs-page-content p {
    color: var(--vs-muted);
    font-size: 17px;
    line-height: 1.7;
}
.vs-page-content > *:first-child { margin-top: 0; }
.vs-page-content > *:last-child { margin-bottom: 0; }
.vs-about-hero {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(280px, .75fr);
    gap: 34px;
    align-items: center;
    margin-bottom: 34px;
}
.vs-about-hero h2,
.vs-contact-heading h2,
.vs-dev-heading h2 {
    margin: 0 0 12px;
    color: var(--vs-blue);
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.08;
}
.vs-about-mark {
    min-height: 280px;
    display: grid;
    place-items: center;
    gap: 14px;
    border: 1px solid var(--vs-line);
    border-radius: 8px;
    background: var(--vs-surface);
    color: var(--vs-blue);
    text-align: center;
    font-weight: 900;
}
.vs-about-mark img {
    width: 122px;
    height: 122px;
}
.vs-about-mark span {
    color: var(--vs-muted);
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.vs-about-image {
    aspect-ratio: 1 / 1;
    min-height: 0;
    border: 1px solid var(--vs-line);
    border-radius: 8px;
    overflow: hidden;
    background: var(--vs-surface);
    box-shadow: var(--vs-shadow);
}
.vs-about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.vs-about-grid,
.vs-contact-help {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin: 28px 0;
    overflow: hidden;
    border: 1px solid var(--vs-line);
    border-radius: 8px;
    background: var(--vs-line);
}
.vs-about-grid article,
.vs-contact-help article {
    min-height: 180px;
    padding: 24px;
    background: var(--vs-white);
}
.vs-about-grid strong,
.vs-contact-help strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 30px;
    margin-bottom: 18px;
    border: 1px solid #F3D777;
    border-radius: 999px;
    background: #FFF7D8;
    color: var(--vs-blue);
    font-size: 12px;
    font-weight: 900;
}
.vs-about-grid h3,
.vs-contact-help h3,
.vs-dev-card h3 {
    margin: 0 0 8px;
    color: var(--vs-blue);
}
.vs-about-principles {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    margin-top: 32px;
    padding-top: 30px;
    border-top: 1px solid var(--vs-line);
}
.vs-about-principles ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.vs-about-principles li {
    border-left: 3px solid var(--vs-gold);
    padding: 12px 14px;
    background: var(--vs-surface);
    color: var(--vs-blue);
    font-weight: 800;
}
.vs-contact-heading {
    margin-bottom: 28px;
}
.vs-contact-layout {
    display: grid;
    gap: 40px;
}
.vs-contact {
    grid-template-columns: minmax(280px, .55fr) minmax(520px, 1fr);
    gap: clamp(34px, 5vw, 72px);
}
.vs-developers {
    padding-top: 40px;
    border-top: 1px solid var(--vs-line);
}
.vs-dev-heading {
    max-width: 720px;
    margin-bottom: 26px;
}
.vs-dev-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.vs-dev-card {
    min-height: 250px;
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 22px;
    border: 1px solid var(--vs-line);
    border-radius: 8px;
    background: var(--vs-surface);
}
.vs-dev-avatar {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    margin-bottom: 8px;
    border-radius: 999px;
    background: var(--vs-blue);
    color: var(--vs-gold);
    border: 3px solid var(--vs-white);
    outline: 1px solid var(--vs-line);
    font-weight: 900;
}
.vs-dev-card p {
    margin: 0 0 4px;
    color: var(--vs-gold);
    font-size: 14px;
    font-weight: 900;
}
.vs-dev-card small {
    display: block;
    color: var(--vs-muted);
    font-size: 12px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.vs-dev-card a {
    color: var(--vs-muted);
}
.vs-public-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 6px;
    padding-bottom: 6px;
}
.vs-public-strip h2 {
    margin: 0;
}
.vs-footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 28px 7vw;
    color: var(--vs-muted);
    background: var(--vs-white);
    border-top: 1px solid var(--vs-line);
}

@keyframes vsRise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 880px) {
    .vs-site-header { padding: 16px 18px; align-items: flex-start; flex-direction: column; }
    .vs-nav { flex-wrap: wrap; gap: 12px; }
    .vs-hero { min-height: 590px; }
    .vs-hero-copy { padding: 0 22px 46px; }
    .vs-columns { grid-template-columns: 1fr; }
    .vs-footer,
    .vs-public-strip { flex-direction: column; align-items: flex-start; }
    .vs-page { padding: 42px 18px; }
    .vs-page-content { padding: 22px; }
    .vs-about-hero,
    .vs-about-principles,
    .vs-about-grid,
    .vs-contact-help,
    .vs-dev-grid { grid-template-columns: 1fr; }
    .vs-about-mark { min-height: 220px; }
}
