/* ===== Variables ===== */
:root {
    --color-gold: #DB7067;
    --color-gold-light: #1A1A1A;
    --color-gold-dark: #E8887F;
    --color-navy: #0A0A0A;
    --color-navy-light: #6D8C99;
    --color-heading: #E8E8E8;
    --color-text: #D0D0D0;
    --color-text-muted: #999999;
    --color-bg: #000000;
    --color-white: #fff;
    --color-card-bg: #111111;
    --color-border: #2A2A2A;
    --font: 'Alegreya', Georgia, 'Times New Roman', serif;
    --font-sans: 'Alegreya', Georgia, 'Times New Roman', serif;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.4);
    --container: 1100px;
}

/* ===== Reset ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 110%;
}

body {
    font-family: var(--font);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

/* ===== Container ===== */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 32px;
}

/* ===== Section Title ===== */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-heading);
    text-align: center;
    margin-bottom: 20px;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.3);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.header__logo {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-heading);
    display: flex;
    align-items: center;
    gap: 16px;
}

.header__icon {
    width: 28px;
    height: 28px;
}

.header__nav {
    display: flex;
    gap: 32px;
}

.header__nav a {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color 0.2s;
}

.header__nav a:hover {
    color: var(--color-gold-dark);
}

.header__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.header__burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-heading);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* ===== Hero ===== */
.hero {
    padding: 80px 0 32px;
    background: linear-gradient(135deg, #000000 0%, #050505 100%);
    position: relative;
    overflow: hidden;
}

.hero__inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero__text {
    flex: 1;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-heading);
    line-height: 1.15;
    margin-bottom: 12px;
}

.hero__subtitle {
    font-size: 1.25rem;
    color: var(--color-gold-dark);
    font-weight: 600;
    margin-bottom: 12px;
}

.hero__desc {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    color: var(--color-text-muted);
    margin-bottom: 36px;
    max-width: 680px;
}

.hero__image {
    flex: 0 0 280px;
    align-self: flex-start;
    padding-top: 24px;
    padding-left: 24px;
    padding-right: 0;
}

/* Phone mockup */
.hero__phone-mockup {
    width: 280px;
    height: 560px;
    background: #2A2A2A;
    border-radius: 40px;
    padding: 12px;
    margin-top: 48px;
    margin: 0 auto;
    box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 4px 12px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.hero__phone-mockup::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 40px;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    transform: rotate(25deg);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 10;
}

.hero__phone-mockup:hover::before {
    opacity: 1;
    animation: glassSheen 0.8s ease forwards;
}

.hero__phone-mockup:hover {
    box-shadow: 0 16px 50px rgba(0,0,0,0.5), 0 6px 16px rgba(0,0,0,0.4);
}

.hero__phone-screen {
    width: 100%;
    height: 100%;
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), inset 0 -1px 0 rgba(0,0,0,0.3);
}

/* Phone carousel */
.hero__carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero__slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s;
    background: linear-gradient(180deg, #1A1A1A 0%, #111111 100%);
}

.hero__slide.active {
    opacity: 1;
    visibility: visible;
}

.hero__slide-content {
    text-align: center;
    padding: 24px;
}

.hero__slide-icon {
    width: 36px;
    height: 36px;
    margin: 0 auto 16px;
    opacity: 0.5;
    object-fit: contain;
}

.hero__slide-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-heading);
    margin-bottom: 8px;
}

.hero__slide-text {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.hero__dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
}

.hero__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-border);
    transition: background 0.3s, transform 0.3s;
    cursor: pointer;
}

.hero__dot.active {
    background: var(--color-gold);
    transform: scale(1.3);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

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

.btn:active {
    transform: translateY(0);
}

.btn--appstore-link {
    display: inline-block;
    border-radius: 0;
    transition: box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.btn--appstore-link::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 40px;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transform: rotate(25deg);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 1;
}

.btn--appstore-link:hover::before {
    opacity: 1;
    animation: glassSheen 0.8s ease forwards;
}

.btn--appstore-link:hover {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
    transform: none;
}

.btn--appstore-img {
    height: 48px;
    width: auto;
    border-radius: 0;
    display: block;
    filter: invert(1);
    transition: none;
}

.btn--appstore-img:hover,
.btn--appstore-link:hover .btn--appstore-img {
    transform: none !important;
    opacity: 1 !important;
}

.btn--appstore-link:hover,
.btn--appstore-link:active {
    transform: none !important;
}

.hero__buttons {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 16px;
}

.btn--support {
    background: var(--color-gold);
    color: var(--color-white);
    border: none;
    padding: 14px 28px;
    margin-left: 16px;
    font-size: 1.05rem;
}

.btn--support:hover {
    background: var(--color-gold-dark);
    color: var(--color-white);
}

.btn--primary {
    background: var(--color-gold);
    color: var(--color-white);
    width: 100%;
    justify-content: center;
    font-size: 1.05rem;
}

.btn--primary:hover {
    background: var(--color-gold-dark);
}

/* ===== Liquid Glass ===== */
.glass {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 4px 30px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.glass:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

/* ===== Features ===== */
.features {
    padding: 36px 0;
    background: linear-gradient(160deg, #0A0A0A 0%, #111111 40%, #141414 70%, #0A0A0A 100%);
    position: relative;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.feature-card {
    border-radius: var(--radius);
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 40px;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    transform: rotate(25deg);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.feature-card:hover::before {
    opacity: 1;
    animation: glassSheen 0.8s ease forwards;
}

@keyframes glassSheen {
    0% { left: -50%; }
    100% { left: 150%; }
}

.feature-card:hover {
    transform: translateY(-4px);
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-heading);
    margin-bottom: 8px;
}

.feature-card p {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}


/* ===== Support / Payment ===== */
.support {
    padding: 36px 0;
}

.support__desc {
    font-family: var(--font-sans);
    text-align: center;
    max-width: 700px;
    margin: -8px auto 20px;
    color: var(--color-text-muted);
    font-size: 1.05rem;
}

.support__cards {
    display: flex;
    gap: 24px;
    justify-content: center;
    max-width: 700px;
    margin: 0 auto 32px;
}

.support {
    background: linear-gradient(160deg, #050505 0%, #0E0E0E 50%, #050505 100%);
}

.support-card {
    flex: 1;
    border-radius: var(--radius);
    padding: 24px 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 24px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.08);
}

.support-card:hover {
    transform: translateY(-4px);
    border-color: rgba(219, 112, 103, 0.4);
}

.support-card--accent {
    background: rgba(255, 255, 255, 0.04);
}

.support-card__badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-gold);
    background: rgba(219, 112, 103, 0.15);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.support-card__price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-heading);
    margin-bottom: 12px;
}

.support-card__price small {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.support-card__desc {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 24px;
    line-height: 1.5;
}

.support__note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* ===== Footer ===== */
.footer {
    font-family: var(--font-sans);
    background: var(--color-navy);
    color: rgba(255, 255, 255, 0.7);
    padding: 32px 0;
}

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

.footer__contacts {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer__dot {
    opacity: 0.5;
}

.footer__privacy {
    text-align: center;
}

.footer__contacts a,
.footer__privacy a,
.footer__copy {
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer__copy {
    text-align: right;
}

.footer__contacts a:hover,
.footer__privacy a:hover {
    color: var(--color-gold);
}

/* Shake animation for promo input */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

.shake {
    animation: shake 0.4s ease;
}

.btn--delete {
    background: #fff !important;
    color: #000 !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    margin-top: 20px !important;
    display: flex !important;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    font-size: 1.05rem;
}

.btn--delete:hover {
    color: #666 !important;
}

@media (prefers-color-scheme: light) {
    .btn--delete {
        background: #000 !important;
        color: rgba(255,255,255,0.7) !important;
        border: 1px solid rgba(0,0,0,0.15) !important;
    }
    .btn--delete:hover {
        color: #fff !important;
    }
}

#promo-code {
    color: var(--color-heading);
}

#promo-code.promo-error {
    color: #DB7067;
}

/* ===== Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Mobile nav ===== */
.header__nav.open {
    display: flex;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }

    .header__nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: var(--shadow);
    }

    .header__burger {
        display: flex;
    }

    .hero {
        padding: 80px 0 32px;
    }

    .hero__inner {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        text-align: left;
    }

    .hero__text {
        display: contents;
    }

    .hero h1 {
        font-size: 2.2rem;
        order: 1;
        text-align: center;
        display: none;
    }

    .hero__subtitle {
        order: 2;
        text-align: center;
        margin-top: 10px;
    }

    .hero__image {
        flex: none;
        order: 3;
        justify-self: center;
        padding-left: 0;
        padding-right: 0;
    }

    .hero__desc {
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 0;
        order: 4;
    }

    .hero__buttons {
        order: 5;
    }

    .hero__phone-mockup {
        width: 280px;
        height: 560px;
        margin-top: -8px;
        margin-bottom: 24px;
    }

    .hero__buttons {
        flex-direction: column;
        align-items: center;
        gap: 28px;
    }

    .hero__buttons .btn--appstore-img {
        height: 44px;
    }

    .btn--appstore-link,
    .btn--appstore-link:hover,
    .btn--appstore-link:active,
    .btn--appstore-link:focus,
    .btn--appstore-img,
    .btn--appstore-img:hover,
    .btn--appstore-img:active {
        transform: none !important;
        transition: none !important;
    }

    .hero__buttons .btn--support {
        padding: 10px 24px;
        font-size: 0.95rem;
        margin-left: 0;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }

    .btn--delete {
        margin-top: 20px !important;
    }

    .features {
        padding: 32px 0;
    }

    .features__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-card {
        padding: 24px;
    }

    .support {
        padding: 32px 0;
    }

    .support__cards {
        flex-direction: column;
    }

    .footer__inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .footer__contacts {
        justify-content: center;
    }

    .footer__copy {
        text-align: center;
    }

    .footer {
        padding: 20px 0;
    }

}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero__subtitle {
        font-size: 1.05rem;
    }

    .support-card__price {
        font-size: 2rem;
    }
}

/* ===== Light Theme (auto) ===== */
@media (prefers-color-scheme: light) {
    :root {
        --color-gold: #DB7067;
        --color-gold-light: #EDEDED;
        --color-gold-dark: #C25A52;
        --color-navy: #1B3F8B;
        --color-heading: #1A2332;
        --color-text: #333;
        --color-text-muted: #6B7280;
        --color-bg: #FAFAFA;
        --color-card-bg: #fff;
        --color-border: #E5E7EB;
        --shadow: 0 4px 24px rgba(0,0,0,0.06);
        --shadow-lg: 0 8px 40px rgba(0,0,0,0.1);
    }

    .header {
        background: rgba(255, 255, 255, 0.5);
        border-bottom: 1px solid rgba(255, 255, 255, 0.6);
        box-shadow: 0 1px 20px rgba(0, 0, 0, 0.04);
    }

    .hero {
        background: linear-gradient(135deg, #FAFAFA 0%, #F0F0F0 100%);
    }

    .glass {
        background: rgba(255, 255, 255, 0.45);
        border: 1px solid rgba(255, 255, 255, 0.6);
        box-shadow: 0 4px 30px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.8), inset 0 -1px 0 rgba(0,0,0,0.04);
    }

    .glass:hover {
        background: rgba(255, 255, 255, 0.6);
        box-shadow: 0 8px 40px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.9), inset 0 -1px 0 rgba(0,0,0,0.04);
    }

    .features {
        background: linear-gradient(160deg, #FAFAFA 0%, #EEEEEE 40%, #E5E5E5 70%, #FAFAFA 100%);
    }

    .support {
        background: linear-gradient(160deg, #FAFAFA 0%, #EEEEEE 50%, #FAFAFA 100%);
    }

    .hero__phone-mockup {
        background: var(--color-heading);
        box-shadow: 0 12px 40px rgba(0,0,0,0.15), 0 4px 12px rgba(0,0,0,0.08);
    }

    .hero__phone-mockup:hover {
        box-shadow: 0 16px 50px rgba(0,0,0,0.2), 0 6px 16px rgba(0,0,0,0.12);
    }

    .hero__phone-mockup::before {
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    }

    .hero__phone-screen {
        background: rgba(255, 255, 255, 0.7);
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), inset 0 -1px 0 rgba(0,0,0,0.05);
    }

    .hero__slide {
        background: linear-gradient(180deg, #F8F8F8 0%, #EFEFEF 100%);
    }

    .feature-card::before {
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    }

    .support-card {
        background: rgba(255, 255, 255, 0.5);
        border: 1px solid rgba(255, 255, 255, 0.6);
        box-shadow: 0 4px 24px rgba(0,0,0,0.05), inset 0 1px 0 rgba(255,255,255,0.7);
    }

    .support-card--accent {
        background: rgba(245, 245, 245, 0.5);
    }

    .support-card__badge {
        color: var(--color-gold-dark);
        background: var(--color-gold-light);
    }

    .btn--support {
        background: var(--color-gold);
        color: #fff;
        border: none;
    }

    .btn--appstore-img {
        filter: none;
    }

    .btn--appstore-link:hover {
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    }

    .btn--appstore-link::before {
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    }

    .support__how-title {
        color: #1A2332;
    }
}

@media (prefers-color-scheme: light) and (max-width: 768px) {
    .header__nav {
        background: var(--color-bg);
        border-bottom: 1px solid var(--color-border);
    }
    .btn--delete {
        background: #000 !important;
        color: rgba(255,255,255,0.7) !important;
        border: 1px solid rgba(0,0,0,0.15) !important;
    }
}
