:root {
    color-scheme: dark;
    --bg: #050505;
    --panel: #111111;
    --panel-2: #191919;
    --text: #f7f7f7;
    --muted: #b8b8b8;
    --line: #2b2b2b;
    --accent: #ff2b20;
    --accent-2: #24e6ff;
    --accent-3: #9cff42;
    --warning: #ffd166;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--line);
    background: rgba(5, 5, 5, 0.88);
    backdrop-filter: blur(18px);
}

.nav {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 72px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 900;
    font-size: 20px;
    letter-spacing: 0;
}

.brand img {
    width: 42px;
    height: 42px;
    border-radius: 10px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 700;
}

.nav-links a {
    text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: var(--text);
}

.hero {
    min-height: calc(100vh - 72px);
    display: grid;
    align-items: center;
    padding: 56px 0 72px;
}

.hero-inner,
.page,
.section-inner {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 64px;
    align-items: center;
}

.eyebrow {
    color: var(--accent);
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
}

h1,
h2,
h3 {
    margin: 0;
    letter-spacing: 0;
    line-height: 1;
}

h1 {
    max-width: 780px;
    margin-top: 14px;
    font-size: 116px;
    font-weight: 1000;
}

h2 {
    font-size: 56px;
    font-weight: 950;
}

h3 {
    font-size: 24px;
    font-weight: 900;
}

.lede {
    max-width: 620px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 22px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    background: var(--panel);
    text-decoration: none;
    font-weight: 850;
}

.button.primary {
    border-color: var(--accent);
    background: var(--accent);
    color: white;
}

.button.small {
    min-height: 40px;
    padding: 0 14px;
    font-size: 14px;
}

.button:disabled {
    cursor: wait;
    opacity: 0.62;
}

.live-count {
    display: inline-grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px 12px;
    align-items: center;
    max-width: 100%;
    margin-top: 24px;
    padding: 12px 14px;
    border: 1px solid rgba(36, 230, 255, 0.32);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(36, 230, 255, 0.12), rgba(156, 255, 66, 0.08));
}

.live-count.compact {
    margin-top: 0;
}

.live-pulse {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-3);
    box-shadow: 0 0 16px var(--accent-3);
}

.live-copy {
    min-width: 0;
    color: var(--muted);
    font-weight: 800;
}

.live-count strong {
    min-width: 58px;
    color: var(--text);
    font-size: 38px;
    line-height: 1;
    text-align: right;
}

.phone {
    justify-self: center;
    width: min(360px, 100%);
    aspect-ratio: 9 / 16;
    border: 1px solid #333;
    border-radius: 42px;
    padding: 18px;
    background: #101010;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}

.phone-screen {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    border-radius: 28px;
    background: #000;
}

.laser-dot {
    position: absolute;
    right: 21%;
    bottom: 30%;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 32px var(--accent);
}

.paw {
    position: absolute;
    inset: 10% 8% auto;
    height: 54%;
    opacity: 0.26;
}

.paw span {
    position: absolute;
    border-radius: 50%;
    background: white;
}

.paw span:nth-child(1) {
    left: 28%;
    bottom: 4%;
    width: 44%;
    height: 38%;
}

.paw span:nth-child(2) {
    left: 6%;
    top: 24%;
    width: 22%;
    height: 28%;
}

.paw span:nth-child(3) {
    left: 30%;
    top: 4%;
    width: 22%;
    height: 30%;
}

.paw span:nth-child(4) {
    right: 20%;
    top: 16%;
    width: 22%;
    height: 28%;
}

.paw span:nth-child(5) {
    right: 2%;
    top: 38%;
    width: 18%;
    height: 26%;
}

.section {
    border-top: 1px solid var(--line);
    padding: 72px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 28px;
}

.card {
    min-height: 150px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.card p,
.page p,
.page li {
    color: var(--muted);
}

.page {
    padding: 56px 0 84px;
}

.page-header {
    max-width: 820px;
    margin-bottom: 42px;
}

.content {
    display: grid;
    gap: 22px;
    max-width: 860px;
}

.content section {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.content h2 {
    font-size: 28px;
    margin-bottom: 12px;
}

.community-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
    max-width: none;
}

.community-layout {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.upload-panel,
.gallery-panel {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.gallery-panel {
    min-height: 520px;
}

.section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.section-heading h2 {
    font-size: 28px;
}

.section-heading p {
    margin: 8px 0 0;
    color: var(--muted);
}

.upload-form {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

.field {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.field input {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    background: #080808;
    font: inherit;
}

.file-picker {
    position: relative;
    display: grid;
    gap: 6px;
    min-height: 118px;
    padding: 18px;
    border: 1px dashed rgba(36, 230, 255, 0.5);
    border-radius: 8px;
    background: rgba(36, 230, 255, 0.08);
    color: var(--muted);
    cursor: pointer;
}

.file-picker input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-picker-title {
    color: var(--text);
    font-size: 22px;
    font-weight: 950;
}

.photo-preview img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #080808;
}

.form-note {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.form-status,
.gallery-status {
    color: var(--warning);
    font-size: 14px;
    font-weight: 800;
}

.kitty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.kitty-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #0b0b0b;
}

.kitty-card img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    background: #050505;
}

.kitty-card-copy {
    padding: 12px;
}

.kitty-card h3 {
    font-size: 18px;
    line-height: 1.15;
    word-break: break-word;
}

.kitty-card p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.kitty-card-stats {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.kitty-card-stats > span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
}

.like-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 46px;
    min-height: 30px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    font: inherit;
    cursor: pointer;
}

.like-button.is-liked {
    border-color: rgba(255, 43, 32, 0.6);
    color: var(--accent);
}

.like-button:disabled {
    cursor: wait;
    opacity: 0.6;
}

.is-photo-viewer-open {
    overflow: hidden;
}

.photo-viewer {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 28px;
    background: rgba(0, 0, 0, 0.94);
}

.photo-viewer img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.photo-viewer-close {
    position: fixed;
    top: 18px;
    right: 18px;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    color: white;
    background: rgba(0, 0, 0, 0.58);
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    background: #0b0b0b;
}

.footer {
    border-top: 1px solid var(--line);
    padding: 28px 0;
    color: var(--muted);
}

.footer-inner {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

@media (max-width: 1040px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 820px) {
    .nav {
        align-items: flex-start;
        flex-direction: column;
        padding: 14px 0;
    }

    .nav-links {
        flex-wrap: wrap;
    }

    .hero {
        min-height: auto;
    }

    h1 {
        font-size: 62px;
    }

    h2 {
        font-size: 36px;
    }

    .hero-grid,
    .feature-grid,
    .community-header,
    .community-layout {
        grid-template-columns: 1fr;
    }

    .community-header {
        align-items: start;
    }

    .live-count.compact {
        justify-self: start;
    }

    .phone {
        width: min(300px, 86vw);
    }
}

@media (max-width: 460px) {
    h1 {
        font-size: 50px;
    }

    .section-heading {
        flex-direction: column;
    }

    .button,
    .button.small {
        width: 100%;
    }

    .live-count {
        width: 100%;
    }

    .live-count strong {
        min-width: 48px;
        font-size: 32px;
    }
}
