/* ===== Variables ===== */
:root {
    --bg-primary: #080808;
    --bg-secondary: #121212;
    --bg-card: rgba(20, 20, 20, 0.7);
    --gold: #C9A962;
    --gold-light: #D4AF37;
    --gold-dim: rgba(201, 169, 98, 0.3);
    --gold-glow: rgba(201, 169, 98, 0.15);
    --text-primary: #F5F0E8;
    --text-secondary: rgba(245, 240, 232, 0.65);
    --text-muted: rgba(245, 240, 232, 0.4);
    --border: rgba(201, 169, 98, 0.25);
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, sans-serif;
    --radius: 24px;
    --radius-sm: 12px;
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* ===== Background Effects ===== */
.bg-effects {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bg-wave {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.bg-wave--1 {
    width: 600px; height: 600px;
    top: -10%; right: -5%;
    background: radial-gradient(circle, rgba(201,169,98,0.2) 0%, transparent 70%);
    animation: waveDrift1 20s ease-in-out infinite alternate;
}

.bg-wave--2 {
    width: 500px; height: 500px;
    bottom: 10%; left: -10%;
    background: radial-gradient(circle, rgba(201,169,98,0.12) 0%, transparent 70%);
    animation: waveDrift2 25s ease-in-out infinite alternate;
}

.bg-particles {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 20% 30%, rgba(201,169,98,0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 60% 70%, rgba(201,169,98,0.2) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 80% 20%, rgba(201,169,98,0.25) 0%, transparent 100%),
        radial-gradient(1px 1px at 40% 80%, rgba(201,169,98,0.15) 0%, transparent 100%);
    animation: particleFloat 30s linear infinite;
}

@keyframes waveDrift1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-30px, 40px) scale(1.05); }
}

@keyframes waveDrift2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, -30px) scale(1.08); }
}

@keyframes particleFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-20px); }
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 20px 0;
    background: rgba(8, 8, 8, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

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

.header__logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.header__menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 44px; height: 44px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.header__menu-btn span {
    display: block;
    width: 18px; height: 1.5px;
    background: var(--gold);
    transition: var(--transition);
}

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

.header__nav a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

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

.header__nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 24px;
    gap: 16px;
}

@media (min-width: 768px) {
    .header__menu-btn { display: none; }
    .header__nav { display: flex; }
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    text-decoration: none;
}

.btn--primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--bg-primary);
    box-shadow: 0 4px 20px var(--gold-glow);
}

.btn--primary:hover {
    box-shadow: 0 6px 30px rgba(201, 169, 98, 0.35);
    transform: translateY(-1px);
    color: var(--bg-primary);
}

.btn--outline {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--border);
}

.btn--outline:hover {
    border-color: var(--gold);
    background: var(--gold-glow);
    color: var(--gold-light);
}

/* ===== Hero ===== */
.hero {
    padding: 140px 0 80px;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

.hero__title {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 500;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.hero__subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin-bottom: 12px;
}

.hero__slogan {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--gold);
    margin-bottom: 32px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero__phones {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__phone {
    position: absolute;
    width: 200px;
    transition: transform 0.1s linear;
}

.hero__phone img {
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
}

.hero__phone--left {
    left: 15%;
    animation: floatPhone 6s ease-in-out infinite;
    z-index: 2;
}

.hero__phone--right {
    right: 10%;
    animation: floatPhone 6s ease-in-out infinite 1.5s;
    z-index: 1;
}

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

@media (min-width: 768px) {
    .hero__grid { grid-template-columns: 1fr 1fr; }
    .hero__phones { height: 500px; }
    .hero__phone { width: 240px; }
}

/* ===== Section Header ===== */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header__icon {
    color: var(--gold);
    margin-bottom: 12px;
}

.section-header__title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 500;
    margin-bottom: 8px;
}

.section-header__subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ===== Apps ===== */
.apps {
    padding: 80px 0;
}

.apps__grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.app-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    will-change: transform;
}

.app-card:hover,
.app-card:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px var(--gold-glow);
    border-color: rgba(201, 169, 98, 0.45);
}

.app-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 16px;
}

.app-card__info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.app-card__icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    object-fit: cover;
}

.app-card__icon--placeholder {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
}

.app-card__name {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 500;
}

.app-card__tagline {
    color: var(--gold);
    font-size: 0.85rem;
    font-style: italic;
}

.app-card__description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
    max-width: 600px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    white-space: nowrap;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.03);
}

.status-badge__dot {
    width: 6px; height: 6px;
    border-radius: 50%;
}

.status-badge--available .status-badge__dot { background: #4CAF50; }
.status-badge--coming_soon .status-badge__dot { background: #FF9800; }

.app-card__body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: center;
}

.app-card__mockup {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.phone-frame {
    width: 160px;
    padding: 8px;
    background: #1a1a1a;
    border-radius: 24px;
    border: 2px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.phone-frame__screen {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 9/16;
    background: var(--bg-secondary);
}

.phone-frame__shot {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease;
}

.phone-frame__shot.is-active { opacity: 1; }

.phone-frame__shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(201,169,98,0.08) 50%,
        transparent 60%
    );
    animation: shimmer 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.app-card__trailer-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px solid var(--border);
    color: var(--gold);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.app-card__trailer-btn:hover {
    background: var(--gold-glow);
    border-color: var(--gold);
}

.app-card__stores {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.store-btn {
    display: block;
    width: 160px;
    color: var(--text-primary);
    transition: var(--transition);
}

.store-btn--active:hover {
    color: var(--gold);
    transform: scale(1.03);
    filter: drop-shadow(0 0 8px var(--gold-glow));
}

.store-btn--disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.store-badge { width: 100%; height: auto; }

@media (min-width: 768px) {
    .app-card__body { grid-template-columns: auto 1fr; }
    .app-card__stores { align-items: flex-end; }
}

/* ===== Support ===== */
.support {
    padding: 80px 0 100px;
}

.support__card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    overflow: hidden;
}

.support__title {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 3vw, 2rem);
    margin-bottom: 16px;
}

.support__text {
    color: var(--text-secondary);
    margin-bottom: 16px;
    max-width: 400px;
}

.support__tagline {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.support__illustration {
    border-radius: var(--radius-sm);
    max-width: 320px;
    opacity: 0.9;
}

.support-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 14px 14px 44px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
    padding-top: 14px;
}

.form-group__icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.form-group__icon--top { top: 18px; transform: none; }

.form-group--no-icon input {
    padding-left: 14px;
}

.form-group--captcha {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.form-group--captcha img {
    border-radius: 8px;
    border: 1px solid var(--border);
}

.form-group--captcha input {
    padding-left: 14px;
    flex: 1;
    min-width: 120px;
}

.form-group--captcha .form-error {
    width: 100%;
}

.form-group--error input,
.form-group--error textarea {
    border-color: rgba(220, 80, 80, 0.5);
}

.form-error {
    display: block;
    color: rgba(220, 120, 120, 0.9);
    font-size: 0.8rem;
    margin-top: 4px;
    padding-left: 4px;
}

.btn--submit {
    width: 100%;
    justify-content: center;
    padding: 16px;
    font-size: 1rem;
}

.support-form__note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.messages { margin-bottom: 16px; }

.message {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.message--success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #a5d6a7;
}

.message--error {
    background: rgba(220, 80, 80, 0.08);
    border: 1px solid rgba(220, 80, 80, 0.25);
    color: rgba(220, 120, 120, 0.9);
}

@media (min-width: 900px) {
    .support__card { grid-template-columns: 1fr 1fr; padding: 48px; }
}

/* ===== Footer ===== */
.footer {
    padding: 48px 0 32px;
    border-top: 1px solid var(--border);
}

.footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.footer__logo {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--text-primary);
}

.footer__tagline {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 4px;
}

.footer__social {
    display: flex;
    gap: 20px;
}

.footer__social a {
    color: var(--gold);
    opacity: 0.7;
    transition: opacity var(--transition);
}

.footer__social a:hover { opacity: 1; }

.footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    justify-content: center;
}

.footer__links a {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer__links a:not(:first-child)::before {
    content: '·';
    margin-right: 16px;
    color: var(--text-muted);
}

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

/* ===== Trailer Modal ===== */
.trailer-modal {
    border: none;
    padding: 0;
    background: transparent;
    max-width: 90vw;
    width: 800px;
}

.trailer-modal::backdrop {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

.trailer-modal__inner {
    position: relative;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.trailer-modal__close {
    position: absolute;
    top: 8px; right: 8px;
    z-index: 2;
    background: rgba(0,0,0,0.6);
    border: none;
    color: white;
    width: 36px; height: 36px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trailer-modal__content {
    aspect-ratio: 16/9;
}

.trailer-modal__content iframe {
    width: 100%; height: 100%;
    border: none;
}

/* ===== Policy Page ===== */
.policy-page {
    padding: 120px 0 60px;
}

.policy-page h1 {
    font-family: var(--font-serif);
    margin-bottom: 24px;
}

.policy-page__iframe {
    width: 100%;
    height: 80vh;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html { scroll-behavior: auto; }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .bg-wave, .bg-particles { animation: none; }
    .hero__phone { animation: none; }
    .phone-frame__shimmer { animation: none; display: none; }
}

/* ===== Mobile Background Simplification ===== */
@media (max-width: 768px) {
    .bg-wave { opacity: 0.2; filter: blur(60px); }
    .bg-particles { opacity: 0.5; }
    .hero__phone { width: 160px; }
    .hero__phone--left { left: 5%; }
    .hero__phone--right { right: 5%; }
}
