/*
============================================================
   Home page — extends style.css tokens/animations
============================================================
*/

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
}

.home {
    min-height: 100vh;
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
}

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

/* Nav */
.home-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 16px clamp(20px, 5vw, 64px);
    border-bottom: 1px solid var(--border-soft);
    /* Force a dedicated compositor layer + real stacking context so mobile
       browsers can't leave a stale/ghost paint of this layer behind after
       a pinch-zoom gesture recalculates layers. */
    isolation: isolate;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;
}

.home-nav::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* Reading progress bar, pinned directly beneath the sticky nav */
.home-progress {
    position: sticky;
    top: var(--nav-h, 0px);
    left: 0;
    right: 0;
    height: 3px;
    background: var(--border-soft);
    z-index: 19;
}

.home-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-dim), var(--accent), var(--accent-2));
    transition: width 0.1s linear;
}

/* Back to top */
.home-back-top {
    position: fixed;
    right: clamp(16px, 3vw, 32px);
    bottom: clamp(16px, 3vw, 32px);
    z-index: 18;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text);
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.15s ease, color 0.15s ease;
}

.home-back-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.home-back-top:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.home-back-top svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 640px) {
    .home-back-top {
        width: 40px;
        height: 40px;
    }
}

.home-nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-nav-brand:hover .home-nav-name {
    color: var(--text);
}

.home-nav-login .btn-label {
    display: none;
}

.home-nav-login svg {
    width: 15px;
    height: 15px;
}

.home-nav-brand .mark {
    --mark-size: 30px;
    color: var(--accent);
}

.home-nav-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 17px;
}

.home-nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: 12px;
    font-size: 14px;
    color: var(--text-dim);
}

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

.home-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.home-nav-actions #theme-toggle,
.home-nav-login {
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    flex: 0 0 auto;
}

.home-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-card);
    cursor: pointer;
}

.home-burger span {
    display: block;
    width: 16px;
    height: 2px;
    margin: 0 auto;
    background: var(--text);
    border-radius: 2px;
}

.home-nav-mobile {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 10px clamp(20px, 5vw, 64px) 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--border-soft);
    /* Pin directly under the sticky header at its current height, so
       opening the menu after scrolling shows it where you are instead
       of back at its original position near the top of the document. */
    position: sticky;
    top: var(--nav-h, 64px);
    z-index: 19;
    max-height: calc(100vh - var(--nav-h, 64px));
    overflow-y: auto;
}

.home-nav-mobile a {
    padding: 10px 4px;
    font-size: 14.5px;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border-soft);
}

.home-nav-mobile a:last-child {
    border-bottom: none;
    margin-top: 8px;
}

.home-nav-mobile.is-open {
    display: flex;
}

@media (max-width: 1100px) and (min-width: 861px) {
    .home-nav {
        gap: 16px;
        padding: 14px clamp(16px, 4vw, 40px);
    }

    .home-nav-links {
        gap: 18px;
        margin-left: 6px;
    }
}

@media (max-width: 860px) {

    .home-nav-links,
    .home-nav-actions .home-btn {
        display: none;
    }

    .home-burger {
        display: flex;
    }
}

/* Buttons */
.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-family: var(--font);
    border-radius: var(--radius-sm);
    padding: 10px 18px;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.1s ease, filter 0.2s ease;
    border: 1px solid transparent;
    white-space: nowrap;
}

.home-btn svg {
    width: 16px;
    height: 16px;
}

.home-btn:active {
    transform: scale(0.98);
}

.home-btn-primary,
body.theme-light .home-btn-primary,
body.theme-dark .home-btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff !important;
    box-shadow: 0 8px 24px -10px color-mix(in srgb, var(--accent) 65%, transparent);
}

.home-btn-primary:hover {
    filter: brightness(1.06);
}

.home-btn-ghost {
    background: var(--bg-card);
    color: var(--text);
    border-color: var(--border);
}

.home-btn-ghost:hover {
    background: var(--bg-card-hover);
}

.home-btn-sm {
    padding: 8px 14px;
    font-size: 13px;
}

.home-btn-lg {
    padding: 13px 24px;
    font-size: 15px;
}

/* Hero */
.home-hero {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
    gap: clamp(24px, 5vw, 64px);
    max-width: 1240px;
    margin: 0 auto;
    padding: clamp(48px, 8vh, 96px) clamp(20px, 5vw, 64px) clamp(64px, 10vh, 120px);
}

.home-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.3px;
    color: var(--text-dim);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 14px;
    margin-bottom: 20px;
}

.home-eyebrow-static {
    font-family: var(--font-mono);
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    border-color: color-mix(in srgb, var(--accent) 30%, transparent);
    text-transform: uppercase;
}

.home-eyebrow .live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 8px var(--ok);
    animation: pulse 1.6s infinite;
}

.home-hero-copy h1 {
    font-family: var(--font-display);
    font-size: clamp(34px, 5.2vw, 58px);
    line-height: 1.08;
    margin: 0 0 20px;
}

.home-hero-copy>p {
    color: var(--text-dim);
    font-size: clamp(15px, 1.6vw, 17px);
    line-height: 1.65;
    max-width: 50ch;
    margin: 0 0 32px;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 40px;
}

.home-hero-features {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
}

.home-hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
    min-height: 340px;
}

.home-hero-visual .gate-radar {
    width: clamp(220px, 26vw, 380px);
}

.home-hero-radar {
    opacity: 0.55;
}

/* Hero product mockup */
.home-mockup {
    position: absolute;
    z-index: 2;
    top: 8%;
    left: 50%;
    transform: translateX(-58%);
    width: min(300px, 78%);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card), 0 30px 60px -24px rgba(0, 0, 0, 0.5);
    padding: 14px;
    animation: rise 0.6s ease both;
    isolation: isolate;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.home-mockup-bar {
    display: flex;
    gap: 5px;
    margin-bottom: 12px;
}

.home-mockup-bar span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
}

.home-mockup-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.home-mockup-stat {
    background: var(--bg-elevated);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
}

.home-mockup-stat-label {
    display: block;
    font-size: 9.5px;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}

.home-mockup-stat-value {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    color: var(--accent);
}

.home-mockup-feed {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.home-mockup-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    padding: 7px 9px;
}

.home-mockup-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex: 0 0 auto;
}

.home-mockup-dot-ok {
    background: var(--ok);
    box-shadow: 0 0 6px var(--ok);
}

.home-mockup-dot-bad {
    background: var(--danger);
    box-shadow: 0 0 6px var(--danger);
}

.home-mockup-target {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-mockup-verdict {
    flex: 0 0 auto;
    font-size: 9.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
}

.home-mockup-verdict-ok {
    color: var(--ok);
    background: color-mix(in srgb, var(--ok) 14%, transparent);
}

.home-mockup-verdict-bad {
    color: var(--danger);
    background: color-mix(in srgb, var(--danger) 14%, transparent);
}

@media (max-width: 860px) {
    .home-hero-visual {
        min-height: 300px;
    }

    .home-mockup {
        transform: translateX(-50%);
        top: 0;
    }
}

@media (max-width: 860px) {
    .home-hero {
        grid-template-columns: 1fr;
    }

    .home-hero-visual {
        order: -1;
    }

    .home-hero-visual .gate-radar {
        width: min(70vw, 280px);
    }
}

/* Ticker */
.home-ticker {
    overflow: hidden;
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
    background: var(--bg-elevated);
    padding: 16px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.home-ticker-track {
    display: flex;
    width: max-content;
    animation: ticker-scroll 28s linear infinite;
}

.home-ticker-track:hover {
    animation-play-state: paused;
}

.home-ticker-group {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    white-space: nowrap;
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.2px;
    color: var(--text-dim);
    padding-right: 28px;
}

.home-ticker-group span:not(.home-ticker-dot) {
    padding: 0 14px;
}

.home-ticker-dot {
    color: var(--accent);
}

@keyframes ticker-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-ticker-track {
        animation: none;
    }
}

/* Sections */
.home-section {
    max-width: 1240px;
    margin: 0 auto;
    padding: clamp(56px, 9vh, 100px) clamp(20px, 5vw, 64px);
}

.home-section-alt {
    background: var(--bg-elevated);
    max-width: none;
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
}

.home-section-alt>* {
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
}

.home-section-head {
    max-width: 640px;
    margin: 0 auto 44px;
    text-align: center;
}

.home-section-head h2 {
    font-family: var(--font-display);
    font-size: clamp(26px, 3.4vw, 38px);
    line-height: 1.18;
    margin: 14px 0 12px;
}

.home-section-head p {
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* Feature grid */
.home-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.home-feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.home-feature-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
}

.home-feature-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    color: var(--accent);
    margin-bottom: 16px;
}

.home-feature-icon svg {
    width: 20px;
    height: 20px;
}

.home-feature-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px;
}

.home-feature-card p {
    color: var(--text-dim);
    font-size: 13.5px;
    line-height: 1.55;
    margin: 0;
}

.home-feature-tag {
    display: inline-block;
    margin-top: 14px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
    border-radius: 999px;
    padding: 3px 10px;
}

@media (max-width: 1024px) and (min-width: 861px) {
    .home-feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 860px) {
    .home-feature-grid {
        grid-template-columns: 1fr;
    }
}

/* How it works */
/* How it works: connected nodes */
.home-steps-nodes {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 620px;
    margin: 0 auto 8px;
}

.home-steps-node {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-dim);
}

.home-steps-node svg {
    width: 26px;
    height: 26px;
}

.home-steps-node-active {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    border-color: transparent;
    animation: node-pulse 2.4s ease-in-out infinite;
}

.home-steps-node-active svg {
    width: 32px;
    height: 32px;
}

@keyframes node-pulse {

    0%,
    100% {
        box-shadow: 0 12px 32px -12px color-mix(in srgb, var(--accent) 60%, transparent), 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent);
    }

    50% {
        box-shadow: 0 12px 32px -12px color-mix(in srgb, var(--accent) 60%, transparent), 0 0 0 10px color-mix(in srgb, var(--accent) 0%, transparent);
    }
}

.home-steps-line {
    flex: 1 1 auto;
    height: 2px;
    margin: 0 6px;
    min-width: 40px;
    background-image: linear-gradient(90deg, color-mix(in srgb, var(--accent) 55%, transparent) 0 6px, transparent 6px 18px);
    background-size: 18px 2px;
    background-repeat: repeat-x;
    animation: line-flow 1.4s linear infinite;
}

@keyframes line-flow {
    to {
        background-position: 18px 0;
    }
}

@media (max-width: 640px) {
    .home-steps-nodes {
        display: none;
    }
}

/* How it works: step cards */
.home-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 40px;
}

.home-step {
    position: relative;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 22px;
}

.home-step-active {
    border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
}

.home-step-active h3 {
    color: var(--accent);
}

.home-step-label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    border-radius: 999px;
    padding: 4px 12px;
    margin-bottom: 14px;
}

.home-step h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px;
}

.home-step p {
    color: var(--text-dim);
    font-size: 13.5px;
    line-height: 1.55;
    margin: 0;
}

@media (max-width: 1024px) and (min-width: 861px) {
    .home-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 860px) {
    .home-steps {
        grid-template-columns: 1fr;
    }
}

/* Final CTA */
.home-cta {
    max-width: 1240px;
    margin: 0 auto;
    padding: clamp(56px, 9vh, 100px) clamp(20px, 5vw, 64px);
}

.home-cta-card {
    text-align: center;
    background:
        radial-gradient(600px 280px at 50% -20%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 65%),
        var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(40px, 6vw, 64px) 24px;
}

.home-cta-card h2 {
    font-family: var(--font-display);
    font-size: clamp(24px, 3.2vw, 34px);
    margin: 0 0 10px;
}

.home-cta-card p {
    color: var(--text-dim);
    font-size: 15px;
    margin: 0 0 28px;
}

/* Built different (trust list) */
.home-trust-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 40px;
}

.home-trust-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.home-trust-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    color: var(--accent);
}

.home-trust-icon svg {
    width: 20px;
    height: 20px;
}

.home-trust-item h3 {
    font-size: 15.5px;
    font-weight: 700;
    margin: 0 0 6px;
}

.home-trust-item p {
    color: var(--text-dim);
    font-size: 13.5px;
    line-height: 1.55;
    margin: 0;
}

@media (max-width: 860px) {
    .home-trust-list {
        grid-template-columns: 1fr;
    }
}

/* Get in touch */
.home-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.home-contact-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.home-contact-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
}

.home-contact-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    color: var(--accent);
}

.home-contact-icon svg {
    width: 20px;
    height: 20px;
}

.home-contact-card h3 {
    font-size: 15.5px;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--text);
}

.home-contact-card p {
    color: var(--text-dim);
    font-size: 13.5px;
    line-height: 1.55;
    margin: 0;
}

@media (max-width: 860px) {
    .home-contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Scroll reveal */
.home-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.home-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .home-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Footer */
.home-foot {
    max-width: 1240px;
    margin: 0 auto;
    padding: 56px clamp(20px, 5vw, 64px) 40px;
    border-top: 1px solid var(--border-soft);
}

.home-foot-top {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 0.8fr 0.8fr;
    gap: 32px;
    padding-bottom: 36px;
}

.home-foot-brand-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 34ch;
}

.home-foot-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    color: var(--text);
}

.home-foot-brand .mark {
    --mark-size: 22px;
    color: var(--accent);
}

.home-foot-tagline {
    margin: 0;
    color: var(--text-dim);
    font-size: 13.5px;
    line-height: 1.6;
}

.home-foot-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.home-foot-col h3 {
    margin: 0 0 2px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--text-faint);
}

.home-foot-col a {
    font-size: 13.5px;
    color: var(--text-dim);
    width: fit-content;
}

.home-foot-col a:hover {
    color: var(--text);
}

.home-foot-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 24px;
    border-top: 1px solid var(--border-soft);
}

.home-foot-copy {
    font-size: 12.5px;
    color: var(--text-faint);
}

.home-foot-links {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--text-dim);
}

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

.home-foot-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.3px;
    color: var(--text-faint);
}

.home-foot-meta .live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 8px var(--ok);
    animation: pulse 1.6s infinite;
}

@media (max-width: 900px) {
    .home-foot-top {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 32px;
    }

    .home-foot-brand-col {
        grid-column: 1 / -1;
        max-width: 46ch;
    }
}

@media (max-width: 640px) {
    .home-foot {
        padding-top: 40px;
    }

    .home-foot-top {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .home-foot-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .home-foot-links {
        flex-wrap: wrap;
        gap: 14px;
    }
}

@media (max-width: 480px) {
    .home-foot {
        padding: 32px 16px 28px;
    }

    .home-foot-top {
        padding-bottom: 24px;
        gap: 24px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .home-nav {
        gap: 12px;
        padding: 12px 16px;
    }

    .home-nav-name {
        font-size: 15px;
    }

    .home-hero {
        padding: 32px 16px 48px;
        gap: 28px;
    }

    .home-hero-visual {
        min-height: 240px;
    }

    .home-mockup {
        width: min(260px, 82%);
        padding: 12px;
    }

    .home-hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-bottom: 28px;
    }

    .home-hero-actions .home-btn {
        width: 100%;
    }

    .home-hero-features {
        gap: 14px;
    }

    .home-section {
        padding: 40px 16px;
    }

    .home-section-head {
        margin-bottom: 32px;
    }

    .home-feature-card,
    .home-contact-card {
        padding: 18px;
    }

    .home-step {
        padding: 22px 16px;
    }

    .home-cta {
        padding: 40px 16px;
    }

    .home-cta-card {
        padding: 32px 18px;
    }

    .home-cta-card .home-btn-lg {
        width: 100%;
    }

    .home-trust-list {
        gap: 22px;
    }
}

/* Skip-to-content link — visually hidden until focused via keyboard */
.home-skip-link {
    position: fixed;
    top: -60px;
    left: 16px;
    z-index: 1000;
    background: var(--accent);
    color: var(--accent-ink);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14px;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: top 0.15s ease;
}

.home-skip-link:focus {
    top: 16px;
}

/* 404 page */
.home-404 {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
    padding: clamp(72px, 12vh, 140px) 24px clamp(56px, 10vh, 100px);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 50vh;
}

.home-404-radar {
    width: 96px;
    height: 96px;
    color: var(--accent);
    margin-bottom: 28px;
    opacity: 0.85;
}

.home-404-radar svg {
    width: 100%;
    height: 100%;
}

.home-404 h1 {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text);
    margin: 0 0 14px;
}

.home-404>p {
    color: var(--text-dim);
    font-size: 16px;
    line-height: 1.6;
    max-width: 460px;
    margin: 0 0 32px;
}

.home-404-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 640px) {
    .home-404-actions {
        flex-direction: column;
        width: 100%;
    }

    .home-404-actions .home-btn {
        width: 100%;
    }
}