@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Syne:wght@600;700;800&display=swap');

:root {
    color-scheme: dark;
    --bg: #0e120f;
    --bg-alt: #141b17;
    --ink: #f4efe4;
    --ink-muted: #b9b2a3;
    --accent: #e1a84f;
    --accent-2: #6fd3b9;
    --accent-3: #f36a4f;
    --card: rgba(17, 24, 20, 0.72);
    --card-solid: #151f1a;
    --stroke: rgba(255, 255, 255, 0.08);
    --shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
    --radius: 22px;
    --max-width: 1120px;
    --scroll-offset: clamp(5.5rem, 10vh, 8.5rem);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--scroll-offset);
}

body {
    margin: 0;
    font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 10% 10%, rgba(111, 211, 185, 0.25), transparent 45%),
        radial-gradient(circle at 90% 20%, rgba(225, 168, 79, 0.2), transparent 40%),
        radial-gradient(circle at 30% 80%, rgba(243, 106, 79, 0.2), transparent 45%),
        repeating-linear-gradient(120deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.02) 1px, transparent 1px, transparent 6px),
        var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

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

a:hover {
    color: var(--accent);
}

.skip-link {
    position: absolute;
    left: -999px;
    top: -999px;
    padding: 0.75rem 1rem;
    background: var(--accent);
    color: #15150f;
    border-radius: 999px;
}

.skip-link:focus {
    left: 1.5rem;
    top: 1.5rem;
    z-index: 50;
}

.orb {
    position: fixed;
    width: 320px;
    height: 320px;
    border-radius: 999px;
    filter: blur(60px);
    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
}

.orb-one {
    background: #4ea180;
    top: -80px;
    left: -60px;
}

.orb-two {
    background: #c97c34;
    top: 40px;
    right: -120px;
}

.orb-three {
    background: #c95b46;
    bottom: -120px;
    left: 20%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2.5rem;
    border-bottom: 1px solid var(--stroke);
    background: rgba(14, 18, 15, 0.86);
    backdrop-filter: blur(16px);
}

.logo {
    font-family: "Syne", "Space Grotesk", sans-serif;
    font-size: 1.25rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    gap: 1.5rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ip-chip {
    font-size: 0.9rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(225, 168, 79, 0.35);
    background: rgba(225, 168, 79, 0.08);
    color: var(--accent);
    font-weight: 600;
}

.ip-chip span {
    color: var(--ink);
    margin-left: 0.35rem;
}

main {
    position: relative;
    z-index: 1;
    flex: 1;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    grid-template-areas:
        "text panel"
        "join panel";
    gap: 2.5rem;
    align-items: start;
    padding: 3.5rem 2.5rem 3rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.hero-text {
    grid-area: text;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-size: 0.75rem;
    color: var(--accent-2);
    margin-bottom: 1rem;
}

.hero h1 {
    font-family: "Syne", "Space Grotesk", sans-serif;
    font-size: clamp(2.5rem, 4vw, 4.5rem);
    line-height: 1.15;
    margin: 0 0 1.25rem;
    padding-bottom: 0;
}

.lead {
    font-size: 1.1rem;
    color: var(--ink-muted);
    max-width: 32rem;
}

.cta-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.85rem;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
}

.btn.primary {
    background: var(--accent);
    color: #15150f;
    box-shadow: 0 18px 40px rgba(225, 168, 79, 0.25);
}

.btn.ghost {
    border-color: var(--accent);
    color: var(--accent);
}

.btn.disabled,
.btn[disabled] {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--ink-muted);
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: none;
    transform: none;
}

.btn:hover {
    transform: translateY(-2px);
}

.ip-inline {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.9rem;
    color: var(--ink-muted);
}

.ip-inline .value {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ink);
}

.copy-ip,
.copy-inline {
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.copy-ip *,
.copy-inline * {
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

.copy-ip:focus,
.copy-inline:focus {
    outline: none;
}

.copy-ip {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.copy-ip:focus-visible,
.copy-inline:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 4px;
}

.copy-inline {
    display: inline-block;
    border-bottom: 1px dashed rgba(225, 168, 79, 0.6);
    transition: color 0.2s ease, border-color 0.2s ease, text-shadow 0.2s ease;
}

.copy-inline:hover {
    color: var(--accent);
    border-color: rgba(225, 168, 79, 0.9);
}

.copy-hint {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.copy-ip.copied {
    border-color: rgba(111, 211, 185, 0.6);
    box-shadow: 0 0 0 1px rgba(111, 211, 185, 0.3), 0 0 18px rgba(111, 211, 185, 0.25);
    background: rgba(111, 211, 185, 0.15);
    animation: copyPop 0.6s ease;
}

.copy-ip.copied .copy-hint {
    color: var(--accent-2);
}

.copy-inline.copied {
    color: var(--accent-2);
    border-color: rgba(111, 211, 185, 0.75);
    text-shadow: 0 0 16px rgba(111, 211, 185, 0.65);
    animation: copyFlash 0.7s ease;
}

.hero-panel {
    display: grid;
    gap: 0;
    grid-area: panel;
}

.hero-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 1.6rem;
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
}

.hero-card h2,
.hero-card h3 {
    margin-top: 0;
    font-family: "Syne", "Space Grotesk", sans-serif;
}

.hero-card.subtle {
    background: rgba(17, 24, 20, 0.48);
}

.info-grid {
    display: grid;
    gap: 1.1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
        "store discord"
        "rules ethos"
        "loop loop";
    opacity: 1;
    transform: translateY(0);
    max-height: 1200px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    transition: opacity 0.35s ease, transform 0.35s ease, max-height 0.35s ease, margin 0.35s ease;
}

.hero-panel.show-rules .info-grid {
    opacity: 0;
    transform: translateY(-8px);
    max-height: 0;
    margin-bottom: 0;
    pointer-events: none;
}

.card-rules {
    grid-area: rules;
}

.card-ethos {
    grid-area: ethos;
}

.card-loop {
    grid-area: loop;
}

.card-store {
    grid-area: store;
}

.card-discord {
    grid-area: discord;
}

.small-card {
    padding: 1.1rem 1.2rem;
}

.small-card h3 {
    margin: 0.4rem 0 0.5rem;
}

.small-card p {
    margin: 0;
}

.rules-card {
    display: block;
    text-align: left;
    width: 100%;
    color: inherit;
    font: inherit;
    cursor: pointer;
    appearance: none;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.rules-card:hover {
    color: inherit;
    border-color: rgba(225, 168, 79, 0.55);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.35);
    transform: translateY(-2px);
}

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

.rules-pane {
    display: grid;
    gap: 1.2rem;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(8px);
    pointer-events: none;
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
    transition: opacity 0.35s ease, transform 0.35s ease, max-height 0.35s ease, margin 0.35s ease;
}

.hero-panel.show-rules .rules-pane {
    opacity: 1;
    transform: translateY(0);
    max-height: 1400px;
    pointer-events: auto;
    margin-bottom: 1.5rem;
    padding: 1.6rem;
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow);
    background: var(--card);
}

.rules-pane-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
}

.rules-close {
    padding: 0.6rem 1.2rem;
    font-size: 0.75rem;
}

.rules-list {
    display: grid;
    gap: 0.9rem;
}

.rules-item {
    padding-top: 0.9rem;
    border-top: 1px solid var(--stroke);
}

.rules-item:first-child {
    padding-top: 0;
    border-top: none;
}

.rules-item h3 {
    margin: 0 0 0.4rem;
}

.rules-item p {
    margin: 0;
    color: var(--ink-muted);
}

.hero-card.join-card {
    display: grid;
    gap: 1.2rem;
    grid-area: join;
}

.join-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.join-header h2 {
    margin: 0;
}

.join-indicator {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ink-muted);
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: rgba(15, 20, 16, 0.6);
}

.join-body {
    display: grid;
    gap: 1rem;
}

.join-step {
    display: none;
    gap: 1rem;
}

.join-step.is-active {
    display: grid;
}

.join-card.is-anim .join-step.is-active {
    animation: fadeUp 0.45s ease both;
}

.join-step img {
    border-radius: 16px;
}

.join-step h3 {
    margin: 0 0 0.4rem;
}

.join-step p {
    margin: 0;
    color: var(--ink-muted);
}

.join-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

.carousel-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: rgba(21, 32, 27, 0.7);
    color: var(--ink);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.carousel-btn:hover {
    border-color: rgba(225, 168, 79, 0.6);
    background: rgba(225, 168, 79, 0.1);
    transform: translateY(-1px);
}

.icon-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
    color: var(--ink-muted);
}

.icon-list li {
    padding-left: 1.4rem;
    position: relative;
}

.icon-list li::before {
    content: "\25B6";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 0.7rem;
    top: 0.35rem;
}

.stat-grid {
    display: grid;
    gap: 1rem;
}

.stat {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-2);
    margin: 0 0 0.3rem;
}

.section {
    padding: 3.5rem 2.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

section[id] {
    scroll-margin-top: var(--scroll-offset);
}

.section.alt {
    background: rgba(15, 20, 16, 0.65);
    border-top: 1px solid var(--stroke);
    border-bottom: 1px solid var(--stroke);
    border-radius: 32px;
}

.section-header {
    display: grid;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.section-header h1,
.section-header h2 {
    font-family: "Syne", "Space Grotesk", sans-serif;
    font-size: clamp(2rem, 3vw, 3rem);
    margin: 0;
    line-height: 1.1;
    padding-bottom: 0.05em;
}

.section-header p {
    margin: 0;
    color: var(--ink-muted);
    max-width: 42rem;
}

.split-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.panel {
    background: var(--card);
    border-radius: var(--radius);
    padding: 1.8rem;
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow);
}

.policy-text {
    color: var(--ink-muted);
    line-height: 1.7;
}

.policy-text h1 {
    font-family: "Syne", "Space Grotesk", sans-serif;
    font-size: clamp(2rem, 3vw, 2.75rem);
    margin: 0 0 0.6rem;
    color: var(--ink);
}

.policy-text h2 {
    font-family: "Syne", "Space Grotesk", sans-serif;
    font-size: 1.2rem;
    margin: 1.4rem 0 0.5rem;
    color: var(--ink);
}

.policy-text p {
    margin: 0 0 0.75rem;
}

.policy-text ul {
    margin: 0 0 0.9rem;
    padding-left: 1.2rem;
    color: var(--ink-muted);
}

.policy-text li {
    margin-bottom: 0.35rem;
}

.policy-meta {
    margin: 0 0 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    color: var(--ink-muted);
}

.list-panel {
    background: rgba(21, 32, 27, 0.7);
}

.highlight {
    margin-top: 1.2rem;
    padding: 0.9rem 1.1rem;
    border-radius: 14px;
    background: rgba(225, 168, 79, 0.12);
    border: 1px solid rgba(225, 168, 79, 0.25);
    text-align: center;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.8rem;
    color: var(--ink-muted);
}

.check-list li {
    padding-left: 1.6rem;
    position: relative;
}

.check-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--accent-2);
    font-weight: 700;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.rule-card {
    background: var(--card-solid);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--stroke);
    min-height: 170px;
}

.rule-card h3 {
    margin-top: 0;
}

.rule-card p {
    color: var(--ink-muted);
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.store-card {
    display: grid;
    gap: 1rem;
    align-items: center;
    padding: 1.6rem;
    border-radius: var(--radius);
    border: 1px solid var(--stroke);
    background: var(--card);
    box-shadow: var(--shadow);
}

.store-card.outline {
    background: transparent;
}

.store-card h3 {
    margin: 0 0 0.6rem;
}

.tag {
    display: inline-flex;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(111, 211, 185, 0.2);
    color: var(--accent-2);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.privacy-cta {
    justify-content: flex-start;
    margin-top: 1.5rem;
}

.site-footer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    padding: 3rem 2.5rem 4rem;
    border-top: 1px solid var(--stroke);
    background: rgba(14, 18, 15, 0.9);
    margin-top: auto;
}

.site-footer a {
    display: block;
    color: var(--ink-muted);
    margin-bottom: 0.4rem;
}

.footer-title {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    margin-bottom: 0.6rem;
}

.muted {
    color: var(--ink-muted);
}

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

@keyframes copyPop {
    0% {
        transform: scale(1);
    }
    45% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes copyFlash {
    0% {
        text-shadow: 0 0 0 rgba(111, 211, 185, 0);
    }
    45% {
        text-shadow: 0 0 18px rgba(111, 211, 185, 0.8);
    }
    100% {
        text-shadow: 0 0 0 rgba(111, 211, 185, 0);
    }
}

@media (max-width: 960px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .site-nav {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .hero {
        grid-template-columns: 1fr;
        grid-template-areas:
            "text"
            "panel"
            "join";
    }

    .join-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .info-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "store"
            "discord"
            "rules"
            "ethos"
            "loop";
    }

    .rules-pane-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 700px) {
    .site-header {
        padding: 1.25rem 1.5rem;
    }

    .hero,
    .section,
    .site-footer {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .ip-chip {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
