@font-face {
    font-family: 'Inter';
    src: url('./fonts/Inter-variablefont.ttf');
}

:root {
    --bg: #fff8f8;
    --icon-bg: #fff1f1;
    --surface: #ffffff;
    --text: #290000;
    --muted: #646464;
    --primary: #af2236;
    --primary-dark: #a4061c;
    --border: #fff1f1;
    --accent: #e6d2b0;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
}

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

.brandname {
    color: var(--primary);
}

.container {
    width: min(1120px, 92vw);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--bg);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 74px;
    position: relative;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 700;
}

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

.nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
}

.nav a {
    color: var(--muted);
}

.nav a:hover,
.nav a.active {
    color: var(--primary-dark);
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--primary-dark);
    border-radius: 10px;
    padding: 0.5rem 0.6rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.menu-toggle:hover {
    background: rgba(163, 111, 119, 0.1);
}

.btn-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.75rem 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.btn:hover {
    transform: translateY(-1px) scale(1.04);
}

.store-badge {
    display: inline-block;
    transition: transform 0.15s ease;
}

.store-badge:hover {
    transform: translateY(-1px) scale(1.04);
}

.btn-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    margin-right: 0.45rem;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 14px rgba(127, 79, 87, 0.25);
}

.btn-outline {
    background: var(--surface);
    border-color: var(--primary);
    color: var(--primary-dark);
}

.section {
    padding-top: 4rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 2rem;
    align-items: center;
    padding: 2rem 0 3rem;
}

.eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-dark);
    margin-bottom: 0.8rem;
}

h1,
h2,
h3 {
    margin: 0 0 1rem;
    line-height: 1.45;
}

h1 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}

h2 {
    font-size: clamp(1.45rem, 2.5vw, 2rem);
}

h3 {
    font-size: 1.1rem;
}

.lead {
    color: var(--muted);
    margin-bottom: 1.4rem;
}

.text-link {
    color: var(--primary-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
}

.text-link:hover,
.text-link:focus-visible {
    color: var(--primary);
}

.join-flow {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0.2rem;
    box-shadow: 0 12px 30px rgba(127, 79, 87, 0.12);
}

.join-screen {
    background: #121212;
    border-radius: 16px;
    color: #fff;
    padding: 1rem;
}

.join-title {
    color: #d8d8d8;
    font-size: 0.82rem;
    margin-bottom: 0.6rem;
}

.code-stage {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.45rem;
    margin-bottom: 0.9rem;
}

.code-digit {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 10px;
    padding: 0.6rem 0;
    background: #1f1f1f;
    opacity: 0.3;
    transform: translateY(4px);
    animation: revealCode 4s infinite;
}

.code-digit:nth-child(1) {
    animation-delay: 0s;
}

.code-digit:nth-child(2) {
    animation-delay: 0.3s;
}

.code-digit:nth-child(3) {
    animation-delay: 0.6s;
}

.code-digit:nth-child(4) {
    animation-delay: 0.9s;
}

.join-steps {
    display: grid;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #cecece;
}

.join-steps span {
    opacity: 0.35;
    animation: pulseStep 4s infinite;
}

.join-steps span:nth-child(1) {
    animation-delay: 0.2s;
}

.join-steps span:nth-child(2) {
    animation-delay: 1.6s;
}

.join-steps span:nth-child(3) {
    animation-delay: 2.8s;
}

.photo-grid {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 0 2rem 0.5rem;
}

.photo-grid img,
.full-photo {
    flex-shrink: 0;
    width: auto;
    height: 690px;
    object-fit: contain;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--surface);
}

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

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--icon-bg);
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}

.card-icon svg {
    width: 22px;
    height: 22px;
}

.card h3 {
    font-size: 1rem;
}

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

.feature-list {
    padding-left: 0;
    list-style: none;
    margin: 0.75rem 0;
}

.feature-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
}

.price {
    font-size: 2rem;
    font-weight: 700;
}

.site-footer {
    padding: 2rem 0 2.5rem;
    border-top: 1px solid var(--border);
    color: var(--muted);
    margin-top: 2rem;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer-social {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary-dark);
    font-weight: 600;
}

.footer-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

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

.input-label {
    display: grid;
    gap: 0.4rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.7rem 0.8rem;
    font: inherit;
    background: #fff;
    color: var(--text);
}

.input:focus {
    outline: 2px solid #d9c4c8;
    border-color: var(--primary);
}

.helper {
    font-size: 0.9rem;
    color: var(--muted);
}

@keyframes revealCode {
    0%,
    15% {
        opacity: 0.25;
        transform: translateY(4px);
        border-color: #363636;
    }

    22%,
    65% {
        opacity: 1;
        transform: translateY(0);
        border-color: #8b6f74;
    }

    100% {
        opacity: 0.25;
        transform: translateY(4px);
        border-color: #363636;
    }
}

@keyframes pulseStep {
    0%,
    12% {
        opacity: 0.35;
    }

    20%,
    45% {
        opacity: 1;
    }

    100% {
        opacity: 0.35;
    }
}

@media (max-width: 980px) {
    .hero-grid,
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 620px) {
    .header-inner {
        min-height: 64px;
    }

    .nav {
        font-size: 0.86rem;
        gap: 0.65rem;
    }

    .section {
        padding: 2.5rem 0;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 760px) {
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav {
        display: none;
        position: absolute;
        top: calc(100% - 8px);
        right: 0;
        width: min(260px, 82vw);
        flex-direction: column;
        gap: 0;
        padding: 0.35rem;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 12px;
        box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
        z-index: 30;
    }

    .nav.open {
        display: flex;
    }

    .nav a {
        display: block;
        width: 100%;
        border-radius: 8px;
        padding: 0.55rem 0.7rem;
    }

    .nav a:hover,
    .nav a.active {
        background: #f4efea;
    }

    .photo-grid img,
    .full-photo {
        height: 590px;
    }
}