:root {
    color-scheme: dark;
    --black: #000;
    --screen: #030604;
    --green: #a4f4ae;
    --green-dim: #72a978;
    --text: #cbd0c9;
    --muted: #747b74;
    --line: rgba(155, 236, 165, 0.16);
}

* { box-sizing: border-box; }

html {
    min-width: 320px;
    background: var(--black);
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    background: var(--black);
    color: var(--text);
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

a:focus-visible {
    outline: 1px solid var(--green);
    outline-offset: 5px;
}

.landing-page {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr auto;
    overflow-x: hidden;
    background:
        radial-gradient(ellipse at center, rgba(35, 76, 40, 0.12) 0%, transparent 50%),
        var(--black);
}

.landing-page::before {
    position: fixed;
    z-index: 10;
    inset: 0;
    pointer-events: none;
    opacity: 0.48;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 3px,
        rgba(105, 217, 119, 0.035) 3px,
        rgba(105, 217, 119, 0.035) 4px
    );
    content: "";
}

.landing-page::after {
    position: fixed;
    z-index: 9;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 44%, rgba(0, 0, 0, 0.78) 100%);
    content: "";
}

.site-header,
.site-footer {
    position: relative;
    z-index: 12;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: min(100% - 40px, 1080px);
    margin-inline: auto;
    color: var(--muted);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
}

.site-header { min-height: 70px; }

.site-header a,
.site-footer a {
    text-decoration: none;
}

.site-header a:hover,
.site-footer a:hover { color: var(--green); }

.coming-soon {
    position: relative;
    z-index: 2;
    align-self: center;
    width: min(100% - 36px, 680px);
    margin: 24px auto 54px;
    text-align: center;
}

.signal {
    margin-bottom: 18px;
    color: var(--green-dim);
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    opacity: 0.66;
}

.icon-frame {
    position: relative;
    width: clamp(245px, 42vw, 380px);
    margin-inline: auto;
}

.icon-frame::before {
    position: absolute;
    inset: 15%;
    border-radius: 40%;
    background: rgba(91, 208, 105, 0.14);
    filter: blur(42px);
    content: "";
    animation: tube-breathe 8s ease-in-out infinite alternate;
}

.icon-frame img {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    border-radius: 22.5%;
    filter: saturate(0.88) contrast(1.08);
}

h1 {
    margin: 28px 0 13px;
    color: #d9ded7;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
    font-size: clamp(2.35rem, 7vw, 4rem);
    font-weight: 480;
    letter-spacing: -0.045em;
}

.coming-soon > p {
    margin: 0 auto;
    color: #929991;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.17rem);
    line-height: 1.55;
}

.status {
    display: inline-block;
    margin-top: 26px;
    padding: 9px 12px 8px;
    border: 1px solid var(--line);
    color: var(--green-dim);
    font-size: 0.67rem;
    letter-spacing: 0.11em;
}

.site-footer {
    min-height: 76px;
    border-top: 1px solid rgba(255, 255, 255, 0.045);
}

.site-footer nav {
    display: flex;
    gap: 20px;
}

@keyframes tube-breathe {
    from { opacity: 0.48; transform: scale(0.96); }
    to { opacity: 0.82; transform: scale(1.04); }
}

/* Shared privacy and support pages */
body:not(.landing-page) {
    background:
        repeating-linear-gradient(to bottom, transparent 0 4px, rgba(105, 217, 119, 0.018) 4px 5px),
        var(--black);
}

body:not(.landing-page) .site-header {
    min-height: 64px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body:not(.landing-page) .site-header .wrap {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wrap {
    width: min(760px, calc(100% - 40px));
    margin-inline: auto;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand img {
    width: 30px;
    height: 30px;
    border-radius: 8px;
}

.topbar nav { display: flex; gap: 18px; }

.legal-main {
    padding: 84px 0 120px;
}

.legal-main h1 {
    margin: 0 0 14px;
    font-size: clamp(2.4rem, 7vw, 4.4rem);
}

.legal-main h2 {
    margin: 44px 0 12px;
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
}

.legal-main p {
    color: #929991;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.72;
}

.legal-main .updated {
    margin-bottom: 38px;
    color: var(--muted);
    font-family: inherit;
    font-size: 0.75rem;
}

.legal-main a {
    color: var(--green-dim);
    text-underline-offset: 3px;
}

body:not(.landing-page) .site-footer {
    width: min(760px, calc(100% - 40px));
}

@media (max-width: 520px) {
    .site-header,
    .site-footer { width: calc(100% - 28px); }
    .site-header { min-height: 58px; }
    .coming-soon { margin-top: 8px; }
    .site-footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media (prefers-contrast: more) {
    :root { --text: #f0f4ee; --muted: #b8c0b8; --green-dim: #b3f3bb; }
}

@media (forced-colors: active) {
    .status { border: 1px solid ButtonText; }
}
