/* 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);
}
