/* ============================================
   TIRELESSWORKERS.COM — AI Agent Services
   Motion Narrative Design System
   ============================================ */

/* --- Local Fonts --- */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('assets/fonts/inter-300.ttf') format('truetype');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('assets/fonts/inter-400.ttf') format('truetype');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('assets/fonts/inter-500.ttf') format('truetype');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('assets/fonts/inter-600.ttf') format('truetype');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('assets/fonts/inter-700.ttf') format('truetype');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('assets/fonts/inter-800.ttf') format('truetype');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('assets/fonts/inter-900.ttf') format('truetype');
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('assets/fonts/playfair-400.ttf') format('truetype');
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('assets/fonts/playfair-700.ttf') format('truetype');
}
@font-face {
    font-family: 'Playfair Display';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('assets/fonts/playfair-italic-400.ttf') format('truetype');
}

/* --- Variables --- */
:root {
    --bg: #111827;
    --bg-elevated: #1a2332;
    --bg-card: #1e293b;
    --bg-card-hover: #283549;
    --text: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #8494ad;
    --accent: #6c5ce7;
    --accent-light: #a29bfe;
    --accent-glow: rgba(108, 92, 231, 0.12);
    --accent-glow-strong: rgba(108, 92, 231, 0.22);
    --green: #00c896;
    --green-glow: rgba(0, 200, 150, 0.1);
    --border: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(255, 255, 255, 0.13);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Light Mode --- */
[data-theme="light"] {
    --bg: #f8fafc;
    --bg-elevated: #f1f5f9;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --text: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --accent: #6c5ce7;
    --accent-light: #7c6cf7;
    --accent-glow: rgba(108, 92, 231, 0.08);
    --accent-glow-strong: rgba(108, 92, 231, 0.15);
    --green: #059669;
    --green-glow: rgba(5, 150, 105, 0.08);
    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] em {
    color: var(--accent);
}

[data-theme="light"] .nav-link--cta {
    color: #ffffff;
}

[data-theme="light"] .btn-primary {
    color: #ffffff;
}

[data-theme="light"] .service-number {
    color: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .banner-parallax img {
    filter: brightness(0.4) saturate(0.7);
}

[data-theme="light"] .banner-quote,
[data-theme="light"] .banner-quote em {
    color: #ffffff;
}

[data-theme="light"] .showcase-caption {
    color: #ffffff;
}

[data-theme="light"] .hero-line--accent {
    background: linear-gradient(135deg, var(--accent), #7c6cf7, var(--green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Reset --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

em {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--accent-light);
}

img {
    max-width: 100%;
    display: block;
}

/* --- 3D Canvas --- */
#bg3d {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* --- Cursor Glow --- */
.cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.05) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    will-change: transform;
}

body:hover .cursor-glow {
    opacity: 1;
}

/* --- Preloader --- */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s var(--ease), visibility 0.6s;
}

.preloader.hide {
    opacity: 0;
    visibility: hidden;
}

.preloader-inner {
    text-align: center;
}

.preloader-logo {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--text), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.preloader-bar {
    width: 200px;
    height: 2px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.preloader-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    border-radius: 2px;
    animation: preloaderFill 1.8s var(--ease) forwards;
}

@keyframes preloaderFill {
    to { width: 100%; }
}

/* --- Container --- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
}

/* --- Section Basics --- */
.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-light);
    padding: 0.5rem 1rem;
    background: var(--accent-glow);
    border-radius: 100px;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.section-sub {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.7;
}

/* --- Reveal Animation --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #8b7cf7);
    color: white;
    box-shadow: 0 4px 24px rgba(108, 92, 231, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(108, 92, 231, 0.28);
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-primary svg {
    transition: transform 0.3s var(--ease);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-hover);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-light);
    color: var(--accent-light);
}

.btn-full {
    width: 100%;
    justify-content: center;
    padding: 1.15rem 2rem;
    font-size: 1rem;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: all 0.4s var(--ease);
}

/* Ensure all sections sit above the 3D canvas */
.hero, .marquee-section, .about, .philosophy, .proof, .services,
.comparison, .how, .testimonials, .faq, .visual-banner,
.cta, .footer {
    position: relative;
    z-index: 1;
}

.nav.scrolled {
    padding: 0.75rem 0;
    background: rgba(17, 24, 39, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.nav-logo span {
    color: var(--accent-light);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--accent-light);
    transition: width 0.3s var(--ease);
}

.nav-link:hover {
    color: var(--text);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link--cta {
    color: white;
    background: var(--accent);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-xs);
    transition: all 0.3s var(--ease);
}

.nav-link--cta::after { display: none; }

.nav-link--cta:hover {
    background: #8b7cf7;
    color: white;
    transform: translateY(-1px);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-xs);
    border: 1px solid var(--border-hover);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    margin-left: 0.5rem;
}

.lang-switcher:hover {
    border-color: var(--accent);
    background: var(--accent-glow);
}

.lang-flag {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--text);
    pointer-events: none;
}

.nav-right-mobile {
    display: none;
    align-items: center;
    gap: 0.75rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s var(--ease);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(17, 24, 39, 0.97);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease);
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
}

.mobile-link {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s var(--ease);
}

.mobile-menu.open .mobile-link {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.open .mobile-link:nth-child(6) { transition-delay: 0.35s; }

/* ============================================
   HERO
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

/* Data Flow Canvas */
.hero-dataflow {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Subtle vignette over data flow — keeps center readable without hiding streams */
.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(ellipse at 50% 50%, transparent 30%, rgba(17, 24, 39, 0.4) 100%);
}

[data-theme="light"] .hero-gradient-overlay {
    background: radial-gradient(ellipse at 50% 50%, transparent 30%, rgba(248, 250, 252, 0.5) 100%);
}

/* light mode canvas draws its own bg — no opacity needed */

.hero-content {
    text-align: center;
    max-width: 900px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--green);
    padding: 0.5rem 1.25rem;
    background: var(--green-glow);
    border: 1px solid rgba(0, 210, 160, 0.2);
    border-radius: 100px;
    margin-bottom: 2.5rem;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 2rem;
}

.hero-line {
    display: block;
}

.hero-line em {
    font-size: 1.05em;
}

.hero-line--accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-light), var(--green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    line-height: 1.75;
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.hero-sub strong {
    color: var(--text);
}

.hero-audience {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: var(--accent-light);
    margin: -1.5rem auto 2.5rem;
    max-width: 640px;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1.5rem, 3vw, 3rem);
    margin-top: 5rem;
    padding: 2rem clamp(1.5rem, 3vw, 3rem);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.stat-savings {
    color: var(--green);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* Scroll Hint */
.hero-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent-light), transparent);
    animation: scrollLine 2s ease infinite;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; opacity: 1; }
    50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; opacity: 1; }
}

/* ============================================
   MARQUEE
   ============================================ */
.marquee-section {
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.marquee {
    overflow: hidden;
}

.marquee-track {
    display: flex;
    gap: 3rem;
    animation: marquee 30s linear infinite;
    white-space: nowrap;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.marquee-dot {
    color: var(--accent);
    font-size: 0.6rem;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ============================================
   ABOUT
   ============================================ */
.about {
    padding: clamp(4rem, 8vw, 7rem) 0;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%);
}

/* About Showcase — Magazine Layout */
.about-showcase {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: 280px 200px;
    gap: 1rem;
    margin-bottom: 5rem;
}

.showcase-img {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}

.showcase-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}

.showcase-img:hover img {
    transform: scale(1.05);
}

.showcase-img--main {
    grid-row: 1 / 3;
    position: relative;
}

.showcase-caption {
    position: absolute;
    bottom: 1.25rem;
    left: 1.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-xs);
}

.showcase-img--side {
    grid-column: 2;
    grid-row: 1;
}

.showcase-img--bottom {
    grid-column: 2;
    grid-row: 2;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.about-text strong {
    color: var(--text);
}

/* ============================================
   PHILOSOPHY
   ============================================ */
.philosophy {
    padding: clamp(5rem, 10vw, 8rem) 0;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.philosophy-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow-strong) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0.5;
}

.philosophy-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: start;
}

.philosophy-left {
    position: sticky;
    top: 120px;
}

.philosophy-word {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text);
    margin: 0 0 1.5rem;
}

.philosophy-word em {
    background: linear-gradient(135deg, var(--accent), var(--accent-light), var(--green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: normal;
}

.philosophy-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--green));
    border-radius: 3px;
    margin-bottom: 1.25rem;
}

.philosophy-noun {
    font-family: var(--font);
    font-size: 0.95rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    margin: 0;
}

.philosophy-noun span {
    font-style: italic;
    color: var(--text-secondary);
    margin-left: 0.5rem;
}

/* Typewriter container */
.philosophy-typewriter {
    font-family: var(--font);
    font-size: clamp(1.05rem, 2.2vw, 1.2rem);
    line-height: 1.85;
    color: var(--text-secondary);
    min-height: 200px;
    position: relative;
}

.philosophy-typewriter .tw-quote {
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 2.5vw, 1.55rem);
    font-style: italic;
    color: var(--text);
    line-height: 1.7;
    display: block;
    margin-bottom: 1.5rem;
}

.philosophy-typewriter .tw-meaning {
    display: block;
    margin-bottom: 1.75rem;
    color: var(--text-secondary);
    line-height: 1.85;
}

.philosophy-typewriter .tw-bold {
    color: var(--text);
    font-weight: 600;
}

.philosophy-typewriter .tw-divider {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--border);
    margin-bottom: 1.75rem;
}

.philosophy-typewriter .tw-closer {
    display: block;
    font-weight: 500;
    color: var(--text);
    line-height: 1.7;
}

.philosophy-typewriter .tw-accent {
    color: var(--accent-light);
    font-weight: 600;
}

/* Blinking cursor */
.typewriter-cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background: var(--accent-light);
    vertical-align: text-bottom;
    margin-left: 2px;
    animation: twBlink 0.6s step-end infinite;
}

.typewriter-cursor.done {
    animation: twFadeOut 1s ease forwards;
    animation-delay: 1.5s;
}

@keyframes twBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes twFadeOut {
    to { opacity: 0; }
}

/* Philosophy animations */
.phil-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.phil-reveal--2 {
    transform: translateY(40px) scale(0.95);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.phil-reveal--3 {
    transform: scaleX(0);
    transform-origin: left;
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}


.phil-reveal.visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1) scaleX(1);
}

.phil-reveal--1.visible { transition-delay: 0s; }
.phil-reveal--2.visible { transition-delay: 0.15s; }
.phil-reveal--3.visible { transition-delay: 0.35s; }
.phil-reveal--4.visible { transition-delay: 0.5s; }

/* Glow pulse when section is in view */
.philosophy.in-view .philosophy-glow {
    animation: philGlow 3s ease-in-out infinite alternate;
}

@keyframes philGlow {
    0% { opacity: 0.3; transform: translate(-50%, -50%) scale(0.9); }
    100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
}

/* Line shimmer after reveal */
.phil-reveal--3.visible .philosophy-line,
.philosophy-line.phil-reveal--3.visible {
    background-size: 200% 100%;
    background-image: linear-gradient(90deg, var(--accent), var(--green), var(--accent));
    animation: lineShimmer 3s ease infinite;
    animation-delay: 1s;
}

@keyframes lineShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@media (max-width: 768px) {
    .philosophy-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .philosophy-left {
        position: static;
        text-align: center;
    }

    .philosophy-line {
        margin: 0 auto 1.25rem;
        transform-origin: center;
    }

    .philosophy-noun {
        text-align: center;
    }

    .philosophy-quote::before {
        position: static;
        display: block;
        text-align: center;
        margin-bottom: -1rem;
    }

    .phil-reveal--3 {
        transform-origin: center;
    }
}

/* ============================================
   PROOF / METRICS
   ============================================ */
.proof {
    padding: clamp(4rem, 8vw, 7rem) 0;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.proof-header {
    margin-bottom: 4rem;
}

.proof-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.proof-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    transition: all 0.5s var(--ease);
    position: relative;
    overflow: hidden;
}

.proof-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.proof-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.proof-card:hover::before {
    opacity: 1;
}

.proof-card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    color: var(--accent-light);
}

.proof-card-metric {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.metric-number {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--text-secondary), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric-unit {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.proof-card-desc {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.proof-card-desc strong {
    color: var(--text);
}

.proof-card-example {
    padding: 1.25rem;
    background: rgba(108, 92, 231, 0.05);
    border: 1px solid rgba(108, 92, 231, 0.1);
    border-radius: var(--radius-sm);
}

.example-tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-light);
    display: block;
    margin-bottom: 0.5rem;
}

.proof-card-example p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   SERVICES
   ============================================ */
.services {
    padding: clamp(4rem, 8vw, 7rem) 0;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%);
}

.services-header {
    margin-bottom: 4rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    transition: all 0.5s var(--ease);
    position: relative;
}

.service-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.25);
}

.service-card--featured {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.08), rgba(108, 92, 231, 0.02));
}

.service-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
    background: var(--accent);
    padding: 0.35rem 0.85rem;
    border-radius: 100px;
    z-index: 2;
}

/* Service Card Images */
.service-card-img {
    height: 180px;
    margin: -2.5rem -2.5rem 1.5rem -2.5rem;
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
}

.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
    filter: brightness(0.7) saturate(0.8);
}

.service-card:hover .service-card-img img {
    transform: scale(1.08);
    filter: brightness(0.85) saturate(1);
}

.service-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.04);
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.service-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.service-desc {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.service-features li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding-left: 1.5rem;
    position: relative;
}

.service-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
}

/* ============================================
   COMPARISON TABLE
   ============================================ */
.comparison {
    padding: clamp(4rem, 8vw, 7rem) 0;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.comparison-header {
    margin-bottom: 3rem;
    text-align: center;
}

.comparison-table {
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.comp-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
}

.comp-row:not(:last-child) {
    border-bottom: 1px solid var(--border);
}

.comp-cell {
    padding: 1.15rem 1.5rem;
    font-size: 0.9rem;
}

.comp-header-row {
    background: var(--bg-card);
}

.comp-header-row .comp-cell {
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.comp-label {
    font-weight: 600;
    color: var(--text);
}

.comp-human {
    color: var(--text-secondary);
}

.comp-ai {
    color: var(--text-secondary);
}

.comp-ai.highlight {
    color: var(--green);
    font-weight: 600;
    background: rgba(5, 150, 105, 0.06);
}

.comp-row:not(.comp-header-row) .comp-human::before,
.comp-row:not(.comp-header-row) .comp-ai::before {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.comp-row:not(.comp-header-row) .comp-human::before {
    content: "\00D7";
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.comp-row:not(.comp-header-row) .comp-ai::before {
    content: "\2713";
    background: rgba(5, 150, 105, 0.15);
    color: var(--green);
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how {
    padding: clamp(4rem, 8vw, 7rem) 0;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 50%, var(--bg) 100%);
}

.how-header {
    margin-bottom: 4rem;
    text-align: center;
}

/* How Layout with Image */
.how-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.how-visual {
    position: sticky;
    top: 120px;
    border-radius: var(--radius);
    overflow: hidden;
}

.how-visual img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: var(--radius);
}

.how-visual-card {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-size: 0.9rem;
    color: #ffffff;
}

.how-visual-card strong {
    color: var(--green);
}

[data-theme="light"] .how-visual-card {
    color: #ffffff;
}

.visual-card-dot {
    width: 8px;
    height: 8px;
    min-width: 8px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s ease infinite;
}

.how-steps {
    position: relative;
}

.how-step {
    display: flex;
    gap: 2rem;
    padding-bottom: 3rem;
    position: relative;
}

.how-step:last-child {
    padding-bottom: 0;
}

.step-connector {
    position: absolute;
    left: 28px;
    top: 56px;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--accent), var(--border));
}

.how-step:last-child .step-connector {
    display: none;
}

.step-marker {
    width: 56px;
    height: 56px;
    min-width: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border: 1px solid rgba(108, 92, 231, 0.3);
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-light);
    position: relative;
    z-index: 2;
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    margin-top: 0.15rem;
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
    padding: clamp(4rem, 8vw, 7rem) 0;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.testimonials-header {
    margin-bottom: 4rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    transition: all 0.5s var(--ease);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-quote {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 2rem;
    font-style: italic;
    font-family: var(--font-serif);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-light);
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-info strong {
    font-size: 0.9rem;
}

.author-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================
   FAQ
   ============================================ */
.faq {
    padding: clamp(4rem, 8vw, 7rem) 0;
    background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg) 100%);
}

.faq-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 0;
    font-family: var(--font);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--accent-light);
}

.faq-icon {
    min-width: 20px;
    color: var(--text-muted);
    transition: transform 0.4s var(--ease), color 0.3s;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
    color: var(--accent-light);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s var(--ease), padding 0.5s var(--ease);
}

.faq-item.open .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding-bottom: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   VISUAL BANNER
   ============================================ */
.visual-banner {
    position: relative;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
}

.banner-parallax {
    position: absolute;
    inset: -60px;
}

.banner-parallax img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.45) saturate(0.7);
}

.banner-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, rgba(17,24,39,0.3), rgba(17,24,39,0.55));
}

.banner-quote {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 4vw, 2.8rem);
    font-weight: 400;
    text-align: center;
    line-height: 1.5;
    color: var(--text);
    max-width: 800px;
}

.banner-quote em {
    font-size: 1.1em;
}

/* ============================================
   CTA
   ============================================ */
.cta {
    padding: clamp(4rem, 8vw, 7rem) 0;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.cta-sub {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 3rem;
}

.cta-form-wrap {
    max-width: 560px;
    margin: 0 auto;
}

.cta-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem 1.25rem;
    font-family: var(--font);
    font-size: 0.9rem;
    color: var(--text);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236b6b75' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    padding-right: 3rem;
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-logo {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-logo span {
    color: var(--accent-light);
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--text-muted);
    transition: all 0.3s var(--ease);
}

.footer-social a:hover {
    color: var(--accent-light);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.footer-col a,
.footer-col span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--accent-light);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--text-secondary);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .proof-cards {
        grid-template-columns: 1fr 1fr;
    }
    .testimonials-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .cursor-glow { display: none; }

    .nav-links { display: none; }
    .nav-right-mobile { display: flex; }
    .nav-toggle { display: flex; }

    .hero {
        padding: 7rem 1.5rem 3rem;
        min-height: auto;
    }

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem;
        margin-top: 3rem;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .hero-scroll-hint {
        display: none;
    }

    .about-showcase {
        grid-template-columns: 1fr;
        grid-template-rows: 220px 180px 180px;
    }

    .about-showcase .showcase-img--main {
        grid-row: auto;
    }

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

    .how-layout {
        grid-template-columns: 1fr;
    }

    .how-visual {
        position: relative;
        top: 0;
    }

    .how-visual img {
        height: 280px;
    }

    .visual-banner {
        height: 40vh;
        min-height: 280px;
    }

    .proof-cards {
        grid-template-columns: 1fr;
    }

    .proof-card {
        padding: 1.75rem;
    }

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

    .service-card {
        padding: 1.75rem;
    }

    .service-card-img {
        margin: -1.75rem -1.75rem 1.5rem -1.75rem;
    }

    .testimonial-card {
        padding: 1.75rem;
    }

    .comp-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .comp-cell {
        padding: 0.75rem 1.25rem;
    }

    .comp-header-row {
        display: none;
    }

    .comp-label {
        background: var(--bg-card);
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--text-muted);
        padding: 0.6rem 1.25rem;
    }

    .comp-human::before,
    .comp-ai::before {
        content: attr(data-mobile-label) ': ';
        font-weight: 600;
        color: var(--text-muted);
    }

    .faq-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

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

@media (max-width: 480px) {
    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }

    .hero-ctas .btn {
        width: 100%;
        justify-content: center;
    }
}

/* --- 3D Scene Integration --- */
@media (min-width: 769px) {
    .hero {
        background: transparent;
    }
    .about, .services, .how, .faq {
        background: rgba(17, 24, 39, 0.92);
    }
    .proof, .comparison, .testimonials, .cta {
        background: rgba(26, 35, 50, 0.94);
    }
    .footer {
        background: rgba(17, 24, 39, 0.96);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-dataflow {
        display: none;
    }
}

/* --- Theme Toggle --- */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-xs);
    border: 1px solid var(--border-hover);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    margin-left: 0.25rem;
    color: var(--text);
    font-size: 1.1rem;
    line-height: 1;
}

.theme-toggle:hover {
    border-color: var(--accent);
    background: var(--accent-glow);
}

.theme-toggle .icon-moon,
.theme-toggle .icon-sun { display: none; }

:root .theme-toggle .icon-moon { display: block; }
:root .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }

/* --- Light Mode: 3D & Visual Adjustments --- */
[data-theme="light"] #bg3d {
    opacity: 0.5;
    filter: invert(1) hue-rotate(180deg) contrast(1.5) brightness(1.1);
}

[data-theme="light"] .cursor-glow {
    background: radial-gradient(circle, rgba(108, 92, 231, 0.04) 0%, transparent 70%);
}

[data-theme="light"] .nav.scrolled {
    background: rgba(248, 250, 252, 0.95);
    border-bottom-color: var(--border);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .mobile-menu {
    background: rgba(248, 250, 252, 0.97);
}

[data-theme="light"] .banner-overlay {
    background: linear-gradient(to bottom, rgba(17,24,39,0.5), rgba(17,24,39,0.75));
}

[data-theme="light"] .proof-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .service-card:hover {
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .service-card-img img {
    filter: brightness(0.85) saturate(0.9);
}

[data-theme="light"] .service-card:hover .service-card-img img {
    filter: brightness(0.95) saturate(1);
}

[data-theme="light"] .metric-number {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .preloader {
    background: var(--bg);
}

[data-theme="light"] .preloader-logo {
    background: linear-gradient(135deg, var(--text), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (min-width: 769px) {
    [data-theme="light"] .about, [data-theme="light"] .services,
    [data-theme="light"] .how, [data-theme="light"] .faq {
        background: rgba(248, 250, 252, 0.82);
    }
    [data-theme="light"] .proof, [data-theme="light"] .comparison,
    [data-theme="light"] .testimonials, [data-theme="light"] .cta {
        background: rgba(241, 245, 249, 0.85);
    }
    [data-theme="light"] .footer {
        background: rgba(248, 250, 252, 0.92);
    }
}

/* ============================================
   WhatsApp Floating Button
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
    text-decoration: none;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}
.whatsapp-float svg {
    display: block;
}
.whatsapp-tooltip {
    position: absolute;
    right: 72px;
    background: var(--bg-card, #1e293b);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
}
.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
}
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 50px;
        height: 50px;
    }
    .whatsapp-tooltip {
        display: none;
    }
}
