/* ============================================
   TRAFIX LOADER — Landing Page Styles
   Design system based on loader.trafix.tech
   ============================================ */

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

:root {
    /* Brand Colors — from loader.trafix.tech */
    --color-primary: #97c238;
    --color-primary-hover: #88b32e;
    --color-primary-light: #dceebb;
    --color-primary-bg: #eef6dc;

    /* Neutrals — from loader.trafix.tech */
    --color-bg: #f7f7f8;
    --color-white: #ffffff;
    --color-dark: #111111;
    --color-text: #111111;
    --color-text-secondary: #6b7280;
    --color-text-muted: #9ca3af;
    --color-border: #e5e7ea;
    --color-border-light: #f0f1f3;

    /* Accent */
    --color-danger: #ef4444;
    --color-warning: #f59e0b;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.1);

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;

    /* Typography */
    --font-family: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    /* Layout */
    --max-width: 1400px;
    --header-height: 72px;
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

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

h1, h2, h3 {
    font-family: var(--font-family);
    color: var(--color-text);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    line-height: 1.15;
}

h2 {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    line-height: 1.2;
}

h3 {
    font-size: clamp(20px, 2vw, 28px);
    font-weight: 600;
    line-height: 1.3;
}


/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(247, 247, 248, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border-light);
    height: var(--header-height);
}

.header__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-xl);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
}

.header__logo-group {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-shrink: 0;
}

.header__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header__logo-icon {
    flex-shrink: 0;
    height: 36px;
    width: auto;
}

.header__descriptor {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-muted);
    padding-left: var(--space-md);
    border-left: 1px solid var(--color-border);
    line-height: 1.3;
    white-space: nowrap;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.header__link {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color 0.2s ease;
    white-space: nowrap;
}

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

.header__actions {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.header__socials {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.header__social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    transition: all 0.2s ease;
}

.header__social:hover {
    color: var(--color-text);
    background: var(--color-border-light);
}

.header__cta {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 20px;
    background: var(--color-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.header__cta:hover {
    background: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(151, 194, 56, 0.3);
}

/* Burger */
.header__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.header__burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.header__burger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.header__burger.active span:nth-child(2) {
    opacity: 0;
}

.header__burger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    padding-top: calc(var(--header-height) + var(--space-2xl));
    padding-bottom: var(--space-3xl);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-xl);
    width: 100%;
    display: grid;
    grid-template-columns: 480px 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.hero__content {
    max-width: 480px;
}

.hero__title {
    margin-bottom: var(--space-lg);
}

.hero__title-accent {
    color: var(--color-primary);
    display: block;
}

.hero__title-line {
    display: block;
}

.hero__subtitle {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.55;
    margin-bottom: var(--space-md);
    max-width: 480px;
}

.hero__subtitle strong {
    font-weight: 600;
    color: var(--color-text);
}

.hero__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.hero__btn {
    display: inline-flex;
    align-items: center;
    height: 48px;
    padding: 0 28px;
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: var(--font-family);
    white-space: nowrap;
}

.hero__btn--primary {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(151, 194, 56, 0.35);
    padding: 0 6px 0 20px;
}

.hero__btn--primary:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(151, 194, 56, 0.45);
}

.hero__btn-promo {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #ff6b00;
    padding: 4px 8px 4px 10px;
    border-radius: 6px;
    margin-left: 10px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.hero__btn-promo:hover {
    background: #e86000;
}

.hero__btn-promo-text {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.04em;
}

.hero__btn-promo-copy {
    color: #fff;
    flex-shrink: 0;
}

.hero__btn-promo-check {
    display: none;
    color: #fff;
    flex-shrink: 0;
}

.hero__btn-promo.copied .hero__btn-promo-copy {
    display: none;
}

.hero__btn-promo.copied .hero__btn-promo-check {
    display: block;
}

.hero__promo-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.hero__note {
    font-size: 13px;
    color: var(--color-text-muted);
}


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

.hero__demo {
    position: relative;
    width: 100%;
}

.hero__video {
    width: 100%;
    display: block;
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-xl);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero__video:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.12);
}

.hero__demo-overlay {
    position: absolute;
    bottom: var(--space-md);
    left: var(--space-md);
    pointer-events: none;
}

.hero__demo-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(26, 26, 46, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--color-white);
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--radius-sm);
}

.hero__demo-badge svg {
    flex-shrink: 0;
}


/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero__inner {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .hero__content {
        max-width: 100%;
        text-align: center;
    }

    .hero__subtitle {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__note {
        text-align: center;
    }

    .hero {
        min-height: auto;
        padding-bottom: var(--space-3xl);
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    .header__nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--color-white);
        border-bottom: 1px solid var(--color-border);
        padding: var(--space-lg);
        flex-direction: column;
        gap: var(--space-md);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    .header__nav.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .header__descriptor {
        display: none;
    }

    .header__socials {
        display: none;
    }

    .header__burger {
        display: flex;
    }

    .header__inner {
        padding: 0 var(--space-md);
    }

    .hero__inner {
        padding: 0 var(--space-md);
    }

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

    .hero__btn {
        width: 100%;
        max-width: 320px;
    }

    .hero__promo {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero__subtitle {
        font-size: 16px;
    }
}
