/* ==========================================================================
   CreatorMitra Landing & Compliance Pages - Custom Theme Stylesheet
   Color Palette derived from Brand Logo (final_logo.webp):
   - Midnight Navy: #0B1B3D / #0C1E4A
   - Sunset Coral Orange: #FF5520 / #FF4E27
   - Crimson Rose: #E62E5C / #D81B60
   ========================================================================== */

:root {
    --im-navy: #0C1E4A;
    --im-navy-dark: #07122E;
    --im-navy-light: #162B64;
    --im-primary: #FF5520;
    --im-primary-dark: #E63B10;
    --im-primary-light: #FF7347;
    --im-accent: #E62E5C;
    --im-accent-gradient: linear-gradient(135deg, #FF5520 0%, #FF2E63 50%, #E62E5C 100%);
    --im-dark-gradient: linear-gradient(135deg, #07122E 0%, #0C1E4A 50%, #162B64 100%);
    --im-navy-gradient: linear-gradient(135deg, #0C1E4A 0%, #162B64 100%);
    --im-surface: #ffffff;
    --im-surface-subtle: #FFF9F8;
    --im-border: #F1E5E2;
    --im-text-dark: #0C1E4A;
    --im-text-muted: #64748B;
    --im-success: #10B981;
    --im-warning: #F59E0B;
    --im-radius-sm: 8px;
    --im-radius-md: 16px;
    --im-radius-lg: 24px;
    --im-radius-xl: 32px;
    --im-shadow-sm: 0 2px 8px rgba(12, 30, 74, 0.05);
    --im-shadow-md: 0 10px 25px -5px rgba(255, 85, 32, 0.12), 0 8px 10px -6px rgba(12, 30, 74, 0.06);
    --im-shadow-lg: 0 20px 40px -15px rgba(255, 85, 32, 0.22);
    --im-font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    font-family: var(--im-font-main);
    color: var(--im-text-dark);
    background-color: #ffffff;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── Typography & Helpers ── */
.text-gradient {
    background: var(--im-accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-navy {
    color: var(--im-navy) !important;
}

.bg-gradient-radial {
    background: radial-gradient(circle at 50% 0%, rgba(255, 85, 32, 0.09) 0%, rgba(230, 46, 92, 0.04) 50%, rgba(255, 255, 255, 0) 100%);
}

.bg-dark-mesh {
    background-color: #07122E;
    background-image: 
        radial-gradient(at 10% 20%, rgba(255, 85, 32, 0.2) 0px, transparent 50%),
        radial-gradient(at 90% 80%, rgba(230, 46, 92, 0.18) 0px, transparent 50%);
}

/* ── Ultra-Modern Floating Glassmorphic Navbar ── */
.im-navbar-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    padding: 1rem 0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.im-navbar-wrapper.scrolled {
    padding: 0.5rem 0;
}

.im-navbar-pill {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(241, 229, 226, 0.9);
    border-radius: 9999px;
    padding: 0.4rem 1.25rem;
    box-shadow: 0 10px 30px -8px rgba(12, 30, 74, 0.08), 0 0 0 1px rgba(255, 85, 32, 0.04);
    transition: all 0.3s ease;
}

.im-navbar-wrapper.scrolled .im-navbar-pill {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 14px 35px -8px rgba(12, 30, 74, 0.12), 0 0 0 1px rgba(255, 85, 32, 0.08);
}

@media (max-width: 991px) {
    .im-navbar-pill {
        border-radius: 20px;
        padding: 0.65rem 1.15rem;
    }

    .navbar-collapse {
        margin-top: 0.85rem;
        padding-top: 0.85rem;
        border-top: 1px solid rgba(241, 229, 226, 0.8);
    }
}

.im-brand {
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--im-text-dark);
    text-decoration: none !important;
}

.im-brand:hover {
    color: var(--im-text-dark);
}

.im-logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.25s ease;
}

.im-brand:hover .im-logo-img {
    transform: scale(1.05);
}

.im-logo-img.footer-logo {
    height: 48px;
    background: #ffffff;
    padding: 3px;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.im-brand-name {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* Nav Item Links */
.im-nav-list {
    gap: 0.25rem;
}

.im-nav-link {
    font-weight: 600;
    font-size: 0.92rem;
    color: #475569 !important;
    padding: 0.45rem 1.05rem !important;
    border-radius: 9999px;
    text-decoration: none !important;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
}

.im-nav-link:hover {
    color: var(--im-primary-dark) !important;
    background: rgba(255, 85, 32, 0.08);
    transform: translateY(-1px);
}

.im-nav-link:active {
    transform: translateY(0);
}

/* Mobile Toggler */
.im-toggler {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 85, 32, 0.08);
    color: var(--im-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    transition: all 0.2s ease;
}

.im-toggler:hover {
    background: rgba(255, 85, 32, 0.15);
}

/* Navbar CTA Button */
.btn-im-navbar-cta {
    background: var(--im-accent-gradient);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.5rem 1.35rem;
    border-radius: 9999px;
    border: none;
    box-shadow: 0 4px 14px rgba(255, 85, 32, 0.35);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none !important;
}

.btn-im-navbar-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 85, 32, 0.45);
    color: #ffffff;
}

/* ── Buttons ── */
.btn-im-primary {
    background: var(--im-accent-gradient);
    color: #ffffff !important;
    font-weight: 600;
    padding: 0.7rem 1.6rem;
    border-radius: 9999px;
    border: none;
    box-shadow: 0 4px 14px rgba(255, 85, 32, 0.35);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-im-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 85, 32, 0.45);
    color: #ffffff;
}

.btn-im-outline {
    background: transparent;
    color: var(--im-navy) !important;
    font-weight: 600;
    padding: 0.7rem 1.6rem;
    border-radius: 9999px;
    border: 1.5px solid var(--im-border);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-im-outline:hover {
    border-color: var(--im-primary);
    background: rgba(255, 85, 32, 0.05);
    color: var(--im-primary) !important;
    transform: translateY(-2px);
}

.btn-store-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--im-navy-dark);
    color: #ffffff !important;
    padding: 0.6rem 1.4rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-decoration: none;
    transition: all 0.25s ease;
    text-align: left;
}

.btn-store-badge:hover {
    transform: translateY(-3px);
    background: var(--im-navy);
    box-shadow: 0 10px 25px rgba(7, 18, 46, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-store-badge svg,
.btn-store-badge i {
    font-size: 1.75rem;
    flex-shrink: 0;
}

.btn-store-badge .store-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
    line-height: 1;
}

.btn-store-badge .store-title {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
}

/* ── Hero Section ── */
.hero-section {
    padding-top: 8.5rem;
    padding-bottom: 5rem;
    position: relative;
    overflow: hidden;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.95rem;
    background: rgba(255, 85, 32, 0.08);
    color: var(--im-primary-dark);
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 9999px;
    border: 1px solid rgba(255, 85, 32, 0.2);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 1.5rem;
    color: var(--im-navy);
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 2.35rem;
    }
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--im-text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* ── Mockup / Phone Component ── */
.phone-mockup-wrapper {
    position: relative;
    max-width: 320px;
    margin: 0 auto;
}

.phone-frame {
    background: var(--im-navy-dark);
    border-radius: 44px;
    padding: 12px;
    box-shadow: 0 25px 60px -15px rgba(7, 18, 46, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.phone-screen {
    background: #ffffff;
    border-radius: 34px;
    overflow: hidden;
    position: relative;
    min-height: 560px;
}

.phone-notch {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 22px;
    background: var(--im-navy-dark);
    border-radius: 20px;
    z-index: 10;
}

/* Floating Glass Cards on Hero */
.floating-glass-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 15px 35px rgba(12, 30, 74, 0.12);
    border-radius: 16px;
    padding: 0.9rem 1.15rem;
    z-index: 20;
    animation: floatAnim 4s ease-in-out infinite;
}

.floating-glass-card.card-left {
    left: -40px;
    top: 25%;
}

.floating-glass-card.card-right {
    right: -40px;
    bottom: 20%;
    animation-delay: 2s;
}

@keyframes floatAnim {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ── Feature Cards ── */
.im-feature-card {
    background: #ffffff;
    border: 1px solid var(--im-border);
    border-radius: var(--im-radius-lg);
    padding: 2.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.im-feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 85, 32, 0.4);
    box-shadow: var(--im-shadow-md);
}

.feature-icon-box {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.im-feature-card:hover .feature-icon-box {
    transform: scale(1.1);
}

.feature-icon-box.purple {
    background: rgba(12, 30, 74, 0.08);
    color: var(--im-navy);
}

.feature-icon-box.pink {
    background: rgba(230, 46, 92, 0.1);
    color: var(--im-accent);
}

.feature-icon-box.green {
    background: rgba(16, 185, 129, 0.12);
    color: var(--im-success);
}

.feature-icon-box.amber {
    background: rgba(255, 85, 32, 0.1);
    color: var(--im-primary);
}

/* ── Dual Audience Nav & Content ── */
.audience-nav {
    background: #F8EFEB;
    padding: 0.4rem;
    border-radius: 9999px;
    display: inline-flex;
    margin-bottom: 3rem;
}

.audience-nav .nav-link {
    border-radius: 9999px;
    font-weight: 700;
    padding: 0.75rem 2rem;
    color: var(--im-text-muted);
    border: none;
    transition: all 0.2s ease;
}

.audience-nav .nav-link.active {
    background: var(--im-accent-gradient);
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(255, 85, 32, 0.35);
}

/* ── Category Tags ── */
.category-badge-card {
    background: #ffffff;
    border: 1px solid var(--im-border);
    border-radius: 16px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.25s ease;
    cursor: pointer;
    text-decoration: none;
    color: var(--im-text-dark);
    display: block;
}

.category-badge-card:hover {
    transform: translateY(-4px);
    border-color: var(--im-primary);
    box-shadow: var(--im-shadow-sm);
    color: var(--im-primary);
}

.category-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* ── Steps / How it works ── */
.step-pill {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--im-accent-gradient);
    color: white;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(255, 85, 32, 0.35);
}

/* ── FAQ Accordion ── */
.im-accordion .accordion-item {
    border: 1px solid var(--im-border);
    border-radius: 14px !important;
    margin-bottom: 1rem;
    overflow: hidden;
    background: #ffffff;
}

.im-accordion .accordion-button {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--im-text-dark);
    padding: 1.25rem 1.5rem;
    background: #ffffff;
    box-shadow: none !important;
}

.im-accordion .accordion-button:not(.collapsed) {
    background: rgba(255, 85, 32, 0.05);
    color: var(--im-primary-dark);
}

.im-accordion .accordion-body {
    padding: 1.25rem 1.5rem;
    color: #475569;
    line-height: 1.7;
}

/* ── Compliance / Legal Pages Layout ── */
.legal-header {
    background: var(--im-dark-gradient);
    color: #ffffff;
    padding: 8rem 0 4.5rem;
    text-align: center;
    position: relative;
}

.legal-header h1 {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 0.75rem;
}

.legal-header p {
    font-size: 1.15rem;
    color: #cbd5e1;
    max-width: 650px;
    margin: 0 auto;
}

.legal-card {
    background: #ffffff;
    border: 1px solid var(--im-border);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(12, 30, 74, 0.05);
    padding: 3.5rem 3.5rem;
    margin-top: -3rem;
    margin-bottom: 5rem;
    position: relative;
    z-index: 10;
}

@media (max-width: 768px) {
    .legal-card {
        padding: 2rem 1.5rem;
        margin-top: -2rem;
    }
}

.legal-card h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--im-navy);
    margin-top: 2.25rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #FDF3F0;
}

.legal-card h2:first-of-type {
    margin-top: 1rem;
}

.legal-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #334155;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.legal-card p,
.legal-card li {
    color: #475569;
    font-size: 1rem;
    line-height: 1.75;
}

.legal-card ul,
.legal-card ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.legal-badge-pill {
    display: inline-block;
    background: #FFF0EB;
    color: var(--im-primary-dark);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    margin-bottom: 1.5rem;
}

.highlight-box {
    background: #FFF9F7;
    border-left: 4px solid var(--im-primary);
    border-radius: 0 12px 12px 0;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}

/* ── Footer ── */
.im-footer {
    background: var(--im-navy-dark);
    color: #94A3B8;
    padding-top: 5rem;
    padding-bottom: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.im-footer h5 {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.65rem;
}

.footer-links a {
    color: #94A3B8;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
}

/* ── Store Download CTA Banner ── */
.cta-download-box {
    background: var(--im-accent-gradient);
    border-radius: var(--im-radius-xl);
    padding: 4rem 3rem;
    color: #ffffff;
    box-shadow: var(--im-shadow-lg);
    position: relative;
    overflow: hidden;
}

.cta-download-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
