:root {
    --ink: #0b1c1f;
    --ink-soft: #132a2e;
    --mist: #c8ddd6;
    --fog: #8fb5a8;
    --paper: #e8f2ee;
    --accent: #e8a54b;
    --accent-deep: #c9842a;
    --line: rgba(200, 221, 214, 0.18);
    --font-display: "Syne", sans-serif;
    --font-body: "DM Sans", sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-body);
    color: var(--paper);
    background: var(--ink);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
}

.page {
    position: relative;
    overflow-x: hidden;
}

.atmosphere {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 55% at 70% 15%, rgba(232, 165, 75, 0.16), transparent 55%),
        radial-gradient(ellipse 70% 60% at 12% 80%, rgba(47, 122, 110, 0.35), transparent 60%),
        radial-gradient(ellipse 100% 80% at 50% 40%, #16353a 0%, var(--ink) 70%),
        var(--ink);
}

.atmosphere::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.45;
    background-image:
        radial-gradient(1.5px 1.5px at 12% 18%, rgba(232, 242, 238, 0.55), transparent),
        radial-gradient(1px 1px at 28% 42%, rgba(232, 242, 238, 0.4), transparent),
        radial-gradient(1.5px 1.5px at 48% 12%, rgba(232, 242, 238, 0.5), transparent),
        radial-gradient(1px 1px at 66% 28%, rgba(232, 242, 238, 0.35), transparent),
        radial-gradient(1.5px 1.5px at 82% 48%, rgba(232, 242, 238, 0.45), transparent),
        radial-gradient(1px 1px at 91% 16%, rgba(232, 242, 238, 0.35), transparent),
        radial-gradient(1px 1px at 74% 72%, rgba(232, 242, 238, 0.3), transparent),
        radial-gradient(1.5px 1.5px at 38% 68%, rgba(232, 242, 238, 0.4), transparent);
    animation: drift 28s linear infinite;
}

.atmosphere::after {
    content: "";
    position: absolute;
    width: min(72vw, 640px);
    aspect-ratio: 1;
    right: -8%;
    top: 8%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 42% 42%, rgba(232, 165, 75, 0.2), transparent 42%),
        radial-gradient(circle at 55% 55%, rgba(143, 181, 168, 0.12), transparent 55%);
    border: 1px solid var(--line);
    animation: pulse-ring 7s ease-in-out infinite;
}

@keyframes drift {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-18px, 12px, 0); }
}

@keyframes pulse-ring {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.04); opacity: 1; }
}

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

.shell {
    position: relative;
    z-index: 1;
    width: min(1120px, calc(100% - 2.5rem));
    margin: 0 auto;
}

.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3.5rem 0 4rem;
}

.brand {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.75rem, 9vw, 5.5rem);
    letter-spacing: -0.04em;
    line-height: 0.95;
    margin: 0 0 1.35rem;
    color: var(--paper);
    animation: rise 0.8s ease-out both;
}

.brand span {
    color: var(--accent);
}

.headline {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.35rem, 3.4vw, 2rem);
    letter-spacing: -0.02em;
    line-height: 1.2;
    max-width: 18ch;
    margin: 0 0 1rem;
    color: var(--mist);
    animation: rise 0.8s ease-out 0.12s both;
}

.lede {
    font-size: clamp(1rem, 2.2vw, 1.125rem);
    line-height: 1.55;
    max-width: 34ch;
    margin: 0 0 2rem;
    color: var(--fog);
    animation: rise 0.8s ease-out 0.22s both;
}

.cta-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    animation: rise 0.8s ease-out 0.32s both;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.45rem;
    border-radius: 0.35rem;
    background: var(--accent);
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.01em;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background: #f0b45f;
    transform: translateY(-1px);
}

.btn-primary:focus-visible {
    outline: 2px solid var(--paper);
    outline-offset: 3px;
}

.btn-secondary {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--mist);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 0.1rem;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.btn-secondary:hover {
    color: var(--paper);
    border-bottom-color: var(--fog);
}

.btn-secondary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

.about {
    padding: 0 0 5rem;
    border-top: 1px solid var(--line);
}

.about-inner {
    padding-top: 3.25rem;
    max-width: 38rem;
}

.about h2 {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
    color: var(--paper);
}

.about p {
    margin: 0 0 1rem;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--fog);
}

.about p:last-child {
    margin-bottom: 0;
}

.disclaimer {
    color: var(--mist) !important;
    font-size: 0.95rem !important;
}

.footer {
    padding: 0 0 2.5rem;
    font-size: 0.85rem;
    color: rgba(143, 181, 168, 0.75);
}

@media (max-width: 640px) {
    .shell {
        width: min(1120px, calc(100% - 2rem));
    }

    .hero {
        padding-top: 4.5rem;
        padding-bottom: 3rem;
    }

    .atmosphere::after {
        width: 120vw;
        right: -40%;
        top: 28%;
        opacity: 0.85;
    }

    .cta-group {
        flex-direction: column;
        align-items: flex-start;
    }
}

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

    .atmosphere::before,
    .atmosphere::after,
    .brand,
    .headline,
    .lede,
    .cta-group {
        animation: none !important;
    }
}
