/* =========================================
   EDUNAI - PREMIUM APPLE-STYLE DESIGN (VER 7.0 - ENHANCED)
   ========================================= */

:root {
    /* Sophisticated Palette */
    --primary: #0f766e;
    --primary-light: #2dd4bf;
    --secondary: #0ea5e9;
    --accent: #6366f1;

    /* Neutrals - Apple Style */
    --bg-body: #fbfbfd;
    --bg-alt: #f5f5f7;
    --text-heading: #1d1d1f;
    --text-body: #515154;
    --text-light: #86868b;

    --border-subtle: rgba(0, 0, 0, 0.08);

    /* Shadows & Elevation */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
    --shadow-float: 0 30px 60px -10px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 40px 80px -20px rgba(0, 0, 0, 0.15);

    /* Layout */
    --container: 1180px;
    --section-spacing: 140px;
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;

    /* Gradients */
    --gradient-hero: radial-gradient(circle at 50% 0%, #f2f9f9 0%, #ffffff 60%);
    --gradient-ai: linear-gradient(180deg, #f0f4f8 0%, #e8f0f6 100%);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-body);
    color: var(--text-body);
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4 {
    color: var(--text-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    letter-spacing: -0.04em;
    margin-bottom: 24px;
}

h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 20px;
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 12px;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

p {
    font-size: 1.125rem;
    margin-bottom: 24px;
    max-width: 65ch;
    line-height: 1.6;
    color: var(--text-body);
}

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

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
    width: 100%;
    box-sizing: border-box;
}

.section {
    padding: var(--section-spacing) 0;
    position: relative;
    overflow: hidden;
}

.section-padded {
    padding: var(--section-spacing) 0;
}

.grid {
    display: grid;
    gap: 40px;
}

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

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 99px;
    font-weight: 500;
    font-size: 1.05rem;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 44px; /* Better touch target for mobile */
    -webkit-tap-highlight-color: transparent;
}

.btn-primary {
    background: var(--text-heading);
    color: white;
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
    background: #000;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.95rem;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.15rem;
}

.btn-white {
    background: white;
    color: var(--text-heading);
    border: 1px solid var(--border-subtle);
}

.btn-white:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
    background: #fff;
}

.btn-link {
    background: transparent;
    color: #0066cc;
    font-size: 1.05rem;
    padding: 10px 0;
}

.btn-link:hover {
    text-decoration: underline;
    color: #004499;
}

.arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

.btn-link:hover .arrow {
    transform: translateX(4px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
}

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

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-item {
    color: var(--text-body);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--text-heading);
    transition: width 0.3s ease;
}

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

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

.nav-logo img {
    height: 32px;
    width: auto;
    transition: transform 0.3s ease;
}

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

/* HERO SECTION - ENHANCED */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: var(--gradient-hero);
    overflow: hidden;
    position: relative;
    border: none;
    margin: 0;
}

.hero-bg-mesh {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(45, 212, 191, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(99, 102, 241, 0.06) 0%, transparent 60%),
        radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.03) 0%, transparent 80%);
    pointer-events: none;
    z-index: 0;
    animation: meshPulse 8s ease-in-out infinite;
    border: none;
    box-shadow: none;
}

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

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-text {
    max-width: 580px;
    position: relative;
    z-index: 10;
}

.pill-wrapper {
    margin-bottom: 20px;
}

.hero-pill {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-subtle);
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-body);
    letter-spacing: 0.02em;
    box-shadow: var(--shadow-sm);
}

.hero-cta {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 32px;
}

/* Hero Visual - AI Core + Mockup */
.hero-visual {
    position: relative;
    perspective: 1000px;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: none;
}

#hero-ai-canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    z-index: 1;
    pointer-events: none;
    filter: blur(0.5px);
    opacity: 0.85;
    border: none;
    outline: none;
    background: transparent;
    display: block;
}

.hero-device-wrapper {
    position: relative;
    z-index: 2;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.device-frame {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 
        0 20px 60px -10px rgba(0, 0, 0, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    animation: floatDevice 6s ease-in-out infinite;
}

@keyframes floatDevice {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

.device-screen {
    width: 100%;
    border-radius: 16px;
    display: block;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.device-gloss {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
    border-radius: 24px;
    pointer-events: none;
}

.floating-badge {
    position: absolute;
    background: white;
    padding: 10px 16px;
    border-radius: 99px;
    box-shadow: var(--shadow-md);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-heading);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 3;
    animation: floatBadge 4s ease-in-out infinite;
}

.badge-left {
    left: -20px;
    top: 20%;
}

@keyframes floatBadge {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* PROBLEMS SECTION - Premium Cards */
.problems-grid {
    margin-top: 60px;
}

.problem-card {
    background: #fafafa;
    border-radius: 14px;
    padding: 40px 32px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.problem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.03) 0%, rgba(99, 102, 241, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.problem-card:hover {
    transform: scale(1.02) translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(99, 102, 241, 0.2);
}

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

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.icon-blue {
    background: rgba(14, 165, 233, 0.1);
    color: #0ea5e9;
}

.icon-red {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.icon-indigo {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

.icon-green {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.problem-card h3 {
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.problem-card p {
    margin-bottom: 0;
    position: relative;
    z-index: 1;
    font-size: 1rem;
}

/* ROLES SECTION */
.section-roles {
    background: var(--bg-alt);
}

.section-header {
    margin-bottom: 60px;
}

.section-header p {
    margin: 0 auto;
    max-width: 700px;
    font-size: 1.125rem;
    color: var(--text-body);
}

.roles-switcher-wrapper {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.roles-tabs {
    display: inline-flex;
    background: rgba(118, 118, 128, 0.12);
    padding: 6px;
    border-radius: 99px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    gap: 4px;
}

.role-tab {
    padding: 10px 24px;
    border-radius: 99px;
    border: none;
    background: transparent;
    color: var(--text-body);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.role-tab.active {
    background: white;
    color: var(--text-heading);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.role-tab:hover:not(.active) {
    color: var(--text-heading);
}

.role-display-container {
    margin-top: 60px;
}

.role-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.role-info {
    max-width: 500px;
}

.role-label {
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.role-features {
    list-style: none;
    padding: 0;
    margin-top: 24px;
}

.role-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--text-body);
    font-size: 1rem;
}

.check-icon {
    flex-shrink: 0;
    color: var(--primary);
}

.role-mockup {
    position: relative;
    transform-style: preserve-3d;
}

.main-role-img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-subtle);
    animation: floatRole 6s ease-in-out infinite;
}

@keyframes floatRole {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* EDUNAI ASSIST SECTION - AI Centric */
.section-dark-ai {
    background: #f8f9fb;
    position: relative;
    overflow: hidden;
}

.ai-bg-glow {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    animation: aiGlowPulse 6s ease-in-out infinite;
}

@keyframes aiGlowPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.ai-layout-grid {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.ai-text-column {
    max-width: 600px;
}

.ai-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.lead-ai {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-body);
    margin-bottom: 48px;
    font-weight: 400;
}

.ai-steps {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 40px;
}

.ai-step-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: white;
    border-radius: 14px;
    padding: 24px;
    border: 1px solid #E5E7EB;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.ai-step-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.step-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(45, 212, 191, 0.1) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-weight: 700;
    font-size: 1.5rem;
    border: 2px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
    position: relative;
    transition: all 0.3s ease;
}

.ai-step-item:hover .step-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.25);
    border-color: rgba(99, 102, 241, 0.4);
}

.step-content h4 {
    margin-bottom: 8px;
    font-size: 1.15rem;
    color: var(--text-heading);
}

.step-content p {
    margin-bottom: 0;
    font-size: 1rem;
    color: var(--text-body);
    line-height: 1.5;
}

.real-example-bubble {
    background: white;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #E5E7EB;
    box-shadow: var(--shadow-sm);
    position: relative;
    max-width: 540px;
}

.glass-panel {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.bubble-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f3f4f6;
}

.icon-bulb {
    font-size: 1.5rem;
}

.bubble-header .label {
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.real-example-bubble p {
    font-style: italic;
    color: var(--text-heading);
    line-height: 1.6;
    font-size: 1.05rem;
    margin-bottom: 0;
}

/* AI Visual Column */
.ai-visual-column {
    position: relative;
    perspective: 1500px;
}

.ai-device-container {
    position: relative;
    transform-style: preserve-3d;
}

.ai-device-frame {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 
        0 20px 60px -10px rgba(0, 0, 0, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    animation: floatAI 6s ease-in-out infinite;
}

@keyframes floatAI {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.ai-screen-img {
    width: 100%;
    border-radius: 16px;
    display: block;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.ai-connection-indicator {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    pointer-events: none;
    animation: pulseConnection 2s ease-in-out infinite;
}

.top-right {
    top: -10px;
    right: -10px;
}

.bottom-left {
    bottom: -10px;
    left: -10px;
}

@keyframes pulseConnection {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* WORKFLOW SECTION - Timeline Enhanced */
.section-workflow {
    background: var(--bg-body);
}

.workflow-timeline-container {
    position: relative;
    margin-top: 60px;
    padding: 40px 0 60px;
}

/* Timeline Line - More Visible */
.workflow-timeline {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #d0d7dd 5%, 
        #d0d7dd 50%, 
        #d0d7dd 95%, 
        transparent 100%);
    transform: translateY(-50%);
    z-index: 0;
    display: none;
    border-radius: 2px;
}

.workflow-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    position: relative;
    z-index: 1;
}

.workflow-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Step Number - Larger and More Visible */
.workflow-step-number {
    width: 56px;
    height: 56px;
    background: var(--text-heading);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.75rem;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    position: relative;
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid white;
    flex-shrink: 0;
}

.workflow-step:hover .workflow-step-number {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}

/* Step Card */
.workflow-step-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    padding: 24px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 260px;
    width: 100%;
    margin: 0 auto;
    position: relative;
}

.workflow-step-card h4 {
    margin-bottom: 12px;
    font-size: 1.3rem;
    color: var(--text-heading);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.workflow-step-card p {
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-body);
    max-width: 100%;
}

.workflow-step:hover .workflow-step-card {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: rgba(99, 102, 241, 0.2);
}

/* Workflow Icon */
.workflow-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.08);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.workflow-step:hover .workflow-icon {
    background: rgba(99, 102, 241, 0.15);
    transform: scale(1.05);
}

/* FOOTER / CTA */
.footer-section {
    background: #f8fafc;
    padding: var(--section-spacing) 0 60px;
}

.cta-box {
    background: white;
    border-radius: var(--radius-lg);
    padding: 80px 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-subtle);
    margin-bottom: 80px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-content h2 {
    margin-bottom: 32px;
}

.footer-links-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 16px;
}

.footer-brand p {
    margin-bottom: 0;
    font-size: 1rem;
    color: var(--text-light);
}

.footer-nav {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--text-body);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--text-heading);
}

.footer-italy {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-subtle);
}

.footer-legal {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-legal a {
    color: var(--text-body);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

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

.footer-legal .separator {
    color: var(--text-light);
    margin: 0 4px;
}

.footer-contact {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text-body);
    font-weight: 500;
}

.footer-bottom p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Animations - Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* Workflow Step Reveal Animation */
.workflow-step.reveal {
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.workflow-step.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-stagger.active {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Stagger Delays */
.pill-wrapper.reveal-stagger {
    transition-delay: 0s;
}

h1.reveal-stagger {
    transition-delay: 0.1s;
}

.hero-text p.reveal-stagger {
    transition-delay: 0.2s;
}

.hero-cta.reveal-stagger {
    transition-delay: 0.3s;
}

/* Responsive Design */
@media (min-width: 1025px) {
    .workflow-timeline {
        display: block;
    }
}

@media (max-width: 1024px) {
    .hero {
        min-height: auto;
        padding-top: 140px;
        padding-bottom: 80px;
        overflow: hidden;
    }

    .hero-bg-mesh {
        top: -5%;
        left: -5%;
        width: 110%;
        height: 110%;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .hero-text {
        margin: 0 auto;
    }

    .hero-visual {
        height: 400px;
    }

    #hero-ai-canvas {
        width: 400px;
        height: 400px;
        opacity: 0.75;
    }

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

    .role-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .ai-layout-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .workflow-steps {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .workflow-timeline {
        display: none;
    }

    .workflow-step {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
        gap: 24px;
    }

    .workflow-step-number {
        margin: 0;
        flex-shrink: 0;
    }

    .workflow-step-card {
        max-width: none;
        margin: 0;
        flex: 1;
    }
}

@media (max-width: 768px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 120px;
        padding-bottom: 60px;
    }

    .hero h1 {
        font-size: 2.75rem;
    }

    .nav-links {
        display: none;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
        min-height: 48px; /* Better touch target */
    }

    #hero-ai-canvas {
        width: 300px;
        height: 300px;
        opacity: 0.7;
    }

    .hero-visual {
        height: 300px;
    }

    .workflow-step-card h4 {
        font-size: 1.2rem;
    }

    .workflow-step-card p {
        font-size: 0.95rem;
    }

    .roles-tabs {
        overflow-x: auto;
        max-width: 100%;
        justify-content: flex-start;
        padding: 4px;
    }

    .footer-links-row {
        flex-direction: column;
    }

    .footer-nav {
        flex-direction: column;
        gap: 16px;
    }

    .cta-box {
        padding: 60px 24px;
    }
}
