/* Agentive V2 Design System — Overrides & Additions
   Load AFTER styles.css: <link rel="stylesheet" href="styles-v2.css">
   ─────────────────────────────────────────────────── */

/* ─── GRAIN OVERLAY (enhanced) ─── */
body::before { opacity: 0.5; }

/* ─── REPLACE STATIC ACCENT BAR WITH SCROLL PROGRESS ─── */
body::after { display: none !important; }

.scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 100%;
    background: linear-gradient(90deg, var(--accent), #E8956E);
    z-index: 10001; transform-origin: left; transform: scaleX(0);
    will-change: transform;
}

/* ─── NAVBAR V2 ─── */
.navbar { top: 0; }

.hamburger {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px;
}
.hamburger span {
    display: block; width: 24px; height: 2px;
    background: var(--text); transition: all 0.3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu-v2 {
    display: none; position: fixed; inset: 0; z-index: 999;
    background: var(--bg); flex-direction: column;
    align-items: center; justify-content: center; gap: 24px;
}
.mobile-menu-v2.open { display: flex; }
.mobile-menu-v2 a {
    font-family: var(--font-heading); font-size: 28px;
    font-weight: 500; color: var(--text);
}

@media (max-width: 860px) {
    .nav-link { display: none !important; }
    .hamburger { display: flex !important; }
}

/* ─── HERO ORBS ─── */
.hero-orbs {
    position: absolute; inset: 0; pointer-events: none; z-index: 0;
}
.orb {
    position: absolute; border-radius: 50%; filter: blur(100px);
    opacity: 0; animation: orbFadeIn 2s ease-out forwards;
}
.orb-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(196,93,62,0.18), transparent 70%);
    top: -15%; left: -10%; animation-delay: 1.2s;
}
.orb-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(232,170,120,0.15), transparent 70%);
    bottom: -10%; right: -8%; animation-delay: 1.5s;
}
.orb-3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(196,93,62,0.1), transparent 70%);
    top: 40%; left: 55%; animation-delay: 1.8s;
}
@keyframes orbFadeIn { to { opacity: 1; } }
.orb-1 { animation: orbFadeIn 2s ease-out 1.2s forwards, orbFloat1 25s ease-in-out 3s infinite; }
.orb-2 { animation: orbFadeIn 2s ease-out 1.5s forwards, orbFloat2 22s ease-in-out 3.5s infinite; }
.orb-3 { animation: orbFadeIn 2s ease-out 1.8s forwards, orbFloat3 20s ease-in-out 4s infinite; }
@keyframes orbFloat1 { 0%,100%{transform:translate(0,0)} 33%{transform:translate(40px,-50px)} 66%{transform:translate(-30px,30px)} }
@keyframes orbFloat2 { 0%,100%{transform:translate(0,0)} 33%{transform:translate(-35px,40px)} 66%{transform:translate(25px,-25px)} }
@keyframes orbFloat3 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(30px,-30px)} }

/* ─── WORD-BY-WORD REVEAL ─── */
.word-mask {
    display: inline-block; overflow: hidden; vertical-align: bottom;
    padding-bottom: 4px;
}
.word-inner {
    display: inline-block;
    transform: translateY(115%);
    animation: wordReveal 0.9s var(--ease-out-expo) forwards;
    animation-delay: calc(0.35s + var(--d, 0) * 0.1s);
}
@keyframes wordReveal { to { transform: translateY(0); } }
.accent-text { color: var(--accent); }

/* ─── V2 BUTTON ENHANCEMENTS ─── */
.btn-primary:hover,
.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(196,93,62,0.3), 0 0 60px rgba(196,93,62,0.15);
}
.btn-primary::after { content: "\2192"; margin-left: 6px; transition: transform 0.3s; font-weight: 400; }
.btn-primary:hover::after { transform: translateX(5px); }

/* Glow pulse for CTAs */
.glow-btn { overflow: visible; position: relative; }
.glow-btn::before {
    content: ''; position: absolute; inset: -6px; border-radius: 999px;
    background: var(--accent); filter: blur(24px); opacity: 0; z-index: -1;
    animation: glowPulse 3s ease-in-out infinite 2s;
}
@keyframes glowPulse {
    0%,100% { opacity: 0; transform: scale(0.92); }
    50% { opacity: 0.25; transform: scale(1.06); }
}

/* Magnetic button (JS adds transform on hover) */
.magnetic-btn { transition: transform 0.15s ease; }

/* ─── SECTION DIVIDER WITH DIAMOND ─── */
.section-divider {
    width: 100%; height: 1px; background: var(--border); position: relative;
}
.section-divider::after {
    content: ''; position: absolute; left: 50%; top: 50%;
    transform: translate(-50%,-50%) rotate(45deg);
    width: 7px; height: 7px; background: var(--accent);
}

/* ─── V2 TILT CARD ─── */
.tilt-card { will-change: transform; }
.tilt-card:hover { box-shadow: 0 24px 64px rgba(26,26,26,0.1); }

/* ─── V2 ENHANCED SERVICE CARDS ─── */
.service-card.tilt-card::before {
    background: linear-gradient(90deg, var(--accent), #E8956E);
}

/* ─── V2 ENHANCED STAT NUMBERS ─── */
.stats-strip .stat-number,
.stat-number {
    transition: transform 0.5s var(--ease-out-expo);
}
.stat-item:hover .stat-number,
.stat:hover .stat-number { transform: scale(1.05); }

/* ─── V2 FINAL CTA SECTION (DARK) ─── */
.final-cta-v2 {
    background: var(--surface-dark); color: #FAF9F7;
    padding: 140px 0; text-align: center;
    position: relative; overflow: hidden;
}
.final-cta-v2::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 700px 500px at 15% 80%, rgba(196,93,62,0.14), transparent 70%),
        radial-gradient(ellipse 500px 400px at 85% 20%, rgba(196,93,62,0.10), transparent 70%);
    pointer-events: none; z-index: 1;
}
.final-cta-v2 .container { position: relative; z-index: 2; }
.final-cta-v2 h2 { color: #FAF9F7; }
.final-cta-v2 p { color: rgba(250,249,247,0.6); max-width: 620px; margin: 0 auto 36px; }
.final-cta-v2 .cta-microcopy,
.final-cta-v2 .cta-micro { color: rgba(250,249,247,0.35); }
.final-cta-v2 .scarcity-text { color: rgba(250,249,247,0.25); }

/* ─── SCROLL REVEAL ANIMATIONS ─── */
.reveal {
    opacity: 0; transform: translateY(32px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left {
    opacity: 0; transform: translateX(-40px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
    opacity: 0; transform: translateX(40px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-scale {
    opacity: 0; transform: scale(0.92);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* Stagger children */
.stagger > *:nth-child(1) { transition-delay: 0s; }
.stagger > *:nth-child(2) { transition-delay: 0.12s; }
.stagger > *:nth-child(3) { transition-delay: 0.24s; }
.stagger > *:nth-child(4) { transition-delay: 0.36s; }

/* ─── V2 FOOTER ENHANCEMENT ─── */
.site-footer .footer-cta-section {
    position: relative;
}

/* ─── WEB3FORMS DIAGNOSTIC FORM ─── */
.diagnostic-form {
    padding: 24px;
}
.diagnostic-form h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px;
}
.diagnostic-form .form-subtitle {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 24px;
    line-height: 1.5;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.form-row.single {
    grid-template-columns: 1fr;
}
.form-group {
    display: flex;
    flex-direction: column;
}
.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px;
}
.form-group input,
.form-group select {
    padding: 12px 14px;
    font-size: 0.95rem;
    font-family: var(--font-body);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(196,93,62,0.15);
}
.form-group input::placeholder {
    color: var(--muted);
}
.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238B8680' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}
.checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text);
    cursor: pointer;
    line-height: 1.4;
}
.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--accent);
    cursor: pointer;
}
.form-section-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 8px;
    display: block;
}
.form-divider {
    height: 1px;
    background: var(--border);
    margin: 20px 0;
}
.diagnostic-form .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 1rem;
    margin-top: 8px;
}
.diagnostic-form .btn-primary::after {
    content: none;
}
.form-privacy {
    font-size: 0.8rem;
    color: var(--muted);
    text-align: center;
    margin-top: 14px;
}
.form-success {
    text-align: center;
    padding: 48px 24px;
}
.form-success h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}
.form-success p {
    color: var(--muted);
    margin-bottom: 24px;
}
.form-error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 0.9rem;
    display: none;
}
.form-error.show {
    display: block;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    .diagnostic-form {
        padding: 20px 16px;
    }
}

/* ─── V2 RESPONSIVE OVERRIDES ─── */
@media (max-width: 768px) {
    .orb-1 { width: 300px; height: 300px; }
    .orb-2 { width: 250px; height: 250px; }
    .orb-3 { display: none; }
    .final-cta-v2 { padding: 80px 0; }
    .final-cta-v2 .btn { width: 100%; justify-content: center; }
    .final-cta-v2 .btn::after { display: none; }
}
