/* ===== CSS CUSTOM PROPERTIES - DARK THEME ===== */
:root {
    /* ============================== */
    /* === AITHRA SYSTEM VARIABLES === */
    /* ============================== */
    /* Core */
    --bg: #07080B;
    --surface: #0D0F14;
    --surface-2: #101425;
    --border: rgba(255, 255, 255, 0.08);

    /* Text */
    --text: rgba(255, 255, 255, 0.92);
    --muted: rgba(255, 255, 255, 0.68);
    --muted-2: rgba(255, 255, 255, 0.48);

    /* Accent */
    --accent: #EBF08D;
    /* Preserving Lime Green Identity */
    --accent-2: rgba(235, 240, 141, 0.18);

    /* Radius */
    --r-lg: 18px;
    --r-md: 14px;
    --r-sm: 10px;

    /* Spacing scale */
    --s-1: 6px;
    --s-2: 10px;
    --s-3: 14px;
    --s-4: 18px;
    --s-5: 24px;
    --s-6: 32px;
    --s-7: 48px;
    --s-8: 64px;
    --s-9: 96px;

    /* Shadows */
    --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.04);
    --shadow-2: 0 10px 30px rgba(0, 0, 0, 0.35);

    /* Typography */
    --h1: clamp(34px, 4vw, 58px);
    --h2: clamp(26px, 3vw, 40px);
    --h3: 20px;
    --body: 16px;
    --lh: 1.6;

    /* ============================== */
    /* === LEGACY VARIABLES (COMPAT) === */
    /* ============================== */
    /* Dark Theme Colors */
    --color-bg-dark: var(--bg);
    --color-bg-secondary: var(--surface);
    --color-bg-tertiary: var(--surface-2);
    --color-card-light: #FFFFFF;
    --color-card-dark: var(--surface);
    --color-card-border: var(--border);

    /* Accent Colors */
    --color-primary: var(--accent);
    --color-primary-dark: #dbe450;
    --color-secondary: #06B6D4;
    --color-accent: var(--accent);

    /* Text Colors */
    --color-text-on-dark: var(--text);
    --color-text-secondary-dark: var(--muted);
    --color-text-muted: var(--muted-2);

    /* Border Colors */
    --color-border-dark: var(--border);
    --color-border-light: rgba(255, 255, 255, 0.15);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #EBF08D 0%, #D4DC50 100%);
    --gradient-text: linear-gradient(135deg, #FFFFFF 0%, #EBF08D 100%);
    --gradient-card-hover: linear-gradient(135deg, rgba(235, 240, 141, 0.05) 0%, rgba(235, 240, 141, 0.02) 100%);

    /* Spacing */
    --spacing-xs: var(--s-1);
    --spacing-sm: var(--s-2);
    --spacing-md: var(--s-5);
    --spacing-lg: var(--s-7);
    --spacing-xl: var(--s-8);
    --spacing-2xl: var(--s-9);

    /* Typography */
    --font-heading: 'Inter Tight', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Borders & Radius */
    --radius-sm: var(--r-sm);
    --radius-md: var(--r-md);
    --radius-lg: var(--r-lg);
    --radius-xl: 24px;

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-fast: all 0.2s ease-out;

    /* Shadows */
    --shadow-sm: var(--shadow-1);
    --shadow-md: var(--shadow-2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.15);
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    height: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg-dark);
    color: var(--color-text-on-dark);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    /* Sticky Footer Layout */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Background Texture */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: -2;
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

/* Ambient Glow */
body::after {
    content: '';
    position: fixed;
    top: -10%;
    left: 50%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
    transform: translateX(-50%);
    z-index: -1;
    pointer-events: none;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-text-on-dark);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    /* Massive typography */
    font-weight: 500;
    /* Medium weight */
    letter-spacing: -0.04em;
    line-height: 1.05;
}

h2 {
    font-size: clamp(2.25rem, 4vw, 3rem);
    font-weight: 700;
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 600;
}

p {
    color: var(--color-text-secondary-dark);
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.text-gradient {
    background: white;
    /* Solid white for high contrast */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: white;
    /* Fallback */
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    display: block;
    margin-bottom: var(--spacing-sm);
}

.section-lead {
    font-size: 1.25rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

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

.text-muted {
    color: var(--color-text-muted) !important;
    font-size: 0.9rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

/* ===== HERO SECTION ===== */
.hero {
    padding-top: 180px;
    padding-bottom: 120px;
    background: var(--color-bg-dark);
    /* Solid Deep Navy */
    position: relative;
    overflow: hidden;
}

/* Dynamic Mouse Gradient - Subtle Lime */
.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(235, 240, 141, 0.03),
            /* Extremely subtle lime glow */
            transparent 50%);
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.5s ease;
    will-change: background;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    position: relative;
    z-index: 2;
}

.section {
    padding: clamp(6rem, 10vh, 8rem) 0;
    /* Apple-esque whitespace */
}

.section-light {
    background: var(--color-bg-secondary);
}

.section-header {
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

.section-header h2 {
    margin-bottom: var(--spacing-sm);
}

.max-w-600 {
    max-width: 600px;
}

/* Contact Narrow Override */
#contact .max-w-600 {
    max-width: 460px;
    /* Calm, focused form width */
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: start;
}

/* Process Section - Vertical Flow override */
#process .grid-2-col {
    grid-template-columns: 1fr;
    max-width: 700px;
    margin: 0 auto;
    gap: 5rem;
    text-align: left;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 0;
    z-index: 100;
    transition: var(--transition-fast);
    /* Ensure hardware acceleration for smooth blur */
    -webkit-backdrop-filter: blur(0px);
    backdrop-filter: blur(0px);
}

.navbar.scrolled {
    background: rgba(5, 5, 10, 0.7);
    /* Darker, higher contrast base */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    text-decoration: none;
    color: white;
    letter-spacing: -0.01em;
}

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

.nav-links a:not(.btn) {
    color: var(--color-text-secondary-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
    /* Polished typography */
    position: relative;
    padding: 0.25rem 0;
}

.nav-links a:not(.btn):hover {
    color: white;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.nav-links a:not(.btn).active {
    color: white;
    font-weight: 600;
}

.nav-links a:not(.btn).active {
    color: var(--color-primary);
    /* Lime Active */
    font-weight: 600;
}

.nav-links a:not(.btn).active::after {
    display: none;
    /* Remove underline, rely on color */
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: var(--color-primary);
    color: #081122;
    box-shadow: 0 4px 15px rgba(235, 240, 141, 0.2);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid var(--color-border-light);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.btn-text {
    background: none;
    border: none;
    padding: 0;
    color: var(--color-primary);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: gap 0.2s ease;
}

.btn-text:hover {
    gap: 0.5rem;
    color: var(--color-primary-dark);
}

/* ===== HERO SECTION ===== */
#home {
    padding-top: 180px;
}

.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.hero-content {
    max-width: 900px;
    animation: fadeIn 1s ease-out;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

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

/* ===== PAIN POINTS SECTION (Where I Help Most) ===== */
.pain-points-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.pain-point-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border-dark);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition-fast);
}

.pain-point-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-border-light);
    transform: translateY(-2px);
}

.pain-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.pain-point-item p {
    margin: 0;
    color: var(--color-text-on-dark);
    font-weight: 500;
    font-size: 1rem;
}

/* Editorial Flow Styles Removed - Reverted to Grid */

/* ===== SERVICES SECTION (DUAL TRACK) ===== */
.dual-track-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.track-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.track-header {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border-dark);
}

.track-studio .track-header {
    border-color: rgba(139, 92, 246, 0.3);
}

.track-engine .track-header {
    border-color: rgba(6, 182, 212, 0.3);
}

.track-header h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.track-header p {
    font-size: 1rem;
    color: var(--color-text-secondary-dark);
}

/* ===== SERVICES LIST (NO CARDS) ===== */
.track-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.service-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* Very subtle divider */
    transition: var(--transition-smooth);
}

.service-item:first-child {
    padding-top: 0;
}

.service-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.service-icon {
    font-size: 1.75rem;
    line-height: 1;
    color: var(--color-primary);
    filter: drop-shadow(0 0 15px rgba(235, 240, 141, 0.15));
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.service-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-content h3 {
    font-size: 1.35rem;
    /* Clean heading size */
    font-weight: 600;
    margin: 0;
    color: var(--color-text-on-dark);
    letter-spacing: -0.01em;
    transition: var(--transition-smooth);
}

.service-content .pillar-tags {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.service-content .tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Hover Effects */
.service-item:hover .service-content h3 {
    color: var(--color-primary);
    /* Highlight text on hover */
}

.service-item:hover .service-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Responsive tracks */
@media (max-width: 900px) {
    .dual-track-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

.pillar-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.pillar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    margin-top: auto;
    /* Push tags/button to bottom if varied height */
}

.tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    /* Softer tag bg */
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Softer border */
    color: var(--color-text-secondary-dark);
    font-weight: 500;
}


/* ===== SIDE DRAWER (Hybrid UX) ===== */
.drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 900;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.drawer-backdrop.active {
    opacity: 1;
    pointer-events: all;
}

.side-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 600px;
    height: 100vh;
    background: #0F0F0F;
    border-left: 1px solid var(--color-border-dark);
    z-index: 950;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.side-drawer.active {
    transform: translateX(0);
}

.drawer-content {
    padding: 3rem 2rem;
    overflow-y: auto;
    height: 100%;
}

.drawer-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--color-text-secondary-dark);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
}

.drawer-close:hover {
    color: white;
}

/* Styles for INJECTED CONTENT inside Drawer */
.drawer-hero {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border-dark);
}

.drawer-hero h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.drawer-section {
    margin-bottom: 3rem;
}

.drawer-section h3 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-secondary-dark);
    margin-bottom: 1rem;
}

.drawer-list {
    list-style: none;
}

.drawer-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border-dark);
    display: flex;
    align-items: start;
    gap: 0.75rem;
    font-size: 1rem;
}

.drawer-list li:last-child {
    border-bottom: none;
}

.drawer-list li::before {
    content: '•';
    color: var(--color-primary);
    font-weight: bold;
}

/* ===== PORTFOLIO GRID ===== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/10;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.portfolio-tag {
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

/* ===== LISTS (Process & Why Me) ===== */
.check-list,
.star-list {
    list-style: none;
    margin-top: 1rem;
}

.check-list li,
.star-list li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

.star-list li::before {
    content: '★';
    position: absolute;
    left: 0;
    top: 2px;
    color: #EAB308;
}

/* ===== CONTACT FORM ===== */
.contact-form {
    background: var(--color-bg-secondary);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-dark);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    background: var(--color-bg-dark);
    border: 1px solid var(--color-border-dark);
    padding: 1rem;
    border-radius: var(--radius-sm);
    color: white;
    font-family: var(--font-body);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-success-message {
    display: none;
    text-align: center;
    background: var(--color-bg-secondary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-primary);
}

.success-icon {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

/* ===== FOOTER ===== */
.footer {
    border-top: 1px solid var(--color-border-dark);
    padding: 4rem 0 5rem;
    margin-top: auto;
    background: var(--color-bg-secondary);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid var(--color-border-dark);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.footer a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.hubspot-badge {
    background: rgba(255, 140, 0, 0.1);
    color: #FF8C00;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 140, 0, 0.2);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .grid-2-col {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        width: 100%;
        height: 100vh !important;
        top: 0;
        right: 0;
        background: rgba(5, 5, 10, 0.9);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 6rem 2rem;
        gap: 1.5rem;
        z-index: 1000;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        align-items: center;
        justify-content: center;
        border-left: none;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.125rem;
        font-weight: 500;
        color: var(--color-text-on-dark);
        border-bottom: none;
        padding: 0.5rem 0;
    }

    .nav-links a.active,
    .nav-links a:hover {
        color: var(--color-primary);
    }

    /* Primary button in mobile menu */
    .nav-links .btn {
        margin-top: 1.5rem;
        width: 100%;
        max-width: 300px;
        text-align: center;
        font-size: 1rem;
        color: #081122;
    }

    .nav-links a:last-child {
        margin-top: 0.5rem;
        border-bottom: none;
    }

    .mobile-menu-toggle {
        display: block;
        z-index: 2000;
        /* Ensure above the nav-links overlay */
        position: relative;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}


/* Mobile Stacking for Grid */
@media (max-width: 768px) {
    .grid-2-col {
        grid-template-columns: 1fr;
    }
}

/* ===== PRICING SECTION ===== */
.pricing-group {
    margin-bottom: 5rem;
}

.pricing-group-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    color: var(--color-text-on-dark);
    position: relative;
    display: inline-block;
    padding: 0 1rem;
    left: 50%;
    transform: translateX(-50%);
}

.pricing-group-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pricing-card {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border-dark);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    position: relative;
    height: 100%;
}

.pricing-card:hover {
    border-color: var(--color-border-light);
    transform: translateY(-5px);
}

.pricing-card.popular {
    border-color: var(--color-primary);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.1);
    background: linear-gradient(to bottom, rgba(139, 92, 246, 0.03), var(--color-bg-secondary));
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.pricing-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border-dark);
}

.pricing-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.pricing-timeline {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--color-text-secondary-dark);
    background: var(--color-bg-tertiary);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    border: 1px solid var(--color-border-dark);
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.pricing-features li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--color-text-secondary-dark);
    font-size: 0.95rem;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

.pricing-note {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-style: italic;
    margin-top: 1rem;
    text-align: center;
}

/* Add-on Block */
.addon-block {
    margin-top: 3rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--color-border-dark);
    border-radius: var(--radius-md);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.addon-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.addon-price {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1.1rem;
}

.addon-features {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.addon-features span {
    font-size: 0.9rem;
    color: var(--color-text-secondary-dark);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.addon-features span::before {
    content: '+';
    color: var(--color-text-muted);
}

/* Comparison Table */
.comparison-container {
    max-width: 900px;
    margin: 4rem auto 0;
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
    min-width: 600px;
}

.comparison-table th,
.comparison-table td {
    padding: 1.25rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border-dark);
}

.comparison-table th {
    color: var(--color-text-muted);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.comparison-table td:first-child {
    font-weight: 600;
    color: white;
}

.comparison-table td:last-child {
    color: var(--color-primary);
    font-weight: 600;
}

.comparison-icon-check {
    color: #10B981;
    /* Green */
}

.comparison-icon-cross {
    color: #EF4444;
    /* Red */
}

@media (max-width: 768px) {
    .addon-block {
        flex-direction: column;
        text-align: center;
        align-items: stretch;
    }

    .addon-features {
        justify-content: center;
    }

    .comparison-table {
        font-size: 0.9rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 1rem 0.5rem;
    }
}

/* ========================================= */
/* === AITHRA SYSTEM UTILITIES & CLASSES === */
/* ========================================= */

/* --- LAYOUT --- */
.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.section {
    padding: var(--s-9) 0;
}

.section--tight {
    padding: var(--s-8) 0;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: var(--s-5);
}

.grid {
    display: grid;
    gap: var(--s-5);
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 900px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* --- CARDS --- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--s-6);
    box-shadow: var(--shadow-1);
    display: flex;
    flex-direction: column;
}

.card--hover {
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.card--hover:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.14);
    background: var(--surface-2);
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--r-md);
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    transition: filter 0.2s;
}

.btn--primary {
    background: var(--accent);
    color: #0b0c10;
}

.btn--primary:hover {
    filter: brightness(1.1);
}

.btn--secondary {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.btn--secondary:hover {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
}

/* --- TYPOGRAPHY UTILITIES --- */
.lead {
    font-size: 1.125rem;
    color: var(--muted);
    max-width: 68ch;
    line-height: 1.6;
}

/* --- BADGES --- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.03);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge--popular {
    border-color: rgba(235, 240, 141, 0.35);
    background: var(--accent-2);
    color: var(--accent);
}

/* --- LISTS --- */
.list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.list li {
    color: var(--muted);
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.list li::before {
    content: "•";
    color: var(--muted-2);
}

/* --- LOGO MARQUEE --- */
.logo-marquee {
    overflow: hidden;
    position: relative;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logo-track {
    display: flex;
    gap: 4rem;
    animation: scroll 25s linear infinite;
    width: max-content;
}

.logo-track:hover {
    animation-play-state: paused;
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
    min-width: 120px;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ===== CASE STUDY PAGES ===== */

/* Hero */
.case-hero {
    padding-top: 140px;
}

.case-back-link {
    display: inline-block;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: var(--s-5);
    transition: color 0.2s ease;
}

.case-back-link:hover {
    color: var(--accent);
}

.case-hero-content {
    max-width: 800px;
}

.case-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: var(--s-3);
}

.case-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.case-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--s-4);
}

.case-summary {
    margin-bottom: var(--s-5);
}

.case-details {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-6);
    margin-bottom: var(--s-5);
}

.case-detail {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.case-detail-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-2);
}

.case-detail-value {
    font-weight: 600;
    color: var(--text);
}

.case-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.case-hero-image {
    margin-top: var(--s-7);
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}

.case-hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Overview Card */
.case-overview-card {
    padding: var(--s-6);
}

.case-overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-6);
}

.case-overview-col h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-2);
    margin-bottom: var(--s-2);
    margin-top: var(--s-5);
}

.case-overview-col h3:first-child {
    margin-top: 0;
}

.case-overview-col p {
    color: var(--text);
    margin-bottom: 0;
}

.case-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.case-link:hover {
    opacity: 0.8;
}

/* Content Sections */
.case-content {
    max-width: 720px;
}

.case-content h2 {
    margin-bottom: var(--s-4);
}

.case-bullets {
    list-style: none;
    padding: 0;
    margin: var(--s-4) 0 0;
}

.case-bullets li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
}

.case-bullets li:last-child {
    border-bottom: none;
}

.case-bullets li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Solution Blocks */
.case-solution-block {
    margin-top: var(--s-6);
    padding-top: var(--s-5);
    border-top: 1px solid var(--border);
}

.case-solution-block:first-of-type {
    border-top: none;
    padding-top: 0;
}

.case-solution-block h3 {
    font-size: 1.25rem;
    margin-bottom: var(--s-3);
}

.case-solution-block p {
    color: var(--muted);
    margin-bottom: 0;
}

/* ===== GALLERY COMPONENT ===== */
.case-gallery-section h2 {
    margin-bottom: var(--s-6);
}

.case-gallery-full {
    margin: 0 0 var(--s-5);
}

.case-gallery-full img,
.case-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.case-gallery-full img:hover,
.case-gallery-item img:hover {
    transform: scale(1.01);
    border-color: rgba(255, 255, 255, 0.15);
}

.case-gallery-full figcaption,
.case-gallery-item figcaption {
    font-size: 0.875rem;
    color: var(--muted-2);
    margin-top: var(--s-2);
    text-align: center;
}

.case-gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-5);
    margin-bottom: var(--s-5);
}

.case-gallery-item {
    margin: 0;
}

@media (max-width: 768px) {
    .case-gallery-grid {
        grid-template-columns: 1fr;
    }

    .case-overview-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== RESULTS SECTION ===== */
.case-results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-5);
    margin: var(--s-6) 0;
}

.case-result-item {
    text-align: center;
    padding: var(--s-5);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
}

.case-result-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--accent);
    line-height: 1;
    margin-bottom: var(--s-2);
}

.case-result-label {
    font-size: 0.875rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .case-results-grid {
        grid-template-columns: 1fr;
    }
}

.case-testimonial {
    margin: var(--s-6) 0 0;
    padding: var(--s-5);
    background: var(--surface);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--r-md) var(--r-md) 0;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text);
    line-height: 1.6;
}

.case-testimonial cite {
    display: block;
    margin-top: var(--s-3);
    font-size: 0.875rem;
    font-style: normal;
    color: var(--muted);
}

/* ===== CASE STUDY FOOTER NAV ===== */
.case-nav-section {
    border-top: 1px solid var(--border);
}

.case-nav {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: var(--s-5);
}

.case-nav-arrows {
    display: flex;
    gap: var(--s-5);
}

.case-nav-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: var(--s-3) var(--s-4);
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    transition: border-color 0.2s, background 0.2s;
}

.case-nav-link:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: var(--surface);
}

.case-nav-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-2);
}

.case-nav-title {
    font-weight: 600;
    color: var(--text);
}

.case-nav-next {
    text-align: right;
}

@media (max-width: 600px) {
    .case-nav {
        flex-direction: column;
    }

    .case-nav-arrows {
        width: 100%;
        justify-content: space-between;
    }
}

/* ===== LIGHTBOX MODAL ===== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--s-5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: var(--s-4);
    right: var(--s-4);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.2s;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-close:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--r-md);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-image {
    transform: scale(1);
}

/* ===== PORTFOLIO CARD ENHANCEMENTS ===== */
a.portfolio-item {
    display: block;
    text-decoration: none;
    color: inherit;
}

a.portfolio-item:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

.portfolio-item .portfolio-overlay {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay,
.portfolio-item:focus-visible .portfolio-overlay {
    opacity: 1;
}

.portfolio-year {
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 0.25rem;
    display: block;
}

.portfolio-desc {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 0.5rem 0;
    line-height: 1.4;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.portfolio-tag {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    color: white;
}

/* ===== CRO ELEMENTS ===== */

/* Hero Trust Signal */
.hero-trust {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 500;
    margin: 0;
    letter-spacing: 0.02em;
}

/* CTA Urgency Microcopy */
.cta-microcopy {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0.75rem;
    font-style: italic;
}

/* Testimonial Cards */
.testimonial-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--s-6);
    margin: 0;
}

.testimonial-card p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text);
    margin-bottom: 1rem;
}

.testimonial-card cite {
    font-size: 0.9rem;
    color: var(--muted);
    font-style: normal;
}

/* FAQ Section */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

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

.faq-item:last-child {
    border-bottom: none;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.25rem;
    color: var(--muted);
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item p {
    margin-top: 0.75rem;
    color: var(--muted);
    font-size: 0.95rem;
}

/* Form Trust & Next Steps */
.form-trust-seal {
    font-size: 0.8rem;
    color: var(--muted);
    text-align: center;
    margin: 0.75rem 0 0.5rem;
}

.form-next-steps {
    font-size: 0.85rem;
    color: var(--accent);
    text-align: center;
    font-weight: 500;
    margin: 0;
}

/* Sticky CTA Bar */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    z-index: 90;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.sticky-cta.visible {
    transform: translateY(0);
}

.sticky-cta span {
    color: var(--muted);
    font-size: 0.9rem;
}

.btn--sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

@media (max-width: 600px) {
    .sticky-cta {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
    }

    .sticky-cta span {
        font-size: 0.8rem;
    }
}

/* ===== IDLE TOAST ===== */
.idle-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 100;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(150%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.idle-toast.visible {
    transform: translateY(0);
    opacity: 1;
}

.idle-toast-icon {
    font-size: 1.5rem;
}

.idle-toast-text {
    color: var(--text);
    font-weight: 500;
}