html, body {
    max-width: 100%;
    overflow-x: hidden; /* This stops the 'long navbar' horizontal scroll */
    position: relative;
    margin: 0;
    padding: 0;
}
/* --- Global Hero Styling --- */
.split-hero {
    padding: 100px 0 80px;
    background: #fdfdfd;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.text-accent {
    color: var(--accent-purple, #6a0dad); /* Adjust to your brand color */
    position: relative;
    display: inline-block;
}

/* Primary CTA & Text CTA */
.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
}

.btn-primary {
    background: #000;
    color: #fff;
    padding: 18px 35px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: 0.3s ease;
}

.btn-primary:hover {
    background: var(--accent-purple, #6a0dad);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-text {
    color: #444;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 5px;
    transition: 0.3s;
}

.btn-text:hover { color: #000; }

/* Hero Image & Floating Badge */
.image-card-premium {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.08);
}

.image-card-premium img {
    width: 100%;
    display: block;
    border-radius: 40px;
}

.floating-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: #fff;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: float 4s ease-in-out infinite;
}

.floating-badge i { color: #00c853; }

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* --- Stats Grid --- */
.stats-ticker-section {
    padding: 60px 0;
    background: #000; /* Dark premium band */
    color: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.stat-box {
    padding: 20px 15px;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.1);
    transition: 0.3s ease;
}

.stat-box:last-child { border-right: none; }
.hover-lift:hover { transform: translateY(-8px); }

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #fff;
}

.stat-nda .stat-number i { color: var(--accent-purple, #a742ff); margin-right: 5px; }

.stat-box p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #aaa;
    margin: 0;
}

/* --- Principles Section --- */
.positioning-section {
    padding: 60px 0;
    background: #fff;
}

.header-text-blocks {
    max-width: 800px;
    margin: 0 auto 60px;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.8;
}

.header-text-blocks p { margin-bottom: 20px; }

.principles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Alternating Cards */
.principle-card {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 25px;
    padding: 40px;
    transition: 0.4s;
}

.principle-card.dark-card {
    background: #000;
    color: #fff;
    border-color: #000;
}

.card-icon {
    width: 60px; height: 60px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.dark-card .card-icon { background: #222; color: #fff; box-shadow: none; }

.principle-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.principle-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
}

.dark-card p { color: #ccc; }

.principle-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* --- Entrance Animations --- */
.slide-up-anim {
    animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.fade-in-anim {
    animation: fadeIn 1.2s ease forwards;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Fixes */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-cta-group { justify-content: center; flex-direction: column; }
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
    .stat-box { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 30px 15px; }
    .principles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .stats-grid { grid-template-columns: 1fr; }
    .principles-grid { grid-template-columns: 1fr; }
    .floating-badge { display: none; } /* Hide on mobile to save space */
}
/* --- RESET & NAV FIX --- */
.content-writing-hero {
    height: 100vh;
    background: #000;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1; /* Ensures navbar at z-index 999 stays on top */
}

#neuralNetCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw !important; /* Force it to screen width */
    height: 100% !important;
    max-width: 100%;
    object-fit: cover; /* Ensures it doesn't stretch weirdly */
    z-index: 0;
    pointer-events: none; /* Allows you to click things 'through' the canvas */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, #000 90%);
    z-index: 1;
}

/* --- TYPOGRAPHY --- */
.hero-container-v4 {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
}

.header-tag {
    color: #a020f0;
    font-family: 'Courier New', monospace;
    letter-spacing: 5px;
    font-weight: bold;
    margin-bottom: 20px;
    font-size: clamp(0.8rem, 2vw, 1rem);
}

.neural-title {
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    color: #fff;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
}

.purple-text { color: #a020f0; text-shadow: 0 0 20px rgba(160, 32, 240, 0.4); }

.typing-container {
    height: 40px;
    margin-top: 15px;
    font-family: 'Courier New', monospace;
    color: #ccc;
    font-size: clamp(1rem, 3vw, 1.5rem);
}

.cursor {
    animation: blink 0.8s infinite;
    color: #a020f0;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* --- BUTTONS --- */
.hero-btn-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap; /* Critical for mobile responsiveness */
}

.iara-primary-btn {
    padding: 18px 45px;
    background: #a020f0;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}

.iara-primary-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(160, 32, 240, 0.5);
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    .content-writing-hero {
        height: auto;
        min-height: 100dvh; 
        padding: 100px 20px 60px; /* Gives space for the navbar at the top */
        display: flex;
        flex-direction: column;
    }
    
    .hero-container-v4 {
        width: 100%;
        padding: 0;
    }

    .hero-btn-group {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .iara-primary-btn, .iara-outline-btn {
        width: 100%; /* Makes buttons full-width on mobile for easier tapping */
        text-align: center;
    }
}