/* === TrackShift === */

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

:root {
    --primary: #e19b92;
    --accent: #f9351b;
    --text: #f0eae9;
    --text-dim: rgba(240, 234, 233, 0.5);
    --bg: #0f0807;
    --bg-light: #150d0b;
    --bg-lighter: #1f1513;
    --bg-card: #251a17;
    --border: rgba(225, 155, 146, 0.12);
    --font-main: 'Space Grotesk', system-ui, sans-serif;
    --font-mono: 'Space Mono', monospace;
}

html {
    scroll-behavior: smooth;
}

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

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

img {
    max-width: 100%;
    height: auto;
}

/* === HEADER === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;
    background-color: rgba(15, 8, 7, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

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

.logo-text {
    font-weight: 600;
    font-size: 1.05rem;
}

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

.nav-link {
    font-size: 0.88rem;
    color: var(--text-dim);
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--text);
}

.nav-cta {
    color: var(--accent);
    font-weight: 500;
}

/* === LANGUAGE SWITCHER === */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-main);
    margin-left: 8px;
}

.lang-switcher:hover {
    border-color: var(--primary);
    background-color: rgba(225, 155, 146, 0.08);
}

.lang-flag {
    font-size: 1rem;
    line-height: 1;
}

.lang-code {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.02em;
}

/* === SECTIONS === */
.section {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 40px;
}

/* === HERO === */
.section-hero {
    background-color: var(--bg);
    text-align: center;
    background-image: radial-gradient(ellipse at 50% 0%, rgba(249, 53, 27, 0.08) 0%, transparent 60%);
}

.hero-container {
    max-width: 720px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-highlight {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-dim);
    margin-bottom: 36px;
    line-height: 1.75;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    margin-bottom: 50px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 26px;
    font-family: var(--font-main);
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--accent);
    color: white;
}

.btn-primary:hover {
    background-color: #e02d15;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(249, 53, 27, 0.25);
}

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

.btn-secondary:hover {
    border-color: var(--primary);
    background-color: rgba(225, 155, 146, 0.05);
}

.hero-platforms {
    display: flex;
    align-items: center;
    gap: 20px;
    opacity: 0.6;
}

.hero-platforms img {
    transition: opacity 0.2s, transform 0.2s;
}

.hero-platforms img:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* === STORY === */
.section-story {
    background-color: var(--bg-light);
    min-height: auto;
    padding: 100px 40px;
}

.story-container {
    max-width: 900px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 80px;
}

.story-content {
    flex: 1;
}

.story-title {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 28px;
    letter-spacing: -0.01em;
}

.story-body {
    max-width: 380px;
}

.story-p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-dim);
    margin-bottom: 16px;
    font-family: var(--font-mono);
}

.story-end {
    display: block;
    margin-top: 12px;
    color: var(--primary);
}

.story-p.reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s, transform 0.5s;
}

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

.story-visual {
    flex-shrink: 0;
}

.visual-phone {
    width: 180px;
    height: 360px;
    background-color: var(--bg-card);
    border-radius: 28px;
    padding: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.phone-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background-color: var(--bg);
    border-radius: 18px;
    overflow: hidden;
}

.phone-header {
    height: 40px;
    background: linear-gradient(180deg, var(--bg-lighter) 0%, var(--bg) 100%);
}

.phone-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.phone-track {
    height: 44px;
    background-color: var(--bg-lighter);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.phone-track::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background-color: var(--bg-card);
    border-radius: 4px;
}

.phone-track::after {
    content: '';
    position: absolute;
    left: 50px;
    top: 50%;
    transform: translateY(-50%);
    width: 60%;
    height: 10px;
    background-color: var(--bg-card);
    border-radius: 3px;
}

/* === HOW === */
.section-how {
    background-color: var(--bg);
    min-height: auto;
    padding: 100px 40px;
}

.how-container {
    max-width: 1000px;
    width: 100%;
    text-align: center;
}

.how-title {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 55px;
}

.steps-grid {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 16px;
}

.step-card {
    flex: 1;
    max-width: 280px;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px 24px 28px;
    position: relative;
    text-align: center;
    transition: transform 0.2s, border-color 0.2s;
}

.step-card:hover {
    transform: translateY(-4px);
    border-color: rgba(225, 155, 146, 0.25);
}

.step-number {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent);
    background-color: var(--bg);
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid var(--accent);
}

.step-visual {
    width: 48px;
    height: 48px;
    margin: 0 auto 18px;
    color: var(--primary);
}

.step-visual svg {
    width: 100%;
    height: 100%;
}

.step-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.step-desc {
    font-size: 0.88rem;
    color: var(--text-dim);
    line-height: 1.55;
}

.step-arrow {
    width: 32px;
    color: var(--primary);
    opacity: 0.3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-arrow svg {
    width: 24px;
    height: 24px;
}

/* === DEMO === */
.section-demo {
    background-color: var(--bg-light);
    min-height: auto;
    padding: 70px 40px;
}

.demo-container {
    max-width: 950px;
    width: 100%;
}

.demo-visual {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
}

.demo-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.demo-step {
    flex: 1;
    max-width: 260px;
}

.demo-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--primary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-align: center;
}

.demo-box {
    background-color: var(--bg-lighter);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.demo-box.demo-magic {
    border-color: var(--accent);
    background-color: rgba(249, 53, 27, 0.08);
}

.demo-box.demo-result {
    border-color: rgba(16, 185, 129, 0.3);
    background-color: rgba(16, 185, 129, 0.05);
}

.demo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.demo-title {
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.demo-url {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.demo-link {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
}

.demo-meta {
    font-size: 0.72rem;
    color: var(--text-dim);
}

.demo-platforms-stack {
    display: flex;
    align-items: center;
}

.demo-platforms-stack img {
    margin-left: -8px;
    border: 2px solid var(--bg-lighter);
    border-radius: 6px;
}

.demo-platforms-stack img:first-child {
    margin-left: 0;
}

.demo-arrow {
    width: 28px;
    flex-shrink: 0;
    color: var(--primary);
    opacity: 0.3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-arrow svg {
    width: 20px;
    height: 20px;
}

/* === FEATURES === */
.section-features {
    background-color: var(--bg);
    min-height: auto;
    padding: 80px 40px;
}

.features-container {
    max-width: 1000px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 24px;
    transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
    transform: translateY(-3px);
    border-color: rgba(225, 155, 146, 0.2);
}

.feature-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
    color: var(--accent);
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-desc {
    font-size: 0.88rem;
    color: var(--text-dim);
    line-height: 1.55;
}

/* === PLATFORMS === */
.section-platforms {
    background-color: var(--bg-light);
    min-height: auto;
    padding: 90px 40px;
}

.platforms-container {
    max-width: 800px;
    width: 100%;
    text-align: center;
}

.platforms-title-main {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.platforms-subtitle {
    font-size: 1rem;
    color: var(--text-dim);
    margin-bottom: 45px;
}

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

.platform-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    transition: transform 0.2s, border-color 0.2s;
}

.platform-item:hover {
    transform: translateY(-3px);
    border-color: rgba(225, 155, 146, 0.2);
}

.platform-item span {
    font-size: 0.9rem;
    color: var(--text-dim);
}

/* === DOWNLOAD === */
.section-download {
    background-color: var(--bg);
    min-height: auto;
    padding: 100px 40px;
    background-image: radial-gradient(ellipse at 50% 100%, rgba(249, 53, 27, 0.06) 0%, transparent 50%);
}

.download-container {
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.download-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.download-subtitle {
    font-size: 1.05rem;
    color: var(--text-dim);
    margin-bottom: 36px;
}

.download-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 22px;
    opacity: 0.5;
}

.store-icon {
    width: 26px;
    height: 26px;
    color: var(--text);
}

.store-text {
    text-align: left;
}

.store-label {
    display: block;
    font-size: 0.68rem;
    color: var(--text-dim);
    margin-bottom: 2px;
}

.store-name {
    display: block;
    font-size: 1.02rem;
    font-weight: 600;
}

/* === FOOTER === */
.footer {
    padding: 24px 40px;
    background-color: var(--bg-light);
    border-top: 1px solid var(--border);
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo {
    font-weight: 600;
    font-size: 0.9rem;
}

.footer-right {
    display: flex;
    gap: 22px;
}

.footer-link {
    font-size: 0.82rem;
    color: var(--text-dim);
    transition: color 0.2s;
}

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

/* === RESPONSIVE === */
@media (max-width: 900px) {
    .story-container {
        flex-direction: column;
        text-align: center;
    }

    .story-body {
        max-width: 100%;
    }

    .story-visual {
        display: none;
    }

    .steps-grid {
        flex-direction: column;
        align-items: center;
    }

    .step-card {
        max-width: 100%;
        width: 100%;
    }

    .step-arrow {
        transform: rotate(90deg);
        height: 32px;
        width: auto;
    }

    .demo-flow {
        flex-direction: column;
    }

    .demo-step {
        max-width: 100%;
        width: 100%;
    }

    .demo-arrow {
        transform: rotate(90deg);
        height: 28px;
        width: auto;
    }

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

@media (max-width: 768px) {
    .header {
        padding: 16px 24px;
    }

    .header-nav {
        display: none;
    }

    .section {
        padding: 70px 24px;
    }

    .hero-title {
        font-size: 2.4rem;
    }

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

    .btn {
        width: 100%;
    }

    .hero-platforms {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .story-title {
        font-size: 2rem;
    }

    .platforms-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .store-btn {
        width: 100%;
        max-width: 240px;
        justify-content: center;
    }

    .footer-container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .demo-visual {
        padding: 24px;
    }
}
