/*
Theme Name: Iguana Automation
Theme URI: https://iguana-automation.com
Author: Iguana Automation
Author URI: https://iguana-automation.com
Description: A premium AI automation theme.
Version: 1.0.2
*/

:root {
    /* Color System */
    --color-primary: #3CFF6B;
    /* Electric Green */
    --color-primary-dim: #2ebf52;
    --color-secondary: #0B0F14;
    /* Deep Charcoal */
    --color-accent: #00E5FF;
    /* Neon Teal */
    --color-text-main: #FFFFFF;
    --color-text-muted: #9CA3AF;
    --color-bg-dark: #05070a;
    --color-card-bg: rgba(255, 255, 255, 0.03);
    --color-card-border: rgba(255, 255, 255, 0.08);

    /* Typography */
    /* Use tightened tracking for headings for modern look */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --tracking-tight: -0.03em;

    /* Spacing */
    --container-width: 1200px;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Effects */
    --glass-blur: blur(12px);
    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --glow-primary: 0 0 20px rgba(60, 255, 107, 0.2);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    /* Component Specific */
    --navbar-bg: rgba(11, 15, 20, 0.8);
}

[data-theme="light"] {
    --color-primary: #059669;
    /* Emerald 600 - High Contrast Green */
    --color-primary-dim: #047857;
    --color-secondary: #F3F4F6;
    /* Light Gray */
    --color-text-main: #111827;
    /* Deep Slate */
    --color-text-muted: #374151;
    /* Darker Gray for legibility */
    /* Cool Gray */
    --color-bg-dark: #FFFFFF;
    /* White */
    --color-card-bg: rgba(255, 255, 255, 0.8);
    --color-card-border: rgba(0, 0, 0, 0.08);
    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    --glow-primary: 0 0 20px rgba(5, 150, 105, 0.15);

    --navbar-bg: rgba(255, 255, 255, 0.9);
    /* Frosted White Ribbon */
}

/* Global Polish */
::selection {
    background: var(--color-primary);
    color: var(--color-secondary);
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-dark);
}

::-webkit-scrollbar-thumb {
    background: rgba(60, 255, 107, 0.3);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}


/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    /* Offset for sticky navbar */
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-dark);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    /* Crisper text */
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-text-main);
    letter-spacing: var(--tracking-tight);
}

p {
    color: var(--color-text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-secondary);
    box-shadow: var(--glow-primary);
    position: relative;
    overflow: hidden;
    /* For shine effect */
}

/* Shine Effect */
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    transition: 0.5s;
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-primary:hover {
    background: var(--color-primary-dim);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(60, 255, 107, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--color-card-border);
    color: var(--color-text-main);
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    background: var(--navbar-bg);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--color-card-border);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Navbar Dropdown */
.dropdown {
    position: relative;
    display: flex;
    /* Better alignment for links */
    align-items: center;
    height: 100%;
}

@media (max-width: 768px) {
    .dropdown {
        display: none;
    }
}

/* Invisible bridge to prevent menu from closing */
.dropdown::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    height: 20px;
}

/* Ensure links inside dropdown trigger look like nav links */
.nav-item {
    color: var(--color-text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-fast);
    cursor: pointer;
    padding: 0.5rem 0.5rem;
    border-radius: 6px;
}

.nav-item:hover {
    color: var(--color-primary);
    background: rgba(255, 255, 255, 0.05);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--navbar-bg);
    backdrop-filter: blur(16px);
    min-width: 240px;
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-card-border);
    border-radius: 16px;
    z-index: 1000;
    padding: 0.8rem;
    margin-top: 10px;
    /* Small visual gap */
    flex-direction: column;
    gap: 0.3rem;
}

/* Arrow */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: var(--navbar-bg);
    border-left: 1px solid var(--color-card-border);
    border-top: 1px solid var(--color-card-border);
    z-index: -1;
}

.dropdown:hover .dropdown-content {
    display: flex;
    animation: dropdownEnter 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.dropdown-content a {
    color: var(--color-text-main);
    padding: 0.8rem 1rem;
    text-decoration: none;
    display: block;
    border-radius: 8px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.dropdown-content a:hover {
    background: rgba(60, 255, 107, 0.1);
    color: var(--color-primary);
}

[data-theme="light"] .dropdown-content a:hover {
    background: rgba(5, 150, 105, 0.1);
}

@keyframes dropdownEnter {
    from {
        opacity: 0;
        transform: translate(-50%, 15px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0) scale(1);
    }
}

.dropdown-content a {
    color: var(--color-text-main);
    padding: 0.8rem 1rem;
    text-decoration: none;
    display: block;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    /* Prevents layout shift on hover */
    position: relative;
    z-index: 1;
}

.dropdown-content a:hover {
    background: rgba(60, 255, 107, 0.08);
    color: var(--color-primary);
    border-color: rgba(60, 255, 107, 0.2);
    padding-left: 1.25rem;
    /* Slight slide effect */
}

[data-theme="light"] .dropdown-content a:hover {
    background: rgba(5, 150, 105, 0.08);
    border-color: rgba(5, 150, 105, 0.2);
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.desktop-only {
    display: none;
}

@media (min-width: 768px) {
    .desktop-only {
        display: inline-flex;
    }
}

.hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
}

@media (min-width: 768px) {
    .hamburger-menu {
        display: none;
    }
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-text-main);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Nav Overlay */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--color-bg-dark);
    backdrop-filter: blur(20px);
    z-index: 99;
    /* Behind navbar but above content */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding-top: 80px;
    /* clear header */
}

/* Light Mode Mobile Nav */
[data-theme="light"] .mobile-nav {
    background: rgba(255, 255, 255);
}

.mobile-nav.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
    max-width: 400px;
}

.mobile-nav-link {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-main);
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: var(--color-primary);
}

#theme-toggle {
    background: none;
    border: none;
    color: var(--color-text-main);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast);
}

#theme-toggle:hover {
    color: var(--color-primary);
}

.sun-icon,
.moon-icon {
    width: 24px;
    height: 24px;
    display: none;
    /* Hidden by default */
}

/* Dark Mode Logic (Default or Explicit 'dark') */
/* Show Sun Icon (to switch to light) */
html:not([data-theme="light"]) .sun-icon,
html[data-theme="dark"] .sun-icon {
    display: block;
}

/* Hide Moon Icon in Dark Mode */
html:not([data-theme="light"]) .moon-icon,
html[data-theme="dark"] .moon-icon {
    display: none;
}

/* Light Mode Logic */
/* Show Moon Icon (to switch to dark) */
html[data-theme="light"] .moon-icon {
    display: block;
}

/* Hide Sun Icon in Light Mode */
html[data-theme="light"] .sun-icon {
    display: none;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    color: var(--color-primary);
}

.nav-links {
    display: none;
    /* Mobile first hidden, enable on desktop */
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
        gap: 2rem;
        font-size: 0.95rem;
    }

    .nav-links a:hover {
        color: var(--color-primary);
    }
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#theme-toggle {
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
}

#theme-toggle svg {
    width: 20px;
    height: 20px;
}

.sun-icon {
    display: none;
}

/* Default dark mode, so hide sun initially if logic dictates */
.moon-icon {
    display: block;
}

/* Hero Section */
.hero-section {
    padding-top: 10rem;
    padding-bottom: var(--spacing-lg);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Visual Placeholder */
.glowing-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(60, 255, 107, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

/* Sections Base */
.section {
    padding: var(--spacing-md) 0;
}

@media (min-width: 768px) {
    .section {
        padding: var(--spacing-xl) 0;
    }
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Problem/Solution */
.split-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .split-layout {
        grid-template-columns: 1fr auto 1fr;
    }
}

.problem-card,
.solution-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    padding: 2rem;
    border-radius: 16px;
    height: 100%;
}

.solution-card {
    border-color: rgba(60, 255, 107, 0.3);
    background: rgba(60, 255, 107, 0.05);
}

.arrow-connector {
    text-align: center;
    font-size: 2rem;
    color: var(--color-text-muted);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    padding: 2rem;
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
}

.icon-box {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* How It Works */
.workflow-steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .workflow-steps {
        flex-direction: row;
        justify-content: center;
    }
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-card-border);
    margin-bottom: -1rem;
    z-index: -1;
}

.step-line {
    width: 2px;
    height: 30px;
    background: var(--color-card-border);
}

@media (min-width: 768px) {
    .step-line {
        width: 100px;
        height: 2px;
    }
}

/* Tech Stack */
.tech-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    opacity: 0.6;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
}

/* Results */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.metric-val {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-primary);
    font-family: var(--font-heading);
}

/* Schematic Visual (Transformation) */
.schematic-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-bottom: 4rem;
    padding: 2rem 0;
}

.schematic-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--color-card-border);
    transition: all 0.3s ease;
}

.schematic-group:hover {
    border-color: var(--color-primary);
    box-shadow: 0 0 20px rgba(60, 255, 107, 0.1);
}

@media (max-width: 768px) {
    .schematic-visual {
        flex-direction: column;
        gap: 2rem;
    }

    .flow-line-animated {
        width: 2px;
        height: 60px;
        background: linear-gradient(180deg, transparent, var(--color-primary), transparent);
        background-size: 100% 200%;
        animation: flow-move-vertical 1.5s linear infinite;
    }
}

@keyframes flow-move-vertical {
    0% {
        background-position: 0 100%;
    }

    100% {
        background-position: 0 -100%;
    }
}

.label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
}

/* Input Icons */
.icon-node {
    font-size: 1.5rem;
    opacity: 0.5;
    animation: bounce-slight 2s infinite;
}

.icon-node:nth-child(2) {
    animation-delay: 0.2s;
}

.icon-node:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce-slight {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Central Core */
.process-flow {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Central Core */
.flow-line-animated {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    background-size: 200% 100%;
    animation: flow-move 1.5s linear infinite;
}

@keyframes flow-move {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

.core-node {
    width: 80px;
    height: 80px;
    background: var(--color-secondary);
    border: 1px solid var(--color-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 20px rgba(60, 255, 107, 0.2);
}

.core-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    border: 1px solid var(--color-primary);
    animation: core-pulse-anim 2s infinite;
}

@keyframes core-pulse-anim {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.core-icon {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-primary);
}

/* Output Chart */
.chart-node {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 60px;
}

.bar {
    width: 15px;
    background: var(--color-primary);
    border-radius: 2px 2px 0 0;
    animation: grow-bar 3s infinite ease-out;
}

.b1 {
    height: 30%;
    animation-delay: 0s;
}

.b2 {
    height: 60%;
    animation-delay: 0.2s;
}

.b3 {
    height: 100%;
    animation-delay: 0.4s;
}

@keyframes grow-bar {
    0% {
        transform: scaleY(0.1);
        transform-origin: bottom;
    }

    50% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(1);
        transform-origin: bottom;
    }
}

.transformation-text {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.transformation-text h3 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

/* Tech Logos Grid - Redesigned */
.tech-logos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    align-items: center;
    margin-top: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-card-border);
    border-radius: 12px;
}

.brand-item {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text-muted);
    opacity: 0.5;
    transition: all 0.3s ease;
    cursor: default;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.brand-item:hover {
    color: var(--color-text-main);
    opacity: 1;
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

[data-theme="light"] .tech-logos-grid {
    background: rgba(0, 0, 0, 0.02);
}

/* Professional Footer */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .brand-col {
        align-items: center;
    }

    .trust-badges,
    .socials {
        justify-content: center;
    }

    .brand-col p {
        margin: 1rem auto 2rem;
    }
}

.footer-col h5 {
    color: var(--color-text-main);
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col a {
    display: block;
    color: var(--color-text-muted);
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--color-primary);
}

.brand-col p {
    margin: 1rem 0 2rem;
    max-width: 250px;
    font-size: 0.95rem;
}

.trust-badges {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
}

.badge {
    font-size: 0.7rem;
    border: 1px solid var(--color-card-border);
    padding: 4px 8px;
    border-radius: 4px;
    color: var(--color-text-muted);
}

.socials {
    display: flex;
    gap: 1rem;
}

.socials a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.socials a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid var(--color-card-border);
    padding-top: 2rem;
    text-align: center;
    color: #555;
    font-size: 0.8rem;
}

.socials {
    display: flex;
    gap: 1rem;
}

.footer-bottom {
    border-top: 1px solid var(--color-card-border);
    padding-top: 2rem;
    text-align: center;
    color: #666;
    font-size: 0.85rem;
}

/* CTA Styles */
.cta-section {
    padding: var(--spacing-xl) 0;
    text-align: center;
    background: linear-gradient(180deg, transparent 0%, rgba(60, 255, 107, 0.05) 100%);
}

.cta-section h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

/* Footer Section Padding */
footer {
    border-top: 1px solid var(--color-card-border);
    padding: 3rem 0;
    margin-top: 4rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.hidden {
    opacity: 0;
    transform: translateY(30px);
    /* Start slightly down */
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    filter: blur(10px);
}

.show {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Stagger delays */
.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

/* Enhanced Hero Visual */
.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(60, 255, 107, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(60, 255, 107, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 80%);
    z-index: -1;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(40px);
    }
}

/* Floating Animation for icons */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.icon-box {
    animation: float 6s ease-in-out infinite;
}

.service-card:nth-child(2n) .icon-box {
    animation-delay: 1s;
}

.service-card:nth-child(3n) .icon-box {
    animation-delay: 2s;
}

/* Industry Solutions */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.industry-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    padding: 2rem;
    border-radius: 16px;
    transition: var(--transition-smooth);
}

.industry-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.ind-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.industry-card h3 {
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.industry-card ul {
    list-style: none;
    padding: 0;
}

.industry-card li {
    margin-bottom: 0.5rem;
    padding-left: 1.2rem;
    position: relative;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.industry-card li::before {
    content: "•";
    color: var(--color-primary);
    position: absolute;
    left: 0;
}

/* Pricing Section */
.bg-gradient {
    position: relative;
}

.bg-gradient::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(60, 255, 107, 0.03) 0%, transparent 70%);
    z-index: -1;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: center;
    /* Center items vertically so Pop out works */
}

.pricing-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    padding: 2.5rem;
    border-radius: 20px;
    position: relative;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card.popular {
    border-color: var(--color-primary);
    background: rgba(60, 255, 107, 0.03);
    box-shadow: var(--glow-primary);
    transform: scale(1.05);
    z-index: 2;
}

[data-theme="light"] .pricing-card.popular {
    background: rgba(5, 150, 105, 0.03);
}

.popular-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: var(--color-secondary);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.price-header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--color-card-border);
    padding-bottom: 2rem;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-text-main);
    display: flex;
    justify-content: center;
    align-items: baseline;
    margin: 1rem 0;
}

.price span {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-left: 0.2rem;
}

.price-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.price-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    color: var(--color-text-muted);
}

.price-features li::before {
    content: "✓";
    color: var(--color-primary);
    margin-right: 0.8rem;
    font-weight: bold;
}

.full-width {
    width: 100%;
    text-align: center;
}

@media (max-width: 768px) {
    .pricing-card.popular {
        transform: scale(1);
    }
}

/* ROI Calculator */
.calculator-wrapper {
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: 20px;
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    box-shadow: var(--shadow-soft);
}

.input-group {
    margin-bottom: 2rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-text-muted);
}

.input-group input[type="range"] {
    width: 100%;
    margin: 1rem 0;
    accent-color: var(--color-primary);
}

.input-group span {
    font-weight: 700;
    color: var(--color-primary);
}

.calc-results {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
}

.result-card {
    background: rgba(0, 0, 0, 0.2);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

[data-theme="light"] .result-card {
    background: rgba(0, 0, 0, 0.03);
}

.result-card h4 {
    margin-bottom: 0.5rem;
    color: var(--color-text-muted);
}

.result-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-text-main);
}

.result-card.highlight .result-value {
    color: var(--color-primary);
    text-shadow: var(--glow-primary);
}

@media (max-width: 768px) {
    .calculator-wrapper {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 2rem;
    }

    .calc-inputs {
        width: 100%;
    }

    .input-group {
        width: 100%;
        margin-bottom: 1.5rem;
    }
}

/* Social Proof */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    padding: 2rem;
    border-radius: 16px;
    position: relative;
}

.quote {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--color-text-main);
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.client-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.client-info div {
    display: flex;
    flex-direction: column;
}

.client-info span {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Resource Hub */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.resource-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    padding: 2rem;
    border-radius: 16px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.resource-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-5px);
}

.res-tag {
    background: rgba(60, 255, 107, 0.1);
    color: var(--color-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

[data-theme="light"] .res-tag {
    background: rgba(5, 150, 105, 0.1);
}

.resource-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.resource-card p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.btn-text {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Lead Magnet (Audit) */
.audit-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.audit-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.audit-benefits {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}

.audit-benefits li {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--color-text-main);
}

.audit-form-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem 1.2rem;
    /* Taller, more clickable */
    border-radius: 12px;
    /* Modern rounded corners */
    border: 1px solid var(--color-card-border);
    background: rgba(255, 255, 255, 0.05);
    /* Subtle glass background */
    color: var(--color-text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.2s ease;
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select {
    background: #f9fafb;
    border-color: #e5e7eb;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(60, 255, 107, 0.1);
    /* Accessible focus ring */
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .audit-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* AI Demo Bot */
#ai-bot-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    font-family: var(--font-body);
}

.bot-trigger {
    width: 60px;
    height: 60px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(60, 255, 107, 0.4);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    color: #000;
}

.bot-trigger:hover {
    transform: scale(1.1);
}

.bot-status {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #22c55e;
    border-radius: 50%;
    border: 2px solid #fff;
}

.bot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: var(--color-secondary);
    border: 1px solid var(--color-card-border);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    transition: all 0.3s ease;
}

[data-theme="light"] .bot-window {
    background: #ffffff;
    border-color: #e5e7eb;
}

.bot-window.hidden {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
    visibility: hidden;
}

.bot-header {
    padding: 1rem;
    background: var(--color-primary);
    color: #000;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#close-bot {
    background: none;
    border: none;
    font-size: 1.5rem;
    font-weight: 400;
    cursor: pointer;
    color: #000;
}

.bot-messages {
    flex-grow: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.msg {
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    max-width: 80%;
    line-height: 1.4;
}

.msg.bot {
    background: rgba(60, 255, 107, 0.1);
    color: var(--color-text-main);
    border-top-left-radius: 2px;
    align-self: flex-start;
}

[data-theme="light"] .msg.bot {
    background: #f0fdf4;
    color: #000;
}

.msg.user {
    background: var(--color-primary);
    color: #000;
    border-top-right-radius: 2px;
    align-self: flex-end;
}

.bot-input {
    padding: 1rem;
    border-top: 1px solid var(--color-card-border);
    display: flex;
    gap: 0.5rem;
}

[data-theme="light"] .bot-input {
    border-color: #e5e7eb;
}

.bot-input input {
    flex-grow: 1;
    padding: 0.6rem;
    border-radius: 20px;
    border: 1px solid var(--color-card-border);
    background: transparent;
    color: var(--color-text-main);
}

[data-theme="light"] .bot-input input {
    border-color: #d1d5db;
    background: #f9fafb;
    color: #000;
}

.bot-input button {
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 1.2rem;
    cursor: pointer;
}