/* ============================================================
   SecureVault — marketing site
   Base font: self-hosted IBM Plex Sans
   Palette matched to the application's dark UI
   ============================================================ */

@font-face {
    font-family: "IBM Plex Sans";
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url("assets/fonts/ibm-plex-sans-300-700.woff2") format("woff2");
}

@font-face {
    font-family: "IBM Plex Sans";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("assets/fonts/ibm-plex-sans-300-700.woff2") format("woff2");
}

@font-face {
    font-family: "IBM Plex Sans";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("assets/fonts/ibm-plex-sans-300-700.woff2") format("woff2");
}

@font-face {
    font-family: "IBM Plex Sans";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("assets/fonts/ibm-plex-sans-300-700.woff2") format("woff2");
}

@font-face {
    font-family: "IBM Plex Sans";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("assets/fonts/ibm-plex-sans-300-700.woff2") format("woff2");
}

@font-face {
    font-family: "IBM Plex Sans";
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url("assets/fonts/ibm-plex-sans-italic-400.woff2") format("woff2");
}

@font-face {
    font-family: "IBM Plex Mono";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("assets/fonts/ibm-plex-mono-400.woff2") format("woff2");
}

:root {
    --bg: #0b0d13;
    --bg-alt: #0f121b;
    --panel: #141827;
    --panel-2: #1a1f31;
    --line: rgba(148, 163, 205, 0.14);
    --text: #e7eaf3;
    --muted: #9aa3ba;
    --faint: #6b7490;
    --accent: #6c6cf5;
    --accent-2: #8b7cf7;
    --accent-soft: rgba(108, 108, 245, 0.14);
    --green: #4ade80;
    --red: #f87171;
    --amber: #fbbf24;
    --radius: 16px;
    --radius-sm: 10px;
    --font: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, "Cascadia Code", monospace;
}

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

html { scroll-behavior: smooth; }

[id] { scroll-margin-top: 88px; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

:focus-visible {
    outline: 3px solid #a9a0ff;
    outline-offset: 4px;
}

.container {
    width: min(1160px, 92%);
    margin-inline: auto;
}

h1, h2, h3 { line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }

code {
    font-family: var(--mono);
    font-size: 0.9em;
    background: var(--accent-soft);
    color: var(--accent-2);
    padding: 0.1em 0.4em;
    border-radius: 6px;
}

.sr-only {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 0;
    left: 50%;
    padding: 0.65rem 1rem;
    border-radius: 0 0 10px 10px;
    color: #fff;
    background: var(--accent);
    font-weight: 700;
    transform: translate(-50%, -140%);
    transition: transform 160ms ease;
}

.skip-link:focus-visible { transform: translate(-50%, 0); }

/* ============ Nav ============ */

.nav-wrap {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    background: rgba(11, 13, 19, 0.82);
    border-bottom: 1px solid var(--line);
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    height: 68px;
}

.brand {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 1.1rem;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    box-shadow: 0 4px 18px rgba(108, 108, 245, 0.4);
}

.brand-mark svg { width: 22px; height: 22px; }

.nav-links {
    display: flex;
    gap: 1.6rem;
    margin-left: auto;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

.nav-toggle {
    display: none;
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--text);
    background: var(--panel);
    cursor: pointer;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 160ms ease, opacity 160ms ease;
}

.nav-toggle-icon { position: relative; }
.nav-toggle-icon::before,
.nav-toggle-icon::after { content: ""; position: absolute; left: 0; }
.nav-toggle-icon::before { transform: translateY(-6px); }
.nav-toggle-icon::after { transform: translateY(6px); }

.nav-toggle[aria-expanded="true"] .nav-toggle-icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after { transform: rotate(-45deg); }

/* ============ Buttons ============ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    gap: 0.5rem;
    padding: 0.8rem 1.6rem;
    border-radius: 12px;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.9rem; }

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    box-shadow: 0 6px 24px rgba(108, 108, 245, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(108, 108, 245, 0.5);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--line);
}

.btn-ghost:hover { border-color: var(--accent); color: var(--accent-2); }

/* ============ Hero ============ */

.hero {
    position: relative;
    padding: 6.5rem 0 5rem;
    overflow: clip;
}

.hero-glow {
    position: absolute;
    inset: -20% -10% auto;
    height: 620px;
    background:
        radial-gradient(600px 340px at 22% 30%, rgba(108, 108, 245, 0.22), transparent 70%),
        radial-gradient(520px 300px at 78% 12%, rgba(139, 124, 247, 0.13), transparent 70%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 4rem;
    align-items: center;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.4rem 0.95rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(20, 24, 39, 0.7);
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
}

.pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 10px var(--green);
}

.hero h1 {
    font-size: clamp(2.4rem, 4.6vw, 3.6rem);
    margin-bottom: 1.25rem;
}

.grad {
    background: linear-gradient(100deg, var(--accent-2), #b7a9ff 60%, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lede {
    font-size: 1.13rem;
    color: var(--muted);
    max-width: 34rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.lede strong { color: var(--text); }

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-bottom: 2.5rem;
}

.hero-actions.center { justify-content: center; margin-top: 2.25rem; }

.hero-facts {
    display: flex;
    gap: 2.4rem;
    list-style: none;
}

.hero-facts li { display: flex; flex-direction: column; }

.hero-facts strong {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--accent-2);
}

.hero-facts span { font-size: 0.85rem; color: var(--faint); }

/* Screenshot frame */

.hero-shot { position: relative; }

.shot-frame {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    overflow: hidden;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(108, 108, 245, 0.08),
        0 0 120px rgba(108, 108, 245, 0.12);
    transform: perspective(1400px) rotateY(-4deg) rotateX(1.5deg);
    transition: transform 0.4s ease;
}

.shot-frame:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }

.shot-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0.65rem 1rem;
    background: var(--panel-2);
    border-bottom: 1px solid var(--line);
}

.shot-bar span, .code-bar span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--line);
}

.shot-bar span:nth-child(1), .code-bar span:nth-child(1) { background: #f87171; }
.shot-bar span:nth-child(2), .code-bar span:nth-child(2) { background: #fbbf24; }
.shot-bar span:nth-child(3), .code-bar span:nth-child(3) { background: #4ade80; }

.shot-bar em, .code-bar em {
    margin-left: auto;
    margin-right: auto;
    font-style: normal;
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--faint);
}

.shot-frame img {
    display: block;
    width: 100%;
    height: auto;
}

/* ============ Strip ============ */

.strip {
    border-block: 1px solid var(--line);
    background: var(--bg-alt);
}

.strip-inner {
    padding: 1.1rem 0;
    text-align: center;
    color: var(--faint);
    font-size: 0.9rem;
}

.strip-inner strong { color: var(--muted); font-weight: 600; }

/* ============ Sections ============ */

.section { padding: 6rem 0; }

.section-alt {
    background: var(--bg-alt);
    border-block: 1px solid var(--line);
}

.section-head {
    max-width: 44rem;
    margin: 0 auto 3.5rem;
    text-align: center;
}

.kicker {
    display: inline-block;
    color: var(--accent-2);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 0.9rem;
}

.section-head h2, .split-copy h2, .cta h2 {
    font-size: clamp(1.8rem, 3.2vw, 2.5rem);
    margin-bottom: 1rem;
}

.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ============ Feature cards ============ */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
}

.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.8rem;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(108, 108, 245, 0.45);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.4);
}

.card-accent {
    background: linear-gradient(160deg, rgba(108, 108, 245, 0.10), var(--panel) 55%);
    border-color: rgba(108, 108, 245, 0.3);
}

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent-2);
    margin-bottom: 1.1rem;
}

.card-icon svg { width: 24px; height: 24px; }

.card h3 { font-size: 1.14rem; margin-bottom: 0.6rem; }

.card p { color: var(--muted); font-size: 0.94rem; }

.tag {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-2);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

/* ============ Workflow steps ============ */

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.4rem;
    list-style: none;
    counter-reset: step;
}

.step {
    position: relative;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.8rem;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 1.1rem;
    box-shadow: 0 4px 16px rgba(108, 108, 245, 0.35);
}

.step h3 { font-size: 1.05rem; margin-bottom: 0.55rem; }

.step p { color: var(--muted); font-size: 0.92rem; }

/* ============ Comparison table ============ */

.table-wrap {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}

.compare-table {
    width: 100%;
    min-width: 880px;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.compare-table th, .compare-table td {
    padding: 1rem 1.2rem;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.compare-table thead th {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    background: var(--panel-2);
    white-space: nowrap;
}

.compare-table tbody th {
    font-weight: 500;
    color: var(--text);
    max-width: 260px;
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-bottom: none; }

.compare-table td { color: var(--muted); }

.compare-table .hl {
    background: rgba(108, 108, 245, 0.09);
    color: var(--text);
    font-weight: 500;
}

.compare-table thead .hl {
    color: var(--accent-2);
    border-top: 2px solid var(--accent);
}

.yes, .no, .mid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    margin-right: 0.35rem;
}

.yes { background: rgba(74, 222, 128, 0.15); color: var(--green); }
.no  { background: rgba(248, 113, 113, 0.13); color: var(--red); }
.mid { background: rgba(251, 191, 36, 0.13); color: var(--amber); }

.table-note {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--faint);
    text-align: center;
}

/* ============ Split (audit) ============ */

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.split > * { min-width: 0; }

.split-copy p { color: var(--muted); margin-bottom: 1.5rem; }

.check-list { list-style: none; }

.check-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.8rem;
    color: var(--muted);
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.05em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(74, 222, 128, 0.15);
    color: var(--green);
    font-size: 0.75rem;
    font-weight: 700;
}

/* Code cards / terminal */

.code-card, .terminal {
    background: #0d101a;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    text-align: left;
}

.code-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0.65rem 1rem;
    background: var(--panel-2);
    border-bottom: 1px solid var(--line);
}

.code-card pre, .terminal pre {
    padding: 1.4rem 1.5rem;
    overflow-x: auto;
}

.code-card code, .terminal code {
    background: none;
    padding: 0;
    font-family: var(--mono);
    font-size: 0.86rem;
    line-height: 1.7;
    color: #c3cae0;
}

.code-card .k { color: var(--accent-2); }
.code-card .s { color: #7ad3a2; }

.terminal .prompt { color: var(--accent-2); font-weight: 600; }
.terminal .ok { color: var(--green); font-weight: 600; }

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

.cta {
    position: relative;
    text-align: center;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    inset: auto -10% -40%;
    height: 480px;
    background: radial-gradient(560px 300px at 50% 100%, rgba(108, 108, 245, 0.22), transparent 70%);
    pointer-events: none;
}

.cta-inner { position: relative; max-width: 46rem; }

.cta p { color: var(--muted); margin-bottom: 2rem; font-size: 1.05rem; }

.terminal { max-width: 620px; margin-inline: auto; }

.fine,
.cta .fine {
    margin-top: 1.6rem;
    font-size: 0.8rem;
    color: #b7c0d6;
}

/* ============ Footer ============ */

.footer {
    border-top: 1px solid var(--line);
    background: var(--bg-alt);
    padding: 3.5rem 0 2.5rem;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.footer-inner > p { color: var(--muted); font-size: 0.95rem; }

.footer-links { display: flex; gap: 1.6rem; }

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
}

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

.footer .fine { margin-top: 1rem; max-width: 40rem; }

/* ============ Reveal on scroll ============ */

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

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

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .shot-frame { transform: none; }
}

/* ============ Responsive ============ */

@media (max-width: 1020px) {
    .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
    .hero-shot { max-width: 720px; }
    .shot-frame { transform: none; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .split { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 680px) {
    .nav { position: relative; gap: 0.75rem; }
    .nav-cta { display: none; }

    .nav-toggle { display: inline-flex; margin-left: auto; }

    .nav-links {
        position: absolute;
        top: calc(100% + 0.6rem);
        right: 0;
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        width: min(19rem, 100%);
        margin-left: 0;
        padding: 0.5rem;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: var(--panel);
        box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-0.5rem);
        transition: opacity 160ms ease, transform 160ms ease;
    }

    .nav-links.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-links a {
        width: 100%;
        padding: 0 0.8rem;
        border-radius: 8px;
    }

    .nav-links a:hover,
    .nav-links a:focus-visible { background: var(--panel-2); }

    .hero { padding-top: 4rem; }
    .hero-facts { gap: 1.6rem; flex-wrap: wrap; }
    .feature-grid, .steps { grid-template-columns: 1fr; }
    .section { padding: 4rem 0; }
    .table-wrap { border-radius: 12px; }
    .compare-table { min-width: 760px; }
    .compare-table th, .compare-table td { padding: 0.85rem 1rem; }
}
