/* 
Theme Name: Chatox Landing
Version: 2.0.0
*/

:root {
    /* Purple Theme Palette (Onex/Daxus Vibe) */
    --bg-dark: #0f0518;
    /* Deep Purple/Black */
    --bg-light: #F8FAFF;
    /* Off-white */

    --theme-purple: #8B5CF6;
    /* Vivid Violet (Primary Brand Color) */
    --accent-gold: #F9B600;
    /* Gold text/accents */

    --cta-color: #30C070;
    /* Green CTA (High Contrast) */

    --text-light: #FFFFFF;
    --text-dark: #1F2937;
    --text-gray: #9CA3AF;
    --border-color: #E5E7EB;

    /* Gradients */
    --gradient-glow: radial-gradient(circle at center, rgba(139, 92, 246, 0.25) 0%, rgba(15, 5, 24, 0) 70%);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
}

.text-gold {
    color: var(--accent-gold);
}

.text-purple {
    color: var(--theme-purple);
}

/* New class */
.text-primary {
    color: var(--theme-purple);
}

/* Remap primary text to purple */
.text-white {
    color: var(--text-light);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--cta-color);
    /* Green CTA */
    color: #fff;
    box-shadow: 0 4px 14px rgba(48, 192, 112, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(48, 192, 112, 0.6);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--theme-purple);
    /* Purple Border */
    color: var(--theme-purple);
}

.btn-outline:hover {
    background: var(--theme-purple);
    color: #fff;
}

/* =========================================
   HEADER
   ========================================= */
.site-header {
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 100;
    padding: 1.5rem 0;
}

.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    color: var(--theme-purple);
    /* Purple Robot Icon */
}

/* =========================================
   HERO SECTION (Dark Purple)
   ========================================= */
.hero {
    background-color: var(--bg-dark);
    background-image: var(--gradient-glow);
    color: var(--text-light);
    padding: 8rem 0 5rem;
    position: relative;
    overflow: hidden;
}

/* Particles Effect - slightly purplish tint possibilities */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.8), rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.8), rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 50px 160px, rgba(255, 255, 255, 0.8), rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 90px 40px, rgba(255, 255, 255, 0.8), rgba(0, 0, 0, 0));
    background-repeat: repeat;
    background-size: 200px 200px;
    opacity: 0.2;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
    /* Boxed Alignment */
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.25rem;
    color: #e2e8f0;
    margin-bottom: 2rem;
}

.hero-tag {
    display: inline-block;
    background: rgba(139, 92, 246, 0.15);
    /* Purple tint */
    color: var(--accent-gold);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(249, 182, 0, 0.3);
}

.hero-visual {
    position: relative;
}

.hero-dashboard-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.2);
    /* Purple border */
}

/* Mobile Hero */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

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

/* =========================================
   SECTIONS: PAIN POINTS & FEATURES
   ========================================= */

/* =========================================
   SECTIONS: PAIN POINTS & FEATURES
   ========================================= */

/* Boxed Layout Style */
.pain-points,
.features {
    width: 90%;
    max-width: 1200px;
    margin: 3rem auto;
    border-radius: 20px;
    padding: 5rem 2rem;
    /* box-shadow removed as per user request */
}

/* Pain Points - White Box */
.pain-points {
    background-color: #fff;
    position: relative;
    z-index: 10;
}

/* Features - Transparent/No Box */
.features {
    background-color: transparent;
    position: relative;
    border: none;
    /* Removed border */
}

/* Side Glows for Features (Purple) - REMOVED */
.features::before {
    display: none;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--bg-dark);
    /* Dark Purple Text */
}

/* Card Grid Styles */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.1);
    /* Purple shadow */
    border-color: var(--theme-purple);
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    background: rgba(139, 92, 246, 0.1);
    /* Light Purple */
    color: var(--theme-purple);
}

.feature-number {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(0, 0, 0, 0.05);
    /* Subtle number */
    position: absolute;
    top: 1rem;
    right: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    color: var(--bg-dark);
}

.feature-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* Onex Hub (Override gradient for purple) */
.onex-hub-wrapper {
    background: radial-gradient(circle at center, #2e1065 0%, #0f0518 100%);
    /* Deep Violet to Black */
}

/* Footer */
footer {
    background-color: var(--bg-dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 4rem 0 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Modal Overlay */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 10000;
    /* High z-index */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* Prevent body scroll interactions */
    background-color: rgba(0, 0, 0, 0.85);
    /* Flexbox Centering */
    align-items: center;
    justify-content: center;
    padding: 1rem;
    /* Prevent touching edges */
}

/* Modal Content Defaults */
.modal-content {
    background-color: var(--bg-dark);
    margin: 0 auto;
    /* Reset */
    padding: 3rem 2rem;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: slideIn 0.3s ease;
    border: 1px solid var(--theme-purple);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    color: var(--text-light);
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: #fff;
    z-index: 1001;
    /* Ensure above video */
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.close-modal:hover {
    color: var(--theme-purple);
    background: rgba(255, 255, 255, 0.1);
}

.modal h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.modal p {
    color: var(--text-gray);
    margin-bottom: 2rem;
}

/* Modal Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 1rem 1.2rem;
    background-color: rgba(255, 255, 255, 0.05);
    /* Glassy input */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    /* White text input */
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-input:focus {
    border-color: var(--theme-purple);
    background-color: rgba(255, 255, 255, 0.1);
    outline: none;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

/* =========================================
   RESPONSIVE VIDEO MODAL
   ========================================= */
.video-content-wrapper {
    max-width: 900px !important;
    width: 95% !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
    position: relative;
    z-index: 9999 !important;
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    /* 16:9 */
    background: #000;
    border-radius: 12px;
    margin: 0 auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: visible !important;
    z-index: 9999 !important;
}

.video-container iframe,
.video-container #youtube-player,
#youtube-player iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    z-index: 99999 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* =========================================
   ONEX HUB (Linktree) STYLES
   ========================================= */

.onex-hub-body {
    background-color: #0f0518;
    color: #fff;
    font-family: 'Inter', sans-serif;
    margin: 0;
    min-height: 100vh;
}

.onex-hub-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, #2e1065 0%, #0f0518 100%);
    padding: 2rem 1rem;
}

.onex-hub-container {
    width: 100%;
    max-width: 480px;
    text-align: center;
}

.hub-avatar img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 3px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
    margin-bottom: 1.5rem;
    animation: hubPulse 3s infinite;
}

@keyframes hubPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(139, 92, 246, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0);
    }
}

.hub-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hub-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
}

.hub-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hub-link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hub-link-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.hub-link-card .link-icon {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

.hub-link-card span {
    flex: 1;
    text-align: left;
    margin: 0 1rem;
    font-weight: 500;
}

.hub-link-card .link-arrow {
    font-size: 0.9rem;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.hub-link-card:hover .link-arrow {
    opacity: 1;
}

/* Featured Link (Chatox) */
.hub-link-card.featured {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}

.hub-link-card.featured:hover {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.2) 0%, rgba(139, 92, 246, 0.1) 100%);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
}

.hub-link-card.featured .link-icon {
    color: var(--theme-purple);
}

.hub-footer {
    margin-top: 3rem;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}

/* =========================================
   INTL TEL INPUT OVERRIDES
   ========================================= */
.iti {
    width: 100%;
}

.iti__country-list {
    background-color: #fff;
    color: var(--text-dark);
    /* Force dark text regardless of parent theme */
    z-index: 9999;
    border: 1px solid #ccc;
    /* Add border for visibility */
}

.iti__country-name {
    color: #1F2937;
    /* Explicit dark color */
}

.iti__dial-code {
    color: #6B7280;
}

/* Ensure dropdown items have hover effect */
.iti__country:hover {
    background-color: #f3f4f6;
}

/* Ensure selected country is highlighted */
.iti__country.iti__highlight {
    background-color: #e5e7eb;
}