/* =========================================================
   Linkup — Landing Page Styles
   Isolated from dashboard/auth (style.css). Only loaded on index.html.
   Color palette is strictly derived from style.css design system.
   ========================================================= */

/* ─── CSS Custom Properties ─────────────────────────────── */
:root {
    --color-primary:       #667eea;
    --color-primary-dark:  #764ba2;
    --gradient-brand:      linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow-primary:      0 5px 20px rgba(102, 126, 234, 0.4);
    --shadow-card:         0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-card-hover:   0 12px 40px rgba(0, 0, 0, 0.15);
    --radius-card:         16px;
    --radius-btn:          8px;
    --font-base:           -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --color-text:          #333;
    --color-muted:         #666;
    --color-bg-gray:       #f8f9fa;
    --color-footer-bg:     #1a1a2e;
}

/* ─── Reset (scoped to landing) ─────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-base);
    color: var(--color-text);
    background: #fff;
    line-height: 1.6;
}

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

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

/* ─── Utility ────────────────────────────────────────────── */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Navbar ─────────────────────────────────────────────── */
.landing-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
}

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

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #fff;
}

.btn-nav-signup {
    background: #fff;
    color: var(--color-primary) !important;
    padding: 10px 22px;
    border-radius: var(--radius-btn);
    font-weight: 600 !important;
    transition: box-shadow 0.2s, transform 0.2s !important;
}

.btn-nav-signup:hover {
    box-shadow: var(--shadow-primary) !important;
    transform: translateY(-1px);
}

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
    background: var(--gradient-brand);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

/* subtle decorative circles */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    background: #fff;
    pointer-events: none;
}

.hero::before {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -150px;
}

.hero::after {
    width: 400px;
    height: 400px;
    bottom: -150px;
    left: -100px;
}

.hero-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-text {
    color: #fff;
}

.hero-text h1 {
    font-size: 3.25rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-text p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 36px;
    max-width: 420px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    background: #fff;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1rem;
    padding: 16px 32px;
    border-radius: var(--radius-btn);
    transition: box-shadow 0.2s, transform 0.2s;
    white-space: nowrap;
}

.btn-hero-primary:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.btn-hero-ghost {
    display: inline-flex;
    align-items: center;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    padding: 16px 28px;
    border-radius: var(--radius-btn);
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: border-color 0.2s, background 0.2s;
    white-space: nowrap;
}

.btn-hero-ghost:hover {
    border-color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
}

.hero-trust {
    font-size: 0.875rem;
    opacity: 0.75;
    margin-bottom: 0 !important;
}

/* ─── Phone Frame (Hero illustration) ───────────────────── */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-frame {
    background: #fff;
    border-radius: var(--radius-card);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 32px 24px;
    width: 280px;
    max-width: 100%;
}

.phone-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
}

.phone-username {
    text-align: center;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.phone-bio {
    text-align: center;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 20px;
}

.phone-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.phone-link-btn {
    display: block;
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    background: #f8f9fa;
    color: #333;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid #e9ecef;
    transition: background 0.2s;
}

/* ─── Sections ───────────────────────────────────────────── */
.section-white {
    background: #fff;
    padding: 96px 0;
}

.section-gray {
    background: var(--color-bg-gray);
    padding: 96px 0;
}

.section-title {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-muted);
    margin-bottom: 64px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* ─── How It Works ───────────────────────────────────────── */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.step {
    text-align: center;
}

.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.step-icon {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.step h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 10px;
}

.step p {
    font-size: 0.95rem;
    color: var(--color-muted);
    line-height: 1.7;
}

/* ─── Features Grid ──────────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.feature-card {
    background: #fff;
    border-radius: var(--radius-card);
    padding: 32px 28px;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.feature-icon {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 10px;
}

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

.pro-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    background: var(--gradient-brand);
    color: #fff;
    padding: 3px 10px;
    border-radius: 9999px;
    position: absolute;
    top: 20px;
    right: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ─── Pricing Grid ───────────────────────────────────────── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 840px;
    margin: 0 auto;
}

.pricing-card {
    background: #fff;
    border-radius: var(--radius-card);
    padding: 40px 36px;
    box-shadow: var(--shadow-card);
    border: 2px solid transparent;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.pricing-card.featured {
    border-color: var(--color-primary);
    box-shadow: 0 8px 40px rgba(102, 126, 234, 0.25);
}

.most-popular-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--gradient-brand);
    color: #fff;
    padding: 4px 14px;
    border-radius: 9999px;
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.pricing-tier {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1;
    margin-bottom: 4px;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-muted);
}

.pricing-desc {
    font-size: 0.9rem;
    color: var(--color-muted);
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid #eee;
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.925rem;
    color: var(--color-text);
}

.pricing-features .icon-check {
    color: #22c55e;
    flex-shrink: 0;
    margin-top: 2px;
}

.pricing-features .icon-cross {
    color: #d1d5db;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Pricing CTA buttons */
.btn-pricing {
    display: block;
    width: 100%;
    text-align: center;
    padding: 15px;
    border-radius: var(--radius-btn);
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.2s;
}

.btn-pricing-free {
    background: #f1f5f9;
    color: var(--color-text);
    border: 2px solid #e2e8f0;
}

.btn-pricing-free:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

.btn-pricing-pro {
    background: var(--gradient-brand);
    color: #fff;
}

.btn-pricing-pro:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

/* ─── CTA Banner ─────────────────────────────────────────── */
.cta-banner {
    background: var(--gradient-brand);
    padding: 96px 0;
    text-align: center;
}

.cta-banner h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.cta-banner p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--color-primary);
    font-size: 1.05rem;
    font-weight: 700;
    padding: 18px 40px;
    border-radius: var(--radius-btn);
    transition: box-shadow 0.2s, transform 0.2s;
}

.btn-cta:hover {
    box-shadow: var(--shadow-primary);
    transform: translateY(-2px);
}

/* ─── Footer ─────────────────────────────────────────────── */
.landing-footer {
    background: var(--color-footer-bg);
    padding: 64px 0 40px;
    color: #aaa;
}

.footer-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.footer-tagline {
    font-size: 0.9rem;
    color: #888;
    line-height: 1.6;
    max-width: 240px;
}

.footer-col h4 {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    color: #888;
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #666;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-copy {
    font-size: 0.85rem;
    color: #666;
}

/* ─── Responsive: 768px ──────────────────────────────────── */
@media (max-width: 768px) {
    /* Hero */
    .hero {
        padding: 100px 0 60px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.25rem;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-visual {
        display: none;     /* Phone frame скрывается на мобильном */
    }

    /* Steps */
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

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

    /* Pricing */
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
    }

    /* Pricing: PRO сверху на мобильном */
    .pricing-card.featured {
        order: -1;
    }

    /* Sections */
    .section-white,
    .section-gray {
        padding: 64px 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    /* CTA */
    .cta-banner {
        padding: 64px 0;
    }

    .cta-banner h2 {
        font-size: 1.75rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-grid > :first-child {
        grid-column: 1 / -1;
    }

    /* Nav */
    .nav-links {
        gap: 16px;
    }
}

/* ─── Responsive: 480px ──────────────────────────────────── */
@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.875rem;
    }

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

    .btn-hero-primary,
    .btn-hero-ghost {
        width: 100%;
        justify-content: center;
    }

    .pricing-card {
        padding: 36px 24px;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .nav-links a:not(.btn-nav-signup) {
        display: none;
    }
}

/* ─── Language Switcher (landing) ────────────────────────── */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 0.78rem;
    font-weight: 500;
}

.lang-switcher a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 2px 5px;
    border-radius: 4px;
    transition: color 0.2s;
}

.lang-switcher a:hover {
    color: #fff;
}

.lang-switcher a.lang-active {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.lang-switcher .lang-sep {
    color: rgba(255, 255, 255, 0.4);
}

/* ─── Lang Dropdown (corner variant) ─────────────────────── */
.lang-dropdown--corner {
    position: fixed;
    top: 16px;
    right: 20px;
    z-index: 1000;
}

.lang-dropdown {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    line-height: 1.4;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.lang-btn:hover {
    color: #667eea;
    border-color: rgba(102, 126, 234, 0.4);
    background: #fff;
}

.lang-arrow {
    font-size: 0.6rem;
    transition: transform 0.2s;
}

.lang-dropdown.open .lang-arrow {
    transform: rotate(180deg);
}

.lang-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    min-width: 60px;
    overflow: hidden;
    z-index: 200;
}

.lang-dropdown.open .lang-menu {
    display: block;
}

.lang-menu a {
    display: block;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    transition: background 0.15s;
}

.lang-menu a:hover {
    background: #f3f4f6;
    color: #667eea;
}
