/* ===================================================
   ELYS — Apple-like Showcase Website
   Palette: Green #5CFF7E on Black
   Font: Montserrat (display) + Inter (body)
   =================================================== */

/* ---------- CSS Variables ---------- */
:root {
    --green: #5CFF7E;
    --green-dim: #3DD662;
    --green-glow: rgba(92, 255, 126, 0.15);
    --green-soft: rgba(92, 255, 126, 0.06);
    --green-bg: rgba(92, 255, 126, 0.08);

    --bg-dark: #000000;
    --bg-section: #060606;
    --bg-card: #0C0C0C;
    --bg-card-hover: #141414;

    --text-primary: #F5F5F7;
    --text-secondary: #86868B;
    --text-dim: #48484A;

    --border-subtle: rgba(255,255,255,0.08);
    --border-glow: rgba(92, 255, 126, 0.12);

    --font-display: 'Montserrat', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 40px;
    --radius-full: 9999px;

    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
}

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

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

::selection {
    background: var(--green);
    color: var(--bg-dark);
}

/* ---------- Typography ---------- */
h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 900;
    font-style: italic;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* ---------- Utility ---------- */
.accent-text {
    color: var(--green);
}

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

/* ---------- Animations ---------- */
.anim-fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

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

[data-stagger] .anim-fade-up:nth-child(1) { transition-delay: 0s; }
[data-stagger] .anim-fade-up:nth-child(2) { transition-delay: 0.1s; }
[data-stagger] .anim-fade-up:nth-child(3) { transition-delay: 0.15s; }
[data-stagger] .anim-fade-up:nth-child(4) { transition-delay: 0.2s; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s var(--ease);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--green);
    color: #000;
}
.btn-primary:hover {
    background: #7BFF9A;
    transform: scale(1.03);
    box-shadow: 0 8px 40px rgba(92, 255, 126, 0.25);
}

.btn-secondary {
    background: rgba(255,255,255,0.06);
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    transform: scale(1.03);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.05rem;
}

.btn svg {
    flex-shrink: 0;
}

/* ============================
   NAVBAR
   ============================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s var(--ease);
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 12px 0;
}

.nav-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo-img {
    width: 34px;
    height: 34px;
    border-radius: 9px;
}

.nav-logo-text {
    font-family: var(--font-display);
    font-weight: 900;
    font-style: italic;
    font-size: 1.35rem;
    letter-spacing: -0.01em;
    color: var(--green);
}

.nav-center {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s var(--ease);
}

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-lang {
    display: flex;
    gap: 2px;
    background: rgba(255,255,255,0.06);
    border-radius: var(--radius-full);
    padding: 3px;
}

.nav-lang button {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 5px 12px;
    border: none;
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.nav-lang button.active {
    background: rgba(255,255,255,0.12);
    color: var(--text-primary);
}

.nav-cta {
    display: inline-flex;
    padding: 9px 22px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--green);
    color: #000;
    transition: all 0.3s var(--ease);
}

.nav-cta:hover {
    background: #7BFF9A;
    transform: scale(1.05);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 4px;
    transition: all 0.3s var(--ease);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================
   HERO
   ============================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 140px 0 100px;
    background: var(--bg-dark);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--bg-dark), transparent);
    pointer-events: none;
    z-index: 2;
}

.hero-container {
    position: relative;
    z-index: 1;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-overline {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--green);
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(3rem, 5.5vw, 4.5rem);
    line-height: 1.05;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 460px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-phone-wrapper {
    position: relative;
}

.hero-phone-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 260px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(92, 255, 126, 0.1), transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

/* Phone Mockup — Clean Apple style */
.phone-mockup {
    position: relative;
    background: #1A1A1A;
    border-radius: 44px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 32px 80px rgba(0,0,0,0.6);
    overflow: hidden;
    width: 280px;
}

.phone-mockup img {
    border-radius: 34px;
    width: 100%;
    display: block;
}

.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 28px;
    background: #1A1A1A;
    border-radius: 0 0 18px 18px;
    z-index: 10;
}

.phone-mockup.mockup-lg { width: 300px; }
.phone-mockup.mockup-md { width: 260px; }
.phone-mockup.mockup-sm {
    width: 220px;
    border-radius: 36px;
    padding: 10px;
    flex-shrink: 0;
}
.phone-mockup.mockup-sm .phone-notch { width: 90px; height: 22px; top: 10px; }
.phone-mockup.mockup-sm img { border-radius: 28px; }

.phone-showcase {
    position: relative;
    display: flex;
    justify-content: center;
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border-radius: 12px;
    border: 2px solid rgba(255,255,255,0.15);
    position: relative;
}

.scroll-dot {
    width: 3px;
    height: 8px;
    background: var(--green);
    border-radius: 3px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.3; transform: translateX(-50%) translateY(12px); }
}

/* ============================
   SECTIONS — Common
   ============================ */
.section {
    padding: 140px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.section-title-center {
    text-align: center;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 560px;
}

.section-desc-center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

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

.section-grid-reverse {
    direction: rtl;
}
.section-grid-reverse > * {
    direction: ltr;
}

/* ============================
   SKILL TREE SECTION
   ============================ */
.section-skill-tree {
    background: var(--bg-dark);
}

.feature-list {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-subtle);
    transition: all 0.3s var(--ease);
}

.feature-list li:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--border-glow);
}

.feature-icon {
    font-size: 1.3rem;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--green-soft);
    flex-shrink: 0;
}

.feature-list strong {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.feature-list span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ============================
   WORKOUTS SECTION
   ============================ */
.section-workouts {
    background: var(--bg-section);
}

.workout-modes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 72px;
}

.mode-card {
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    transition: all 0.4s var(--ease);
}

.mode-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.mode-icon {
    font-size: 2rem;
    margin-bottom: 18px;
}

.mode-card h4 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    font-style: italic;
    margin-bottom: 10px;
}

.mode-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* Screenshots carousel */
.workout-screenshots {
    overflow: hidden;
}

.screenshots-scroll {
    display: flex;
    gap: 20px;
    justify-content: center;
    padding: 20px 0;
}

/* ============================
   GAMIFICATION
   ============================ */
.section-gamification {
    background: var(--bg-dark);
}

.gamification-features {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gf-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.gf-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--green-soft);
}

.gf-item strong {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.gf-item p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0;
}

/* Gamification phones */
.gamification-phones {
    position: relative;
    display: flex;
    justify-content: center;
    min-height: 520px;
}

.phone-back {
    position: absolute;
    left: 8%;
    top: 40px;
    opacity: 0.5;
    transform: rotate(-4deg) scale(0.88);
}

.phone-front {
    position: relative;
    z-index: 2;
}

/* ============================
   THEMES
   ============================ */
.section-themes {
    background: var(--bg-section);
}

.themes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.theme-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 48px 40px;
    border: 1px solid var(--border-subtle);
    transition: all 0.4s var(--ease);
    background: var(--bg-card);
}

.theme-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.theme-nebula {
    border-color: rgba(92, 255, 126, 0.1);
}
.theme-nebula:hover {
    border-color: rgba(92, 255, 126, 0.25);
}

.theme-norsefi {
    border-color: rgba(212,175,55,0.1);
}
.theme-norsefi:hover {
    border-color: rgba(212,175,55,0.25);
}

.theme-card-content {
    position: relative;
    z-index: 1;
}

.theme-card h3 {
    font-size: 1.6rem;
    margin-bottom: 6px;
}

.theme-universe {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.theme-palette {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.color-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.08);
}

.theme-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ============================
   CTA FINAL
   ============================ */
.section-cta {
    padding: 160px 0;
    background: var(--bg-dark);
    text-align: center;
}

.cta-block {
    position: relative;
    padding: 0;
}

.cta-icon {
    width: 80px;
    height: 80px;
    border-radius: 22px;
    margin: 0 auto 32px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.cta-block .section-title {
    margin-bottom: 16px;
}

.cta-block .section-desc {
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

/* ============================
   FOOTER
   ============================ */
.footer {
    background: var(--bg-section);
    border-top: 1px solid var(--border-subtle);
    padding: 56px 0 28px;
}

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

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    gap: 40px;
}

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    margin-bottom: 12px;
}

.footer-name {
    font-family: var(--font-display);
    font-weight: 900;
    font-style: italic;
    font-size: 1.2rem;
    display: block;
    margin-bottom: 8px;
    color: var(--green);
}

.footer-tagline {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.footer-links {
    display: flex;
    gap: 56px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 4px;
}

.footer-col a {
    font-size: 0.88rem;
    color: var(--text-secondary);
    transition: color 0.3s var(--ease);
}

.footer-col a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}

.footer-bottom p {
    font-size: 0.78rem;
    color: var(--text-dim);
}

.footer-lang {
    display: flex;
    gap: 2px;
    background: rgba(255,255,255,0.06);
    border-radius: var(--radius-full);
    padding: 3px;
}

.footer-lang button {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border: none;
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.footer-lang button.active {
    background: rgba(255,255,255,0.12);
    color: var(--text-primary);
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1024px) {
    .section { padding: 100px 0; }
}

@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }

    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .hero-overline { text-align: center; }

    .section-grid,
    .section-grid-reverse {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .section-grid-reverse { direction: ltr; }

    .section-text { text-align: center; }
    .section-desc { margin-left: auto; margin-right: auto; }

    .feature-list li { text-align: left; }
    .gf-item { text-align: left; }

    .themes-grid { grid-template-columns: 1fr; }
    .workout-modes { grid-template-columns: 1fr; }

    .gamification-phones { min-height: 440px; }
    .phone-back { left: 5%; }
}

@media (max-width: 768px) {
    .nav-links,
    .nav-cta,
    .nav-lang {
        display: none;
    }

    .hamburger { display: flex; }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.96);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        justify-content: center;
        align-items: center;
        gap: 28px;
        z-index: 999;
    }

    .nav-links.active a {
        font-size: 1.4rem;
        font-weight: 600;
        color: var(--text-primary);
    }

    .hero {
        padding: 120px 0 80px;
        min-height: auto;
    }

    .section { padding: 80px 0; }

    .section-title {
        font-size: clamp(1.8rem, 6vw, 2.6rem);
    }

    .hero-title {
        font-size: clamp(2.2rem, 8vw, 3rem);
    }

    .hero-scroll { display: none; }

    .screenshots-scroll {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 20px;
        gap: 16px;
    }
    .screenshots-scroll::-webkit-scrollbar { display: none; }

    .footer-top { flex-direction: column; }
    .footer-links { gap: 36px; flex-wrap: wrap; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

    .section-cta { padding: 100px 0; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .btn { width: 100%; justify-content: center; }

    .phone-mockup { width: 240px; }
    .phone-mockup.mockup-lg { width: 260px; }
    .phone-mockup.mockup-md { width: 220px; }
    .phone-mockup.mockup-sm { width: 190px; }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn { max-width: 320px; }
    .theme-card { padding: 32px 24px; }
}
