:root {
    color-scheme: light;
    --bg: #f2eadf;
    --bg-strong: #eadbcb;
    --surface: rgba(255, 251, 246, 0.76);
    --surface-strong: rgba(255, 248, 239, 0.92);
    --ink: #193635;
    --ink-soft: #4c625f;
    --line: rgba(25, 54, 53, 0.12);
    --accent: #0f3f3f;
    --accent-bright: #1f7a73;
    --accent-soft: #dff2ec;
    --highlight: #ffbe55;
    --highlight-soft: rgba(255, 190, 85, 0.18);
    --shadow: 0 24px 80px rgba(22, 52, 52, 0.12);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --content-width: 1160px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Space Grotesk", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(255, 190, 85, 0.34), transparent 30%),
        radial-gradient(circle at 85% 12%, rgba(31, 122, 115, 0.18), transparent 28%),
        linear-gradient(180deg, #f6efe6 0%, #f2eadf 48%, #ece3d8 100%);
    line-height: 1.6;
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
}

.ambient {
    position: fixed;
    inset: auto;
    width: 30rem;
    height: 30rem;
    border-radius: 50%;
    filter: blur(36px);
    opacity: 0.45;
    pointer-events: none;
    z-index: 0;
    animation: drift 14s ease-in-out infinite alternate;
}

.ambient-left {
    top: 8rem;
    left: -8rem;
    background: rgba(255, 190, 85, 0.28);
}

.ambient-right {
    right: -10rem;
    top: 18rem;
    background: rgba(31, 122, 115, 0.16);
    animation-duration: 18s;
}

.site-header,
.section-shell,
.site-footer {
    position: relative;
    z-index: 1;
    width: min(calc(100% - 2rem), var(--content-width));
    margin-inline: auto;
}

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

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

.brand-mark {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 16px;
    background: linear-gradient(145deg, var(--accent), #134f4f);
    color: #fff6e8;
    font-weight: 700;
    box-shadow: 0 16px 30px rgba(15, 63, 63, 0.25);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-copy strong {
    font-size: 0.98rem;
}

.brand-copy span {
    color: var(--ink-soft);
    font-size: 0.82rem;
}

.site-nav {
    display: flex;
    gap: 1.4rem;
    padding: 0.85rem 1.2rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 250, 244, 0.68);
    backdrop-filter: blur(16px);
}

.site-nav a,
.nav-cta,
.button,
.repository-group a,
.feature-card a,
.deploy-card a,
.route-grid a,
.footer-links a {
    transition: transform 180ms ease, color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.site-nav a:hover,
.repository-group a:hover,
.feature-card a:hover,
.deploy-card a:hover,
.route-grid a:hover,
.footer-links a:hover {
    color: var(--accent-bright);
}

.nav-cta,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 2.9rem;
    padding: 0.8rem 1.15rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
}

.nav-cta {
    background: var(--accent);
    color: #fff8ee;
}

.nav-cta:hover,
.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    background: var(--accent);
    color: #fff8ee;
    box-shadow: 0 18px 38px rgba(15, 63, 63, 0.18);
}

.button-secondary {
    background: rgba(255, 248, 239, 0.88);
    border-color: rgba(15, 63, 63, 0.12);
}

.button-ghost {
    border-color: rgba(15, 63, 63, 0.16);
    background: transparent;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: 1.5rem;
    align-items: stretch;
    padding: 4rem 0 1.8rem;
}

.hero-copy,
.hero-panel,
.issue-section,
.feature-card,
.repository-group,
.deploy-card {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.hero-copy,
.hero-panel {
    padding: clamp(1.6rem, 2vw, 2.3rem);
    border-radius: var(--radius-xl);
}

.eyebrow {
    margin: 0 0 0.9rem;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-bright);
}

h1,
h2,
h3 {
    margin: 0;
    font-family: "Fraunces", serif;
    line-height: 1.02;
}

h1 {
    max-width: 14ch;
    font-size: clamp(2.8rem, 6vw, 4.9rem);
}

h1 span {
    display: block;
}

h2 {
    max-width: 15ch;
    font-size: clamp(2.1rem, 4vw, 3.3rem);
}

h3 {
    font-size: 1.6rem;
}

.lead,
.section-heading p,
.issue-section p,
.deploy-card p,
.feature-card p,
.repository-group span,
.signal-copy,
.hero-note,
.site-footer p {
    color: var(--ink-soft);
}

.lead {
    max-width: 58ch;
    margin: 1.2rem 0 0;
    font-size: 1.05rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.7rem;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
}

.hero-metrics li {
    padding: 1rem 1rem 0.9rem;
    border-radius: var(--radius-md);
    background: rgba(255, 248, 239, 0.76);
    border: 1px solid rgba(15, 63, 63, 0.1);
}

.hero-metrics strong {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
}

.hero-metrics span {
    color: var(--ink-soft);
    font-size: 0.93rem;
}

.hero-panel {
    display: grid;
    gap: 1rem;
    align-content: start;
    background:
        linear-gradient(180deg, rgba(17, 64, 63, 0.95) 0%, rgba(16, 54, 55, 0.92) 100%),
        radial-gradient(circle at top right, rgba(255, 190, 85, 0.18), transparent 30%);
    color: #fef5e8;
}

.signal-card,
.route-grid article,
.hero-note {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
}

.signal-card,
.hero-note {
    padding: 1rem 1.1rem;
    border-radius: var(--radius-md);
}

.signal-label {
    margin: 0;
    color: #ffd88a;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
}

.signal-copy {
    margin: 0.55rem 0 0;
    color: rgba(254, 245, 232, 0.78);
}

.route-grid {
    display: grid;
    gap: 0.9rem;
}

.route-grid article {
    padding: 1rem 1.1rem;
    border-radius: var(--radius-md);
}

.route-grid p {
    margin: 0;
    color: rgba(254, 245, 232, 0.64);
    font-size: 0.88rem;
}

.route-grid a {
    display: inline-block;
    margin-top: 0.25rem;
    color: #fff8e7;
    font-size: 1.1rem;
    word-break: break-word;
}

.hero-note {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: rgba(254, 245, 232, 0.82);
}

.pulse {
    width: 0.72rem;
    height: 0.72rem;
    border-radius: 50%;
    flex: none;
    background: #ffd88a;
    box-shadow: 0 0 0 0 rgba(255, 216, 138, 0.5);
    animation: pulse 1.9s infinite;
}

.section-shell {
    padding: 2rem 0;
}

.section-heading {
    display: grid;
    gap: 0.9rem;
    max-width: 48rem;
    margin-bottom: 1.4rem;
}

.section-heading p {
    margin: 0;
}

.feature-grid,
.repository-grid,
.deploy-grid {
    display: grid;
    gap: 1rem;
}

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

.feature-card,
.repository-group,
.deploy-card {
    padding: 1.4rem;
    border-radius: var(--radius-lg);
}

.feature-card p,
.deploy-card p {
    margin: 0.85rem 0 1rem;
}

.feature-card a,
.deploy-card a {
    color: var(--accent);
    font-weight: 600;
}

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

.repository-group ul {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.repository-group li + li {
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--line);
}

.repository-group a {
    display: inline-flex;
    font-weight: 700;
    color: var(--accent);
}

.repository-group span {
    display: block;
    margin-top: 0.2rem;
}

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

.issue-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.6rem;
    border-radius: var(--radius-xl);
    margin-bottom: 3rem;
}

.issue-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: flex-end;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 0 2.4rem;
}

.site-footer strong {
    display: inline-block;
    margin-bottom: 0.35rem;
}

.site-footer p {
    margin: 0;
    max-width: 40rem;
}

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

.reveal {
    animation: rise 700ms ease both;
}

.reveal:nth-child(2) {
    animation-delay: 80ms;
}

.reveal:nth-child(3) {
    animation-delay: 140ms;
}

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

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

@keyframes drift {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        transform: translate3d(2rem, -1rem, 0) scale(1.08);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 216, 138, 0.55);
    }

    70% {
        box-shadow: 0 0 0 14px rgba(255, 216, 138, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 216, 138, 0);
    }
}

@media (max-width: 1040px) {
    .site-header,
    .issue-section,
    .site-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-nav {
        order: 3;
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        border-radius: 24px;
    }

    .hero,
    .feature-grid,
    .repository-grid,
    .deploy-grid {
        grid-template-columns: 1fr;
    }

    .issue-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    body {
        background:
            radial-gradient(circle at top left, rgba(255, 190, 85, 0.26), transparent 24%),
            linear-gradient(180deg, #f6efe6 0%, #efe4d7 100%);
    }

    .site-header {
        padding-top: 1rem;
    }

    .site-nav {
        gap: 0.8rem;
        padding: 0.9rem 1rem;
    }

    .hero {
        padding-top: 2rem;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
    }

    .button,
    .nav-cta {
        width: 100%;
    }

    .hero-actions,
    .issue-actions,
    .footer-links {
        width: 100%;
    }

    .site-footer {
        padding-bottom: 2rem;
    }
}

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

    *,
    .ambient,
    .pulse {
        animation: none !important;
        transition: none !important;
    }
}