:root {
    color-scheme: light;
    --bg: #f6f7fb;
    --bg-2: #eef2ff;
    --surface: #ffffff;
    --surface-2: rgba(255, 255, 255, 0.72);
    --text: #0f172a;
    --muted: #475569;
    --border: rgba(15, 23, 42, 0.12);
    --border-strong: rgba(15, 23, 42, 0.18);
    --accent: #4f46e5;
    --accent-strong: #3730a3;
    --danger: #ef4444;
    --outline: rgba(0, 0, 0, 0.88);
    --shadow-sm: 0 6px 18px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.12);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --container: 1040px;
    --rainbow: linear-gradient(
        90deg,
        #ff2d95 0%,
        #ff7a18 14%,
        #ffd400 28%,
        #3cff70 42%,
        #22d3ee 56%,
        #6366f1 70%,
        #d946ef 84%,
        #ff2d95 100%
    );
}

@keyframes rainbow-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, "Apple Color Emoji",
        "Segoe UI Emoji";
    color: var(--text);
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 60%, #f8fafc 100%);
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

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

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

strong {
    color: var(--text);
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 16px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--surface-2);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    gap: 14px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-logo {
    height: 36px;
    width: auto;
    max-width: min(52vw, 240px);
    object-fit: contain;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: white;
    background: linear-gradient(135deg, var(--accent), #22c55e);
    box-shadow: var(--shadow-sm);
    font-size: 0.92rem;
}

.brand-name {
    font-size: 1.02rem;
}

.header-actions {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.header-link {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--muted);
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid transparent;
}

.header-link:hover {
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.6);
}

.lang-switcher {
    position: fixed;
    top: calc(12px + env(safe-area-inset-top));
    right: calc(12px + env(safe-area-inset-right));
    z-index: 80;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
}

.lang-button,
.lang-select {
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text);
}

.lang-button {
    border: none;
    background: transparent;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
}

.lang-icon {
    font-size: 0.98rem;
}

.lang-select {
    appearance: none;
    min-width: 104px;
    padding: 6px 2px 6px 10px;
    border: none;
    border-left: 1px solid var(--border);
    background: transparent;
    cursor: pointer;
    outline: none;
}

.lang-select option {
    color: var(--text);
    background: var(--surface);
}

.page {
    padding: 24px 0 40px;
}

.hero {
    padding: 18px 0 6px;
}

.hero-inner {
    display: grid;
    gap: 18px;
}

.hero-copy {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.82rem;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.7);
    color: var(--muted);
}

.chip-accent {
    color: white;
    border-color: transparent;
    background: var(--rainbow);
    background-size: 300% 100%;
    animation: rainbow-shift 10s linear infinite;
}

.hero-title {
    display: grid;
    gap: 4px;
    margin-bottom: 10px;
}

.hero-title-top {
    font-size: 0.95rem;
    letter-spacing: 0.14em;
    font-weight: 900;
    color: var(--muted);
}

.hero-title-bottom {
    font-size: clamp(2.05rem, 6.2vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    font-weight: 1000;
}

.hero-subtitle {
    color: var(--muted);
    font-weight: 600;
    font-size: 1.02rem;
}

.hero-cta {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.hero-live {
    color: var(--muted);
    font-weight: 700;
    font-size: 0.92rem;
}

.hero-proof {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed var(--border);
}

.avatar-row {
    display: inline-flex;
    align-items: center;
}

.avatar {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 2px solid var(--surface);
    margin-left: -8px;
    box-shadow: var(--shadow-sm);
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.2) 40%, transparent 60%),
        linear-gradient(135deg, #fb7185, #8b5cf6);
}

.avatar:first-child {
    margin-left: 0;
}

.proof-text {
    color: var(--muted);
    font-weight: 700;
    font-size: 0.92rem;
}

.hero-feature {
    align-self: start;
}

.feature-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.feature-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 16px 10px;
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 0.8rem;
    color: white;
    background: var(--rainbow);
    background-size: 300% 100%;
    animation: rainbow-shift 12s linear infinite;
}

.feature-name {
    font-weight: 900;
    letter-spacing: -0.02em;
}

.feature-media {
    padding: 0 16px 12px;
}

.feature-media img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(79, 70, 229, 0.08), rgba(34, 197, 94, 0.08));
}

.feature-note {
    padding: 0 16px 14px;
    color: var(--muted);
    font-weight: 700;
    font-size: 0.9rem;
}

.how {
    padding: 18px 0 0;
}

.section-title {
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    font-weight: 900;
}

.steps {
    margin-top: 0;
    display: grid;
    gap: 10px;
    list-style: none;
    counter-reset: step;
}

.step {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 10px;
    align-items: start;
    padding: 12px 14px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.7);
    color: var(--text);
    font-weight: 700;
}

.step-num {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-weight: 900;
    color: white;
    background: var(--accent);
    margin-top: 1px;
}

.step-text {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.step-title {
    font-weight: 900;
    letter-spacing: -0.01em;
}

.step-sub {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    color: var(--muted);
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.35;
}

.step-sub > span:first-child {
    font-weight: 900;
}

.drops {
    padding: 22px 0 8px;
}

#drops {
    scroll-margin-top: 90px;
}

.section-head {
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--muted);
    font-weight: 600;
}

.items-list {
    display: grid;
    gap: 16px;
}

.item-card {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) auto;
    grid-template-areas:
        "media info button";
    gap: 14px;
    align-items: center;
    padding: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(236, 253, 245, 0.55));
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.07);
}

.item-media {
    grid-area: media;
    width: 80px;
    aspect-ratio: 1 / 1;
    border-radius: 22px;
    border: 1px solid rgba(15, 23, 42, 0.05);
    background: rgba(241, 245, 249, 0.9);
    display: grid;
    place-items: center;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.item-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    filter: drop-shadow(0 12px 16px rgba(15, 23, 42, 0.16));
}

.item-info {
    grid-area: info;
    min-width: 0;
    padding-top: 2px;
}

.stock-count {
    display: inline-flex;
    align-items: center;
    font-size: 0.86rem;
    font-weight: 900;
    color: var(--muted);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.item-name {
    font-size: clamp(1.25rem, 4.8vw, 1.55rem);
    font-weight: 1000;
    letter-spacing: -0.03em;
    margin-top: 0;
    line-height: 1.12;
}

.item-card .btn-claim {
    grid-area: button;
    justify-self: end;
    width: clamp(96px, 30vw, 160px);
}

.btn {
    border: none;
    cursor: pointer;
    border-radius: 14px;
    padding: 12px 14px;
    font-weight: 900;
    letter-spacing: -0.01em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease, filter 120ms ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    color: white;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    min-height: 58px;
    padding: 16px 18px;
    font-size: 1.25rem;
    border-radius: 18px;
    box-shadow: 0 18px 44px rgba(34, 197, 94, 0.18), 0 10px 22px rgba(15, 23, 42, 0.14);
}

.btn-primary:hover {
    filter: brightness(1.04);
}

.btn-claim {
    color: white;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    min-height: 62px;
    min-width: 0;
    padding: 16px 18px;
    font-size: 1.28rem;
    border-radius: 22px;
    box-shadow: 0 18px 44px rgba(34, 197, 94, 0.2), 0 12px 24px rgba(15, 23, 42, 0.12),
        inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}

.btn-claim:hover {
    filter: brightness(1.04);
}

.btn-submit {
    color: white;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    min-height: 56px;
    min-width: 132px;
    padding: 16px 18px;
    font-size: 1.12rem;
    border-radius: 18px;
    box-shadow: 0 12px 26px rgba(34, 197, 94, 0.18), 0 10px 20px rgba(15, 23, 42, 0.12);
}

.btn-submit:hover {
    filter: brightness(1.04);
}

.btn-feature {
    margin: 0 16px 12px;
    width: calc(100% - 32px);
}

.modal,
.ios-popup {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-backdrop,
.ios-popup-background {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px);
}

.modal-content,
.ios-popup-content {
    position: relative;
    width: min(92vw, 440px);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.modal-content {
    max-height: min(86vh, 720px);
    overflow: auto;
    overscroll-behavior: contain;
}

.modal-body {
    padding: 18px 16px 0;
}

.simple-modal-title {
    font-size: 1.2rem;
    font-weight: 1000;
    letter-spacing: -0.03em;
}

.simple-modal-note {
    margin-top: 8px;
    color: var(--muted);
    font-weight: 700;
    font-size: 0.95rem;
}

.form-group {
    margin-top: 14px;
}

.form-group input {
    width: 100%;
    border-radius: 14px;
    border: 1px solid var(--border-strong);
    padding: 12px 12px;
    font-size: 1rem;
    font-weight: 700;
    outline: none;
    background: rgba(255, 255, 255, 0.9);
}

.error-message {
    min-height: 18px;
    margin-top: 8px;
    color: var(--danger);
    font-weight: 800;
    font-size: 0.9rem;
}

.modal-footer {
    padding: 14px 16px 16px;
}

.btn-full {
    width: 100%;
}

.ios-popup {
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.ios-popup-content {
    display: grid;
    gap: 12px;
    padding: 14px;
}

.ios-gif-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.05);
}

.ios-instruction-text h3 {
    font-size: 1.05rem;
    font-weight: 1000;
    letter-spacing: -0.03em;
}

.ios-instruction-text p {
    margin-top: 6px;
    color: var(--muted);
    font-weight: 700;
    font-size: 0.95rem;
}

.lang-button:focus-visible,
.lang-select:focus-visible,
.btn:focus-visible,
.form-group input:focus-visible,
.faq-item summary:focus-visible,
.header-link:focus-visible {
    outline: 3px solid rgba(79, 70, 229, 0.35);
    outline-offset: 3px;
}

@media (min-width: 920px) {
    body {
        padding-bottom: calc(24px + env(safe-area-inset-bottom));
    }

    .hero-inner {
        grid-template-columns: 1.12fr 0.88fr;
        align-items: start;
        gap: 18px;
    }

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

    .steps .step:nth-child(4) {
        grid-column: span 2;
    }

    .items-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 520px) {
    .header-actions {
        display: none;
    }
}

@media (max-width: 420px) {
    .item-card {
        grid-template-columns: 72px minmax(0, 1fr) auto;
        gap: 12px;
        padding: 14px;
    }

    .item-media {
        width: 72px;
        border-radius: 20px;
    }

    .item-card .btn-claim {
        width: clamp(92px, 28vw, 140px);
    }

    .btn-claim {
        min-height: 58px;
        padding: 14px 16px;
        font-size: 1.14rem;
        border-radius: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}
