/* SocialBee-inspired CSS Framework */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background:
        radial-gradient(circle at top left, rgba(109, 94, 252, 0.16), transparent 32%),
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.12), transparent 28%),
        linear-gradient(180deg, #f8faff 0%, #eef4ff 100%);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Sora', 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 {
    font-size: 3.8rem;
    font-weight: 800;
}

h2 {
    font-size: 2.75rem;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1.06rem;
    line-height: 1.75;
    color: var(--text-light);
}

/* Colors */
:root {
    --primary-color: #6d5efc;
    --primary-dark: #4f3ff4;
    --secondary-color: #22d3ee;
    --accent-color: #8b5cf6;
    --text-dark: #0f172a;
    --text-light: #5f6f89;
    --bg-light: #f4f7ff;
    --bg-section: #ffffff;
    --surface-soft: #eef4ff;
    --surface-dark: #0b1020;
    --border-color: rgba(99, 102, 241, 0.16);
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --card-shadow: 0 20px 60px rgba(15, 23, 42, 0.10);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 20px;
}

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    flex: 1;
    padding: 0 15px;
}

.col-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 15px;
}

.col-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 0 15px;
}

.col-3 {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0 15px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 0.98rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
    line-height: 1.5;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    box-shadow: 0 14px 32px rgba(79, 63, 244, 0.28);
}

.btn-primary:hover {
    color: white;
    box-shadow: 0 18px 38px rgba(79, 63, 244, 0.34);
}

.btn-secondary {
    background: rgba(109, 94, 252, 0.08);
    color: var(--primary-dark);
    border: 1px solid rgba(109, 94, 252, 0.18);
}

.btn-secondary:hover {
    color: var(--primary-dark);
    background: rgba(109, 94, 252, 0.12);
}

.btn-outline-secondary,
.btn-outline-primary {
    border-radius: 14px;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.05rem;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Header/Navigation */
.header {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 34px rgba(15, 23, 42, 0.06);
    border-bottom: 1px solid rgba(99, 102, 241, 0.10);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.95rem 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-dark);
    text-decoration: none;
}

.logo i {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.4rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    transition: color 0.25s ease;
}

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

.nav-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.25), transparent 25%),
        radial-gradient(circle at bottom right, rgba(139, 92, 246, 0.22), transparent 24%),
        linear-gradient(135deg, #0b1020 0%, #1a2350 45%, #5b4dff 100%);
    color: white;
    padding: 138px 0 92px;
    margin-top: 70px;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255,255,255,0.04), transparent 30%, transparent 70%, rgba(255,255,255,0.06));
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: center;
}

.hero-copy {
    text-align: left;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #e0f2fe;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero h1 {
    margin-bottom: 1.2rem;
    max-width: 780px;
    color: #ffffff;
}

.hero p {
    font-size: 1.12rem;
    margin-bottom: 1.6rem;
    max-width: 620px;
    color: rgba(255,255,255,0.82);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-trust-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    max-width: 620px;
}

.hero-trust-item {
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-trust-item strong {
    display: block;
    font-size: 1.15rem;
    color: #fff;
}

.hero-trust-item span {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.74);
}

.hero-visual {
    border-radius: 24px;
    padding: 1rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 24px 60px rgba(3, 7, 18, 0.28);
    backdrop-filter: blur(16px);
}

.floating-panel {
    background: rgba(11, 16, 32, 0.68);
    border-radius: 20px;
    padding: 1.25rem;
    border: 1px solid rgba(255,255,255,0.08);
}

.hero-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.hero-panel-title {
    color: #fff;
    font-weight: 700;
}

.insight-pill {
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.16);
    color: #a5f3fc;
    font-size: 0.8rem;
}

.hero-metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1rem;
}

.metric-card {
    padding: 0.9rem;
    border-radius: 16px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.08);
}

.metric-card span {
    display: block;
    color: rgba(255,255,255,0.7);
    font-size: 0.82rem;
    margin-bottom: 0.25rem;
}

.metric-card strong {
    color: #fff;
    font-size: 1.1rem;
}

/* Sections */
.section {
    padding: 88px 0;
}

.section-alt {
    background: linear-gradient(180deg, rgba(255,255,255,0.72) 0%, rgba(237,242,255,0.92) 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.75rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: rgba(109, 94, 252, 0.08);
    color: var(--primary-dark);
    font-size: 0.84rem;
    font-weight: 700;
}

.section-header h2 {
    color: var(--text-dark);
    margin-bottom: 0.8rem;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.08rem;
    max-width: 700px;
    margin: 0 auto;
}

.network-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.network-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(99, 102, 241, 0.14);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    font-weight: 600;
    color: var(--text-dark);
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.4rem;
    margin-top: 3rem;
}

.feature-card {
    position: relative;
    background: rgba(255,255,255,0.84);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(99, 102, 241, 0.12);
    box-shadow: var(--card-shadow);
    text-align: left;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.14);
    border-color: rgba(109, 94, 252, 0.22);
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 1rem;
    font-size: 1.35rem;
    color: white;
    box-shadow: 0 14px 28px rgba(79, 63, 244, 0.22);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero {
        padding: 100px 0 60px;
    }

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

    .hero-copy {
        text-align: center;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1rem;
    }

    .hero-trust-row {
        grid-template-columns: 1fr;
        margin: 0 auto;
    }

    .nav-menu {
        display: none;
    }

    .network-row {
        gap: 0.65rem;
    }

    .mobile-menu-toggle {
        display: block !important;
    }

    .nav-actions {
        gap: 0.5rem;
    }

    .col-6, .col-4, .col-3 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .btn-large {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .section {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .feature-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    .hero {
        padding: 80px 0 40px;
    }

    .navbar {
        padding: 0.5rem 0;
    }

    .logo {
        font-size: 1.3rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .section {
        padding: 40px 0;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    /* Grid system improvements */
    .row {
        flex-direction: column;
    }

    .col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
    .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
        width: 100%;
        margin-bottom: 1rem;
    }

    /* Navigation improvements */
    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Hero section */
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }

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

    /* Grids */
    .pricing-grid,
    .features-grid,
    .stats-grid,
    .testimonial-grid,
    .quick-actions {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Cards */
    .feature-card,
    .action-card,
    .testimonial-card {
        margin-bottom: 1rem;
    }

    /* Dashboard */
    .dashboard-nav {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    /* Forms */
    .phone-input-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    .country-code {
        width: 100%;
    }

    /* Tables */
    .table-responsive {
        overflow-x: auto;
    }

    table {
        min-width: 600px;
    }
}

@media (max-width: 480px) {
    /* Typography */
    .hero h1 {
        font-size: 2.45rem;
    }

    .hero-badge {
        font-size: 0.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    /* Forms */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .otp-input-group {
        gap: 0.25rem;
    }

    .otp-digit {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    /* Modals */
    .modal-content {
        margin: 1rem;
        max-height: 90vh;
        overflow-y: auto;
    }

    /* Login/404 pages */
    .login-container,
    .error-container {
        margin: 1rem;
        padding: 1.5rem;
    }

    .error-code {
        font-size: 4rem;
    }

    .error-title {
        font-size: 1.5rem;
    }

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

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