* {
    box-sizing: border-box;
}

:root {
    --font-heading: "Manrope", system-ui, sans-serif;
    --font-body: "IBM Plex Mono", "Courier New", monospace;
    --background: #0c1020;
    --surface: #13192e;
    --text: #cbd5e1;
    --heading: #f4f3ff;
    --muted: #a5afc3;
    --violet: #c4b5fd;
    --blue: #a5b4fc;
    --border: #373650;
    color-scheme: dark;
}

html {
    min-height: 100%;
    background:
        radial-gradient(ellipse 40rem 30rem at 15% 0, rgb(124 58 237 / 12%), transparent 75%),
        radial-gradient(ellipse 40rem 35rem at 95% 15rem, rgb(59 130 246 / 8%), transparent 75%),
        var(--background);
}

::selection {
    background: #5b35a0;
    color: #ffffff;
}

body {
    margin: 0;
    color: var(--text);
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    line-height: 1.7;
}

.container {
    width: min(100% - 3rem, 66rem);
    margin-inline: auto;
}

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

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--violet);
    outline-offset: 4px;
}

.skip-link {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 1;
    padding: 0.5rem 1rem;
    background: var(--surface);
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header,
.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.site-header {
    padding-block: 1.5rem;
    border-bottom: 1px solid rgb(196 181 253 / 12%);
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--heading);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.site-header nav,
.site-footer nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.875rem;
}

nav a:hover {
    color: var(--violet);
}

h1,
h2,
h3 {
    color: var(--heading);
    line-height: 1.25;
}

h1 {
    max-width: 52rem;
    margin: 1rem auto 1.5rem;
    font-size: clamp(2rem, 1.2rem + 3.5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.12;
    text-shadow: 0 0 35px rgb(139 92 246 / 15%);
}

h2 {
    margin: 0 0 1.25rem;
    font-size: clamp(1.5rem, 1.1rem + 2vw, 2.25rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    text-align: center;
}

h3 {
    margin: 1.75rem 0 0.75rem;
    color: var(--violet);
    font-size: 1.1875rem;
    font-weight: 600;
    line-height: 1.4;
}

p {
    margin: 0 0 1rem;
}

.eyebrow,
.hero-keywords,
.control-flow,
.visual-caption,
.step-number,
.section-note,
.footer-note {
    font-family: var(--font-body);
}

.eyebrow {
    margin-bottom: 0.75rem;
    color: var(--blue);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-align: center;
}

.hero {
    padding-top: clamp(3rem, 7vw, 5rem);
    text-align: center;
}

.hero-lead {
    max-width: 38rem;
    margin: 0 auto 1.25rem;
    font-size: clamp(1.125rem, 1rem + 0.6vw, 1.25rem);
    line-height: 1.5;
}

.hero-keywords {
    color: var(--violet);
    font-size: 0.8125rem;
}

.hero-description {
    max-width: 39rem;
    margin-inline: auto;
    color: var(--muted);
    font-size: 1rem;
}

.section {
    margin-top: clamp(4rem, 8vw, 6rem);
    scroll-margin-top: 2rem;
}

.prose,
.section-intro {
    max-width: 42rem;
    margin-inline: auto;
}

.section-intro {
    text-align: center;
}

.section-intro p:not(.eyebrow) {
    color: var(--muted);
}

ul {
    margin: 0;
    padding-left: 1.25rem;
}

li + li {
    margin-top: 0.75rem;
}

li::marker {
    color: var(--blue);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin-top: 0.75rem;
    padding: 0.7rem 1.25rem;
    color: #ffffff;
    background: linear-gradient(120deg, #6d28d9, #4338ca);
    border: 1px solid #8b72e8;
    border-radius: 0.5rem;
    box-shadow: 0 0 24px rgb(124 58 237 / 18%);
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.5;
    cursor: pointer;
}

.button--small {
    margin-top: 0;
    padding: 0.55rem 0.9rem;
    font-size: 0.8125rem;
}

.button:hover {
    color: #ffffff;
    border-color: var(--violet);
    box-shadow: 0 0 30px rgb(124 58 237 / 30%);
}

.visual-placeholder {
    min-width: 0;
    aspect-ratio: 4 / 3;
    margin: 0;
    border: 1px solid var(--border);
    border-radius: 0.65rem;
    background: var(--surface);
    box-shadow: 0 0 28px rgb(99 102 241 / 6%);
}

.visual-placeholder--overview {
    aspect-ratio: 1672 / 941;
    margin-top: 3rem;
    border-color: #574578;
    box-shadow: 0 0 40px rgb(124 58 237 / 10%);
}

.visual-placeholder--image {
    overflow: hidden;
}

.visual-placeholder--image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.visual-caption {
    margin-top: 0.75rem;
    color: var(--muted);
    font-size: 0.6875rem;
}

.control-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem 0.65rem;
    margin: 1.75rem 0 2.5rem;
    color: var(--violet);
    font-size: 0.75rem;
    text-align: center;
}

.control-flow span {
    color: var(--muted);
}

.feature-row {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3rem);
    margin-top: 3rem;
}

.feature-row--reverse {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}

.feature-row--reverse .feature-copy {
    grid-column: 2;
    grid-row: 1;
}

.feature-row--reverse figure {
    grid-column: 1;
    grid-row: 1;
}

.feature-copy p {
    margin-bottom: 0;
}

.capability-grid,
.comparison-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
}

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

.feature-heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 2rem;
    height: 2rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    background: rgb(139 92 246 / 10%);
    color: var(--blue);
    box-shadow: 0 0 14px rgb(99 102 241 / 10%);
}

.feature-icon svg {
    width: 1.125rem;
    height: 1.125rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.implementation-timeline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    margin: 2.5rem 0 0;
    padding: 0;
    list-style: none;
}

.implementation-timeline li {
    position: relative;
    margin-top: 0;
    padding-top: 1.5rem;
    border-top: 1px solid #574578;
}

.implementation-timeline li::before {
    position: absolute;
    top: -0.25rem;
    left: 0;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--violet);
    box-shadow: 0 0 12px rgb(139 92 246 / 25%);
    content: "";
}

.step-number {
    color: var(--blue);
    font-size: 0.8125rem;
}

.implementation-timeline h3 {
    margin-top: 0.65rem;
    font-size: 1.0625rem;
}

.implementation-timeline p {
    font-size: 0.9375rem;
}

.section-note {
    margin: 2rem auto 0;
    color: var(--muted);
    font-size: 0.75rem;
    text-align: center;
}

.comparison-panel {
    padding: 1.75rem;
    border: 1px solid #574578;
    border-radius: 0.65rem;
    background: rgb(139 92 246 / 5%);
}

.comparison-panel h3 {
    margin-top: 0;
}

.comparison-panel ul {
    font-size: 0.9375rem;
}

.comparison-panel--muted {
    border-color: var(--border);
    background: rgb(19 25 46 / 50%);
}

.comparison-panel--muted h3 {
    color: var(--text);
}

.market-emphasis {
    margin-top: 1.5rem;
    color: var(--violet);
    font-size: 1.25rem;
    font-weight: 600;
}

.contact-section {
    padding: clamp(1.5rem, 5vw, 3rem);
    border: 1px solid #574578;
    border-radius: 0.75rem;
    background:
        radial-gradient(ellipse at top, rgb(124 58 237 / 10%), transparent 75%),
        var(--surface);
    text-align: center;
}

.contact-section > p:not(.eyebrow) {
    max-width: 38rem;
    margin-inline: auto;
}

.contact-email {
    margin-top: 1rem;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.875rem;
}

.contact-email a:hover {
    color: var(--violet);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.site-footer {
    flex-wrap: wrap;
    margin-top: 4rem;
    padding-block: 2rem;
    border-top: 1px solid var(--border);
}

.site-footer .wordmark {
    font-size: 1.125rem;
}

.site-footer p {
    margin: 0.5rem 0 0;
    color: var(--muted);
    font-size: 0.8125rem;
}

.site-footer .footer-note {
    flex-basis: 100%;
    font-size: 0.6875rem;
}

.footer-address {
    margin-top: 0.75rem;
    color: var(--muted);
    font-size: 0.75rem;
    font-style: normal;
    line-height: 1.6;
}

/* Optional motion experiment: remove this block to return to the static theme. */
@keyframes soft-enter {
    from {
        opacity: 0.6;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .hero .eyebrow,
    .hero h1,
    .hero-lead,
    .visual-placeholder--overview {
        animation: soft-enter 450ms ease-out backwards;
    }

    .hero h1 {
        animation-delay: 60ms;
    }

    .hero-lead {
        animation-delay: 100ms;
    }

    .visual-placeholder--overview {
        animation-delay: 160ms;
    }

    .button {
        transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
    }

    .visual-placeholder {
        transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
    }
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
    .button:hover {
        transform: translateY(-2px);
    }

    .button:active {
        transform: translateY(0);
    }

    .visual-placeholder:hover {
        transform: translateY(-2px);
        border-color: #78639f;
        box-shadow: 0 0 36px rgb(124 58 237 / 14%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .button,
    .visual-placeholder {
        animation: none;
        transition: none;
    }
}
/* End optional motion experiment. */

@media (max-width: 800px) {
    .implementation-timeline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 1.5rem;
    }
}

@media (max-width: 600px) {
    .container {
        width: calc(100% - 2rem);
    }

    .site-header {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .site-header nav {
        width: 100%;
        justify-content: space-between;
        gap: 0.75rem;
        font-size: 0.8125rem;
    }

    .button--small {
        padding: 0.5rem 0.65rem;
        font-size: 0.75rem;
    }

    .hero-keywords {
        font-size: 0.75rem;
    }

    .feature-row,
    .feature-row--reverse,
    .capability-grid,
    .comparison-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .feature-row--reverse .feature-copy,
    .feature-row--reverse figure {
        grid-column: auto;
        grid-row: auto;
    }

    .implementation-timeline {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .implementation-timeline li {
        padding: 0 0 1.75rem 1.5rem;
        border-top: 0;
        border-left: 1px solid #574578;
    }

    .implementation-timeline li::before {
        top: 0.4rem;
        left: -0.25rem;
    }

    .implementation-timeline li:last-child {
        padding-bottom: 0;
        border-left-color: transparent;
    }

    .comparison-panel {
        padding: 1.25rem;
    }

    .site-footer {
        align-items: flex-start;
        gap: 1.25rem;
    }
}
