:root {
    --bg: #eef7fe;
    --bg-soft: #f8fcff;
    --paper: rgba(255, 255, 255, 0.82);
    --paper-strong: #ffffff;
    --text: #17314b;
    --muted: #56718a;
    --line: rgba(23, 49, 75, 0.12);
    --brand: #116bb0;
    --brand-deep: #0c4f86;
    --brand-soft: #2a87cd;
    --accent: #63b53d;
    --accent-deep: #479735;
    --accent-soft: rgba(99, 181, 61, 0.16);
    --shadow: 0 24px 60px rgba(17, 53, 92, 0.12);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --container: 1180px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background:
        radial-gradient(circle at top left, rgba(42, 135, 205, 0.22), transparent 32%),
        radial-gradient(circle at top right, rgba(99, 181, 61, 0.18), transparent 26%),
        linear-gradient(180deg, #f9fdff 0%, #f1f8fd 48%, #edf6fb 100%);
    color: var(--text);
    font-family: "Manrope", "Segoe UI", sans-serif;
    line-height: 1.6;
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

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

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

img {
    max-width: 100%;
    display: block;
}

.site-shell {
    position: relative;
    overflow: clip;
}

.site-shell::before,
.site-shell::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(24px);
}

.site-shell::before {
    top: 8rem;
    right: -8rem;
    width: 20rem;
    height: 20rem;
    background: rgba(17, 107, 176, 0.18);
}

.site-shell::after {
    top: 28rem;
    left: -7rem;
    width: 18rem;
    height: 18rem;
    background: rgba(99, 181, 61, 0.16);
}

.site-header,
.hero,
.logo-ribbon,
.section {
    width: min(calc(100% - 2rem), var(--container));
    margin-inline: auto;
}

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

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

.brand-logo {
    width: min(100%, 20rem);
    height: auto;
    display: block;
}

.brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 0.85rem 0.5rem 0.55rem;
    margin-bottom: 1.1rem;
    border: 1px solid rgba(17, 107, 176, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--brand-deep);
    font-size: 0.9rem;
    font-weight: 700;
}

.brand-pill img,
.hero-badge img {
    width: 2rem;
    height: 2rem;
    border-radius: 0.6rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.45rem 0.75rem 0.45rem 0.45rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: rgba(17, 107, 176, 0.08);
    color: var(--brand-deep);
    font-size: 0.9rem;
    font-weight: 800;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem 1.4rem;
    font-size: 0.96rem;
    color: var(--muted);
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--text);
}

.nav-cta {
    padding: 0.8rem 1.2rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--text);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 2rem;
    align-items: center;
    padding: 4.5rem 0 3rem;
}

.hero-copy,
.hero-panel,
.logo-ribbon,
.section {
    animation: rise-in 680ms ease both;
}

.hero-panel {
    animation-delay: 110ms;
}

.logo-ribbon {
    animation-delay: 180ms;
}

.eyebrow {
    margin: 0 0 1rem;
    color: var(--brand);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin: 0;
    letter-spacing: -0.04em;
    line-height: 1.02;
}

h1,
h2 {
    font-family: "Fraunces", Georgia, serif;
}

h1 {
    max-width: 13ch;
    font-size: clamp(3rem, 6vw, 5.7rem);
}

h2 {
    font-size: clamp(2.2rem, 4vw, 3.6rem);
}

h3 {
    font-size: 1.35rem;
}

p {
    margin: 0;
}

.hero-text,
.section-heading p,
.split-copy p,
.feature-card p,
.timeline-step p,
.faq-item p,
.story-card p,
.contact-panel p,
.hero-card span,
.bullet-stack li {
    color: var(--muted);
}

.hero-text {
    max-width: 62ch;
    margin-top: 1.4rem;
    font-size: 1.08rem;
}

.hero-actions,
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.3rem;
    padding: 0.95rem 1.4rem;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-1px);
}

.button-primary {
    background: linear-gradient(135deg, var(--brand-deep), var(--brand-soft));
    color: #f7fbff;
    box-shadow: 0 16px 36px rgba(17, 107, 176, 0.24);
}

.button-secondary {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.8);
    color: var(--text);
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    padding: 0;
    margin: 1.8rem 0 0;
    list-style: none;
}

.hero-points li {
    padding: 0.8rem 1rem;
    border: 1px solid rgba(17, 107, 176, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--brand-deep);
    font-size: 0.92rem;
    font-weight: 700;
}

.hero-panel {
    display: grid;
    gap: 1rem;
}

.hero-card,
.feature-card,
.story-card,
.faq-item,
.quote-card,
.contact-panel,
.timeline-step,
.split-grid article {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--paper);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.hero-card {
    padding: 1.5rem;
}

.hero-card-primary {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(243, 250, 255, 0.84)),
        linear-gradient(135deg, rgba(17, 107, 176, 0.1), rgba(99, 181, 61, 0.09));
}

.hero-card-secondary {
    transform: translateX(-1.5rem);
}

.panel-label {
    margin-bottom: 1rem;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--brand-soft);
    text-transform: uppercase;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.metric-grid article,
.split-grid article {
    padding: 1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid rgba(17, 107, 176, 0.08);
}

.metric-grid strong,
.split-grid h3 {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 1rem;
}

.bullet-stack {
    margin: 0;
    padding-left: 1.1rem;
}

.bullet-stack li + li {
    margin-top: 0.9rem;
}

.logo-ribbon {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.8rem;
    padding: 1rem 0 2rem;
}

.logo-ribbon span {
    display: inline-flex;
    justify-content: center;
    padding: 0.95rem 1rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    color: var(--brand-deep);
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
}

.section {
    padding: 4rem 0;
}

.section-heading {
    max-width: 48rem;
    margin-bottom: 2rem;
}

.section-heading.narrow {
    max-width: 56rem;
}

.section-heading p {
    margin-top: 1rem;
    font-size: 1.02rem;
}

.story-section {
    padding-top: 3rem;
}

.story-grid,
.faq-grid,
.split-grid,
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.story-card,
.faq-item {
    padding: 1.6rem;
}

.screenshots-section {
    padding-top: 3.2rem;
}

.screenshots-grid {
    align-items: start;
}

.screenshots-grid-four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.screenshots-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.screenshot-card {
    margin: 0;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--paper);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.screenshot-trigger {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    text-align: inherit;
}

.screenshot-card-wide {
    grid-column: span 2;
}

.shot-frame {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(17, 107, 176, 0.1);
    background:
        linear-gradient(180deg, rgba(248, 252, 255, 0.98), rgba(235, 245, 252, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.shot-frame img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 180ms ease;
}

.screenshot-trigger:hover .shot-frame img,
.screenshot-trigger:focus-visible .shot-frame img {
    transform: scale(1.015);
}

.screenshot-trigger:focus-visible {
    outline: 3px solid rgba(17, 107, 176, 0.26);
    outline-offset: 6px;
}

.shot-frame.is-missing {
    min-height: 18rem;
    display: grid;
    place-items: center;
    padding: 2rem;
    background:
        radial-gradient(circle at top right, rgba(99, 181, 61, 0.16), transparent 30%),
        linear-gradient(180deg, rgba(248, 252, 255, 0.98), rgba(232, 243, 251, 0.98));
    text-align: center;
}

.shot-frame.is-missing::after {
    content: attr(data-label) " screenshot";
    color: var(--brand-deep);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.screenshot-card figcaption {
    display: grid;
    gap: 0.35rem;
    padding: 1rem 0.25rem 0.1rem;
}

.screenshot-card figcaption strong {
    font-size: 1.08rem;
}

.screenshot-card figcaption span {
    color: var(--muted);
}

.amlmaster-lightbox {
    background: rgba(10, 26, 44, 0.78);
}

.amlmaster-lightbox .basicLightbox__placeholder {
    width: min(calc(100vw - 2rem), 1400px);
    max-width: 1400px;
}

.amlmaster-lightbox__shell {
    display: grid;
    place-items: center;
    padding: 1rem;
}

.amlmaster-lightbox__image {
    display: block;
    width: 100%;
    max-height: calc(100vh - 4rem);
    object-fit: contain;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

.story-card h3,
.faq-item h3 {
    margin-bottom: 0.8rem;
}

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

.feature-card {
    padding: 1.7rem;
    min-height: 16rem;
}

.feature-kicker {
    margin-bottom: 0.8rem;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.feature-card h3 {
    margin-bottom: 1rem;
}

.text-blue {
    color: var(--brand);
}

.text-green {
    color: var(--accent-deep);
}

.workflow-section {
    position: relative;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
}

.timeline-step {
    padding: 1.4rem;
}

.step-number {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--accent-deep);
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.timeline-step h3 {
    margin-bottom: 0.8rem;
    font-size: 1.15rem;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 1.5rem;
    align-items: start;
}

.split-copy {
    position: sticky;
    top: 1rem;
}

.split-copy p:last-child {
    margin-top: 1rem;
}

.quote-section {
    padding-top: 1rem;
}

.quote-card {
    padding: 2.2rem;
    background:
        radial-gradient(circle at top right, rgba(99, 181, 61, 0.24), transparent 38%),
        linear-gradient(135deg, rgba(12, 79, 134, 0.96), rgba(17, 107, 176, 0.9));
    color: #f7fbff;
}

.quote-mark {
    font-family: "Fraunces", Georgia, serif;
    font-size: 4rem;
    line-height: 1;
    opacity: 0.65;
}

blockquote {
    margin: 0;
    max-width: 24ch;
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.quote-note {
    margin-top: 1rem;
    color: rgba(247, 251, 255, 0.82);
}

.contact-panel {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    align-items: flex-end;
    padding: 2rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(242, 249, 255, 0.92)),
        var(--accent-soft);
}

.contact-panel h2,
.contact-panel p {
    max-width: 36rem;
}

.contact-panel p {
    margin-top: 1rem;
}

@media (max-width: 1120px) {
    .hero,
    .split-section,
    .timeline,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .hero-card-secondary {
        transform: none;
    }

    .split-copy {
        position: static;
    }

    .timeline {
        gap: 0.9rem;
    }
}

@media (max-width: 860px) {
    .logo-ribbon,
    .story-grid,
    .faq-grid,
    .split-grid,
    .metric-grid,
    .screenshots-grid {
        grid-template-columns: 1fr;
    }

    .site-header,
    .contact-panel {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-nav {
        justify-content: flex-start;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .screenshot-card-wide {
        grid-column: auto;
    }

    h1 {
        max-width: 13ch;
    }

    .brand-logo {
        width: min(100%, 15rem);
    }
}

@media (max-width: 560px) {
    .site-header,
    .hero,
    .logo-ribbon,
    .section {
        width: min(calc(100% - 1.25rem), var(--container));
    }

    .hero {
        padding-top: 3rem;
    }

    .hero-card,
    .feature-card,
    .story-card,
    .faq-item,
    .quote-card,
    .contact-panel,
    .timeline-step,
    .split-grid article {
        border-radius: 20px;
    }

    .button,
    .nav-cta,
    .hero-points li,
    .logo-ribbon span {
        width: 100%;
    }

    .hero-actions,
    .contact-actions {
        width: 100%;
    }
}
