/* Вдвижухе — white + gold marketing */

:root,
html[data-theme="day"] {
    --gold: #B8860B;
    --gold-light: #D4A84B;
    --gold-dark: #8B6914;
    --bg: #FFFFFF;
    --bg-soft: #F7F5F0;
    --surface: #FFFFFF;
    --border: #E8E2D6;
    --text: #121212;
    --text-muted: #5C574E;
    --on-gold: #121212;
    --shadow: 0 12px 40px rgba(18, 18, 18, 0.08);
    --radius: 18px;
    --header-bg: rgba(255, 255, 255, 0.92);
    --toggle-track: #E8E2D6;
    --toggle-thumb: #FFFFFF;

    /* legacy aliases used in pages */
    --neon1: var(--gold);
    --neon2: var(--gold-light);
    --neon3: var(--gold-dark);
    --neon4: var(--gold-light);
    --dark: var(--text);
    --light: #ffffff;
    --text-light: var(--text);
    --text-dim: var(--text-muted);
    --bg-solid: var(--bg);
}

html[data-theme="night"] {
    --gold: #B8860B;
    --gold-light: #D4A84B;
    --gold-dark: #D4A84B;
    --bg: #0A0A0A;
    --bg-soft: #141414;
    --surface: #141414;
    --border: #2A2418;
    --text: #F5F0E6;
    --text-muted: #A89F8F;
    --on-gold: #121212;
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    --header-bg: rgba(10, 10, 10, 0.92);
    --toggle-track: #1F1A12;
    --toggle-thumb: #B8860B;
    --dark: #F5F0E6;
    --light: #0A0A0A;
    --text-light: var(--text);
    --text-dim: var(--text-muted);
    --bg-solid: var(--bg);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', system-ui, sans-serif;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    line-height: 1.55;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(ellipse 80% 50% at 10% -10%, rgba(184, 134, 11, 0.12), transparent 55%),
        radial-gradient(ellipse 60% 40% at 90% 20%, rgba(212, 168, 75, 0.1), transparent 50%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}

html[data-theme="night"] body::before {
    background:
        radial-gradient(ellipse 70% 45% at 15% 0%, rgba(184, 134, 11, 0.14), transparent 55%),
        radial-gradient(ellipse 50% 40% at 90% 30%, rgba(184, 134, 11, 0.06), transparent 50%),
        linear-gradient(180deg, #0A0A0A 0%, #12100C 100%);
}

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

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Promo */
.promo-bonus-bar {
    background: var(--gold);
    color: var(--on-gold);
    font-weight: 600;
    font-size: 13px;
    text-align: center;
    padding: 9px 14px;
    letter-spacing: 0.01em;
}

.promo-bonus-bar a {
    color: var(--on-gold);
    font-weight: 700;
    text-underline-offset: 3px;
}

/* Header */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    gap: 16px;
}

.site-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Theme toggle */
.theme-toggle {
    appearance: none;
    border: 1px solid var(--border);
    background: transparent;
    padding: 0;
    margin: 0;
    cursor: pointer;
    border-radius: 999px;
    flex-shrink: 0;
    line-height: 0;
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.theme-toggle-track {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 52px;
    height: 28px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--toggle-track);
    box-sizing: border-box;
}

.theme-icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    color: var(--text-muted);
    transition: color 0.2s ease, opacity 0.2s ease;
}

.theme-toggle:not(.is-night) .theme-icon-sun { color: var(--gold-dark); }
.theme-toggle.is-night .theme-icon-moon { color: #0A0A0A; }

.theme-toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--toggle-thumb);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    transition: transform 0.22s ease;
    z-index: 2;
}

.theme-toggle.is-night .theme-toggle-thumb {
    transform: translateX(24px);
}

/* Auto mode: subtle gold ring on the track */
.theme-toggle.is-auto .theme-toggle-track {
    box-shadow: inset 0 0 0 1px rgba(184, 134, 11, 0.45);
}

.theme-toggle-floating {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 300;
}

.site-header .logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
}

.logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    flex-shrink: 0;
    display: block;
    margin-right: 10px;
}

.site-header .logo span {
    color: var(--gold);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 14px;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
    background: transparent;
}

.nav-links a.active {
    box-shadow: inset 0 -2px 0 var(--gold);
    border-radius: 0;
    padding-bottom: 6px;
}

.nav-links a.btn-dating {
    background: var(--gold);
    color: var(--on-gold);
    border-radius: 999px;
    box-shadow: none;
}

.nav-links a.btn-dating:hover {
    background: var(--gold-light);
    color: var(--on-gold);
    transform: none;
}

.nav-links a.btn-admin {
    background: var(--text);
    color: #fff;
    border-radius: 999px;
}

/* Hero */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 0 48px;
}

.hero-brand {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(3rem, 10vw, 5.5rem);
    letter-spacing: -0.04em;
    line-height: 0.95;
    color: var(--text);
    margin-bottom: 18px;
}

.hero-brand em {
    font-style: normal;
    color: var(--gold);
}

.hero h1,
.hero .hero-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.5rem, 3.5vw, 2.1rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.2;
    text-transform: none;
    letter-spacing: -0.02em;
}

.hero h1 .highlight,
.highlight {
    color: var(--gold);
    background: none;
    -webkit-text-fill-color: unset;
    filter: none;
}

.hero h2,
.hero .hero-sub {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 22px;
    font-weight: 400;
    line-height: 1.55;
}

.hero-layout {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 900px) {
    .hero-home .hero-layout {
        grid-template-columns: 1.05fr 0.95fr;
        text-align: left;
        align-items: center;
    }

    .hero-home .hero-copy {
        align-items: flex-start;
        text-align: left;
    }

    .hero-home .hero-sub,
    .hero-home .cta-buttons {
        margin-left: 0;
        justify-content: flex-start;
    }
}

.hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    font-size: 0.98rem;
    letter-spacing: 0;
    text-transform: none;
    border: 1.5px solid transparent;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary {
    background: var(--gold);
    color: var(--on-gold);
    box-shadow: 0 8px 24px rgba(184, 134, 11, 0.28);
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(184, 134, 11, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.btn-secondary:hover {
    border-color: var(--gold);
    color: var(--text);
    transform: translateY(-2px);
}

/* Phone mockup — modern (Dynamic Island + home indicator) */
.app-preview {
    width: 100%;
    display: flex;
    justify-content: center;
}

.phone-mockup {
    position: relative;
    width: min(272px, 70vw);
    aspect-ratio: 9 / 19.4;
    margin: 0 auto;
    animation: floatY 7s ease-in-out infinite;
    filter: drop-shadow(0 28px 50px rgba(18, 18, 18, 0.2));
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.phone-shell {
    position: absolute;
    inset: 0;
    border-radius: 44px;
    background: linear-gradient(160deg, #2a2a2a 0%, #0d0d0d 45%, #1a1a1a 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    padding: 10px;
    box-sizing: border-box;
}

html[data-theme="night"] .phone-shell {
    background: linear-gradient(160deg, #222 0%, #050505 50%, #141414 100%);
    border-color: rgba(212, 168, 75, 0.18);
}

.phone-island {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 86px;
    height: 24px;
    border-radius: 999px;
    background: #050505;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    z-index: 5;
    pointer-events: none;
}

.phone-island::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    transform: translateY(-50%);
    background: radial-gradient(circle at 35% 35%, #3a4a5a 0%, #0a1018 70%);
    opacity: 0.9;
}

.phone-mockup .screen {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 36px;
    overflow: hidden;
    background: var(--bg);
}

.phone-home-bar {
    position: absolute;
    left: 50%;
    bottom: 7px;
    transform: translateX(-50%);
    width: 96px;
    height: 4px;
    border-radius: 999px;
    background: var(--text);
    opacity: 0.28;
    z-index: 6;
    pointer-events: none;
}

html[data-theme="night"] .phone-home-bar {
    background: #F5F0E6;
    opacity: 0.35;
}

.phone-screen-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.screen-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.65s ease, opacity 0.65s ease;
    pointer-events: none;
    overflow: hidden;
}

.screen-slide.active,
.screen-slide.is-active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.screen-slide.is-enter-right {
    opacity: 1;
    transform: translateX(100%);
}

.screen-slide.is-fade-out {
    opacity: 0;
    transform: translateX(0);
}

.screen-content {
    height: 100%;
    padding: 40px 12px 22px;
    overflow: auto;
    background: var(--bg);
    box-sizing: border-box;
}

.screen-content.events-preview {
    overflow: hidden;
}

.screen-content .event-card {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 9px 11px 10px;
    margin-bottom: 7px;
    text-align: left;
}

.screen-content .event-card:last-child {
    margin-bottom: 0;
}

.screen-content .event-card-tag {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gold-dark);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 2px 7px;
    margin-bottom: 5px;
}

.screen-content .event-card h3 {
    font-family: 'Syne', sans-serif;
    font-size: 13px;
    margin-bottom: 3px;
    color: var(--text);
    line-height: 1.25;
}

.screen-content .event-card p {
    font-size: 10px;
    color: var(--text-muted);
    line-height: 1.35;
}

.screen-content.swipe-preview {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 38px 10px 20px;
    background: var(--bg);
    box-sizing: border-box;
}

.swipe-preview-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    flex-shrink: 0;
}

.swipe-mini-photo {
    position: relative;
    flex: 1;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    min-height: 0;
    overflow: hidden;
}

.swipe-mini-photo-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swipe-mini-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(18, 18, 18, 0.72) 100%);
    z-index: 1;
    pointer-events: none;
}

.swipe-mini-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--surface);
    color: var(--gold-dark);
    border: 1px solid var(--border);
    z-index: 2;
}

.swipe-mini-card {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 9px 10px;
    color: var(--text);
    z-index: 2;
    text-align: left;
    box-shadow: 0 8px 20px rgba(18, 18, 18, 0.12);
}

html[data-theme="night"] .swipe-mini-card {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.swipe-mini-card h3 {
    margin: 0 0 3px;
    font-size: 15px;
    font-family: 'Syne', sans-serif;
    color: var(--text);
}

.swipe-mini-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 11px;
}

.swipe-mini-meta {
    margin-top: 7px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

.swipe-mini-meta-item {
    font-size: 10px;
    color: var(--text);
    background: var(--bg-soft);
    padding: 4px 7px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.swipe-mini-actions {
    margin-top: 8px;
    margin-bottom: 2px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-shrink: 0;
}

.swipe-mini-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    background: var(--bg);
    border: 1px solid var(--border);
}

.swipe-mini-btn.like { color: var(--gold); }
.swipe-mini-btn.super { color: var(--gold-dark); }
.swipe-mini-btn.dislike { color: #b0aaa0; }

@media (max-width: 420px) {
    .phone-mockup {
        width: min(248px, 78vw);
    }

    .phone-island {
        width: 76px;
        height: 22px;
        top: 16px;
    }

    .screen-content {
        padding: 36px 10px 20px;
    }

    .screen-content.swipe-preview {
        padding: 34px 8px 18px;
    }

    .swipe-mini-actions {
        gap: 10px;
    }

    .swipe-mini-btn {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
}

/* Features — line sections, not heavy cards */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin: 56px 0 24px;
    padding: 8px 0 40px;
    border-top: 1px solid var(--border);
}

.feature {
    text-align: left;
    padding: 8px 0 0;
    background: none;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
}

.feature i {
    font-size: 1.35rem;
    color: var(--gold);
    margin-bottom: 12px;
    display: block;
    filter: none;
    background: none;
    -webkit-text-fill-color: unset;
}

.feature h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--text);
}

.feature p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Like support block (below fold) */
.like-section {
    margin: 48px 0 16px;
    display: flex;
    justify-content: center;
    padding: 32px 20px;
    background: var(--bg-soft);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.like-button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.like-button {
    width: 72px;
    height: 72px;
    border: none;
    background: var(--bg);
    cursor: pointer;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.like-button:hover:not(:disabled) {
    transform: scale(1.05);
    border-color: var(--gold);
}

.like-button:disabled,
.like-button.liked {
    cursor: default;
}

.like-button.click-animation {
    animation: heartBeat 0.5s ease;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(0.9); }
    50% { transform: scale(1.12); }
    100% { transform: scale(1); }
}

.heart-wrapper {
    position: relative;
    width: 36px;
    height: 36px;
}

.heart-icon {
    width: 100%;
    height: 100%;
    fill: var(--gold);
    filter: none;
}

.like-counter {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 14px;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    z-index: 2;
}

.like-text {
    font-size: 1rem;
    color: var(--text);
    text-align: center;
    font-weight: 600;
    max-width: 360px;
}

/* Stats + footer */
.site-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin: 28px auto 8px;
    flex-wrap: wrap;
    max-width: 1120px;
    padding: 0 24px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 12px;
    background: none;
    border: none;
    box-shadow: none;
    min-width: 100px;
}

.stat-item i {
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: var(--gold);
    background: none;
    -webkit-text-fill-color: unset;
    filter: none;
}

.stat-number {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

footer {
    text-align: center;
    padding: 28px 24px 40px;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
    margin-top: 24px;
}

footer .footer-links {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 12px 0;
}

footer .footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
}

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

footer .developer {
    margin-top: 8px;
    font-size: 0.8rem;
}

/* Page content */
.page-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: left;
}

.about-text p,
.download-text p {
    margin-bottom: 16px;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.download-counter,
.events-counter {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-weight: 600;
}

.download-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 36px 0;
    max-width: 420px;
}

.download-option {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 22px;
    text-align: center;
    background: var(--surface);
}

html[data-theme="night"] .download-option,
html[data-theme="night"] .stat-item,
html[data-theme="night"] .like-section,
html[data-theme="night"] .like-button {
    background: var(--bg-soft);
}

html[data-theme="night"] .btn-secondary {
    color: var(--text);
    border-color: var(--border);
}

html[data-theme="night"] .nav-links a.btn-admin {
    background: var(--gold);
    color: #121212;
}

.download-option i {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 12px;
}

.download-option h3 {
    font-family: 'Syne', sans-serif;
    margin-bottom: 6px;
}

.download-option p {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.domain {
    display: none;
}

.tagline {
    color: var(--gold);
    font-weight: 700;
}

/* Legal */
.page-content h3 {
    font-family: 'Syne', sans-serif;
    color: var(--gold-dark);
    margin-top: 28px;
    margin-bottom: 12px;
    font-size: 1.2rem;
    text-shadow: none;
}

.page-content a {
    color: var(--gold-dark);
    text-shadow: none;
}

@media (max-width: 768px) {
    .site-header {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px;
    }

    .site-header-right {
        width: 100%;
        justify-content: space-between;
    }

    .nav-links {
        flex: 1;
        justify-content: flex-start;
        gap: 4px;
    }

    .nav-links a {
        padding: 6px 10px;
        font-size: 0.85rem;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 22px;
        margin-top: 40px;
    }

    .download-options {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .site-stats {
        gap: 12px;
    }
}
