:root {
    --bg-color: #050505;
    /* Deeper black */
    --bg-secondary: #0A0A0A;
    --text-main: #FFFFFF;
    --text-sub: #A0A0A0;
    /* Slightly darker for better contrast */
    --text-muted: #666666;

    --accent-green: #00E065;
    /* More vibrant green */
    --accent-pink: #FF2E93;
    /* More vibrant pink */
    --accent-cyan: #00D2FF;
    /* More vibrant cyan */

    --font-main: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;

    --spacing-container: 1200px;
    --spacing-section: 100px;
    /* Reduced spacing for tighter layout */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    word-break: keep-all;
    overflow-wrap: break-word;
    /* Prevent overflow */
    -webkit-font-smoothing: antialiased;
}

/* ... existing styles ... */



a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

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

ul {
    list-style: none;
}

.container {
    max-width: var(--spacing-container);
    margin: 0 auto;
    width: 100%;
    padding: 0 24px;
    /* Default padding */
}

/* Header */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(5, 5, 5, 0.8);
    /* Match new bg color */
    backdrop-filter: blur(12px);
    /* Increased blur */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
    transition: all 0.3s ease;
}

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

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

nav ul {
    display: flex;
    gap: 40px;
    /* Increased gap */
    align-items: center;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    background: none;
    border: none;
    padding: 10px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-main);
    transition: all 0.3s ease;
    pointer-events: none;
}

nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-sub);
    transition: color 0.2s ease;
}

nav a:hover {
    color: var(--text-main);
}

.btn-cta {
    padding: 10px 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    transition: all 0.3s ease;
    color: var(--text-main);
}

.btn-cta:hover {
    background-color: var(--text-main);
    color: var(--bg-color);
    border-color: var(--text-main);
}

/* Hero Section */
#hero {
    min-height: 100svh;
    /* Use small viewport height to prevent jumpy scroll on mobile */
    /* Ensure full height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 120px 0;
    /* Add padding to prevent content hitting edges on short screens */
}

#hero h1 {
    font-size: 64px;
    /* Larger title */
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 32px;
    letter-spacing: -0.03em;
    word-break: keep-all;
}

.highlight {
    color: var(--accent-cyan);
    position: relative;
    display: inline-block;
}

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

#hero .subtitle {
    font-size: 24px;
    color: var(--text-sub);
    font-weight: 400;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    transform: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    opacity: 0.6;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.scroll-indicator span {
    letter-spacing: 4px;
    margin-right: -4px;
}

.scroll-indicator .arrow {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--text-muted), transparent);
}

/* Sections General */
/* Sections General */
section {
    padding: var(--spacing-section) 0;
    scroll-margin-top: 100px;
}

@media (max-width: 768px) {
    section {
        padding: 80px 0;
        /* Consistent spacing for mobile */
    }

    #hero h1 {
        font-size: 36px;
        /* Smaller for mobile */
        line-height: 1.3;
    }

    #hero .subtitle {
        font-size: 18px;
        margin-bottom: 40px;
    }

    .section-title {
        font-size: 28px;
    }

    .section-desc {
        font-size: 15px;
        margin-bottom: 30px;
        padding: 0 20px;
        /* Add side padding for text */
    }

    .offering-item {
        margin-bottom: 40px !important;
    }
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 24px;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 18px;
    color: var(--text-sub);
    text-align: center;
    margin-bottom: 80px;
}

/* Problem Section - Chat Style */
/* Problem Section - Card Style */
/* Problem Section - Premium Card Style */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto 80px;
}

.problem-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.problem-card::before {
    content: '';
    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(255, 255, 255, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

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

.problem-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.problem-card .card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.problem-card .avatar {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.problem-card .avatar svg {
    width: 24px;
    height: 24px;
}

.problem-card .info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.problem-card .role {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

.problem-card .meta {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.problem-card .card-body p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-sub);
    font-style: normal;
    /* Removed italic for cleaner look */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .problem-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .problem-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 16px;
        margin-bottom: 60px;
        padding-bottom: 20px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .problem-grid::-webkit-scrollbar {
        display: none;
    }

    .problem-card {
        flex: 0 0 85%;
        min-width: 280px;
        max-width: 320px;
        scroll-snap-align: center;
        padding: 24px;
    }
}

.real-problem {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.real-problem h3 {
    font-size: 32px;
    margin-bottom: 20px;
}

.problem-list {
    text-align: left;
    margin: 40px auto;
    display: inline-block;
}

.problem-list li {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-sub);
}

.problem-list .strike {
    text-decoration: line-through;
    color: var(--text-muted);
}

.problem-list .arrow {
    margin: 0 15px;
    color: var(--accent-green);
}

.problem-list strong {
    color: var(--text-main);
}

.highlight-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    font-size: 22px;
    font-weight: 700;
    border-left: 4px solid var(--accent-green);
    margin-top: 40px;
}

/* Solution Section */
.solution-intro {
    text-align: center;
    margin-bottom: 80px;
}

.solution-intro p {
    font-size: 24px;
    line-height: 1.5;
}

.solution-intro .sub-text {
    font-size: 18px;
    color: var(--text-sub);
    margin-top: 20px;
}

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

.ax-definition h3 {
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--accent-cyan);
}

.ax-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.ax-card {
    background: var(--bg-secondary);
    padding: 50px 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ax-card .icon-svg-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.ax-card .icon-svg {
    width: 32px;
    height: 32px;
}

.ax-card:nth-child(1) .icon-svg {
    stroke: var(--accent-green);
}

.ax-card:nth-child(2) .icon-svg {
    stroke: var(--accent-cyan);
}

.ax-card:nth-child(3) .icon-svg {
    stroke: var(--accent-pink);
}

.ax-card h4 {
    font-size: 24px;
    margin-bottom: 10px;
}

.ax-card .tag {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
}

.ax-card:nth-child(1) .tag {
    background: rgba(0, 255, 0, 0.1);
    color: var(--accent-green);
}

.ax-card:nth-child(2) .tag {
    background: rgba(0, 255, 255, 0.1);
    color: var(--accent-cyan);
}

.ax-card:nth-child(3) .tag {
    background: rgba(255, 0, 255, 0.1);
    color: var(--accent-pink);
}

.ax-definition .note {
    font-size: 18px;
    color: var(--text-sub);
}

/* Experts Section */
.experts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.expert-card {
    background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.expert-card .role {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-main);
}

.expert-card .focus {
    font-size: 16px;
    color: var(--accent-cyan);
    margin-bottom: 30px;
    font-weight: 600;
}

.expert-card .skills li {
    margin-bottom: 10px;
    color: var(--text-sub);
    position: relative;
    padding-left: 20px;
}

.expert-card .skills li::before {
    content: "•";
    color: var(--accent-cyan);
    position: absolute;
    left: 0;
}

/* Offerings Section */
.offering-item {
    margin-bottom: 60px;
    /* Reduced from 120px to fix spacing */
    text-align: center;
}

.offering-item .content {
    width: 100%;
}

.offering-item .content {
    flex: 1;
}

.offering-item h3 {
    font-size: 32px;
    margin-bottom: 20px;
}

.offering-item p {
    font-size: 18px;
    color: var(--text-sub);
    margin-bottom: 30px;
}

.funnel-viz {
    font-size: 18px;
    color: var(--accent-green);
    font-weight: 700;
}

/* Automation Grid */
.automation-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.auto-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px;
    border-radius: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.auto-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.1);
}

.auto-card-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    flex-shrink: 0;
}

.auto-card-content h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-main);
}

.auto-card-content p {
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.5;
    margin-bottom: 0;
    /* Override default p margin */
}

/* LawHASIA Interactive Dashboard */
/* LawHASIA Interactive Dashboard */
.law-dashboard {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 500px;
    /* Changed from fixed height */
    height: auto;
    /* Allow growth */
    background: #F5F6FA;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    font-family: 'Pretendard', sans-serif;
    color: #333;
    text-align: left;
}

/* Sidebar */
.law-sidebar {
    background: #1A1B26;
    color: white;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.law-logo {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 40px;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.law-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.law-menu-item {
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #A0A0A0;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.law-menu-item:hover,
.law-menu-item.active {
    background: #C81E48;
    /* Brand Red */
    color: white;
}

.law-user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.law-avatar {
    width: 36px;
    height: 36px;
    background: #C81E48;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.law-user-info {
    font-size: 13px;
}

.law-user-name {
    font-weight: 700;
    display: block;
}

.law-user-role {
    color: #A0A0A0;
    font-size: 11px;
}

/* Main Content */
.law-main {
    padding: 30px;
    overflow-y: auto;
    background: #F5F6FA;
}

.law-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.law-title h2 {
    font-size: 24px;
    font-weight: 800;
    color: #1A1B26;
    margin-bottom: 5px;
}

.law-title p {
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
}

.law-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.law-kpi-card {
    background: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.law-kpi-label {
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
    display: block;
}

.law-kpi-value {
    font-size: 28px;
    font-weight: 800;
    color: #1A1B26;
    display: block;
    margin-bottom: 5px;
}

.law-kpi-trend {
    font-size: 12px;
    font-weight: 600;
}

.law-kpi-trend.up {
    color: #00B894;
}

.law-kpi-trend.down {
    color: #FF7675;
}

.law-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.law-panel {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.law-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.law-panel-title {
    font-size: 16px;
    font-weight: 700;
    color: #1A1B26;
}

.law-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.law-list-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    background: #F9FAFC;
    border: 1px solid #EEF2F7;
}

.law-item-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #C81E48;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.law-item-content {
    flex: 1;
}

.law-item-title {
    font-size: 14px;
    font-weight: 700;
    color: #1A1B26;
    margin-bottom: 2px;
}

.law-item-desc {
    font-size: 12px;
    color: #888;
}

.law-item-status {
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
}

.law-item-status.urgent {
    background: #FFE5E5;
    color: #FF4757;
}

.law-item-status.normal {
    background: #E5F9F6;
    color: #00B894;
}

/* Responsive */
@media (max-width: 768px) {
    .law-dashboard {
        grid-template-columns: 1fr;
        height: auto;
    }

    .law-sidebar {
        display: none;
        /* Hide sidebar on mobile for simplicity */
    }

    .law-kpi-grid {
        grid-template-columns: 1fr;
    }

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

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

.law-menu-item .badge {
    background: #FF4D4D;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
}

.law-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.user-info .user-name {
    font-size: 14px;
    font-weight: 600;
}

.user-role {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

/* Main Content */
.law-main {
    padding: 32px;
    overflow-y: auto;
    background: #F8F9FD;
}

.law-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.law-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #111;
}

.law-header p {
    color: #666;
    font-size: 14px;
}

.highlight-red {
    color: #C81E48;
    font-weight: 700;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.btn-outline {
    padding: 8px 16px;
    border: 1px solid #DDD;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #555;
}

.btn-fill {
    padding: 8px 16px;
    background: #9D1B3E;
    /* Darker Red */
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

/* Views */
.law-view {
    display: none;
    animation: fadeIn 0.3s ease;
}

.law-view.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Summary Cards */
.law-summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.law-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid #EEE;
}

.law-card.urgent {
    border-left: 4px solid #FF4D4D;
}

.card-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.card-label {
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
}

.card-value {
    font-size: 32px;
    font-weight: 700;
    color: #111;
    margin-bottom: 4px;
}

.card-value.red {
    color: #FF4D4D;
}

.card-sub {
    font-size: 12px;
    color: #AAA;
}

.card-sub.red {
    color: #FF4D4D;
}

.card-sub.trend-up {
    color: #0F9D58;
    font-weight: 600;
}

/* Metrics Grid */
.law-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.metrics-card h3,
.chart-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #111;
}

.metrics-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.metric-row {
    display: grid;
    grid-template-columns: 2fr 1fr auto;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: #F8F9FD;
    border-radius: 8px;
}

.metric-label {
    font-size: 13px;
    color: #555;
    font-weight: 500;
}

.metric-value {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    text-align: right;
}

.metric-change {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.metric-change.up {
    color: #0F9D58;
    background: #E8F5E9;
}

.metric-change.down {
    color: #D32F2F;
    background: #FFEBEE;
}

/* Chart Visualization */
.chart-container {
    padding: 10px 0;
}

.chart-bars-horizontal {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chart-bar-h {
    display: grid;
    grid-template-columns: 40px 1fr 60px;
    align-items: center;
    gap: 10px;
}

.bar-label {
    font-size: 12px;
    color: #666;
    font-weight: 600;
}

.bar-fill {
    height: 24px;
    background: linear-gradient(90deg, #9D1B3E, #C81E48);
    border-radius: 4px;
    width: var(--value);
    transition: width 0.3s ease;
    position: relative;
}

.chart-bar-h.active .bar-fill {
    background: linear-gradient(90deg, #0F9D58, #00E59D);
    box-shadow: 0 0 15px rgba(0, 229, 157, 0.3);
}

.bar-value {
    font-size: 13px;
    font-weight: 700;
    color: #111;
    text-align: right;
}

/* Priority Section */
.law-priority-section {
    margin-bottom: 30px;
}

.law-priority-section h3 {
    font-size: 16px;
    font-weight: 700;
    color: #C81E48;
    margin-bottom: 15px;
    background: #FFF0F5;
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
}

.priority-card {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    border: 1px solid #FFD1D1;
}

.d-day-box {
    background: #FFF0F0;
    padding: 10px 15px;
    border-radius: 8px;
    text-align: center;
    color: #D32F2F;
}

.d-label {
    font-size: 12px;
    font-weight: 600;
}

.d-value {
    font-size: 20px;
    font-weight: 800;
}

.priority-content {
    flex: 1;
}

.priority-content h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #111;
}

.priority-content p {
    font-size: 13px;
    color: #666;
}

.btn-action {
    background: #D32F2F;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

.btn-action-yellow {
    background: #E67E22;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

.priority-bar {
    width: 4px;
    height: 40px;
    background: #E67E22;
    border-radius: 2px;
}

/* Bottom Grid */
.law-bottom-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.cases-list-card h3,
.memo-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #111;
}

.law-table {
    width: 100%;
    border-collapse: collapse;
}

.law-table th {
    text-align: left;
    font-size: 12px;
    color: #888;
    padding-bottom: 10px;
    border-bottom: 1px solid #EEE;
}

.law-table td {
    padding: 15px 0;
    font-size: 14px;
    color: #333;
    vertical-align: middle;
}

.case-title {
    font-weight: 600;
    color: #9D1B3E;
}

.case-id {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.tag-red {
    background: #FFF0F0;
    color: #D32F2F;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.date-red {
    color: #D32F2F;
    font-weight: 600;
}

.progress-bar {
    width: 100px;
    height: 6px;
    background: #EEE;
    border-radius: 3px;
    display: inline-block;
    margin-right: 8px;
    overflow: hidden;
}

.progress-bar .fill {
    height: 100%;
    background: #9D1B3E;
}

.memo-card textarea {
    width: 100%;
    height: 150px;
    border: 1px solid #EEE;
    border-radius: 8px;
    padding: 15px;
    resize: none;
    font-family: inherit;
    font-size: 14px;
    margin-bottom: 10px;
}

.btn-save {
    width: 100%;
    background: #9D1B3E;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.full-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 400px;
}

.empty-state {
    color: #999;
    margin-top: 20px;
}

/* Responsive Dashboard */
@media (max-width: 1024px) {
    .law-dashboard {
        grid-template-columns: 1fr;
        height: auto;
    }

    .law-sidebar {
        flex-direction: row;
        align-items: center;
        padding: 15px;
    }

    .law-logo {
        margin-bottom: 0;
        margin-right: 20px;
    }

    .law-menu {
        flex-direction: row;
        overflow-x: auto;
    }

    .law-user {
        display: none;
    }

    .law-bottom-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .tools-composition {
        height: 200px;
        margin-top: 40px;
    }
}

/* Bento Grid Styles for AX Definition */
.ax-bento-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto 40px;
    height: 400px;
}

.bento-item {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bento-item:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.main-feature {
    grid-row: 1 / span 2;
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.8), rgba(10, 10, 10, 0.9));
    border: 1px solid rgba(0, 255, 0, 0.1);
}

.main-feature:hover {
    border-color: rgba(0, 255, 0, 0.3);
    box-shadow: 0 10px 40px rgba(0, 255, 0, 0.1);
}

.sub-feature-1 {
    border: 1px solid rgba(0, 255, 255, 0.1);
}

.sub-feature-1:hover {
    border-color: rgba(0, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.1);
}

.sub-feature-2 {
    border: 1px solid rgba(255, 0, 255, 0.1);
}

.sub-feature-2:hover {
    border-color: rgba(255, 0, 255, 0.3);
    box-shadow: 0 10px 30px rgba(255, 0, 255, 0.1);
}

.bento-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.main-feature .bento-content {
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.sub-feature-1 .bento-content,
.sub-feature-2 .bento-content {
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

.bento-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 0;
}

.main-feature .bento-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    background: rgba(0, 255, 0, 0.1);
    color: var(--accent-green);
}

.sub-feature-1 .bento-icon {
    background: rgba(0, 255, 255, 0.1);
    color: var(--accent-cyan);
}

.sub-feature-2 .bento-icon {
    background: rgba(255, 0, 255, 0.1);
    color: var(--accent-pink);
}

.bento-text h4 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
}

.main-feature h4 {
    font-size: 32px;
}

.bento-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-feature .bento-tag {
    background: rgba(0, 255, 0, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(0, 255, 0, 0.2);
}

.sub-feature-1 .bento-tag {
    background: rgba(0, 255, 255, 0.1);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.sub-feature-2 .bento-tag {
    background: rgba(255, 0, 255, 0.1);
    color: var(--accent-pink);
    border: 1px solid rgba(255, 0, 255, 0.2);
}

.bento-text p {
    font-size: 16px;
    color: var(--text-sub);
    line-height: 1.5;
    margin: 0;
}

.bento-bg-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 255, 0, 0.05), transparent 70%);
    z-index: 1;
    pointer-events: none;
}

@media (max-width: 768px) {
    .ax-bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
    }

    .main-feature {
        grid-row: auto;
        padding: 40px 20px;
    }

    .sub-feature-1 .bento-content,
    .sub-feature-2 .bento-content {
        flex-direction: column;
        text-align: center;
    }
}

/* New Funnel Styles */
.conversion-badge {
    display: inline-block;
    background: rgba(0, 255, 157, 0.1);
    color: var(--accent-green);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgba(0, 255, 157, 0.2);
    margin-bottom: 5px;
}

.conversion-line {
    width: 2px;
    height: 20px;
    background: linear-gradient(to bottom, var(--accent-green), transparent);
    margin: 0 auto;
    opacity: 0.5;
}

/* New Dashboard Styles */
.law-menu-title {
    font-size: 11px;
    color: #666;
    margin: 15px 0 8px 10px;
    font-weight: 600;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.user-profile:hover,
.user-profile.active {
    background: rgba(255, 255, 255, 0.05);
}

.user-profile .user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: white;
}

.user-avatar.red {
    background: #C81E48;
}

.user-avatar.gray {
    background: #555;
}

.user-avatar.green {
    background: #0F9D58;
}

.law-priority-section {
    margin-bottom: 30px;
}

.priority-card {
    background: white;
    border: 1px solid #FFD1D1;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.priority-bar {
    width: 4px;
    height: 40px;
    background: #E67E22;
    border-radius: 2px;
}

.case-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 0.5fr;
    padding: 10px;
    font-size: 12px;
    color: #888;
    border-bottom: 1px solid #EEE;
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 0.5fr;
    align-items: center;
    padding: 15px 10px;
    background: white;
    border-radius: 8px;
    border: 1px solid #F0F0F0;
    transition: transform 0.2s;
}

.table-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

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

.case-title {
    font-weight: 700;
    color: #333;
    font-size: 14px;
}

.case-id {
    font-size: 11px;
    color: #999;
}

.case-sub {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
}

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

.client-name {
    font-weight: 600;
    font-size: 13px;
}

.client-phone {
    font-size: 11px;
    color: #888;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
    text-align: center;
}

.status-badge.red {
    background: #FFF0F0;
    color: #D32F2F;
}

.status-badge.green {
    background: #E8F5E9;
    color: #0F9D58;
}

.next-schedule {
    display: flex;
    flex-direction: column;
}

.next-schedule .date {
    font-weight: 700;
    font-size: 13px;
}

.next-schedule .date.red {
    color: #D32F2F;
}

.next-schedule .desc {
    font-size: 11px;
    color: #666;
}

.progress-bar-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-track {
    flex: 1;
    height: 6px;
    background: #EEE;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #9D1B3E;
    border-radius: 3px;
}

.progress-text {
    font-size: 11px;
    font-weight: 600;
    color: #333;
}

.btn-mini {
    padding: 4px 8px;
    border: 1px solid #DDD;
    background: white;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
}

.law-right-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-left: 10px;
    border-left: 2px solid #EEE;
    margin-left: 10px;
}

.timeline-item {
    position: relative;
}

.timeline-dot {
    width: 10px;
    height: 10px;
    background: #C81E48;
    border: 2px solid white;
    border-radius: 50%;
    position: absolute;
    left: -16px;
    top: 0;
    box-shadow: 0 0 0 2px #EEE;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.timeline-date {
    font-size: 12px;
    color: #888;
}

.timeline-dday {
    font-size: 12px;
    font-weight: 700;
    color: #C81E48;
    background: #FFF0F0;
    padding: 2px 6px;
    border-radius: 4px;
}

.timeline-title {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 2px;
}

.timeline-desc {
    font-size: 13px;
    color: #666;
}

.timeline-sub {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

@media (max-width: 1200px) {
    .law-metrics-grid {
        grid-template-columns: 1fr;
    }

    .table-header,
    .table-row {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 10px;
    }

    .table-header span:nth-child(n+4),
    .table-row>div:nth-child(n+4) {
        display: none;
    }
}

/* New Experts Grid */
/* New Experts Grid */
.experts-grid-new {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
}

@media (max-width: 900px) {
    .experts-grid-new {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .experts-grid-new {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 16px;
        padding-bottom: 20px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .experts-grid-new::-webkit-scrollbar {
        display: none;
    }

    .experts-grid-new .expert-card-new {
        flex: 0 0 85%;
        min-width: 280px;
        max-width: 320px;
        scroll-snap-align: center;
    }
}

.expert-card-new {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 32px;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.expert-card-new::before {
    content: '';
    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(255, 255, 255, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.expert-card-new:hover::before {
    opacity: 1;
}

.expert-card-new:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.expert-card-new:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.expert-icon {
    margin-bottom: 24px;
    width: 72px;
    height: 72px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #fff;
}

.expert-info h3 {
    font-size: 20px;
    margin-bottom: 5px;
    color: #fff;
}

.expert-info .focus {
    color: #888;
    font-size: 14px;
    margin-bottom: 20px;
}

.skills-new {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skills-new li {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
    position: relative;
    padding-left: 12px;
}

.skills-new li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #444;
}

/* New Neon Funnel */
.funnel-neon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.funnel-neon-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 100%;
}

.neon-box {
    width: 100%;
    background: rgba(0, 255, 157, 0.05);
    border: 1px solid var(--accent-green);
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 0 10px rgba(0, 255, 157, 0.2);
}

.neon-icon {
    color: var(--accent-green);
}

.neon-label {
    font-weight: 700;
    color: #fff;
    flex-grow: 1;
    margin-left: 15px;
    text-align: left;
}

.neon-value {
    font-weight: 700;
    color: var(--accent-green);
    text-shadow: 0 0 5px rgba(0, 255, 157, 0.5);
}

.neon-connector {
    height: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.connector-badge {
    background: #111;
    border: 1px solid #333;
    color: #888;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    z-index: 2;
}

.connector-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #333;
    z-index: 1;
}

/* Dashboard Teaser */
.dashboard-teaser {
    background: #111;
    border: 1px solid #333;
    border-radius: 20px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-top: 30px;
}

.teaser-content {
    flex: 1;
    text-align: left;
}

.teaser-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.teaser-content h4 {
    font-size: 24px;
    color: #fff;
    margin-bottom: 10px;
}

.teaser-content p {
    color: #888;
    margin-bottom: 25px;
}

.btn-dashboard-link {
    display: inline-block;
    background: #fff;
    color: #000;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}

.btn-dashboard-link:hover {
    opacity: 0.9;
}

.teaser-preview {
    flex: 1;
    background: #000;
    border-radius: 12px;
    border: 1px solid #222;
    height: 200px;
    position: relative;
    overflow: hidden;
}

.preview-card {
    padding: 15px;
}

.p-header {
    display: flex;
    gap: 6px;
    margin-bottom: 15px;
}

.p-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.p-dot.red {
    background: #ff5f56;
}

.p-dot.yellow {
    background: #ffbd2e;
}

.p-dot.green {
    background: #27c93f;
}

.p-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.p-row {
    height: 8px;
    background: #222;
    border-radius: 4px;
    width: 100%;
}

.p-row.short {
    width: 60%;
}

.p-chart {
    height: 80px;
    background: linear-gradient(to top, #222, transparent);
    border-radius: 4px;
    margin-top: 10px;
}

/* Automation List */
.automation-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
}

.auto-item {
    background: #111;
    border: 1px solid #222;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ccc;
    font-size: 14px;
}

.auto-item .bolt {
    color: #FFD700;
}

@media (max-width: 768px) {
    .dashboard-teaser {
        flex-direction: column;
        text-align: center;
    }

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

    .teaser-preview {
        width: 100%;
    }

    .automation-list {
        grid-template-columns: 1fr;
    }
}

/* Simple Embedded Dashboard */
.simple-dashboard-view {
    background: #111;
    border: 1px solid #333;
    border-radius: 20px;
    padding: 30px;
    margin-top: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.sd-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #222;
}

.sd-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sd-avatar {
    width: 40px;
    height: 40px;
    background: #C81E48;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.sd-greeting {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.sd-greeting strong {
    color: white;
    font-size: 16px;
    margin-bottom: 4px;
}

.sd-greeting span {
    color: #888;
    font-size: 13px;
}

.sd-date {
    color: #666;
    font-size: 13px;
}

.sd-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.sd-card {
    background: #1A1A1A;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    text-align: left;
}

.sd-card.warning {
    border-color: #D32F2F;
    background: rgba(211, 47, 47, 0.05);
}

.sd-label {
    color: #888;
    font-size: 12px;
    margin-bottom: 10px;
}

.sd-value {
    color: white;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.sd-trend {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
}

.sd-trend.up {
    color: #0F9D58;
}

.sd-sub {
    font-size: 12px;
    color: #666;
}

.sd-card.warning .sd-sub {
    color: #D32F2F;
}

.sd-list-section h4 {
    color: #CCC;
    font-size: 14px;
    margin-bottom: 15px;
    text-align: left;
}

.sd-list-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #1A1A1A;
    border: 1px solid #222;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: background 0.2s;
}

.sd-list-item:hover {
    background: #222;
}

.sd-item-status {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    min-width: 50px;
    text-align: center;
}

.sd-item-status.red {
    background: #FFF0F0;
    color: #D32F2F;
}

.sd-item-status.yellow {
    background: #FFF3E0;
    color: #F57C00;
}

.sd-item-content {
    flex: 1;
    text-align: left;
}

.sd-item-title {
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.sd-item-desc {
    color: #666;
    font-size: 13px;
}

.sd-item-action {
    color: #666;
}

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

    .sd-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .sd-date {
        margin-left: 55px;
    }
}

/* AX Definition New Grid (Matching Experts Design) */
/* AX Definition New Grid (Matching Experts Design) */
.ax-grid-new {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

@media (max-width: 768px) {
    .ax-grid-new {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 16px;
        padding: 0 20px 20px 20px !important;
        margin-left: -20px;
        margin-right: -20px;
        width: calc(100% + 40px);
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .ax-grid-new::-webkit-scrollbar {
        display: none;
    }

    .ax-card-new {
        flex: 0 0 85%;
        min-width: 280px;
        max-width: 320px;
        scroll-snap-align: start;
        padding: 24px;
    }
}

.ax-card-new {
    background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: left;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.ax-card-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.03), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.ax-card-new:hover::before {
    opacity: 1;
}

.ax-card-new:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.ax-icon {
    margin-bottom: 24px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    display: inline-flex;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ax-icon.green {
    color: var(--accent-green);
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.1);
}

.ax-icon.cyan {
    color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
}

.ax-icon.pink {
    color: var(--accent-pink);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.1);
}

.ax-info h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #fff;
}

.ax-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.ax-tag.green {
    background: rgba(0, 255, 157, 0.1);
    color: var(--accent-green);
}

.ax-tag.cyan {
    background: rgba(0, 255, 255, 0.1);
    color: var(--accent-cyan);
}

.ax-tag.pink {
    background: rgba(255, 0, 255, 0.1);
    color: var(--accent-pink);
}

.ax-info p {
    font-size: 16px;
    color: var(--text-sub);
    line-height: 1.6;
}

.ax-definition .note {
    margin-top: 40px;
    font-size: 18px;
    color: var(--text-sub);
    background: rgba(255, 255, 255, 0.03);
    display: inline-block;
    padding: 15px 30px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ax-definition .note strong {
    color: var(--text-main);
    text-decoration: underline;
    text-decoration-color: var(--accent-pink);
    text-underline-offset: 4px;
}






/* Ensure Tool Cards are visible if they were hidden */
.tools-composition {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    height: auto;
    /* Allow height to adjust */
    perspective: none;
    /* Remove 3D perspective if it causes issues */
}

.tool-card {
    position: relative;
    /* Reset from absolute */
    animation: none;
    /* Remove float animation if causing issues */
    transform: none !important;
    /* Reset transforms */
    margin: 10px;
}

/* Mobile Optimization */
@media (max-width: 768px) {

    /* Typography */
    #hero h1 {
        font-size: 40px;
    }

    #hero .subtitle {
        font-size: 18px;
    }

    .section-title {
        font-size: 32px;
    }

    .section-desc {
        font-size: 16px;
        margin-bottom: 40px;
    }

    /* Layout Spacing */
    section {
        padding: 60px 0;
    }

    .container {
        padding: 0 20px;
    }

    /* AX Definition */
    .ax-definition h3 {
        font-size: 28px;
        margin-bottom: 30px;
    }

    /* Funnel Section */
    .funnel-neon-container {
        width: 100%;
    }

    .funnel-neon-stage {
        width: 100% !important;
        /* Force full width on mobile for better readability */
    }

    .neon-box {
        padding: 12px;
    }

    .neon-label {
        font-size: 14px;
        margin-left: 10px;
    }

    .neon-value {
        font-size: 14px;
    }

    /* Dashboard Section */
    .simple-dashboard-view {
        padding: 20px;
    }

    .sd-metrics {
        gap: 10px;
    }

    .sd-card {
        padding: 15px;
    }

    .sd-value {
        font-size: 18px;
    }

    /* Automation Section */
    .tools-composition {
        gap: 10px;
    }

    .tool-card {
        margin: 5px;
        width: 80px;
        height: 80px;
    }

    .tool-icon {
        width: 30px;
        height: 30px;
    }

    .tool-name {
        font-size: 11px;
    }
}

/* Tools Composition Cloud (Dynamic Floating Icons) */
.tools-composition-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.tool-icon-item {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tool-icon-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tool-icon-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Floating Animation */
@keyframes float-cloud {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.floating {
    animation: float-cloud 4s ease-in-out infinite;
}

.delay-1 {
    animation-delay: 0s;
}

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

.delay-3 {
    animation-delay: 1s;
}

.delay-4 {
    animation-delay: 1.5s;
}

.delay-5 {
    animation-delay: 2s;
}

/* Problem Section - Card Style */
/* Duplicate Problem Grid styles removed */

@media (max-width: 768px) {
    .tools-composition-cloud {
        gap: 10px;
        padding: 20px 10px;
    }

    .tool-icon-item {
        width: 45px;
        height: 45px;
        padding: 8px;
    }

    /* Mobile Menu */
    .mobile-menu-btn {
        display: flex;
        z-index: 1001;
        position: relative;
        width: 30px;
        height: 30px;
        align-items: center;
        justify-content: center;
        padding: 5px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: right 0.3s ease;
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu ul {
        display: flex;
        flex-direction: column;
        gap: 40px;
        text-align: center;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .nav-menu li {
        display: block;
    }

    .nav-menu a {
        font-size: 24px;
        font-weight: 700;
        color: white !important;
    }

    .nav-menu .btn-cta {
        background: white;
        color: black !important;
        padding: 14px 32px;
        border-radius: 50px;
    }

    /* Mobile Menu Button Animation */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

}

/* Tabbed Dashboard Interface */
.dashboard-tabs-container {
    max-width: 900px;
    margin: 0 auto;
    font-family: 'Pretendard', sans-serif;
}

.db-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.db-tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 24px;
    border-radius: 50px;
    color: var(--text-sub);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.db-tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.db-tab-btn.active {
    background: var(--text-main);
    color: var(--bg-color);
    border-color: var(--text-main);
}

.db-content-panel {
    display: none;
    animation: fadeIn 0.5s ease;
}

.db-content-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reusing Custom Dashboard Styles with variations */
.custom-dashboard.hospital,
.custom-dashboard.dental {
    border-top: 4px solid var(--accent-green);
}

.custom-dashboard.restaurant,
.custom-dashboard.finedining {
    border-top: 4px solid var(--accent-pink);
}

.custom-dashboard.factory {
    border-top: 4px solid var(--accent-cyan);
}

.custom-dashboard.lawfirm {
    border-top: 4px solid var(--accent-cyan);
    /* Using Cyan for Law similar to Factory/Legal theme */
}

.custom-dashboard.cosmetics {
    border-top: 4px solid var(--accent-pink);
    /* Using Pink for Cosmetics similar to Restaurant/Distribution */
}

.cd-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cd-title h4 {
    font-size: 20px;
    color: white;
    margin-bottom: 4px;
}

.cd-title p {
    font-size: 14px;
    color: #888;
    margin: 0;
}

.cd-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
}

@media (max-width: 900px) {
    .cd-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cd-side-col {
        flex-direction: column;
        /* Force stack for cleaner view */
        overflow-x: visible;
        padding-bottom: 0;
        gap: 16px;
    }

    .cd-insight-card {
        min-width: 100%;
    }

    .db-tabs {
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 20px;
        /* Reduced from 30px */
    }

    .db-tab-btn {
        padding: 10px 16px;
        /* Larger padding for touch */
        font-size: 14px;
        /* Larger font for readability */
        flex: 1 1 auto;
        justify-content: center;
    }

    .offering-item {
        margin-bottom: 30px !important;
        /* Further reduced to minimize gap */
    }

    .law-dashboard {
        min-height: auto;
        /* Remove fixed height on mobile */
        display: flex;
        flex-direction: column;
    }

    .law-sidebar {
        padding: 20px;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }

    .law-menu {
        display: none;
        /* Hide menu on mobile for simplicity or convert to dropdown */
    }

    .law-main {
        padding: 20px;
    }
}

.cd-main-card {
    background: #242636;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cd-label {
    font-size: 14px;
    color: #E0E0E0;
    margin-bottom: 8px;
}

.cd-value {
    font-size: 32px;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
}

.cd-value .unit {
    font-size: 18px;
    font-weight: 600;
    color: #888;
}

.cd-chart-mock {
    height: 120px;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cd-bar {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: height 1s ease;
}

.cd-bar.active {
    background: linear-gradient(to top, var(--accent-cyan), #00a8ff);
}

.hospital .cd-bar.active {
    background: linear-gradient(to top, var(--accent-green), #00b894);
}

.restaurant .cd-bar.active {
    background: linear-gradient(to top, var(--accent-pink), #fd79a8);
}

.cd-bar span {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: #888;
}

.cd-side-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cd-insight-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
}

.cd-insight-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-weight: 700;
    font-size: 14px;
}

.hospital .cd-insight-header {
    color: var(--accent-green);
}

.restaurant .cd-insight-header {
    color: var(--accent-pink);
}

.factory .cd-insight-header {
    color: var(--accent-cyan);
}

.cd-insight-text {
    font-size: 15px;
    line-height: 1.5;
    color: #E0E0E0;
    text-align: left;
}

.cd-insight-text strong {
    color: white;
    font-weight: 700;
}

/* Duplicate media query removed */

/* Kitchen Timeline Styles */
.kitchen-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
    width: 100%;
}

.timeline-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (max-width: 600px) {
    .timeline-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .timeline-label {
        width: 100%;
        text-align: left;
        font-size: 14px;
        /* Increased for readability */
        margin-bottom: 2px;
    }

    .timeline-track {
        width: 100%;
    }
}

.timeline-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.timeline-label {
    width: 120px;
    font-size: 14px;
    color: #A0A0A0;
    text-align: left;
    font-weight: 500;
}

.timeline-track {
    flex: 1;
    height: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    position: relative;
    /* Relative container for absolute bar */
    overflow: visible;
    /* Allow text to overflow */
}

.timeline-bar {
    height: 100%;
    background: var(--accent-pink);
    border-radius: 4px;
    position: absolute;
    /* Absolute to enforce width % */
    top: 0;
    left: 0;
    /* Always start from left */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 10px;
    font-size: 12px;
    color: white;
    font-weight: 600;
    white-space: nowrap;
    overflow: visible;
    z-index: 1;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
    /* Softened shadow for cleaner look */
}

.timeline-bar.waiting {
    background: rgba(255, 255, 255, 0.1);
    border: 1px dashed rgba(255, 255, 255, 0.3);
    color: #888;
}

.timeline-bar.cooking {
    background: linear-gradient(90deg, #ff4757, #ff6b81);
    box-shadow: 0 0 10px rgba(255, 71, 87, 0.3);
}

.timeline-marker {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 1;
}

.timeline-time {
    position: absolute;
    top: -15px;
    font-size: 10px;
    color: #666;
    transform: translateX(-50%);
}

/* Automation Workflow Visualization */
.automation-workflows {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.workflow-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
}

.workflow-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-cyan);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.05);
}

.workflow-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.workflow-header .badge {
    background: var(--accent-cyan);
    color: #000;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
}

.workflow-header h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.workflow-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.wf-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 2;
}

.wf-icon-box {
    width: 60px;
    height: 60px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.wf-icon-box:hover {
    transform: scale(1.1);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.wf-icon-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wf-icon-box:hover::after {
    opacity: 1;
}

.wf-icon-box img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.wf-icon-box.ai-active {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
    animation: pulse-cyan 2s infinite;
}

.wf-label {
    font-size: 14px;
    color: var(--text-sub);
    font-weight: 500;
}

.wf-arrow {
    color: rgba(255, 255, 255, 0.2);
    flex: 1;
    display: flex;
    justify-content: center;
    animation: flow-arrow 1.5s infinite;
}

@keyframes pulse-cyan {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 255, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 255, 0);
    }
}

@keyframes flow-arrow {
    0% {
        transform: translateX(-5px);
        opacity: 0.5;
    }

    50% {
        transform: translateX(0);
        opacity: 1;
    }

    100% {
        transform: translateX(5px);
        opacity: 0.5;
    }
}

@media (max-width: 768px) {
    .workflow-steps {
        flex-direction: row;
        align-items: flex-start;
        gap: 4px;
        overflow-x: auto;
        padding-bottom: 10px;
        /* Ensure smooth scrolling */
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Firefox */
        justify-content: flex-start;
    }

    .workflow-steps::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }

    .wf-step {
        min-width: 64px;
        flex: 0 0 auto;
    }

    .wf-icon-box {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        margin-bottom: 6px;
    }

    .wf-icon-box img {
        width: 24px;
        height: 24px;
    }

    .wf-label {
        font-size: 12px;
        white-space: nowrap;
    }

    .wf-arrow {
        transform: none;
        animation: flow-arrow 1.5s infinite;
        min-width: 20px;
        margin-top: 12px;
        /* Align with icon center */
        flex: 0 0 auto;
    }
}

/* Process Steps New Style */
/* Process Steps New Style */
.process-steps-new {
    display: flex;
    align-items: stretch;
    /* Ensure equal height */
    justify-content: center;
    gap: 24px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.step-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px 32px;
    text-align: center;
    flex: 1;
    min-width: 280px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Process Grid Style (Card UI) */
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.process-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 32px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.process-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(0, 209, 178, 0.05), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

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

.process-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.process-num {
    font-size: 48px;
    font-weight: 800;
    color: var(--accent-cyan);
    margin-bottom: 16px;
    line-height: 1;
}

.process-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
}

.process-card p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-sub);
}

@media (max-width: 1024px) {
    .process-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .process-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 16px;
        padding-bottom: 20px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .process-grid::-webkit-scrollbar {
        display: none;
    }

    .process-card {
        flex: 0 0 85%;
        min-width: 280px;
        max-width: 320px;
        scroll-snap-align: center;
    }
}

.step-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-cyan);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 210, 255, 0.1);
}

.step-icon {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent-cyan);
    margin-bottom: 24px;
    background: rgba(0, 210, 255, 0.1);
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 210, 255, 0.2);
}

.step-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--text-main);
    font-weight: 700;
}

.step-card p {
    font-size: 16px;
    color: var(--text-sub);
    line-height: 1.6;
    margin-bottom: auto;
    /* Push content up */
}

.step-card .small-text {
    font-size: 13px;
    color: var(--text-muted);
    display: block;
    margin-top: 16px;
}

.step-arrow {
    font-size: 32px;
    color: rgba(255, 255, 255, 0.1);
    font-weight: 300;
    display: flex;
    align-items: center;
}

@media (max-width: 900px) and (min-width: 769px) {
    .process-steps-new {
        flex-direction: column;
        gap: 32px;
        align-items: center;
    }

    .step-card {
        width: 100%;
        max-width: 500px;
        padding: 30px 20px;
    }

    .step-arrow {
        transform: rotate(90deg);
        margin: -10px 0;
        /* Adjust spacing for vertical arrow */
    }
}

/* Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

.delay-5 {
    transition-delay: 0.5s;
}

/* Footer Styles */
#contact {
    background: linear-gradient(to bottom, #111, #000);
    padding: 100px 0 60px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

/* Background Glow Effect */
#contact::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.05) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.footer-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    /* Ensure centering */
    padding: 0 20px;
}

.footer-content h2 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    /* Standard property */
    -webkit-text-fill-color: transparent;
}

.footer-content p {
    font-size: 18px;
    color: var(--text-sub);
    margin-bottom: 50px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 48px;
    background: white;
    color: black;
    font-size: 18px;
    font-weight: 700;
    border-radius: 100px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
    background: #fff;
    /* Ensure it stays white */
    color: black;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.btn-primary:hover::after {
    transform: translateX(100%);
}

.footer-info {
    margin-top: 80px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 13px;
    color: #444;
    position: relative;
    z-index: 1;
}

.footer-info p {
    margin: 0;
}

/* Mobile Footer */
@media (max-width: 768px) {
    #contact {
        padding: 80px 0 40px;
    }

    .footer-content h2 {
        font-size: 28px;
    }

    .footer-content p {
        font-size: 16px;
        margin-bottom: 40px;
    }

    .btn-primary {
        width: 100%;
        max-width: 320px;
        padding: 16px 0;
    }
}

/* Tech Flow Automation Styles (New) */
.automation-tech-flow {
    display: flex;
    flex-direction: column;
    gap: 0px;
    /* Rows connect seamlessly */
    max-width: 1000px;
    margin: 0 auto;
}

.tech-flow-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.tech-flow-row:last-child {
    border-bottom: none;
}

/* Left Side: Info */
.tf-info {
    width: 35%;
    text-align: left;
    padding-right: 40px;
}

.tf-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tf-badge.pink {
    background: rgba(255, 0, 255, 0.1);
    color: var(--accent-pink);
    border: 1px solid rgba(255, 0, 255, 0.2);
}

.tf-badge.cyan {
    background: rgba(0, 255, 255, 0.1);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.tf-badge.green {
    background: rgba(0, 255, 0, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(0, 255, 0, 0.2);
}

.tf-info h4 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.tf-info p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Right Side: Visual Diagram */
.tf-visual {
    width: 65%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* Nodes (Start/End) */
.tf-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 2;
    min-width: 80px;
    position: relative;
}

.tf-icon-box {
    width: 56px;
    height: 56px;
    background: rgba(10, 10, 10, 0.8);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.tf-node:hover .tf-icon-box {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.tf-icon-box img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.tf-label {
    font-size: 13px;
    color: var(--text-sub);
    font-weight: 500;
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 8px;
    border-radius: 4px;
}

/* The Central Process Path */
.tf-path {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 10px;
}

/* Connecting Lines */
.tf-line-left,
.tf-line-right {
    flex: 1;
    height: 2px;
    background: #333;
    position: relative;
    overflow: hidden;
}

/* Animated flow effect within the line */
.tf-line-left::after,
.tf-line-right::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: translateX(-100%);
    animation: flow-line 2s infinite linear;
}

.tech-flow-row:nth-child(2) .tf-line-left::after,
.tech-flow-row:nth-child(2) .tf-line-right::after {
    animation-delay: 0.5s;
}

.tech-flow-row:nth-child(3) .tf-line-left::after,
.tech-flow-row:nth-child(3) .tf-line-right::after {
    animation-delay: 1s;
}

@keyframes flow-line {
    0% {
        transform: translateX(-100%);
    }

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

/* The "Black Box" / Engine */
.tf-process-node {
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 20px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: white;
    z-index: 2;
    white-space: nowrap;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    margin: 0 10px;
}

.tf-process-icon {
    font-size: 14px;
    animation: pulse-text 2s infinite;
}

.tf-process-name {
    font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(90deg, #fff, #888);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes pulse-text {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@media (max-width: 768px) {
    .tech-flow-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
        padding: 30px 0;
    }

    .tf-info {
        width: 100%;
        padding-right: 0;
        margin-bottom: 10px;
    }

    .tf-visual {
        width: 100%;
    }

    .tf-label {
        font-size: 11px;
    }

    .tf-icon-box {
        width: 48px;
        height: 48px;
    }

    .tf-process-node {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Real Problem Comparison Styles (Restored) */
.problem-solution-comparison {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 24px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.comparison-box {
    flex: 1;
    min-width: 300px;
    padding: 40px;
    border-radius: 24px;
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.comparison-box.bad {
    background: rgba(255, 107, 107, 0.05);
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.comparison-box.good {
    background: rgba(0, 255, 150, 0.05);
    border: 1px solid rgba(0, 255, 150, 0.3);
    box-shadow: 0 15px 50px rgba(0, 255, 150, 0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.comparison-box:hover {
    transform: translateY(-5px);
}

.comparison-box.bad h4 {
    color: #ff6b6b;
}

.comparison-box.good h4 {
    color: var(--accent-green);
}

.comparison-box h4 {
    font-size: 24px;
    margin-bottom: 28px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.01em;
}

.comparison-box ul li {
    margin-bottom: 20px;
    color: var(--text-sub);
    position: relative;
    padding-left: 32px;
    font-size: 17px;
    line-height: 1.6;
}

.comparison-box ul li::before {
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 14px;
    top: 4px;
}

.comparison-box.bad ul li::before {
    content: "✕";
    color: #ff6b6b;
}

.comparison-box.good ul li::before {
    content: "✓";
    color: var(--accent-green);
    font-size: 16px;
    top: 2px;
}

.comparison-box strong {
    color: var(--text-main);
    font-weight: 700;
}

.arrow-box {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 24px;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .problem-solution-comparison {
        flex-direction: column;
        gap: 16px;
    }

    .arrow-box {
        transform: rotate(90deg);
        margin: 0;
        height: 30px;
    }

    .comparison-box {
        min-width: 100%;
        padding: 30px;
    }
}

/* Add chart-bars style to match kitchen-timeline */
.chart-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
    width: 100%;
}

/* Restore .chart-bars style */
.chart-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
    width: 100%;
}

/* Tools Grid Layout (New) */
.tools-integration {
    margin-top: 80px;
    text-align: center;
}

.tools-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Tools Marquee Layout */
.tools-integration {
    margin-top: 80px;
    text-align: center;
    overflow: hidden;
    width: 100%;
}

.tools-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.tools-marquee-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    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);
}

.marquee-row {
    display: flex;
    width: 100%;
    overflow: hidden;
}

.marquee-track {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: scroll 40s linear infinite;
    padding-right: 40px;
}

.marquee-row.reverse .marquee-track {
    animation-direction: reverse;
}

.marquee-row:nth-child(1) .marquee-track {
    animation-duration: 45s;
}

.marquee-row:nth-child(2) .marquee-track {
    animation-duration: 50s;
}

.marquee-row:nth-child(3) .marquee-track {
    animation-duration: 40s;
}

.marquee-track img {
    height: 40px;
    width: auto;
    opacity: 1;
    filter: none;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.marquee-track img:hover {
    transform: scale(1.2);
}

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

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

/* Spacer for Automation Section */
.offering-spacer {
    margin-top: 160px !important;
    /* Increased gap as requested */
}

@media (max-width: 768px) {
    .tools-marquee-container {
        gap: 16px;
    }

    .marquee-track {
        gap: 24px;
        padding-right: 24px;
    }

    .marquee-track img {
        height: 32px;
    }

    .offering-spacer {
        margin-top: 100px !important;
    }
}

/* Mobile Layout Refinements (Added at End for Specificity) */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 36px !important;
        line-height: 1.4 !important;
    }

    #hero .subtitle {
        font-size: 16px;
        margin-bottom: 40px;
        padding: 0 10px;
    }

    /* Mobile Navigation */
    nav ul {
        display: none;
        /* Hide desktop menu */
    }

    /* Mobile Automation Flow Fix */
    .tech-flow-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 30px 0;
    }

    .tf-info {
        width: 100%;
        padding-right: 0;
        text-align: center;
        margin-bottom: 10px;
    }

    .tf-visual {
        width: 100%;
        justify-content: space-between;
        padding: 0 10px;
    }

    .tf-node {
        min-width: 60px;
    }

    .tf-icon-box {
        width: 48px;
        height: 48px;
    }

    .tf-icon-box img {
        width: 24px;
        height: 24px;
    }

    .tf-label {
        font-size: 11px;
    }

    /* Mobile Dashboard Tabs Fix */
    .dashboard-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
        margin-bottom: 20px;
        -webkit-overflow-scrolling: touch;
        gap: 10px;
        justify-content: flex-start;
    }

    .dashboard-tabs::-webkit-scrollbar {
        display: none;
    }

    .tab-btn {
        flex: 0 0 auto;
        padding: 10px 16px;
        font-size: 14px;
    }

    /* Mobile Tools Grid Fix */
    .tools-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }

    .tools-grid img {
        height: 32px;
    }

    .mobile-menu-btn {
        display: flex;
        /* Show burger menu */
    }

    .container {
        padding: 0 20px;
        /* Enforce 20px padding on mobile */
    }

    .problem-card .card-body p {
        word-break: keep-all;
        overflow-wrap: anywhere;
    }

    /* Automation Flow Mobile Vertical Stack */
    .tf-visual {
        width: 100%;
        flex-direction: column;
        gap: 20px;
    }

    .tf-path {
        width: 100%;
        flex-direction: column;
        height: 60px;
        padding: 0;
    }

    .tf-line-left,
    .tf-line-right {
        width: 2px;
        height: 100%;
        flex: 1;
    }

    .tf-line-left::after,
    .tf-line-right::after {
        background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.5), transparent);
        transform: translateY(-100%);
        animation: flow-line-vertical 2s infinite linear;
    }

    .tf-process-node {
        margin: 10px 0;
    }

    /* Footer Mobile */
    .footer-content h2 {
        font-size: 32px;
    }

    .btn-primary {
        padding: 16px 32px;
        font-size: 16px;
        width: 100%;
        /* Full width button on mobile */
        max-width: 300px;
    }

    #contact {
        padding: 60px 0 40px;
    }
}

@keyframes flow-line-vertical {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}


/* =========================================
   TABLET & SMALL DESKTOP OPTIMIZATION
   (Vertical Stack Layout)
   ========================================= */
@media (max-width: 1024px) and (min-width: 769px) {

    /* Grid layout for tablet (768px-1024px) */
    .problem-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }

    .problem-solution-comparison {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }

    .ax-grid-new {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }

    /* Adjust Card Widths for Tablet */
    .comparison-box,
    .step-card {
        width: 100% !important;
        height: auto !important;
    }

    /* Show Arrows in Vertical Layout */
    .step-arrow,
    .arrow-box {
        display: block !important;
        text-align: center;
        margin: 10px 0;
    }

    .comparison-box {
        margin: 0 !important;
    }
}

/* =========================================
   FINAL MOBILE OPTIMIZATION & LAYOUT FIXES
   ========================================= */
@media (max-width: 768px) {

    /* --- 1. Global Layout & Spacing --- */
    .container {
        padding: 0 20px !important;
        /* Standard mobile padding */
        width: 100% !important;
        max-width: 100% !important;
        /* overflow-x: hidden; REMOVED to fix sticky scroll */
    }

    section {
        padding: 60px 0 !important;
        /* Consistent section spacing */
    }

    /* --- 2. Typography Standardization --- */
    h1,
    .hero-title {
        font-size: 32px !important;
        line-height: 1.3 !important;
        word-break: keep-all;
        letter-spacing: -0.02em;
    }

    h2,
    .section-title {
        font-size: 26px !important;
        margin-bottom: 24px !important;
        word-break: keep-all;
        letter-spacing: -0.01em;
        line-height: 1.35 !important;
    }

    .section-desc {
        font-size: 15px !important;
        line-height: 1.6 !important;
        margin-bottom: 40px !important;
        padding: 0 10px !important;
        word-break: keep-all;
        color: #888 !important;
    }

    /* --- 3. Offerings / Dashboard Section Fixes --- */
    .offering-item {
        margin-bottom: 60px !important;
        padding: 0 !important;
    }

    .offering-item+.offering-item {
        margin-top: 80px !important;
        /* Force gap between items */
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        /* Optional: separator */
        padding-top: 60px !important;
    }

    .timeline-track {
        width: 100% !important;
        height: 24px !important;
        /* Fixed height for visibility */
        background: rgba(255, 255, 255, 0.1) !important;
        border: 1px solid rgba(255, 255, 255, 0.1);
        /* Add border for definition */
        border-radius: 4px;
        overflow: hidden;
        position: relative;
        /* Ensure context */
    }

    .timeline-bar {
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
        padding-left: 8px !important;
        font-size: 11px !important;
        white-space: nowrap;
        color: #fff !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
        /* Ensure inline background works */
        background-image: none !important;
    }

    /* Dashboard Tabs - Ensure scrolling works */
    .db-tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        padding: 4px 4px 16px 4px !important;
        gap: 8px !important;
        width: 100% !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        justify-content: flex-start !important;
        margin-bottom: 20px !important;
    }

    .db-tabs::-webkit-scrollbar {
        display: none;
    }

    .db-tab-btn {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 10px 16px !important;
        font-size: 14px !important;
    }

    /* Dashboard Grid & Cards */
    .cd-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
    }

    .cd-main-card,
    .cd-insight-card {
        width: 100% !important;
        padding: 20px !important;
        margin: 0 !important;
        height: auto !important;
    }

    /* Dashboard Header Elements */
    .cd-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        margin-bottom: 20px !important;
    }

    .cd-title {
        font-size: 18px !important;
        font-weight: 700 !important;
        line-height: 1.4 !important;
    }

    .cd-date {
        font-size: 13px !important;
        color: #666 !important;
    }

    /* Dashboard Stats/KPIs */
    .cd-stat-grid {
        grid-template-columns: 1fr !important;
        /* Stack stats vertically */
        gap: 12px !important;
    }

    .cd-stat-item {
        padding: 16px !important;
    }

    .cd-stat-value {
        font-size: 24px !important;
    }

    .cd-stat-label {
        font-size: 13px !important;
    }

    /* Chart Bars Visibility Fix */
    .chart-bars {
        width: 100% !important;
        margin-top: 16px !important;
        display: block !important;
    }

    .timeline-row {
        margin-bottom: 12px !important;
        width: 100% !important;
        display: block !important;
    }

    .timeline-label {
        font-size: 13px !important;
        margin-bottom: 6px !important;
        color: #ccc !important;
        text-align: left !important;
        display: block !important;
    }

    /* --- 4. Horizontal Scroll Sections (Disabled) --- */

    /* Scroll Trigger Wrapper - Disabled for vertical layout */
    .scroll-trigger-wrapper {
        position: relative;
        margin-bottom: 0;
    }

    /* Sticky Viewport - Disabled */
    .sticky-viewport {
        position: relative;
        top: auto;
        height: auto;
        width: 100%;
        overflow: visible;
    }

    /* NOTE: Horizontal scroll card styles moved to end of file for clarity */

    /* Vertical stack items (not cards) */
    .problem-solution-comparison {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        overflow-x: visible;
        padding-bottom: 30px;
        gap: 20px;
        width: 100%;
        margin: 0;
        padding-left: 20px;
        padding-right: 20px;
    }

    .comparison-box {
        min-width: 100%;
        width: 100%;
        flex: 1 1 auto;
        margin-right: 0;
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 24px;
    }

    /* --- General Card Standardization --- */
    .problem-card,
    .comparison-box,
    .expert-card-new,
    .ax-card-new,
    .step-card,
    .cd-main-card,
    .cd-insight-card,
    .workflow-card {
        padding: 24px;
        box-sizing: border-box;
        text-align: left;
    }

    /* --- Footer & Buttons --- */
    .footer-content h2 {
        font-size: 28px;
        line-height: 1.3;
    }

    .btn-primary {
        width: 100%;
        padding: 18px;
        font-size: 16px;
    }

    /* --- Text Alignment Overrides --- */
    .section-title,
    .section-desc,
    .hero-content,
    .footer-content {
        text-align: center;
    }

    /* Text Alignment & Spacing */
    .cd-label {
        text-align: left;
        margin-bottom: 4px;
    }

    .cd-value {
        text-align: left;
    }
}

/* =========================================
   Offerings Mockup Styles (Added for new Service section)
   ========================================= */

.service-block {
    margin-bottom: 80px;
}

.service-header {
    text-align: left;
    margin-bottom: 40px;
    border-left: 4px solid var(--brand-color);
    padding-left: 20px;
}

.service-num {
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-color);
    display: block;
    margin-bottom: 5px;
}

.service-header h3 {
    font-size: 28px;
    color: #fff;
    margin-bottom: 10px;
}

.service-sub {
    font-size: 16px;
    color: #888;
}

/* Automation Comparison Grid */
.automation-comparison-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

@media (max-width: 1200px) {
    .automation-comparison-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .automation-comparison-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 16px;
        padding-bottom: 20px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .automation-comparison-grid::-webkit-scrollbar {
        display: none;
    }

    .automation-comparison-grid .comparison-card {
        flex: 0 0 85%;
        min-width: 280px;
        max-width: 320px;
        scroll-snap-align: center;
    }
}

.comparison-card {
    background: #1A1A1A;
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.comparison-card:hover {
    transform: translateY(-5px);
    border-color: #555;
}

.comp-header {
    background: #222;
    padding: 10px 12px;
    border-bottom: 1px solid #333;
}

.comp-header h4 {
    font-size: 14px;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.comp-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comp-before,
.comp-after {
    padding: 12px;
    border-radius: 6px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
}

.comp-before {
    background: rgba(136, 136, 136, 0.05);
    /* Muted gray tint */
    border: 1px dashed rgba(136, 136, 136, 0.3);
}

.comp-after {
    background: rgba(0, 255, 255, 0.05);
    /* Cyan tint */
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.badge-before {
    font-size: 11px;
    font-weight: 700;
    color: #aaa;
    background: rgba(136, 136, 136, 0.2);
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}

.badge-after {
    font-size: 11px;
    font-weight: 700;
    color: #00FFFF;
    background: rgba(0, 255, 255, 0.2);
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}

.situation {
    font-size: 14px;
    font-weight: 700;
    color: #ddd;
    margin: 8px 0;
}

.pain-points,
.benefits {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
    color: #888;
}

.pain-points li::before {
    content: "• ";
    color: #FF4757;
}

.benefits li::before {
    content: "✓ ";
    color: #2ECC71;
}

.benefits li strong {
    color: #fff;
}

.comp-arrow {
    text-align: center;
    color: #555;
    font-size: 20px;
    height: 20px;
    line-height: 20px;
}

/* Dashboard Showcase */
.dashboard-showcase {
    text-align: center;
}

.dashboard-desc {
    margin-bottom: 40px;
    font-size: 18px;
    line-height: 1.6;
    color: #ccc;
}

.dashboard-desc strong {
    color: #fff;
    border-bottom: 1px solid var(--brand-color);
}

.dashboard-preview-box {
    background: #000;
    border: 1px solid #333;
    border-radius: 12px;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.preview-header {
    background: #222;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #333;
    position: relative;
    /* For absolute positioning of title */
}

.preview-header .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.preview-title {
    font-size: 13px;
    color: #aaa;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.preview-content {
    padding: 30px;
}

.simple-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 600px) {
    .simple-stat-grid {
        grid-template-columns: 1fr;
    }
}

.stat-item {
    background: #111;
    border: 1px solid #333;
    padding: 20px;
    border-radius: 8px;
    text-align: left;
}

.stat-item .label {
    font-size: 12px;
    color: #888;
    display: block;
    margin-bottom: 8px;
}

.stat-item .value {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.stat-item .value.up {
    color: #2ECC71;
}

.stat-item .value.down {
    color: #3498db;
}

.stat-item .value.safe {
    color: #f1c40f;
}

.abstract-chart {
    height: 150px;
    background: linear-gradient(90deg, #2c3e50 0%, #1a252f 50%, #0f151a 100%);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.abstract-chart::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 25" preserveAspectRatio="none"><path d="M0,25 L0,15 C10,10 20,20 30,15 C40,10 50,5 60,10 C70,15 80,10 90,5 L100,0 L100,25 Z" fill="rgba(0, 255, 255, 0.1)"/></svg>');
    background-size: cover;
}

/* =========================================
   Visual Flow Styles (Icon-based Automation)
   ========================================= */

.visual-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 12px 0;
    padding: 8px;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 60px;
}

.flow-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.flow-icon.grayscale {
    filter: grayscale(100%) opacity(0.7);
}

.flow-icon-text {
    font-size: 24px;
}

.flow-label {
    font-size: 11px;
    color: #aaa;
    text-align: center;
    line-height: 1.4;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flow-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 18px;
    font-weight: 700;
}

.arrow-label {
    font-size: 9px;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.text-red {
    color: #aaa;
}

.text-green {
    color: #00FFFF;
}

.pain-point-text {
    text-align: center;
    color: #bbb;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    margin-top: 8px;
    background: rgba(136, 136, 136, 0.15);
    padding: 10px;
    border-radius: 6px;
}

.benefit-text {
    text-align: center;
    color: #00FFFF;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    margin-top: 8px;
    background: rgba(0, 255, 255, 0.15);
    padding: 10px;
    border-radius: 6px;
}

/* =========================================
   Interactive Dashboard Mockup Styles
   ========================================= */

.dashboard-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.db-tab {
    background: transparent;
    border: 1px solid #333;
    color: #888;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.db-tab:hover {
    border-color: #666;
    color: #ccc;
}

.db-tab.active {
    background: #fff;
    color: #000;
    border-color: #fff;
    font-weight: 700;
}

.cd-grid-mockup {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

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

.cd-main-card {
    background: #111;
    border: 1px solid #333;
    padding: 20px;
    border-radius: 8px;
}

.cd-side-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cd-insight-card {
    background: #111;
    border: 1px solid #333;
    padding: 15px;
    border-radius: 8px;
}

.cd-insight-header {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cd-insight-text {
    font-size: 13px;
    color: #ccc;
    line-height: 1.5;
    text-align: left;
}

.cd-insight-text strong {
    color: #fff;
}

.timeline-row {
    margin-bottom: 15px;
}

.timeline-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 5px;
}

.timeline-track {
    height: 24px;
    background: #222;
    border-radius: 4px;
    overflow: hidden;
}

.timeline-bar {
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 10px;
    font-size: 11px;
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
}

.cd-label {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 5px;
}

.cd-value {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.cd-value .unit {
    font-size: 14px;
    color: #888;
    font-weight: 400;
}

/* =========================================
   Simplified Dashboard Layout Styles
   ========================================= */

.insight-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 600px) {
    .insight-row {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   MOBILE HORIZONTAL SCROLL - UNIFIED STYLES
   Cleaned up and optimized for better UX
   ========================================= */
@media (max-width: 768px) {

    /* --- Base Horizontal Scroll Container --- */
    .problem-grid,
    .automation-comparison-grid,
    .ax-grid-new,
    .experts-grid-new,
    .process-grid {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 16px;
        padding: 10px 0 20px 0;
        margin: 0 -20px;
        /* Extend to edge */
        padding-left: 24px !important;
        /* Ensure left spacing */
        padding-right: 24px !important;
        scroll-padding-left: 24px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .problem-grid::-webkit-scrollbar,
    .automation-comparison-grid::-webkit-scrollbar,
    .ax-grid-new::-webkit-scrollbar,
    .experts-grid-new::-webkit-scrollbar,
    .process-grid::-webkit-scrollbar {
        display: none;
    }

    /* --- Card Sizing - 80% width to show 20% of next card --- */
    .problem-card,
    .comparison-card,
    .ax-card-new,
    .expert-card-new,
    .process-card {
        flex: 0 0 calc(100% - 60px);
        /* Show peek of next card */
        min-width: 280px;
        max-width: calc(100vw - 60px);
        scroll-snap-align: start;
        /* Snap to left edge for natural scrolling */
        height: auto;
        box-sizing: border-box;
    }

    /* --- Ensure last card has right margin for proper scrolling --- */
    .problem-card:last-child,
    .comparison-card:last-child,
    .ax-card-new:last-child,
    .expert-card-new:last-child,
    .process-card:last-child {
        margin-right: 20px;
    }

    /* --- Fix ax-grid-new container nesting issue - REMOVED to use unified styles --- */
    /* Styles are now handled by the unified block above */

    /* --- Dashboard Tabs Horizontal Scroll --- */
    .dashboard-tabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
        padding: 0 0 16px 0;
        margin-bottom: 20px;
        scrollbar-width: none;
        justify-content: flex-start;
    }

    .dashboard-tabs::-webkit-scrollbar {
        display: none;
    }

    .db-tab {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 10px 16px;
        font-size: 13px;
    }

    /* --- Service Block Title Spacing --- */
    .service-header {
        margin-bottom: 24px;
    }

    .service-header h3 {
        font-size: 22px;
    }

    /* --- Comparison Card Internal Layout --- */
    .comp-body {
        padding: 10px;
    }

    .visual-flow {
        padding: 6px;
        gap: 4px;
    }

    .flow-step {
        width: 50px;
    }

    .flow-icon {
        width: 28px;
        height: 28px;
    }

    .flow-label {
        font-size: 10px;
        min-height: 24px;
    }

    .flow-arrow {
        font-size: 14px;
    }

    .arrow-label {
        font-size: 8px;
    }

    /* --- Stat Grid in Dashboard --- */
    .simple-stat-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stat-item {
        padding: 16px;
    }

    .stat-item .value {
        font-size: 16px;
    }

    /* --- Insight Row Layout --- */
    .insight-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .cd-insight-card {
        padding: 16px;
    }

    .cd-insight-text {
        font-size: 13px;
    }

    /* --- Disable Hover Float Effect on Mobile --- */
    /* Prevents cards from "jumping up" when touched during scroll */
    .problem-card:hover,
    .comparison-card:hover,
    .ax-card-new:hover,
    .expert-card-new:hover,
    .process-card:hover,
    .step-card:hover,
    .workflow-card:hover,
    .bento-item:hover,
    .comparison-box:hover {
        transform: none;
        box-shadow: none;
    }

    /* Also disable ::before hover effects */
    .problem-card:hover::before,
    .ax-card-new:hover::before,
    .expert-card-new:hover::before,
    .process-card:hover::before {
        opacity: 0;
    }

    /* --- Disable Fade-in-up Animation on Mobile --- */
    /* FORCE elements to be visible and static on mobile */
    .fade-in-up {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
        visibility: visible !important;
    }

    .fade-in-up.visible {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    /* Disable all transition delays on mobile */
    [class*="delay-"] {
        transition-delay: 0s !important;
        animation-delay: 0s !important;
    }

    /* Prevent horizontal scroll on body/html causing jumps */
    html,
    body {
        overflow-x: hidden !important;
        width: 100% !important;
        position: relative !important;
    }

    /* Optimized Scroll Indicator Position for Mobile */
    .scroll-indicator {
        bottom: 50px !important;
    }
}