/* SpidersExpress public site
   Wordmark in the logo is a heavy geometric sans. Montserrat is the closest match. */

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

:root {
    --crimson: #A90A1E;
    --crimson-dark: #7e0716;
    --ink: #111111;
    --white: #ffffff;
    --muted: #5c5c5c;
    --line: #e7e7e7;
    --paper: #f6f6f6;
    --primary-color: #A90A1E;
    --primary-dark: #7e0716;
    --brand-red: #A90A1E;
    --brand-black: #111111;
    --text-primary: #111111;
    --text-secondary: #5c5c5c;
    --bg-light: #f6f6f6;
    --bg-white: #ffffff;
    --border-color: #e7e7e7;
    --shadow: 0 1px 2px rgba(17, 17, 17, 0.06);
    --shadow-lg: 0 18px 40px -24px rgba(17, 17, 17, 0.45);
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.25rem;
    --transition: 0.2s ease;
    --glow-primary: 0 0 0 3px rgba(169, 10, 30, 0.18);
    --font: "Montserrat", "Segoe UI", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    line-height: 1.6;
    color: var(--ink);
    background: var(--white);
    font-feature-settings: "kern" 1, "liga" 1;
}

img {
    max-width: 100%;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.spider {
    display: inline-block;
    width: 1.05rem;
    height: 1.05rem;
    flex: none;
    background-color: currentColor;
    -webkit-mask: url("/web/spider.svg?v=20261126o") center / contain no-repeat;
    mask: url("/web/spider.svg?v=20261126o") center / contain no-repeat;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #000000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar {
    padding: 0.7rem 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.nav-brand-link {
    display: flex;
    align-items: center;
}

.brand-logo {
    height: 58px;
    width: auto;
    display: block;
    background: #ffffff;
    border-radius: 10px;
    padding: 4px 8px;
}

.logo-plate {
    display: inline-flex;
    align-items: center;
    background: var(--white);
    border-radius: 12px;
    padding: 4px 8px;
    line-height: 0;
}

.logo-plate img,
.nav-side-logo img {
    height: 48px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0.35rem;
}

.nav-link {
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    transition: background var(--transition), color var(--transition);
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.nav-link-login {
    background: var(--crimson);
    color: var(--white) !important;
    margin-left: 0.35rem;
}

.nav-link-login:hover {
    background: var(--crimson-dark);
    color: var(--white) !important;
}

.nav-link:focus-visible,
.nav-brand-link:focus-visible,
.btn:focus-visible {
    outline: none;
    box-shadow: var(--glow-primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: transparent;
    cursor: pointer;
    border-radius: 12px;
}

.nav-toggle-bar {
    display: block;
    width: 18px;
    height: 2px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 1px;
}

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(17, 17, 17, 0.45);
    z-index: 199;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.nav-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.nav-side {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 88vw);
    height: 100vh;
    background: var(--white);
    z-index: 200;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    padding: 1.25rem 0;
}

.nav-side.is-open {
    transform: translateX(0);
}

.nav-side-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem 1rem;
    border-bottom: 1px solid var(--line);
}

.nav-close {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--ink);
}

.nav-side-menu {
    list-style: none;
    padding: 0.75rem;
}

.nav-side-link {
    display: block;
    padding: 0.9rem 0.85rem;
    text-decoration: none;
    color: var(--ink);
    font-weight: 600;
    border-radius: 12px;
}

.nav-side-link.active,
.nav-side-link:hover {
    background: var(--paper);
}

.nav-side-link-login {
    margin-top: 0.5rem;
    background: var(--crimson);
    color: var(--white);
    text-align: center;
}

.nav-side-link-login:hover {
    background: var(--crimson-dark);
    color: var(--white);
}

/* Home hero */
.page-home .hero {
    padding: 4.5rem 0 3.5rem;
    background:
        radial-gradient(ellipse 50% 80% at 100% 0%, rgba(169, 10, 30, 0.08), transparent 55%),
        var(--white);
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1rem;
    color: var(--crimson);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-copy h1,
.hero-title {
    font-size: clamp(2.4rem, 4.6vw, 4.1rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    font-weight: 800;
    color: var(--ink);
}

.lede,
.hero-subtitle {
    margin-top: 1.15rem;
    max-width: 38rem;
    font-size: 1.08rem;
    font-weight: 500;
    color: var(--muted);
}

.hero-actions,
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.hero-card {
    background: var(--ink);
    color: var(--white);
    border-radius: 28px;
    padding: 1.5rem 1.5rem 1.25rem;
    box-shadow: var(--shadow-lg);
}

.hero-card .logo-plate {
    margin-bottom: 1.25rem;
}

.hero-points {
    list-style: none;
    display: grid;
    gap: 0.75rem;
}

.hero-points li {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.85rem 0.95rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-points strong {
    font-size: 0.95rem;
    font-weight: 700;
}

.hero-points span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Inner page hero */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 28%, rgba(255, 255, 255, 0.4) 0 1px, transparent 1.2px),
        radial-gradient(circle at 22% 70%, rgba(255, 255, 255, 0.22) 0 1px, transparent 1.2px),
        radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.32) 0 1px, transparent 1.2px),
        radial-gradient(circle at 90% 64%, rgba(169, 10, 30, 0.5) 0 1px, transparent 1.2px),
        radial-gradient(460px 280px at 88% 40%, rgba(169, 10, 30, 0.28), transparent 70%),
        #111111;
    color: var(--white);
    padding: 6.5rem 0 5.5rem;
}

.hero .hero-title,
.hero .hero-subtitle,
.hero .lede {
    color: var(--white);
}

.hero .hero-subtitle,
.hero .lede {
    color: rgba(255, 255, 255, 0.78);
}

.hero .eyebrow {
    color: var(--crimson);
}

.hero-small {
    padding: 6rem 0 5rem;
}

.hero-small .hero-title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.page-home .hero .eyebrow {
    color: var(--crimson);
}

.page-home .hero .hero-title,
.page-home .hero .lede {
    color: var(--ink);
}

.page-home .hero .lede {
    color: var(--muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.35rem;
    border-radius: 999px;
    text-decoration: none;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform var(--transition), background var(--transition), color var(--transition);
}

.btn-primary {
    background: var(--crimson);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--crimson-dark);
    transform: translateY(-1px);
}

.btn-ghost,
.btn-secondary {
    background: transparent;
    color: var(--ink);
    border-color: #cfcfcf;
}

.page-home .btn-ghost:hover,
.btn-secondary:hover {
    border-color: var(--ink);
    transform: translateY(-1px);
}

.hero .btn-secondary {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.55);
}

.hero .btn-secondary:hover {
    color: #ffffff;
    border-color: #ffffff;
}

.btn-large {
    padding: 1rem 1.6rem;
    font-size: 1rem;
}

/* Metrics */
.metrics {
    background: var(--ink);
    color: var(--white);
}

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

.metrics-grid article {
    padding: 1.6rem 0.25rem;
}

.metrics-grid article + article {
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    padding-left: 1.5rem;
}

.metrics-grid strong {
    display: block;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
}

.metrics-grid span {
    display: block;
    margin-top: 0.25rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Services */
.features {
    padding: 6.5rem 0;
    background: var(--paper);
}

.section-kicker {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--crimson);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    letter-spacing: -0.04em;
    line-height: 1.1;
    font-weight: 800;
}

.section-subtitle {
    margin-top: 0.75rem;
    max-width: 38rem;
    color: var(--muted);
    font-weight: 500;
}

.section-head {
    margin-bottom: 2rem;
}

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

.feature-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 1.35rem 1.3rem 1.4rem;
    transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.feature-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    background: rgba(169, 10, 30, 0.08);
    color: var(--crimson);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.4rem;
}

.feature-card p {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 500;
}

/* Steps */
.steps {
    padding: 4.5rem 0;
    background: var(--white);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.step {
    padding-top: 1rem;
    border-top: 2px solid var(--ink);
}

.step span {
    display: block;
    color: var(--crimson);
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    margin-bottom: 0.55rem;
}

.step h3 {
    font-size: 1.02rem;
    margin-bottom: 0.35rem;
}

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

.process-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* About */
.about {
    padding: 6.5rem 0;
    background: #111111;
    color: #ffffff;
}

.about-panel {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 4rem;
    align-items: start;
}

.about h2 {
    font-size: clamp(1.9rem, 3.4vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
    font-weight: 800;
}

.about-text {
    color: rgba(255, 255, 255, 0.72);
    font-weight: 500;
    font-size: 1.08rem;
    margin-top: 0;
}

.about-text + .about-text {
    margin-top: 0.9rem;
}

/* CTA */
.cta {
    background: #ffffff;
    color: #111111;
    padding: 6.5rem 0;
}

.cta-content {
    max-width: 640px;
}

.cta h2 {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.cta h2 .spider {
    width: 1.6rem;
    height: 1.6rem;
    color: #A90A1E;
}

.cta p {
    margin: 0.85rem 0 1.4rem;
    color: #5c5c5c;
    font-weight: 500;
}

/* Process list on developers */
.delivery-process {
    max-width: 760px;
}

.delivery-process ol {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--muted);
    font-weight: 500;
}

.delivery-process li + li {
    margin-top: 0.85rem;
}

.delivery-process li strong {
    color: var(--ink);
}

.delivery-process p {
    margin-top: 1.25rem;
    color: var(--muted);
    font-weight: 500;
}

.center-action {
    margin-top: 2rem;
}

/* Footer */
.footer {
    background: var(--ink);
    color: var(--white);
    padding: 3rem 0 1.4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 2rem;
}

.footer-brand p {
    margin-top: 0.9rem;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 500;
    max-width: 22rem;
}

.footer-logo {
    height: 64px;
    width: auto;
}

.footer-section h4 {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
}

.footer-section li + li {
    margin-top: 0.45rem;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
    font-weight: 500;
}

@media (max-width: 900px) {
    .hero-layout,
    .about-panel,
    .features-grid,
    .process-grid,
    .steps-grid,
    .metrics-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .hero,
    .hero-small,
    .features,
    .about,
    .cta {
        padding: 4.5rem 0;
    }

    .metrics-grid article + article {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        padding-top: 1.1rem;
    }

    .page-home .hero {
        padding-top: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
    }

    .nav-overlay {
        display: block;
    }

    .brand-logo {
        height: 48px;
    }

    .hero-title,
    .hero-small .hero-title,
    .hero-copy h1 {
        font-size: 1.65rem;
    }

    .hero .hero-subtitle,
    .hero .lede {
        font-size: 0.98rem;
    }
}

@media (min-width: 769px) {
    .nav-side,
    .nav-overlay {
        display: none !important;
    }
}

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

    .btn,
    .feature-card {
        transition: none;
    }
}
