/* ============================================
   AUTOMATDO FEATURES PAGE STYLES
   Tech-forward, mission control aesthetic
   ============================================ */

/* ---------- Animations ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

@keyframes waveMove {
    0% {
        d: path("M0,40 Q50,20 100,40 T200,40 T300,40 T400,40");
    }
    50% {
        d: path("M0,40 Q50,60 100,40 T200,40 T300,40 T400,40");
    }
    100% {
        d: path("M0,40 Q50,20 100,40 T200,40 T300,40 T400,40");
    }
}

@keyframes flowParticle {
    0% {
        left: 0;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

@keyframes flowParticleVertical {
    0% {
        top: 0;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

@keyframes ringPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.5;
    }
}

@keyframes chartGrow {
    from {
        height: 0;
    }
    to {
        height: var(--height);
    }
}

@keyframes countUp {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* ---------- Features Page Base ---------- */
.features-page {
    position: relative;
    z-index: 10;
}

/* ---------- Features Hero Section ---------- */
.features-hero {
    position: relative;
    padding: 10rem 0 6rem;
    overflow: hidden;
}

.features-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(212, 165, 48, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 165, 48, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

[data-theme="light"] .hero-grid {
    background-image:
        linear-gradient(rgba(184, 145, 42, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(184, 145, 42, 0.08) 1px, transparent 1px);
}

[data-theme="light"] .hero-glow-1,
[data-theme="light"] .hero-glow-2 {
    opacity: 0.4;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    animation: pulseGlow 8s ease-in-out infinite;
}

.hero-glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 165, 48, 0.25) 0%, transparent 70%);
    top: -200px;
    right: -100px;
}

.hero-glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 165, 48, 0.15) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    animation-delay: 4s;
}

.features-hero-content {
    position: relative;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.features-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-xl);
}

.features-hero-title .title-line {
    display: block;
    animation: fadeInUp 0.8s ease-out backwards;
}

.features-hero-title .title-line:nth-child(1) {
    animation-delay: 0.1s;
}

.features-hero-title .title-line:nth-child(2) {
    animation-delay: 0.2s;
}

.features-hero-subtitle {
    max-width: 600px;
    margin: 0 auto var(--space-3xl);
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.features-hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3xl);
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

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

.hero-stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 500;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-stat-label {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-stat-divider {
    width: 1px;
    height: 50px;
    background: linear-gradient(180deg, transparent 0%, var(--accent-primary) 50%, transparent 100%);
    opacity: 0.4;
}

/* ---------- Spotlight Features Section ---------- */
.spotlight-features {
    position: relative;
    z-index: 10;
    padding: var(--space-4xl) 0;
}

.spotlight-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
    margin-bottom: var(--space-4xl);
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.spotlight-feature.visible {
    opacity: 1;
    transform: translateY(0);
}

.spotlight-feature:last-child {
    margin-bottom: 0;
}

.spotlight-feature.spotlight-reverse {
    direction: rtl;
}

.spotlight-feature.spotlight-reverse > * {
    direction: ltr;
}

.spotlight-content {
    max-width: 520px;
}

.spotlight-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    background: rgba(212, 165, 48, 0.1);
    border: 1px solid rgba(212, 165, 48, 0.25);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
}

.spotlight-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-lg);
}

.spotlight-desc {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-xl);
}

.spotlight-features-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.spotlight-features-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.spotlight-features-list svg {
    flex-shrink: 0;
    color: var(--accent-primary);
    margin-top: 2px;
}

/* ---------- Spotlight Visuals ---------- */
.spotlight-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Voice Engine Visualization */
.voice-engine-viz {
    width: 100%;
    max-width: 480px;
    padding: var(--space-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(20px);
}

[data-theme="light"] .voice-engine-viz {
    background: var(--bg-card-solid);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .waveform-track {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .metric-card {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.viz-waveform {
    margin-bottom: var(--space-xl);
}

.waveform-track {
    height: 80px;
    padding: var(--space-md);
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.waveform-track svg {
    width: 100%;
    height: 100%;
}

.wave-line {
    animation: waveMove 3s ease-in-out infinite;
}

.wave-line-2 {
    animation-delay: 0.5s;
}

.viz-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.metric-card {
    padding: var(--space-md);
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    text-align: center;
}

.metric-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-xs);
}

.metric-value {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
}

.status-active {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    color: var(--success);
    font-size: 1rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

/* Language Visualization */
.language-viz {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xl);
}

.language-globe {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.globe-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(212, 165, 48, 0.2);
    border-radius: 50%;
    animation: ringPulse 4s ease-in-out infinite;
}

[data-theme="light"] .globe-ring {
    border-color: rgba(184, 145, 42, 0.35);
}

[data-theme="light"] .globe-center {
    background: linear-gradient(135deg, rgba(184, 145, 42, 0.15) 0%, rgba(184, 145, 42, 0.05) 100%);
    border-color: rgba(184, 145, 42, 0.4);
    box-shadow: 0 4px 16px rgba(184, 145, 42, 0.15);
}

[data-theme="light"] .lang-tag {
    background: white;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .lang-tag:hover {
    background: rgba(184, 145, 42, 0.08);
    border-color: rgba(184, 145, 42, 0.3);
}

.globe-ring-1 {
    width: 100%;
    height: 100%;
    animation-delay: 0s;
}

.globe-ring-2 {
    width: 130%;
    height: 130%;
    animation-delay: 1s;
}

.globe-ring-3 {
    width: 160%;
    height: 160%;
    animation-delay: 2s;
}

.globe-center {
    position: relative;
    z-index: 2;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(212, 165, 48, 0.2) 0%, rgba(212, 165, 48, 0.05) 100%);
    border: 1px solid rgba(212, 165, 48, 0.3);
    border-radius: 50%;
    color: var(--accent-primary);
}

.language-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
    max-width: 320px;
}

.lang-tag {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    animation: fadeIn 0.5s ease-out calc(var(--delay) + 0.3s) backwards;
}

.lang-tag:hover {
    color: var(--accent-primary);
    border-color: rgba(212, 165, 48, 0.3);
    background: rgba(212, 165, 48, 0.1);
}

/* Scheduling Visualization */
.scheduling-viz {
    width: 100%;
    max-width: 480px;
    padding: var(--space-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(20px);
}

.calendar-widget {
    margin-bottom: var(--space-lg);
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-tertiary);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    border-bottom: 1px solid var(--border-subtle);
}

.calendar-month {
    font-weight: 600;
    font-size: 0.9375rem;
}

.calendar-nav {
    display: flex;
    gap: var(--space-xs);
}

.calendar-nav button {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.calendar-nav button:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    padding: var(--space-sm);
    background: var(--bg-tertiary);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.calendar-day.today {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: white;
    font-weight: 600;
}

.calendar-day.has-slots {
    position: relative;
}

.calendar-day.has-slots::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 4px;
    height: 4px;
    background: var(--success);
    border-radius: 50%;
}

.calendar-day.booked {
    background: rgba(212, 165, 48, 0.15);
    color: var(--accent-primary);
}

.scheduling-slots {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.slot-row {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.slot-time {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
    min-width: 70px;
}

.slot-status {
    flex: 1;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.slot-badge {
    padding: 0.25rem 0.625rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
}

.slot-badge.available {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.slot-badge.booked {
    background: rgba(212, 165, 48, 0.15);
    color: var(--accent-primary);
}

.slot-badge.confirmed {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

[data-theme="light"] .calendar-header {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .calendar-grid {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .calendar-day {
    background: white;
}

[data-theme="light"] .slot-row {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.06);
}

/* Routing Visualization */
.routing-viz {
    width: 100%;
    max-width: 480px;
    padding: var(--space-2xl);
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(20px);
}

[data-theme="light"] .routing-viz,
[data-theme="light"] .scheduling-viz {
    background: var(--bg-card-solid);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .flow-node {
    background: white;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .flow-incoming {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .flow-ai {
    background: linear-gradient(135deg, rgba(184, 145, 42, 0.12) 0%, rgba(184, 145, 42, 0.04) 100%);
    border-color: rgba(184, 145, 42, 0.4);
}

[data-theme="light"] .flow-line {
    background: rgba(0, 0, 0, 0.12);
}

.routing-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.flow-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.flow-node:hover {
    transform: scale(1.05);
}

.node-icon {
    color: var(--text-secondary);
}

.flow-node span {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.flow-incoming {
    background: var(--bg-elevated);
}

.flow-ai {
    background: linear-gradient(135deg, rgba(212, 165, 48, 0.2) 0%, rgba(212, 165, 48, 0.05) 100%);
    border-color: rgba(212, 165, 48, 0.4);
}

.flow-ai .node-icon {
    color: var(--accent-primary);
}

.flow-ai span {
    color: var(--accent-primary);
}

.flow-resolved {
    border-color: rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.1);
}

.flow-resolved .node-icon {
    color: var(--success);
}

.flow-resolved span {
    color: var(--success);
}

.flow-transfer {
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.1);
}

.flow-transfer .node-icon {
    color: var(--warning);
}

.flow-transfer span {
    color: var(--warning);
}

.flow-line {
    position: relative;
    width: 2px;
    height: 30px;
    background: var(--border-medium);
}

.flow-particle {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: flowParticleVertical 2s ease-in-out infinite;
}

.flow-line-2 .flow-particle {
    background: var(--success);
    animation-delay: 0.5s;
}

.flow-line-3 .flow-particle {
    background: var(--warning);
    animation-delay: 1s;
}

.flow-branches {
    display: flex;
    justify-content: center;
    gap: var(--space-3xl);
    margin-top: 0;
}

.flow-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Analytics Visualization */
.analytics-viz {
    width: 100%;
    max-width: 420px;
}

.analytics-dashboard {
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-xl);
    overflow: hidden;
    backdrop-filter: blur(20px);
}

[data-theme="light"] .analytics-dashboard {
    background: var(--bg-card-solid);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .dash-header {
    background: rgba(0, 0, 0, 0.02);
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .chart-bar::before {
    background: linear-gradient(180deg, var(--accent-primary) 0%, rgba(184, 145, 42, 0.25) 100%);
}

[data-theme="light"] .chart-bar.active::before {
    box-shadow: 0 0 16px rgba(184, 145, 42, 0.35);
}

[data-theme="light"] .dash-metrics {
    border-top-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .dash-metric:first-child {
    border-right-color: rgba(0, 0, 0, 0.06);
}

.dash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-subtle);
}

.dash-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.dash-badge {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.25rem 0.625rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--success);
    background: rgba(34, 197, 94, 0.15);
    border-radius: var(--radius-full);
}

.dash-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.dash-chart {
    padding: var(--space-xl);
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 120px;
    gap: var(--space-md);
}

.chart-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.chart-bar::before {
    content: '';
    width: 100%;
    max-width: 40px;
    height: var(--height);
    background: linear-gradient(180deg, var(--accent-primary) 0%, rgba(212, 165, 48, 0.3) 100%);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    transition: all var(--transition-base);
}

.chart-bar.active::before {
    background: linear-gradient(180deg, var(--accent-secondary) 0%, var(--accent-primary) 100%);
    box-shadow: 0 0 20px rgba(212, 165, 48, 0.4);
}

.chart-bar span {
    font-size: 0.6875rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
}

.dash-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--border-subtle);
}

.dash-metric {
    padding: var(--space-md) var(--space-lg);
    text-align: center;
}

.dash-metric:first-child {
    border-right: 1px solid var(--border-subtle);
}

.dm-label {
    display: block;
    font-size: 0.6875rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-xs);
}

.dm-value {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
}

.dm-value.positive {
    color: var(--success);
}

/* ---------- Feature Grid Section ---------- */
.feature-grid-section {
    position: relative;
    z-index: 10;
    padding: var(--space-4xl) 0;
    background: var(--bg-secondary);
}

.feature-categories {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-3xl);
    flex-wrap: wrap;
}

.category-tab {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
}

.category-tab:hover {
    color: var(--text-primary);
    border-color: var(--border-medium);
}

.category-tab.active {
    color: var(--text-primary);
    background: var(--bg-elevated);
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(212, 165, 48, 0.15);
}

.category-tab svg {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

.category-tab.active svg {
    opacity: 1;
    color: var(--accent-primary);
}

.feature-grids {
    position: relative;
}

.feature-grid {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    animation: fadeIn 0.4s ease-out;
}

.feature-grid.active {
    display: grid;
}

.feature-item {
    padding: var(--space-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
}

[data-theme="light"] .feature-item {
    background: white;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.06);
}

.feature-item:hover {
    border-color: var(--border-medium);
    transform: translateY(-4px);
}

[data-theme="light"] .feature-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
    border-color: rgba(184, 145, 42, 0.25);
}

[data-theme="light"] .feature-item-icon {
    background: linear-gradient(135deg, rgba(184, 145, 42, 0.12) 0%, rgba(184, 145, 42, 0.04) 100%);
    border: 1px solid rgba(184, 145, 42, 0.15);
}

[data-theme="light"] .category-tab {
    background: white;
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .category-tab.active {
    background: white;
    border-color: var(--accent-primary);
    box-shadow: 0 0 16px rgba(184, 145, 42, 0.2);
}

.feature-item-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(212, 165, 48, 0.15) 0%, rgba(212, 165, 48, 0.05) 100%);
    border-radius: var(--radius-md);
    color: var(--accent-primary);
    margin-bottom: var(--space-lg);
}

.feature-item h3 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

.feature-item p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    margin-top: var(--space-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent-primary);
    transition: gap var(--transition-fast);
}

.feature-link:hover {
    gap: var(--space-sm);
}

/* ---------- Industry Solutions Section ---------- */
.industry-solutions {
    position: relative;
    z-index: 10;
    padding: var(--space-4xl) 0;
}

.industry-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.industry-card {
    display: flex;
    flex-direction: column;
    padding: var(--space-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
    text-decoration: none;
}

[data-theme="light"] .industry-card {
    background: white;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .industry-icon {
    background: linear-gradient(135deg, rgba(184, 145, 42, 0.12) 0%, rgba(184, 145, 42, 0.04) 100%);
    border: 1px solid rgba(184, 145, 42, 0.15);
}

.industry-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-6px);
    box-shadow: 0 0 30px rgba(212, 165, 48, 0.15);
}

[data-theme="light"] .industry-card:hover {
    box-shadow: var(--shadow-lg);
}

.industry-card-contact {
    cursor: default;
}

.industry-card-contact:hover {
    transform: none;
    border-color: var(--border-subtle);
    box-shadow: none;
}

[data-theme="light"] .industry-card-contact:hover {
    box-shadow: var(--shadow-sm);
}

.industry-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(212, 165, 48, 0.15) 0%, rgba(212, 165, 48, 0.05) 100%);
    border-radius: var(--radius-lg);
    color: var(--accent-primary);
    margin-bottom: var(--space-lg);
}

.industry-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.industry-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
}

.industry-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    margin-top: var(--space-lg);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent-primary);
    transition: gap var(--transition-fast);
}

.industry-card:hover .industry-link {
    gap: var(--space-sm);
}

.industry-card-contact .industry-link {
    color: var(--text-tertiary);
}

/* ---------- Integrations Section ---------- */
.integrations-section {
    position: relative;
    z-index: 10;
    padding: var(--space-4xl) 0;
    background: var(--bg-secondary);
}

.integrations-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.integrations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.integration-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

[data-theme="light"] .integration-item {
    background: white;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.06);
}

.integration-item:hover {
    border-color: var(--border-medium);
    transform: translateY(-4px);
}

[data-theme="light"] .integration-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
    border-color: rgba(184, 145, 42, 0.25);
}

.integration-logo {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    transition: color var(--transition-base);
}

.integration-item:hover .integration-logo {
    color: var(--accent-primary);
}

.integration-logo.twilio {
    color: #f22f46;
}

.integration-item span {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ---------- Why Section ---------- */
.why-section {
    position: relative;
    z-index: 10;
    padding: var(--space-4xl) 0;
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-4xl);
    align-items: start;
}

.why-content {
    position: sticky;
    top: 120px;
}

.why-desc {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-top: var(--space-lg);
}

.why-points {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.why-point {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

[data-theme="light"] .why-point {
    background: white;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.06);
}

.why-point:hover {
    border-color: var(--border-medium);
    transform: translateX(8px);
}

[data-theme="light"] .why-point:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
    border-color: rgba(184, 145, 42, 0.25);
}

[data-theme="light"] .why-point-icon {
    background: linear-gradient(135deg, rgba(184, 145, 42, 0.12) 0%, rgba(184, 145, 42, 0.04) 100%);
    border: 1px solid rgba(184, 145, 42, 0.15);
}

.why-point-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(212, 165, 48, 0.15) 0%, rgba(212, 165, 48, 0.05) 100%);
    border-radius: var(--radius-md);
    color: var(--accent-primary);
}

.why-point-content h3 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: var(--space-xs);
}

.why-point-content p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---------- Features CTA Section ---------- */
.features-cta {
    position: relative;
    z-index: 10;
    padding: var(--space-4xl) 0;
    background: var(--bg-secondary);
}

.features-cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2xl);
    padding: var(--space-3xl);
    background: linear-gradient(135deg, rgba(212, 165, 48, 0.12) 0%, rgba(212, 165, 48, 0.02) 100%);
    border: 1px solid rgba(212, 165, 48, 0.25);
    border-radius: var(--radius-xl);
}

[data-theme="light"] .features-cta-card {
    background: linear-gradient(135deg, rgba(184, 145, 42, 0.1) 0%, rgba(184, 145, 42, 0.02) 100%);
    box-shadow: var(--shadow-lg);
}

.features-cta .cta-content {
    max-width: 550px;
}

.features-cta .cta-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: var(--space-sm);
}

.features-cta .cta-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

.features-cta .cta-actions {
    display: flex;
    gap: var(--space-md);
    flex-shrink: 0;
}

/* ---------- Responsive Styles ---------- */
@media (max-width: 1200px) {
    .industry-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .spotlight-feature {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .spotlight-feature.spotlight-reverse {
        direction: ltr;
    }

    .spotlight-content {
        max-width: none;
        text-align: center;
    }

    .spotlight-features-list {
        align-items: center;
    }

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

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

    .why-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .why-content {
        position: static;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .features-hero {
        padding: 9rem 0 4rem;
    }

    .features-hero-stats {
        flex-direction: column;
        gap: var(--space-xl);
    }

    .hero-stat-divider {
        width: 80px;
        height: 1px;
        background: linear-gradient(90deg, transparent 0%, var(--accent-primary) 50%, transparent 100%);
    }

    .feature-categories {
        flex-direction: column;
        align-items: stretch;
    }

    .category-tab {
        justify-content: center;
    }

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

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

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

    .features-cta-card {
        flex-direction: column;
        text-align: center;
        padding: var(--space-xl);
    }

    .features-cta .cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .features-cta .cta-actions .btn-primary,
    .features-cta .cta-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .flow-branches {
        flex-direction: column;
        gap: var(--space-lg);
    }
}

@media (max-width: 480px) {
    .features-hero {
        padding: 8rem 0 3rem;
    }

    .features-hero-title {
        font-size: 2rem;
    }

    .features-hero-subtitle {
        font-size: 1rem;
    }

    .hero-stat-value {
        font-size: 2rem;
    }

    .spotlight-title {
        font-size: 1.5rem;
    }

    .viz-metrics {
        grid-template-columns: 1fr;
    }

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

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .spotlight-feature {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .wave-line,
    .flow-particle,
    .globe-ring,
    .hero-glow,
    .hero-grid {
        animation: none;
    }
}
