/* ============================================================
   HOME.CSS — Landing page styles
   ============================================================ */

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../fonts/PlusJakartaSans-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../fonts/PlusJakartaSans-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

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

:root {
    --bg-primary: #0f1419;
    --bg-secondary: #16202b;
    --bg-tertiary: #1e2a38;
    --text-primary: #e8eaed;
    --text-secondary: #a8adb5;
    --text-muted: #7c8794;
    --accent: #ff4757;
    --accent-hover: #ff6a7f;
    --primary: #ff4757;
    --primary-hover: #ff6a7f;
    --border: #2d3a4a;
    --border-light: #3e4a5c;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

button,
a,
input,
select,
textarea,
[role="button"] {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* ── Ambient Background ───────────────────────────────────── */

.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    bottom: 20%;
    left: -100px;
    animation-delay: -7s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: #ff4757;
    top: 50%;
    right: 20%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 30px) scale(1.02); }
}

/* ── Floating Oval Navbar ─────────────────────────────────── */

.floating-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 40px;
    background: rgba(22, 32, 43, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    padding: 12px 28px;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

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

.nav-logo-icon {
    width: 32px;
    height: 32px;
}

.nav-logo-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s;
}

.nav-btn-icon:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: var(--border-light);
}

/* ── Buttons ──────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 20px rgba(255, 71, 87, 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(255, 71, 87, 0.4);
}

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

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: var(--border-light);
}

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

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-large {
    padding: 14px 28px;
    font-size: 15px;
}

/* ── Hero Section ─────────────────────────────────────────── */

.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 80px 80px;
    gap: 80px;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.3);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 24px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent), #ff6a7f, #ff4757);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 500px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.hero-visual {
    flex: 1;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

/* ── Dashboard Preview ────────────────────────────────────── */

.dashboard-preview {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.dashboard-preview:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
}

.preview-dots {
    display: flex;
    gap: 6px;
}

.preview-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-light);
}

.preview-dots span:first-child { background: #ff5f56; }
.preview-dots span:nth-child(2) { background: #ffbd2e; }
.preview-dots span:nth-child(3) { background: #27ca40; }

.preview-title {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: 8px;
}

.preview-content {
    padding: 24px;
}

.preview-diagram {
    width: 100%;
    height: auto;
}

.home-lottie {
    width: 100%;
    height: 100%;
}

.home-lottie-hero {
    min-height: 220px;
}

/* ── Features Section ─────────────────────────────────────── */

.features {
    position: relative;
    z-index: 1;
    padding: 100px 80px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    background: rgba(22, 32, 43, 0.6);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 12px 40px rgba(255, 71, 87, 0.12);
}

.feature-icon {
    width: 52px;
    height: 52px;
    background: rgba(255, 71, 87, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: var(--accent);
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ── Benefits Section ─────────────────────────────────────── */

.benefits {
    position: relative;
    z-index: 1;
    padding: 20px 80px 80px;
    max-width: 1400px;
    margin: 0 auto;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.benefit-item {
    background: rgba(22, 32, 43, 0.45);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
    transition: all 0.25s ease;
}

.benefit-item:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.benefit-item h3 {
    font-size: 17px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.benefit-item h3 i {
    color: var(--accent);
}

.benefit-item p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* ── Pricing Section ─────────────────────────────────────── */

.pricing {
    position: relative;
    z-index: 1;
    padding: 20px 80px 100px;
    max-width: 1400px;
    margin: 0 auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.price-card {
    background: rgba(22, 32, 43, 0.6);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.price-card.featured {
    border-color: rgba(255, 71, 87, 0.55);
    box-shadow: 0 10px 34px rgba(255, 71, 87, 0.12);
}

.price-card h3 {
    font-size: 22px;
}

.price-value {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.price-value span {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
}

.price-card ul {
    list-style: none;
    display: grid;
    gap: 10px;
    margin-bottom: 6px;
}

.price-card li {
    font-size: 14px;
    color: var(--text-secondary);
    padding-left: 18px;
    position: relative;
}

.price-card li::before {
    content: '•';
    color: var(--accent);
    position: absolute;
    left: 0;
}

/* ── CTA Section ──────────────────────────────────────────── */

.cta {
    position: relative;
    z-index: 1;
    padding: 100px 80px;
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* ── Footer ──────────────────────────────────────────────── */

.footer {
    position: relative;
    z-index: 1;
    padding: 40px 80px;
    border-top: 1px solid var(--border);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

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

.footer-logo {
    width: 28px;
    height: 28px;
}

.footer-brand-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

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

.footer-copy {
    font-size: 12px;
    color: var(--text-muted);
}

.home-demo-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 16px;
}

.home-demo-modal.show {
    display: flex;
}

.home-demo-card {
    width: min(520px, 100%);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
}

.home-demo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.home-lottie-demo {
    height: 320px;
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        padding: 120px 40px 60px;
        text-align: center;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-description {
        max-width: 100%;
    }

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

    .hero-visual {
        width: 100%;
    }

    .dashboard-preview {
        transform: none;
    }

    .features {
        padding: 60px 40px;
    }

    .benefits {
        padding: 10px 40px 60px;
    }

    .pricing {
        padding: 10px 40px 60px;
    }

    .cta {
        padding: 60px 40px;
    }

    .footer {
        padding: 30px 40px;
    }
}

@media (max-width: 768px) {
    .floating-nav {
        top: 8px;
        left: 4px;
        right: 4px;
        transform: none;
        justify-content: space-between;
        gap: 8px;
        padding: 8px 10px;
        border-radius: 12px;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding: 78px 4px 18px;
        gap: 16px;
    }

    .hero-actions {
        width: 100%;
        gap: 8px;
    }

    .hero-actions .btn {
        flex: 1;
        justify-content: center;
        padding: 10px 8px;
    }

    .hero-title {
        font-size: 30px;
        line-height: 1.08;
        margin-bottom: 14px;
    }

    .hero-badge {
        margin-bottom: 14px;
        padding: 5px 10px;
        font-size: 11px;
    }

    .hero-description {
        font-size: 14px;
        margin-bottom: 18px;
    }

    .preview-content {
        padding: 10px;
    }

    .home-lottie-hero {
        min-height: 170px;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .section-subtitle {
        font-size: 14px;
    }

    .price-value {
        font-size: 30px;
    }

    .features,
    .benefits,
    .pricing,
    .cta,
    .footer {
        padding-left: 4px;
        padding-right: 4px;
    }

    .features-grid,
    .benefits-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .feature-card,
    .benefit-item,
    .price-card {
        padding: 16px;
        border-radius: 12px;
    }

    .feature-card p,
    .benefit-item p,
    .price-card li {
        font-size: 13px;
    }

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

@media (max-width: 480px) {
    .floating-nav {
        top: 4px;
        left: 4px;
        right: 4px;
        padding: 8px;
    }

    .nav-logo-text {
        font-size: 13px;
    }

    .nav-actions {
        gap: 4px;
    }

    .nav-btn-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .hero {
        padding: 70px 4px 14px;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .section-header {
        margin-bottom: 18px;
    }

    .section-subtitle {
        font-size: 13px;
    }

    .price-value {
        font-size: 26px;
    }

    .home-lottie-demo {
        height: 230px;
    }
}
