/* dreammachina.xyz SFW lander — unique variant, same structure */

:root {
    --bg: #0b0a10;
    --bg-elevated: #12101a;
    --pink: #f472b6;
    --pink-deep: #db2777;
    --pink-soft: #fbcfe8;
    --magenta: #d946ef;
    --text: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.68);
    --border: rgba(244, 114, 182, 0.14);
    --glow: rgba(244, 114, 182, 0.22);
    --gradient: linear-gradient(135deg, #f472b6 0%, #db2777 55%, #d946ef 100%);
    --gradient-hover: linear-gradient(135deg, #fb8cc8 0%, #e83580 55%, #e879f9 100%);
    --radius-lg: 20px;
    --radius-pill: 999px;
    --asset-prefix: 'assets';
}

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

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

html, body {
    height: 100%;
    font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.65;
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(11, 10, 16, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    padding: 0.85rem 0;
}

.header-content {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.75rem;
}

.header-left {
    display: flex;
    align-items: center;
}

.logo {
    height: 1.45rem;
    filter: brightness(1.08);
}

.header-lang-flags {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: auto;
}

.header-lang-flags a,
.header-lang-flags span {
    font-size: 2rem;
    line-height: 1;
    opacity: 0.85;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.header-lang-flags a:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.header-lang-flags span {
    opacity: 1;
    cursor: default;
}

.header-lang-mobile {
    display: none;
    position: relative;
    align-items: center;
    margin-left: auto;
}

.lang-toggle-btn {
    background: rgba(244, 114, 182, 0.06);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 1.35rem;
    cursor: pointer;
    padding: 0.3rem 0.55rem;
    line-height: 1;
    transition: border-color 0.2s, background 0.2s;
}

.lang-toggle-btn:hover {
    border-color: rgba(244, 114, 182, 0.35);
    background: rgba(244, 114, 182, 0.1);
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: rgba(11, 10, 16, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0.4rem;
    flex-direction: column;
    gap: 0.15rem;
    z-index: 1001;
    min-width: 150px;
}

.lang-dropdown.open {
    display: flex;
}

.lang-dropdown a,
.lang-dropdown span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s;
    white-space: nowrap;
}

.lang-dropdown a:hover {
    background: rgba(244, 114, 182, 0.08);
}

.lang-dropdown span {
    color: var(--pink);
    font-weight: 600;
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding: 7.5rem 1.75rem 2rem;
    position: relative;
    background:
        radial-gradient(ellipse 90% 70% at 78% 42%, rgba(244, 114, 182, 0.14) 0%, transparent 58%),
        radial-gradient(ellipse 60% 50% at 20% 10%, rgba(217, 70, 239, 0.08) 0%, transparent 50%);
}

.hero-inner {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-content {
    max-width: 640px;
    z-index: 10;
    position: relative;
}

.hero-visual {
    display: none;
}

.hero-content::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-35%, -50%);
    width: 140%;
    height: 130%;
    background-image: url('assets/backgrounds/hero-portrait.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 72% center;
    opacity: 0.42;
    z-index: -1;
    pointer-events: none;
    border-radius: 28px;
    mask-image: linear-gradient(to bottom,
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,1) 55%,
        rgba(0,0,0,0.75) 78%,
        rgba(0,0,0,0.2) 94%,
        rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to bottom,
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,1) 55%,
        rgba(0,0,0,0.75) 78%,
        rgba(0,0,0,0.2) 94%,
        rgba(0,0,0,0) 100%);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--pink);
    padding: 0.35rem 0.9rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: rgba(244, 114, 182, 0.06);
}

.hero-badge-logo {
    height: 1.1rem;
}

.hero-title {
    font-size: clamp(2.35rem, 5.5vw, 3.75rem);
    font-weight: 800;
    margin-bottom: 1.25rem;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.hero-title .gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% auto;
    animation: gradient-flow 4s ease-in-out infinite;
}

@keyframes gradient-flow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.08rem);
    color: var(--text-muted);
    margin-bottom: 2.25rem;
    line-height: 1.65;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2.75rem;
}

.primary-cta {
    background: var(--gradient);
    color: white;
    padding: 0.95rem 2.1rem;
    border: none;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.82rem;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 6px 22px var(--glow);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    position: relative;
    overflow: hidden;
}

.primary-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    left: -100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    transition: left 0.6s ease;
}

.primary-cta:hover::before {
    left: 100%;
}

.primary-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(244, 114, 182, 0.38);
    background: var(--gradient-hover);
}

.hero-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: left;
    padding: 0.85rem 1.15rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(18, 16, 26, 0.72);
    backdrop-filter: blur(10px);
    min-width: 140px;
}

.stat-number {
    font-size: 1.55rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: block;
    line-height: 1.1;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 500;
    margin-top: 0.35rem;
}

/* --- Video --- */
.video-section {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0.5rem 1.75rem 4.5rem;
}

.video-frame {
    width: 82%;
    max-width: 620px;
    padding: 3px;
    border-radius: 22px;
    background: var(--gradient);
    box-shadow: 0 16px 48px rgba(244, 114, 182, 0.18);
}

.video-frame video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 19px;
    pointer-events: none;
    user-select: none;
    outline: none;
}

/* --- Sections --- */
.section {
    padding: 5.5rem 1.75rem;
    max-width: 1180px;
    margin: 0 auto;
}

.main-content-section {
    max-width: 820px;
    position: relative;
    padding: 2.5rem 2rem;
    margin: 0 auto;
}

.main-content-section::before {
    content: '';
    position: absolute;
    inset: -10% -30%;
    background-image: url('assets/backgrounds/group-background.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.28;
    z-index: -1;
    pointer-events: none;
    border-radius: 32px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 75%);
}

.section-title {
    text-align: center;
    font-size: clamp(1.75rem, 3.8vw, 2.35rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.section-title::after {
    content: '';
    display: block;
    width: 64px;
    height: 3px;
    margin: 1rem auto 0;
    border-radius: var(--radius-pill);
    background: var(--gradient);
}

.section-subtitle {
    text-align: center;
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: var(--text-muted);
    margin-bottom: 3rem;
    line-height: 1.7;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.35rem;
    margin-top: 2.5rem;
}

.feature-card {
    background: rgba(18, 16, 26, 0.65);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    text-align: left;
    transition: all 0.35s ease;
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    opacity: 0.65;
}

.feature-card:hover {
    border-color: rgba(244, 114, 182, 0.32);
    transform: translateY(-5px);
    box-shadow: 0 18px 36px rgba(244, 114, 182, 0.12);
    background: rgba(22, 18, 30, 0.82);
}

.feature-icon {
    width: 52px;
    height: 52px;
    background: rgba(244, 114, 182, 0.12);
    border: 1px solid var(--border);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--pink);
    margin-bottom: 1.15rem;
}

.feature-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
}

.feature-description {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.9rem;
}

/* --- FAQ --- */
.faq-item {
    background: rgba(18, 16, 26, 0.55);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 0.85rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active {
    border-color: rgba(244, 114, 182, 0.28);
    box-shadow: 0 8px 24px rgba(244, 114, 182, 0.08);
}

.faq-question {
    padding: 1.35rem 1.6rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.96rem;
    transition: background 0.3s ease;
    gap: 1rem;
}

.faq-question:hover {
    background: rgba(244, 114, 182, 0.05);
}

.faq-answer {
    padding: 0 1.6rem 1.35rem;
    color: var(--text-muted);
    line-height: 1.75;
    font-size: 0.9rem;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-icon {
    color: var(--pink);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* --- CTA --- */
.cta-section {
    background:
        linear-gradient(180deg, rgba(244, 114, 182, 0.06) 0%, rgba(217, 70, 239, 0.04) 100%);
    padding: 5.5rem 1.75rem;
    text-align: center;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('assets/backgrounds/hero-background.png');
    background-size: cover;
    background-position: center;
    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
}

.cta-section > .section {
    position: relative;
    z-index: 1;
    padding-top: 0;
    padding-bottom: 0;
}

.cta-section .section-title::after {
    margin-top: 0.85rem;
}

/* --- Footer --- */
.footer {
    background: #08070c;
    padding: 3.5rem 1.75rem 2rem;
    border-top: 1px solid var(--border);
}

.footer-content {
    max-width: 1320px;
    margin: 0 auto;
    text-align: center;
}

.footer-tagline {
    color: var(--text-muted);
    max-width: 420px;
    margin: 0 auto;
    font-size: 0.92rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin: 2rem 0 2.25rem;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--pink);
}

.footer-lang {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-lang a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.footer-lang a:hover {
    color: var(--pink);
}

.footer-lang .active {
    color: var(--text);
    font-weight: 600;
}

.footer-lang .sep {
    color: rgba(255, 255, 255, 0.25);
}

.copyright {
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.88rem;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 12% 88%, rgba(244, 114, 182, 0.07) 0%, transparent 42%),
        radial-gradient(circle at 88% 12%, rgba(217, 70, 239, 0.06) 0%, transparent 42%);
    z-index: -1;
    pointer-events: none;
}

/* --- Responsive --- */
@media (min-width: 900px) {
    .hero-inner {
        grid-template-columns: 1.05fr 0.95fr;
    }

    .hero-content::before {
        left: 100%;
        transform: translate(-20%, -50%);
        width: 115%;
        opacity: 0.5;
    }
}

@media (max-width: 768px) {
    .hero {
        text-align: center;
        justify-content: center;
        padding-top: 6.5rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons,
    .hero-stats {
        justify-content: center;
    }

    .stat-item {
        text-align: center;
        min-width: 120px;
    }

    .header-lang-flags {
        display: none;
    }

    .header-lang-mobile {
        display: flex;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        gap: 0.65rem;
    }

    .stat-item {
        flex: 1 1 calc(50% - 0.5rem);
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Language subpages use ../ for assets */
html[data-depth="1"] {
    --asset-prefix: '..';
}

html[data-depth="1"] .hero-content::before {
    background-image: url('../assets/backgrounds/hero-portrait.png');
}

html[data-depth="1"] .main-content-section::before {
    background-image: url('../assets/backgrounds/group-background.png');
}

html[data-depth="1"] .cta-section::before {
    background-image: url('../assets/backgrounds/hero-background.png');
}
