/* Modern Design System */
:root {
    --primary-color: #7c4dff;
    --primary-dark: #5f33d6;
    --primary-light: #a78bfa;
    --secondary-color: #4b4f6b;
    --secondary-dark: #32364f;
    --accent-color: #9a74ff;
    --accent-dark: #7f57ea;
    --light-bg: #f5f6fb;
    --dark-bg: #1f2339;
    --surface: #ffffff;
    --text-color: #1c2435;
    --text-muted: #5f6b85;
    --text-light: #8b93a8;
    --border-color: rgba(28, 36, 53, 0.08);
    --success-color: #7f83ff;
    --warning-color: #f0c86a;
    --card-shadow: 0 10px 25px -15px rgba(12, 24, 36, 0.25);
    --card-shadow-md: 0 18px 30px -18px rgba(12, 24, 36, 0.3);
    --card-shadow-lg: 0 25px 45px -22px rgba(12, 24, 36, 0.35);
    --card-shadow-xl: 0 35px 70px -30px rgba(12, 24, 36, 0.45);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(135deg, #7c4dff 0%, #4b4f6b 100%);
    --gradient-secondary: linear-gradient(135deg, #5c5f7c 0%, #2f334f 100%);
    --gradient-accent: linear-gradient(135deg, #a78bfa 0%, #7479a1 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #f5f6fb;
    color: var(--text-color);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', 'Space Grotesk', serif;
}

.container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    letter-spacing: -0.01em;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 999px;
}

.section-header p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Header & Nav */
.header {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 14px 38px -30px rgba(12, 18, 38, 0.55);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(28, 36, 53, 0.12);
}

.header.scrolled {
    padding: 0.45rem 0;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 45px -34px rgba(12, 18, 38, 0.65);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 74px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(244, 242, 252, 0.82));
    border: 1px solid rgba(124, 77, 255, 0.16);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    flex-shrink: 0;
    transition: var(--transition);
}

.logo:hover {
    transform: translateY(-1px);
}

.logo-mark {
    width: 42px;
    height: 42px;
    filter: drop-shadow(0 8px 18px rgba(124, 77, 255, 0.36));
}

.logo-text {
    display: grid;
    line-height: 1;
    gap: 3px;
}

.logo-name {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.logo-ext {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: #5f33d6;
    text-transform: uppercase;
}

.logo-meta {
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #5633bf;
    background: rgba(124, 77, 255, 0.14);
    border: 1px solid rgba(124, 77, 255, 0.28);
}

.logo-offer {
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #ffffff;
    background: linear-gradient(135deg, #6f49e6, #4f46e5);
    box-shadow: 0 8px 18px -12px rgba(79, 70, 229, 0.9);
    white-space: nowrap;
}

.nav {
    display: flex;
    gap: 10px;
    align-items: center;
    flex: 1;
    justify-content: center;
    padding: 6px;
    border-radius: 999px;
    background: rgba(242, 238, 255, 0.78);
    border: 1px solid rgba(124, 77, 255, 0.2);
    max-width: 480px;
}

.nav-link {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-color);
    opacity: 0.82;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    padding: 8px 14px;
    border-radius: 999px;
}

.nav-link::after {
    display: none;
}

.nav-link:hover {
    opacity: 1;
    color: #4f2fb5;
    background: rgba(124, 77, 255, 0.16);
}

.nav-link.active {
    opacity: 1;
    color: #45269e;
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.24), rgba(75, 79, 107, 0.2));
    box-shadow: inset 0 0 0 1px rgba(124, 77, 255, 0.24);
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.header-actions .btn {
    min-height: 42px;
    border-radius: 12px;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 10px 14px;
}

.header-actions .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 14px 26px -18px rgba(124, 77, 255, 0.58);
}

.header-actions .btn-primary i {
    font-size: 0.8rem;
}

/* Hero Section */
.hero {
    padding: 160px 0 110px;
    background:
        radial-gradient(circle at 12% 20%, rgba(124, 77, 255, 0.16), transparent 48%),
        radial-gradient(circle at 86% 76%, rgba(75, 79, 107, 0.16), transparent 55%),
        linear-gradient(180deg, #f9f8ff 0%, #f3f4fb 100%);
    overflow: hidden;
    position: relative;
}

.hero .container {
    max-width: 1220px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 48px;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(124, 77, 255, 0.22), transparent 65%);
    border-radius: 50%;
    filter: blur(70px);
    animation: float 22s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -35%;
    left: -10%;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(88, 92, 128, 0.2), transparent 65%);
    border-radius: 50%;
    filter: blur(80px);
    animation: float 28s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.2rem;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-color);
    margin-bottom: 26px;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content p {
    font-size: 1.1rem;
    max-width: 500px;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-image {
    position: relative;
    z-index: 1;
    padding: 14px;
    border-radius: 34px;
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.14), rgba(107, 185, 255, 0.18));
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 30px 70px -40px rgba(42, 52, 88, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.hero-image::before {
    content: '';
    position: absolute;
    inset: -18px;
    border-radius: 42px;
    background: radial-gradient(circle at 80% 20%, rgba(124, 77, 255, 0.22), transparent 58%),
                radial-gradient(circle at 20% 80%, rgba(89, 191, 255, 0.22), transparent 62%);
    filter: blur(16px);
    z-index: -1;
    pointer-events: none;
}

.hero-image img {
    border-radius: 22px;
    box-shadow: var(--card-shadow-xl);
    transition: var(--transition-slow);
    border: 1px solid rgba(255, 255, 255, 0.42);
    max-width: none;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    margin-left: auto;
}

.hero-image img:hover {
    transform: translateY(-8px) scale(1.015);
    box-shadow: 0 36px 68px -28px rgba(23, 33, 62, 0.5);
}


.product-preview {
    padding-top: 24px;
    padding-bottom: 8px;
}

.preview-card {
    max-width: 980px;
    margin: 0 auto;
    padding: 14px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(244, 242, 252, 0.86));
    border: 1px solid rgba(124, 77, 255, 0.18);
    box-shadow: 0 24px 40px -34px rgba(31, 38, 77, 0.45);
}

.preview-composition {
    position: relative;
    max-width: 920px;
    margin: 0 auto;
    min-height: 350px;
}

.preview-shot {
    position: absolute;
    display: block;
    border-radius: 16px;
    border: 1px solid rgba(124, 77, 255, 0.24);
    box-shadow: 0 22px 36px -24px rgba(26, 35, 76, 0.42);
    background: #ffffff;
}

.preview-shot-main {
    width: 72%;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    object-fit: cover;
    object-position: center top;
}

.preview-shot-dashboard {
    width: 34%;
    left: 26px;
    bottom: 8px;
    z-index: 2;
    object-fit: cover;
    object-position: left top;
}

.preview-shot-chat {
    width: 23%;
    right: 24px;
    bottom: -56px;
    z-index: 3;
    object-fit: cover;
    object-position: center top;
}

.preview-caption {
    margin: 16px 4px 2px;
    text-align: center;
    color: #5b6280;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Cards & Grid */
.services-grid, .features-grid, .cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.card {
    background: var(--surface);
    padding: 36px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    border-color: rgba(124, 77, 255, 0.3);
    box-shadow: var(--card-shadow-xl);
    transform: translateY(-10px);
}

.card i {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: inline-block;
    transition: var(--transition);
}

.card:hover i {
    transform: scale(1.1) rotate(5deg);
}

.card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
}

.card p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* About */
.about-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.82) 100%);
    border: 1px solid rgba(28, 36, 53, 0.1);
    border-radius: 20px;
    padding: 28px 28px 24px;
    box-shadow: 0 18px 34px -28px rgba(12, 24, 36, 0.45);
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.about-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 4px;
    background: var(--gradient-primary);
    border-radius: 999px;
    opacity: 0.9;
}

.about-card p {
    margin-bottom: 14px;
}

.about-card p:last-of-type {
    margin-bottom: 18px;
}

.about-card .stats {
    margin-top: 6px;
}

.about-card .stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.about-card .stat-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(253, 247, 241, 0.85) 100%);
    border: 1px solid rgba(28, 36, 53, 0.08);
    border-radius: 14px;
    padding: 14px 14px 12px;
    box-shadow: 0 14px 28px -26px rgba(12, 24, 36, 0.6);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.about-card .stat-number {
    font-family: 'Playfair Display', 'Space Grotesk', serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.about-card .stat-label {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.35;
}

@media (max-width: 768px) {
    .about-card .stats {
        grid-template-columns: 1fr;
    }
    .about-card .stat-item {
        flex-direction: row;
        align-items: baseline;
        justify-content: flex-start;
        gap: 10px;
    }
    .about-card .stat-number {
        font-size: 1.25rem;
        min-width: 60px;
    }
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0 18px;
}

.about-mini-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(28, 36, 53, 0.08);
    border-radius: 16px;
    padding: 18px 18px 16px;
    box-shadow: 0 12px 24px -22px rgba(12, 24, 36, 0.5);
}

.about-mini-card h3 {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

.about-mini-card p {
    margin-bottom: 0;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .about-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* Buttons */
.btn {
    border-radius: 999px;
    padding: 16px 32px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 18px 30px -18px rgba(124, 77, 255, 0.62);
    position: relative;
    z-index: 1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 40px -18px rgba(124, 77, 255, 0.72);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid rgba(92, 65, 189, 0.22);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--gradient-secondary);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 14px 24px -16px rgba(92, 65, 189, 0.5);
}

/* Utilities & Badges */
.light-bg {
    background: linear-gradient(180deg, #f6f3ef 0%, #ffffff 100%);
}

.badge-success {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
    padding: 8px 16px;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

/* Testimonials */
.testimonials .card {
    background: linear-gradient(135deg, #ffffff 0%, #fdf7f1 100%);
    border-left: 4px solid transparent;
    border-image: var(--gradient-primary) 1;
}

.testimonials .card:hover {
    border-image: var(--gradient-secondary) 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

.testimonial-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 4px;
}

.testimonial-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* Cases */
.cases .card {
    background: white;
    position: relative;
    overflow: hidden;
}

.case-image {
    width: 100%;
    height: 200px;
    background: var(--gradient-secondary);
    border-radius: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    transition: var(--transition);
}

.cases .card:hover .case-image {
    transform: scale(1.05);
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 60px;
    background: linear-gradient(135deg, #ffffff 0%, #fdf7f1 100%);
    border-radius: 32px;
    box-shadow: var(--card-shadow-lg);
}

.contact-info h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item i {
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    font-size: 15px;
    transition: var(--transition);
    background: white;
    font-family: inherit;
    margin-bottom: 20px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #0097A7;
    box-shadow: 0 0 0 4px rgba(0, 151, 167, 0.14);
    transform: translateY(-1px);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #0c1226 0%, #1b2342 100%);
    color: #f8fafc;
    padding: 80px 0 40px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124, 77, 255, 0.45), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo-mark {
    width: 140px;
    max-width: 100%;
    height: auto;
}

.footer-logo i {
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-logo h3 {
    font-size: 1.5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-logo p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-links h4, .footer-contact h4 {
    color: white;
    margin-bottom: 24px;
    font-weight: 800;
    font-size: 1.1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links a {
    color: #94a3b8;
    transition: var(--transition);
    position: relative;
    padding-left: 0;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: var(--transition);
}

.footer-links a:hover::before {
    left: -15px;
    opacity: 1;
}

.footer-links a:hover {
    color: white;
    padding-left: 10px;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #0097A7;
    padding-left: 5px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #94a3b8;
    margin-bottom: 15px;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(51, 65, 85, 0.5);
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0;
}

.legal-links {
    display: flex;
    gap: 20px;
}

.legal-links a {
    color: #64748b;
    font-size: 0.85rem;
    text-decoration: none;
}

/* Scroll Top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px -5px rgba(124, 77, 255, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px -5px rgba(124, 77, 255, 0.52);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 30px;
    height: 3px;
    background: var(--text-color);
    border-radius: 3px;
    transition: var(--transition);
}

@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hero-image img {
        max-width: 780px;
        margin: 0 auto;
    }

    .hero-image {
        padding: 10px;
        border-radius: 26px;
    }

    .preview-card {
        max-width: 100%;
        border-radius: 16px;
        padding: 10px;
    }

    .preview-composition {
        min-height: unset;
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .preview-shot {
        position: static;
        width: 100%;
        transform: none;
        border-radius: 12px;
    }

    .preview-shot-main,
    .preview-shot-dashboard,
    .preview-shot-chat {
        width: 100%;
    }

    .preview-shot-main { max-height: 220px; }
    .preview-shot-dashboard { max-height: 180px; }
    .preview-shot-chat {
        max-height: 220px;
        margin-top: 6px;
    }

    .preview-caption {
        font-size: 0.9rem;
    }

    .mobile-menu-btn {
        display: flex;
    }
    
    .nav {
        display: none;
        width: 100%;
        max-width: none;
        border-radius: 16px;
        padding: 10px;
        margin-top: 8px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 20px 30px -28px rgba(15, 23, 42, 0.55);
    }

    .logo-meta,
    .logo-offer {
        display: none;
    }

    .header-actions .btn {
        min-height: 38px;
        padding: 8px 12px;
    }

    .mobile-menu-btn {
        width: 42px;
        height: 42px;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        border: 1px solid rgba(124, 77, 255, 0.36);
        background: rgba(124, 77, 255, 0.1);
    }

    .mobile-menu-btn span {
        width: 18px;
        height: 2px;
        background: #5f33d6;
    }
}

.landing-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    color: var(--text-color);
}

.landing-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.landing-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.landing-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.landing-btn {
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    color: #0097A7;
}

.landing-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.landing-btn.secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.landing-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Loading Spinner */
.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #0097A7, #FFC107);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 151, 167, 0.35);
}

.btn-secondary {
    background: #64748b;
    color: white;
}

.btn-secondary:hover {
    background: #475569;
}

.btn-danger {
    background: #FFC107;
    color: white;
}

.btn-danger:hover {
    background: #FF9900;
}

.btn-small {
    padding: 8px 16px;
    font-size: 12px;
    border-radius: 8px;
}

.btn-restart {
    background: #FFC107;
    color: white;
}

.btn-restart:hover {
    background: #FF9900;
}

.btn-stop {
    background: #FFC107;
    color: white;
}

.btn-stop:hover {
    background: #FF9900;
}

.btn-start {
    background: #0097A7;
    color: white;
}

.btn-start:hover {
    background: #007A7A;
}

.status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-badge.running {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.stopped {
    background: #fee2e2;
    color: #991b1b;
}

.admin-link-btn {
    background: #1e293b;
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: var(--card-shadow);
}

.admin-link-btn:hover {
    background: #334155;
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-lg);
}

.org-card-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    background: var(--light-bg);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.stat-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: all 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-lg);
}

.stat-card div:first-child {
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.stat-card div:last-child {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--light-bg);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0097A7, #FFC107);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 0;
    margin-bottom: 20px;
    transition: all 0.2s ease;
}

.back-link:hover {
    color: #0097A7;
    transform: translateX(-4px);
}

.dashboard-shell {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.nav-card {
    width: 260px;
    background: #ffffff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: sticky;
    top: 24px;
    border: 1px solid var(--border-color);
}

.nav-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--text-muted);
    padding: 8px 12px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    border: none;
    background: transparent;
    color: var(--text-color);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-align: left;
}

.nav-btn i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.nav-btn:hover {
    background: var(--light-bg);
    color: #0097A7;
}

.nav-btn.active {
    background: linear-gradient(135deg, #0097A7, #FFC107);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 151, 167, 0.35);
}

.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.dashboard-header {
    background: linear-gradient(135deg, #0097A7, #FFC107);
    color: white;
    padding: 32px;
    border-radius: 20px;
    margin-bottom: 32px;
    box-shadow: var(--card-shadow-lg);
    position: relative;
    overflow: hidden;
}

.dashboard-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.dashboard-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-section {
    background: #ffffff;
    padding: 28px;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.dashboard-section h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-section h2 i {
    color: #0097A7;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #0097A7;
    box-shadow: 0 0 0 4px rgba(0, 151, 167, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.form-group small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.form-group-consent {
    margin-top: 6px;
    margin-bottom: 22px;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.checkbox-label span {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(124, 77, 255, 0.42);
}

.btn-secondary {
    background: #64748b;
    color: white;
}

.btn-secondary:hover {
    background: #475569;
}

.btn-danger {
    background: var(--accent-color);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-small {
    padding: 8px 16px;
    font-size: 12px;
    border-radius: 8px;
}

.btn-restart {
    background: var(--warning-color);
    color: white;
}

.btn-restart:hover {
    background: #d97706;
}

.btn-stop {
    background: var(--accent-color);
    color: white;
}

.btn-stop:hover {
    background: #dc2626;
}

.btn-start {
    background: var(--success-color);
    color: white;
}

.btn-start:hover {
    background: #059669;
}

.status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-badge.running {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.stopped {
    background: #fee2e2;
    color: #991b1b;
}

.admin-link-btn {
    background: #1e293b;
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: var(--card-shadow);
}

.admin-link-btn:hover {
    background: #334155;
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-lg);
}

.org-card-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    background: var(--light-bg);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.stat-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: all 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-lg);
}

.stat-card div:first-child {
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.stat-card div:last-child {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--light-bg);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.btn.loading .loading-spinner {
    display: inline-block;
}

/* Subscription Widget */
.subscription-widget {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--card-shadow-lg);
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s ease;
}

.subscription-widget:hover {
    transform: translateY(-2px);
}

.sub-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sub-title {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.sub-plan-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sub-plan-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.sub-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-trial { background: #fee2e2; color: #991b1b; }
.badge-basic { background: #dcfce7; color: #166534; }
.badge-premium { background: #fef9c3; color: #854d0e; }

.sub-timer {
    font-size: 15px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sub-days-left {
    font-weight: 700;
    color: var(--primary-color);
}

.sub-days-left.warning { color: var(--warning-color); }
.sub-days-left.danger { color: var(--accent-color); }

.sub-status-alert {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    background: #fee2e2;
    border-left: 3px solid var(--accent-color);
}

.sub-actions {
    display: flex;
    gap: 12px;
}

.btn-renew {
    background: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-renew:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
    box-shadow: var(--card-shadow-lg);
}

/* Dashboard Responsive */
@media (max-width: 960px) {
    .dashboard-shell {
        flex-direction: column;
    }

    .nav-card {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        position: static;
    }

    .nav-title {
        width: 100%;
    }

    .nav-btn {
        flex: 1 1 calc(50% - 8px);
        justify-content: center;
    }

    .org-card-details {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-card div:last-child {
        font-size: 24px;
    }
}

@media (max-width: 640px) {
    .dashboard-container {
        padding: 12px;
    }

    .dashboard-header {
        padding: 24px;
    }

    .dashboard-header h1 {
        font-size: 22px;
    }

    .dashboard-section {
        padding: 20px;
    }

    .nav-btn {
        flex: 1 1 100%;
    }

    .subscription-widget {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .sub-actions {
        width: 100%;
    }

    .btn-renew {
        width: 100%;
        justify-content: center;
    }
}

/* Modal Windows - Auth & Invite */
#auth-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1500;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

#auth-section,
#invite-section {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2000;
    width: 95%;
    max-width: 500px;
    padding: 50px;
    background: #ffffff;
    border-radius: 32px;
    box-shadow: var(--card-shadow-xl);
    border: 1px solid rgba(226, 232, 240, 0.5);
}

.modal-visible {
    display: block !important;
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.backdrop-visible {
    display: block !important;
}

.auth-container {
    width: 100%;
}

.auth-container h2 {
    font-size: 28px;
    font-weight: 900;
    color: var(--text-color);
    margin-bottom: 30px;
    text-align: center;
    letter-spacing: -0.02em;
}

.auth-container .form-group {
    margin-bottom: 24px;
}

.auth-container label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
}

.auth-container input[type="text"],
.auth-container input[type="email"],
.auth-container input[type="password"] {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 14px;
    font-size: 15px;
    transition: var(--transition);
    box-sizing: border-box;
    background: #f8fafc;
    font-family: inherit;
}

.auth-container input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(124, 77, 255, 0.18);
    transform: translateY(-1px);
}

.auth-container input::placeholder {
    color: var(--text-light);
}

.auth-container .btn {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
    font-size: 16px;
    padding: 16px;
}

.auth-switch {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-muted);
}

.auth-switch a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.auth-switch a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.auth-switch a:hover::after {
    width: 100%;
}

.auth-switch a:hover {
    color: var(--primary-dark);
}

#auth-close,
#invite-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-bg);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 20px;
    color: var(--text-muted);
}

#auth-close:hover,
#invite-close:hover {
    background: var(--border-color);
    transform: rotate(90deg);
    color: var(--text-color);
}

/* ============================================================
   PREMIUM REDESIGN — v20 (Premium SaaS look)
   Все новые стили собраны здесь, чтобы можно было откатить.
   ============================================================ */

/* Scroll progress bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 1100;
    pointer-events: none;
    background: rgba(124, 77, 255, 0.08);
}
.scroll-progress-bar {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #7c4dff 0%, #4f46e5 50%, #06b6d4 100%);
    box-shadow: 0 0 12px rgba(124, 77, 255, 0.55);
    transition: width 0.12s ease-out;
}

/* Decorative full-page background (under content) */
.page-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.page-bg-grid {
    position: absolute;
    inset: -2px;
    background-image:
        linear-gradient(rgba(124, 77, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 77, 255, 0.07) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
    opacity: 0.7;
}
.page-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
    animation: orbFloat 26s ease-in-out infinite;
}
.page-bg-orb-1 {
    width: 520px;
    height: 520px;
    top: -120px;
    left: -120px;
    background: radial-gradient(circle, rgba(124, 77, 255, 0.45), transparent 65%);
}
.page-bg-orb-2 {
    width: 460px;
    height: 460px;
    top: 30%;
    right: -160px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.32), transparent 65%);
    animation-duration: 32s;
    animation-direction: reverse;
}
.page-bg-orb-3 {
    width: 420px;
    height: 420px;
    bottom: -120px;
    left: 35%;
    background: radial-gradient(circle, rgba(244, 114, 182, 0.25), transparent 65%);
    animation-duration: 36s;
}
@keyframes orbFloat {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    33%      { transform: translate3d(30px, -28px, 0) scale(1.08); }
    66%      { transform: translate3d(-22px, 26px, 0) scale(0.94); }
}

/* Make main content sit above the decorative background.
   Modals/backdrops keep their own higher z-index — не трогаем их специально. */
body > header,
body > main,
body > footer,
body > .scroll-top {
    position: relative;
    z-index: 1;
}

/* Hero — premium upgrades */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px 8px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.14), rgba(6, 182, 212, 0.14));
    border: 1px solid rgba(124, 77, 255, 0.28);
    color: #4b27bf;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    margin-bottom: 22px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 8px 20px -16px rgba(124, 77, 255, 0.55);
    animation: badgeFloat 4s ease-in-out infinite;
}
.hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #7c4dff;
    box-shadow: 0 0 0 4px rgba(124, 77, 255, 0.22);
    animation: pulseDot 2.2s ease-in-out infinite;
}
@keyframes pulseDot {
    0%, 100% { box-shadow: 0 0 0 4px rgba(124, 77, 255, 0.22); }
    50%      { box-shadow: 0 0 0 9px rgba(124, 77, 255, 0.05); }
}
@keyframes badgeFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-3px); }
}

.hero-content h1 {
    background: linear-gradient(120deg, #1c2435 0%, #1c2435 45%, #5f33d6 75%, #06b6d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Hero trust strip */
.hero-trust {
    display: flex;
    gap: 28px;
    margin-top: 36px;
    padding: 18px 22px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(245, 243, 255, 0.65));
    border: 1px solid rgba(124, 77, 255, 0.18);
    box-shadow: 0 18px 40px -28px rgba(31, 38, 77, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: fit-content;
    max-width: 100%;
}
.hero-trust-item {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.hero-trust-item + .hero-trust-item {
    padding-left: 28px;
    border-left: 1px solid rgba(124, 77, 255, 0.18);
}
.hero-trust-value {
    font-family: 'Playfair Display', 'Space Grotesk', serif;
    font-size: 1.45rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 4px;
}
.hero-trust-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 600;
}

/* Hero image — tilt + reflection */
.hero-image {
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hero-image:hover {
    transform: perspective(1200px) rotateY(-2deg) rotateX(2deg) translateY(-4px);
}

/* Sections — premium polish */
.section { z-index: 1; }
.section-header h2 {
    background: linear-gradient(120deg, #1c2435 0%, #5f33d6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Cards — premium glow + gradient ring on hover */
.card {
    position: relative;
    isolation: isolate;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(252, 251, 255, 0.92));
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(28, 36, 53, 0.08);
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
                box-shadow 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
                border-color 0.3s ease;
}
.card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.55), rgba(6, 182, 212, 0.4), rgba(244, 114, 182, 0.35));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: -1;
}
.card:hover::after { opacity: 1; }
.card:hover {
    transform: translateY(-10px);
    box-shadow:
        0 30px 60px -28px rgba(124, 77, 255, 0.35),
        0 12px 24px -18px rgba(12, 24, 36, 0.25);
}

/* Service cards — color coded */
.service-card {
    padding-top: 44px;
}
.service-card .service-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    color: #fff;
    margin-bottom: 22px;
    box-shadow: 0 16px 30px -16px rgba(31, 38, 77, 0.55);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.service-card:hover .service-icon {
    transform: translateY(-4px) rotate(-3deg) scale(1.05);
}
.service-card .service-icon i {
    font-size: 1.6rem;
    color: #fff;
    margin: 0;
}
.service-card--tg .service-icon {
    background: linear-gradient(135deg, #229ED9 0%, #0088CC 100%);
    box-shadow: 0 18px 34px -16px rgba(34, 158, 217, 0.6);
}
.service-card--max .service-icon {
    background: linear-gradient(135deg, #FF8A3D 0%, #F43F5E 100%);
    box-shadow: 0 18px 34px -16px rgba(244, 63, 94, 0.55);
}
.service-card--web .service-icon {
    background: linear-gradient(135deg, #7c4dff 0%, #4f46e5 100%);
    box-shadow: 0 18px 34px -16px rgba(124, 77, 255, 0.6);
}

.service-tag {
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(124, 77, 255, 0.12);
    color: #5633bf;
    border: 1px solid rgba(124, 77, 255, 0.22);
}
.service-card--tg .service-tag {
    background: rgba(34, 158, 217, 0.12);
    color: #0a6c9d;
    border-color: rgba(34, 158, 217, 0.28);
}
.service-card--max .service-tag {
    background: rgba(244, 63, 94, 0.1);
    color: #b03350;
    border-color: rgba(244, 63, 94, 0.24);
}

/* Override base .card i color for service cards */
.service-card.card i {
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 0;
}
.service-card.card:hover i {
    transform: none;
}

/* Feature cards — premium with numbers */
.feature-item {
    padding-top: 44px;
}
.feature-num {
    position: absolute;
    top: 16px;
    right: 20px;
    font-family: 'Playfair Display', 'Space Grotesk', serif;
    font-size: 2.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.85), rgba(6, 182, 212, 0.55));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0.32;
    letter-spacing: -0.02em;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.feature-item:hover .feature-num {
    opacity: 0.65;
    transform: translateY(-2px);
}
.feature-item .feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    color: var(--primary-color);
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.14), rgba(6, 182, 212, 0.12));
    border: 1px solid rgba(124, 77, 255, 0.22);
    margin-bottom: 20px;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
                background 0.4s ease;
}
.feature-item:hover .feature-icon {
    transform: translateY(-3px) rotate(-4deg);
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.22), rgba(6, 182, 212, 0.2));
}
.feature-item.card i {
    color: var(--primary-color);
    font-size: 1.45rem;
    margin-bottom: 0;
}
.feature-item.card:hover i {
    transform: none;
}

/* About preview composition — softer floating animation */
.preview-shot-main {
    animation: floatY 7s ease-in-out infinite;
}
.preview-shot-dashboard {
    animation: floatY 9s ease-in-out infinite 0.6s;
}
.preview-shot-chat {
    animation: floatY 8s ease-in-out infinite 1.2s;
}
@keyframes floatY {
    0%, 100% { transform: translate(var(--tx, 0), 0); }
    50%      { transform: translate(var(--tx, 0), -8px); }
}
.preview-shot-main { --tx: -50%; }

/* Contact section — premium form */
.contact-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.97) 0%, rgba(244, 242, 255, 0.92) 100%);
    border: 1px solid rgba(124, 77, 255, 0.16);
    box-shadow: 0 40px 80px -50px rgba(31, 38, 77, 0.5);
    position: relative;
    overflow: hidden;
}
.contact-container::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(124, 77, 255, 0.25), transparent 65%);
    filter: blur(20px);
    pointer-events: none;
}
.contact-container::after {
    content: '';
    position: absolute;
    bottom: -140px;
    left: -100px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.18), transparent 65%);
    filter: blur(24px);
    pointer-events: none;
}
.contact-info,
.contact-form {
    position: relative;
    z-index: 1;
}
.contact-info h2 {
    background: linear-gradient(120deg, #1c2435 0%, #5f33d6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.contact-form input,
.contact-form textarea {
    border: 1.5px solid rgba(28, 36, 53, 0.1);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(124, 77, 255, 0.5);
    box-shadow: 0 0 0 4px rgba(124, 77, 255, 0.14);
    transform: translateY(-1px);
}

/* Social links */
.social-links {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}
.social-link {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #ffffff, #f5f3ff);
    border: 1px solid rgba(124, 77, 255, 0.2);
    color: #5f33d6;
    font-size: 1.05rem;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
                box-shadow 0.3s ease,
                color 0.3s ease,
                background 0.3s ease;
}
.social-link:hover {
    transform: translateY(-4px);
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 18px 30px -16px rgba(124, 77, 255, 0.55);
}

/* Button — softer shine */
.btn-primary {
    background: linear-gradient(135deg, #7c4dff 0%, #4f46e5 100%);
    box-shadow:
        0 18px 34px -16px rgba(124, 77, 255, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.25) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.7s ease;
    pointer-events: none;
}
.btn-primary:hover::after {
    transform: translateX(120%);
}

/* Footer — accent gradient bar */
.footer::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(124, 77, 255, 0.6), rgba(6, 182, 212, 0.55), transparent);
    opacity: 0.7;
}

/* Better focus visibility (accessibility) */
.btn:focus-visible,
.nav-link:focus-visible,
.social-link:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid rgba(124, 77, 255, 0.55);
    outline-offset: 2px;
}

/* Mobile adjustments for new elements */
@media (max-width: 992px) {
    .hero-trust {
        gap: 16px;
        padding: 14px 16px;
        flex-wrap: wrap;
    }
    .hero-trust-item + .hero-trust-item {
        padding-left: 16px;
    }
    .hero-trust-value {
        font-size: 1.2rem;
    }
    .hero-trust-label {
        font-size: 0.7rem;
    }
    .hero-badge {
        font-size: 0.74rem;
        padding: 6px 12px 6px 10px;
    }
    .page-bg-grid {
        background-size: 40px 40px;
    }
    .feature-num {
        font-size: 1.6rem;
        top: 12px;
        right: 16px;
    }
    .service-tag {
        top: 14px;
        right: 14px;
        font-size: 0.6rem;
    }
    /* Preview shots становятся position:static на мобиле — отключаем floatY */
    .preview-shot-main,
    .preview-shot-dashboard,
    .preview-shot-chat {
        animation: none;
        transform: none;
    }
    /* Tilt на мобиле не нужен */
    .hero-image:hover {
        transform: none;
    }
}
@media (max-width: 560px) {
    .hero-trust {
        gap: 12px;
    }
    .hero-trust-item + .hero-trust-item {
        padding-left: 12px;
    }
}

/* Reduce motion respect */
@media (prefers-reduced-motion: reduce) {
    .page-bg-orb,
    .hero-badge,
    .hero-badge-dot,
    .preview-shot-main,
    .preview-shot-dashboard,
    .preview-shot-chat {
        animation: none !important;
    }
    .scroll-progress-bar,
    .card,
    .hero-image,
    .btn-primary::after {
        transition: none !important;
    }
}


/* ============================================================
   FOOTER REFIT — v27 (выравнивание, реквизиты, низ страницы)
   ============================================================ */

/* Сам footer — чуть больше дышит, расширим контейнер */
.footer {
    padding: 72px 0 32px;
}
.footer .container {
    max-width: 1200px;
}

/* Сетка футера: явные пропорции, чтобы реквизиты помещались */
.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.1fr 1.5fr;
    gap: 48px;
    margin-bottom: 48px;
    align-items: start;
}

/* Предотвращаем переполнение grid-item длинным контентом (email/ОГРНИП) */
.footer-logo,
.footer-links,
.footer-contact {
    min-width: 0;
}

.footer-logo {
    gap: 14px;
    max-width: 320px;
}
.footer-logo p {
    color: #94a3b8;
    margin: 0;
}

/* Заголовки колонок: одинаковый размер + тонкая акцентная линия */
.footer-links h4,
.footer-contact h4 {
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    color: #ffffff;
    position: relative;
}
.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 28px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #7c4dff, #06b6d4);
    opacity: 0.85;
}

/* Навигация — чистые ссылки в столбик */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links a {
    color: #94a3b8;
    font-size: 0.95rem;
    text-decoration: none;
    padding-left: 0;
    transition: color 0.2s ease, padding-left 0.2s ease;
    position: relative;
    display: inline-block;
    width: fit-content;
}
.footer-links a::before {
    content: '→';
    position: absolute;
    left: -16px;
    opacity: 0;
    transition: opacity 0.2s ease, left 0.2s ease;
    color: #a78bfa;
}
.footer-links a:hover {
    color: #ffffff;
    padding-left: 14px;
    text-decoration: none;
}
.footer-links a:hover::before {
    left: 0;
    opacity: 1;
}

/* Контакты — иконка слева, текст в одну строку (короткий) */
.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 12px;
    color: #94a3b8;
    font-size: 0.94rem;
    line-height: 1.5;
    word-break: break-word;
    overflow-wrap: anywhere;
}
.footer-contact p i {
    flex: 0 0 18px;
    margin-top: 4px;
    color: #a78bfa;
    font-size: 0.92rem;
    text-align: center;
}

/* Реквизиты — без иконок, плотный блочный текст */
.footer-legal p {
    display: block;
    margin: 0 0 8px;
    color: #94a3b8;
    font-size: 0.88rem;
    line-height: 1.55;
}
.footer-legal p:last-child {
    color: #a4adc3;
}

/* Низ: копирайт слева, легал-ссылки справа */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-size: 0.88rem;
    text-align: left;
    flex-wrap: wrap;
}
.footer-bottom p { margin: 0; }

.legal-links {
    display: flex;
    gap: 22px;
    align-items: center;
    flex-wrap: wrap;
}
.legal-links a {
    color: #a4adc3;
    font-size: 0.86rem;
    text-decoration: none;
    transition: color 0.2s ease;
}
.legal-links a:hover {
    color: #ffffff;
}

/* Адаптив: на планшетах — 2 колонки, на телефонах — 1 */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 28px;
        margin-bottom: 36px;
    }
    .footer-logo {
        grid-column: 1 / -1;
        max-width: none;
    }
}
@media (max-width: 600px) {
    .footer {
        padding: 56px 0 28px;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 14px;
        padding-top: 22px;
    }
    .legal-links {
        justify-content: center;
    }
}
