/* ============================================================
   Vestra Passport — Landing
   Dark minimal. Black canvas, huge type, smooth reveals.
   ============================================================ */

:root {
    --bg: #000000;
    --surface: #0b0b0d;
    --text: #f5f5f7;
    --muted: #86868b;
    --hairline: rgba(255, 255, 255, 0.14);
    --hairline-soft: rgba(255, 255, 255, 0.08);
    --teal: #71e6e0;
    --ease: cubic-bezier(0.28, 0.11, 0.32, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

@font-face {
    font-family: "Vestra Display";
    src: url("../fonts/InterDisplay-Bold.woff2") format("woff2");
    font-display: swap;
}

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

.wrap {
    width: min(1020px, 100% - 3rem);
    margin: 0 auto;
}

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

.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    background: rgba(0, 0, 0, 0.72);
    border-bottom: 1px solid var(--hairline-soft);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 3.4rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.nav-brand img {
    width: 22px;
    height: 22px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    font-size: 0.82rem;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.35s var(--ease);
}

.nav-links a:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 3px;
    border-radius: 2px;
}

@media (hover: hover) {
    .nav-links a:hover {
        color: var(--text);
    }
}

/* ---------- Shared type ---------- */

.display {
    font-family: "Vestra Display", "Inter", -apple-system, sans-serif;
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.032em;
    line-height: 1.02;
    text-wrap: balance;
}

.sub {
    color: var(--muted);
    text-wrap: pretty;
}

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

.hero {
    display: grid;
    place-items: center;
    min-height: calc(100svh - 3.4rem);
    padding: 4rem 0 5rem;
    text-align: center;
}

.hero h1 {
    font-size: clamp(3rem, 8.5vw, 6.8rem);
    max-width: 12ch;
    margin-inline: auto;
}

.hero .sub {
    max-width: 34rem;
    margin: 1.6rem auto 0;
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.4rem;
    margin-top: 2.6rem;
}

/* ---------- Buttons ---------- */

.btn-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.85rem 1.9rem;
    border-radius: 980px;
    background: var(--text);
    color: #000;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.35s var(--ease), background-color 0.35s var(--ease),
                opacity 0.35s var(--ease);
}

.btn-pill:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 3px;
}

@media (hover: hover) {
    .btn-pill:hover {
        transform: scale(1.035);
    }
}

.btn-pill:active {
    transform: scale(0.985);
    opacity: 0.85;
}

.link-arrow {
    color: var(--teal);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.35s var(--ease);
}

.link-arrow span {
    display: inline-block;
    transition: transform 0.35s var(--ease);
}

.link-arrow:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 3px;
    border-radius: 2px;
}

@media (hover: hover) {
    .link-arrow:hover {
        opacity: 0.75;
    }

    .link-arrow:hover span {
        transform: translateX(3px);
    }
}

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

.section {
    padding: clamp(4.5rem, 12vh, 8rem) 0;
    border-top: 1px solid var(--hairline-soft);
}

.section-head {
    max-width: 40rem;
    margin-bottom: clamp(2.5rem, 6vh, 4rem);
}

.section-head.center {
    margin-inline: auto;
    text-align: center;
}

.section-head h2 {
    font-size: clamp(2.1rem, 5vw, 3.6rem);
}

.section-head .sub {
    margin: 1.1rem 0 0;
    font-size: 1.08rem;
}

/* Services */
.service-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--hairline);
}

.service-list li {
    border-bottom: 1px solid var(--hairline);
}

.service-list a {
    display: grid;
    grid-template-columns: 0.8rem minmax(10rem, 0.8fr) minmax(0, 1.4fr) 1.2rem;
    align-items: baseline;
    gap: 1.3rem;
    padding: 1.5rem 0.4rem;
    color: var(--text);
    text-decoration: none;
}

.service-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--dot);
    justify-self: start;
    transform: translateY(-2px);
}

.service-name {
    font-family: "Vestra Display", "Inter", sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.service-desc {
    color: var(--muted);
    font-size: 0.95rem;
}

.service-arrow {
    color: var(--muted);
    font-size: 1rem;
    transition: transform 0.4s var(--ease), color 0.4s var(--ease);
}

.service-list a:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: -2px;
}

@media (hover: hover) {
    .service-list a:hover .service-arrow {
        transform: translateX(5px);
        color: var(--text);
    }
}

/* Security trio */
.trio {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(2rem, 5vw, 4rem);
}

.trio h3 {
    margin: 0 0 0.6rem;
    font-family: "Vestra Display", "Inter", sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.trio p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* CTA */
.cta {
    padding: clamp(5rem, 14vh, 9rem) 0;
    border-top: 1px solid var(--hairline-soft);
    text-align: center;
}

.cta h2 {
    font-size: clamp(2.6rem, 6.5vw, 4.8rem);
    max-width: 16ch;
    margin-inline: auto;
}

.cta .hero-actions {
    margin-top: 2.4rem;
}

/* Footer */
.footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 1.8rem 0 2.4rem;
    border-top: 1px solid var(--hairline-soft);
    font-size: 0.8rem;
    color: var(--muted);
}

/* ---------- Reveals ---------- */

.rise {
    opacity: 0;
    transform: translateY(26px);
    filter: blur(8px);
    transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease);
}

.rise.in {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.rise-d1 { transition-delay: 0.12s; }
.rise-d2 { transition-delay: 0.24s; }
.rise-d3 { transition-delay: 0.36s; }
.rise-d4 { transition-delay: 0.48s; }

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

@media (max-width: 720px) {
    .trio {
        grid-template-columns: 1fr;
    }

    .service-list a {
        grid-template-columns: 0.8rem 1fr 1.2rem;
    }

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

    .nav-links {
        gap: 1.1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .rise {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }
}
