:root {
    --primary-gradient-start: #667eea;
    --primary-gradient-end: #764ba2;
    --text-dark: #1a202c;
    --text-light: #4a5568;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --border-light: #e2e8f0;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Navigation */
nav {
    background: var(--bg-white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 60px;
    margin-right: 0;
}

.logo-text {
    display: none;
}

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

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-gradient-start);
}

.nav-menu .btn-primary {
    color: white !important;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-gradient-start), var(--primary-gradient-end));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--primary-gradient-start);
    border: 2px solid var(--primary-gradient-start);
}

.btn-secondary:hover {
    background: var(--primary-gradient-start);
    color: white;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
    display: block;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

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

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

/* Hero Section */
.hero {
    padding: 95px 0 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-gradient-start), var(--primary-gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.4;
    padding-bottom: 0.2rem;
}

/* subtitle width + tone */
.hero-subtitle{
  max-width:650px;margin:0 auto 8px;text-align:center;
  color:var(--text-muted,#5b6472);font-size:clamp(1.05rem,2vw,1.25rem);
}

/* "Type it. Done." with hairline divider */
.hero-callout{
  display:flex;align-items:center;justify-content:center;gap:12px;
  margin:16px auto 12px;font-weight:700;text-align:center;max-width:720px;
}
.hero-callout::before,.hero-callout::after{
  content:"";flex:1;max-width:140px;height:1px;background:rgba(0,0,0,.08);
}

/* 2×2 example cards */
.hero-examples{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px;margin:16px auto 0;max-width:980px;
}
.example-item{
  display:grid;
  grid-template-columns:1fr;
  row-gap: 6px;
  align-items: start;
  column-gap:12px;
  padding:14px 16px;border-radius:14px;background:rgba(255,255,255,.8);
  box-shadow:0 8px 24px rgba(20,20,40,.05);
}
/* Command: one line, scroll if needed (no visible scrollbar) */
.example-command{
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .95rem;
  color: var(--text-dark,#1f2430);
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  min-width: 0;
  -webkit-overflow-scrolling: touch;  /* smooth on iOS */
  scrollbar-width: none;              /* hide in Firefox */
}
.example-command::-webkit-scrollbar{ display:none; } /* hide in WebKit */

/* Time: allow wrapping on its own line, right-aligned */
.example-time{
  font-weight: 700;
  font-size: .9rem;
  color: var(--accent,#0ea5e9);
  white-space: normal;    /* allow wrap */
  justify-self: end;      /* right align in grid */
  text-align: right;
  align-self: start;
}

/* helper line under cards */
.hero-helper{
  text-align:center;max-width:720px;margin:22px auto 0;
  color:var(--text-muted,#5b6472);
  font-size: 1.2rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 1.5rem 0 1rem 0;
}

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

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-gradient-start);
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Customer Paths Section */
.customer-paths {
    padding: 60px 0;
    background: var(--bg-white);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
}

.paths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.path-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.path-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-gradient-start);
}

.path-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-gradient-start), var(--primary-gradient-end));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.path-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.path-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    min-height: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.path-card ul {
    text-align: left;
    list-style: none;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.path-card ul li {
    padding: 0.5rem 0;
    color: var(--text-light);
    position: relative;
    padding-left: 1.5rem;
}

.path-card ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.path-card .btn {
    margin-top: auto;
}

/* ROI Calculator Section */
.roi-calculator {
    padding: 60px 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
}

.calculator-container {
    background: var(--bg-white);
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.calculator-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.input-group input {
    padding: 0.75rem;
    border: 1px solid var(--border-light);
    border-radius: 0.5rem;
    font-size: 1rem;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-gradient-start);
}

.input-group input#current-cost {
    font-family: monospace;
    font-size: 1rem;
    text-align: right;
}

.roi-results {
    background: linear-gradient(135deg, var(--primary-gradient-start), var(--primary-gradient-end));
    color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    margin-top: 2rem;
}

.roi-results h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.roi-metric {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.roi-metric:last-child {
    border-bottom: none;
}

.roi-value {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

/* Features Section */
.features {
    padding: 60px 0;
    background: var(--bg-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* 6-item grid with centered bottom row */
.features-grid-6 {
    grid-template-columns: repeat(3, 1fr) !important;
}

.features-grid-6 .feature-item:nth-child(5) {
    grid-column: 1;
    grid-row: 2;
    justify-self: end;
}

.features-grid-6 .feature-item:nth-child(6) {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
}


.feature-item {
    text-align: center;
    padding: 1.5rem;
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary-gradient-start), var(--primary-gradient-end));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.feature-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.feature-item p {
    color: var(--text-light);
}

/* Pricing grid styles */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-grid .path-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 500px;
}

.pricing-grid .path-card ul {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Mobile responsive for pricing grid */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Mobile responsive for comparison table */
@media (max-width: 768px) {
    /* Make table responsive on mobile */
    .comparison-table-container {
        overflow-x: visible !important;
    }
    
    .comparison-table-container table {
        min-width: unset !important;
        display: block;
    }
    
    .comparison-table-container thead {
        display: none;
    }
    
    .comparison-table-container tbody {
        display: block;
    }
    
    .comparison-table-container tr {
        display: block;
        margin-bottom: 1.5rem;
        background: white;
        border-radius: 0.5rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        overflow: hidden;
    }
    
    .comparison-table-container td {
        display: block !important;
        padding: 1rem !important;
        border-bottom: 1px solid var(--border-light);
        position: relative;
        min-height: 60px;
    }
    
    .comparison-table-container td:first-child {
        background: linear-gradient(135deg, var(--primary-gradient-start), var(--primary-gradient-end));
        color: white;
        font-weight: 700 !important;
        text-align: center !important;
        padding: 1.25rem !important;
        min-height: auto;
    }
    
    .comparison-table-container td:not(:first-child):before {
        content: attr(data-label) ":";
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
        font-weight: 600;
        color: var(--text-dark);
        width: 45%;
        text-align: left;
    }
    
    .comparison-table-container td:not(:first-child) {
        text-align: left !important;
        padding-left: 50% !important;
        padding-right: 1rem !important;
        display: flex !important;
        align-items: center;
        justify-content: flex-start;
    }
    
    .comparison-table-container td:first-child:before {
        content: none;
    }
    
    .comparison-table-container td[data-label="Vilara"] {
        background: rgba(76, 175, 80, 0.05);
        border-bottom: none;
    }
}

/* Footer */
footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    padding: 0.5rem 0;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 700px){
  .hero-examples{
    grid-template-columns:1fr;
    gap: 16px;
    max-width: 650px;
    margin: 0 auto;
 }

}

@media (max-width: 768px) {

    .mobile-menu-toggle {
        display: flex;
        min-height: 44px;
        min-width: 44px;
        align-items: center;
        justify-content: center;
        touch-action: manipulation;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        z-index: 1001;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu a {
        padding: 12px 0;
        min-height: 44px;
        display: flex;
        align-items: center;
        touch-action: manipulation;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .paths-grid {
        grid-template-columns: 1fr;
    }
    
    /* Mobile: Stack 6-item grids normally */
    .features-grid-6 {
        grid-template-columns: 1fr !important;
    }
    
    .features-grid-6 .feature-item:nth-child(5),
    .features-grid-6 .feature-item:nth-child(6) {
        grid-column: 1 !important;
        grid-row: auto !important;
        justify-self: center !important;
    }
    
    /* Additional mobile improvements */
    .container {
        padding: 0 15px;
    }
    
    /* Logo improvements for mobile */
    .logo img {
        height: 50px;
    }
    
    /* Hero section mobile spacing */
    .hero {
        padding: 75px 0 15px;
    }
    
    /* Button improvements for mobile */
    .btn {
        padding: 12px 20px;
        font-size: 16px; /* Prevent zoom on iOS */
        min-height: 44px; /* Apple recommended touch target */
        touch-action: manipulation;
        border: none;
        outline: none;
    }
    
    /* Form improvements */
    input, select, textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 44px;
        touch-action: manipulation;
        border-radius: 8px;
        padding: 12px 16px;
        -webkit-appearance: none;
        appearance: none;
    }
    
    /* Improve select dropdowns on mobile */
    select {
        background-image: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'><path fill='%23666' d='M2 0L0 2h4zm0 5L0 3h4z'/></svg>");
        background-repeat: no-repeat;
        background-position: right 12px center;
        background-size: 12px;
        padding-right: 40px;
    }
    
    input:focus, select:focus, textarea:focus {
        outline: 2px solid var(--primary-gradient-start);
        outline-offset: 2px;
    }
    
    /* Card layouts */
    .path-card,
    .feature-item {
        margin-bottom: 1rem;
    }
    
    /* Tables */
    .comparison-table,
    table {
        font-size: 14px;
        overflow-x: auto;
        display: block;
        white-space: nowrap;
    }
    
    table tbody,
    table thead,
    table tr,
    table td,
    table th {
        display: block;
    }
    
    table tr {
        border: 1px solid var(--border-light);
        margin-bottom: 0.5rem;
        border-radius: 0.5rem;
        padding: 0.5rem;
    }
    
    table td {
        border: none;
        padding: 0.5rem;
        position: relative;
        padding-left: 50%;
        white-space: normal;
    }
    
    table td:before {
        content: attr(data-label) ": ";
        position: absolute;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: 600;
        color: var(--text-dark);
    }
    
    table th {
        display: none;
    }
    
    /* Hero section mobile text */
    .hero-description {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    /* Reduce margins and padding for mobile */
    section {
        padding: 40px 0;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn {
        padding: 12px 16px;
        font-size: 15px;
        width: 100%;
        margin-bottom: 10px;
        min-height: 48px;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .feature-icon {
        font-size: 1.8rem;
        width: 60px;
        height: 60px;
    }
    
    .path-icon {
        font-size: 1.8rem;
        width: 70px;
        height: 70px;
    }
    
    /* ROI Calculator mobile improvements */
    .calculator-container {
        padding: 2rem 1rem;
    }
    
    .calculator-inputs {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .roi-results {
        padding: 1.5rem;
    }
    
    /* Stack button groups */
    .hero .btn + .btn {
        margin-left: 0;
        margin-top: 10px;
    }
    
    /* Mobile CTAs */
    .hero > .container > .hero-content > div {
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    
    .hero > .container > .hero-content > div .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
        margin: 0;
    }
}

/* Tablet portrait adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .paths-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid-6 {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Large mobile devices */
@media (max-width: 540px) {
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
}

/* Ultra-small screens */
@media (max-width: 360px) {
    .container {
        padding: 0 8px;
    }
    
    .hero {
        padding: 65px 0 12px;
    }
    
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .stat-value {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .section-header h2 {
        font-size: 1.3rem;
    }
    
    .section-header p {
        font-size: 0.9rem;
    }
    
    .path-card {
        padding: 1.5rem;
    }
    
    .feature-item {
        padding: 1rem;
    }
}

/* Demo page specific styles */
.demo-container {
    padding-top: 80px;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-gradient-start), var(--primary-gradient-end));
}

.demo-header {
    text-align: center;
    padding: 2rem 0;
    color: white;
}

.demo-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.demo-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.demo-frame {
    width: 100%;
    height: calc(100vh - 200px);
    border: none;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Process Automation Grid Responsive */
.process-automation-grid {
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .process-automation-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
        align-items: stretch !important;
    }
    
    .process-automation-grid > div[style*="font-size: 1.5rem"] {
        display: none !important; /* Hide arrows on mobile */
    }
    
    /* Ensure process automation cards don't overflow */
    .process-automation-grid > div {
        min-width: 0 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
}

@media (max-width: 480px) {
    .process-automation-grid > div {
        padding: 1rem !important;
    }
    
    .process-automation-grid h4 {
        font-size: 0.95rem !important;
    }
    
    .process-automation-grid p {
        font-size: 0.85rem !important;
    }
}

/* Fix grid layouts that can cause overflow */
@media (max-width: 768px) {
    div[style*="grid-template-columns: repeat(auto-fit, minmax(400px, 1fr))"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}

/* ===== UI SHOWCASE SECTION ===== */
.ui-showcase-section {
    padding: 2rem 0 0.5rem 0;
    background: transparent;
}

.ui-showcase {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.ui-mockup {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

/* Hero Stats Section */
.hero-stats-section {
    padding: 1rem 0 3rem 0;
}

/* UI Header */
.ui-header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    gap: 1rem;
    height: 50px;
}

.ui-logo img {
    height: 24px;
}

.ui-breadcrumb {
    flex: 1;
    color: #6b7280;
    font-size: 0.875rem;
}

.ui-header-actions {
    display: flex;
    gap: 0.5rem;
}

.ui-header-btn {
    padding: 0.25rem 0.5rem;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.ui-header-btn:hover {
    background: #f3f4f6;
}

.ui-ai-toggle {
    background: #667eea !important;
    color: white !important;
    border-color: #667eea !important;
}

/* UI Body Layout */
.ui-body {
    display: grid;
    grid-template-columns: 200px 1fr 320px;
    height: 720px;
}

/* UI Sidebar */
.ui-sidebar {
    background: #fafafa;
    border-right: 1px solid #e5e7eb;
    padding: 1rem 0.75rem;
    overflow-y: auto;
}

.ui-sidebar-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 0.25rem;
}

.ui-sidebar-item:hover {
    background: #f3f4f6;
}

.ui-sidebar-item.ui-active {
    background: #ede9fe;
    color: #667eea;
    font-weight: 500;
}

/* UI Main Content */
.ui-main {
    padding: 2rem;
    overflow-y: auto;
    background: white;
}

.ui-content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.ui-content-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.ui-content-actions {
    display: flex;
    gap: 0.75rem;
}

.ui-btn-secondary {
    padding: 0.5rem 1rem;
    background: white;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.ui-btn-secondary:hover {
    background: #f9fafb;
}

.ui-btn-primary {
    padding: 0.5rem 1rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.ui-btn-primary:hover {
    background: #5a67d8;
}

.ui-content-area {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    min-height: 280px;
}

/* UI Tables */
.ui-table {
    width: 100%;
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ui-table-header {
    background: #f9fafb;
    display: grid;
    grid-template-columns: 2fr 2fr 1fr 1fr;
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    border-bottom: 1px solid #e5e7eb;
}

.ui-table-row {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr 1fr;
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.875rem;
    color: #374151;
    transition: background 0.2s;
}

.ui-table-row:hover {
    background: #f9fafb;
}

.ui-table-row:last-child {
    border-bottom: none;
}

/* Status Badges */
.ui-status-new {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    background: #dbeafe;
    color: #1e40af;
}

.ui-status-approved {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    background: #d1fae5;
    color: #065f46;
}

.ui-status-active {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    background: #d1fae5;
    color: #065f46;
}

/* Charts */
.ui-chart-container {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ui-chart-title {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
}

.ui-chart {
    display: flex;
    align-items: end;
    gap: 1rem;
    height: 150px;
}

.ui-chart-bar {
    flex: 1;
    background: #e5e7eb;
    border-radius: 0.25rem 0.25rem 0 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.25rem;
    position: relative;
    min-height: 60px;
    transition: all 0.3s;
}

.ui-chart-bar.ui-highlight {
    background: #667eea;
    color: white;
}

.ui-chart-bar span {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

.ui-chart-bar.ui-highlight span {
    color: white;
}

.ui-chart-bar div {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.ui-chart-bar.ui-highlight div {
    color: white;
}

/* Automation Flow */
.ui-automation-flow {
    background: white;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.ui-flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 80px;
}

.ui-flow-step.ui-active .ui-flow-icon {
    background: #667eea;
    color: white;
    animation: pulse 2s infinite;
}

.ui-flow-icon {
    width: 48px;
    height: 48px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.ui-flow-text {
    font-size: 0.875rem;
    color: #374151;
    text-align: center;
    font-weight: 500;
}

.ui-flow-arrow {
    font-size: 1.5rem;
    color: #9ca3af;
}

.ui-rule-status {
    margin-left: auto;
    text-align: center;
}

.ui-rule-details {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* AI Panel */
.ui-ai-panel {
    background: white;
    border-left: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ui-ai-header {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
}

.ui-ai-status {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.ui-ai-chat {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 0;
}

.ui-ai-message {
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    max-width: 90%;
}

.ui-ai-message.user {
    background: #667eea;
    color: white;
    align-self: flex-end;
}

.ui-ai-message.assistant {
    background: #f3f4f6;
    color: #374151;
    align-self: flex-start;
    white-space: pre-line;
}

.ui-ai-message.ui-typing {
    background: #e5e7eb;
    color: #6b7280;
    font-style: italic;
}

/* Quick Actions */
.ui-ai-suggestions {
    padding: 12px 16px;
    border-top: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.ui-suggestion-title {
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    margin-bottom: 8px;
}

.ui-suggestion-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ui-suggestion-chip {
    padding: 4px 10px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 12px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

.ui-suggestion-chip:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.ui-ai-input {
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.ui-ai-input textarea {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-family: inherit;
    resize: none;
    min-height: 2.25rem;
    max-height: none;
    overflow: hidden;
    line-height: 1.5;
}

.ui-ai-input textarea:focus {
    outline: none;
    border-color: #667eea;
}

.ui-ai-send {
    padding: 0.5rem 1rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.ui-ai-send:hover {
    background: #5a67d8;
}

/* Example Navigation */
.example-nav {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.example-indicators {
    display: flex;
    gap: 0.75rem;
}

.example-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e5e7eb;
    cursor: pointer;
    transition: all 0.3s;
}

.example-dot.active {
    background: #667eea;
    transform: scale(1.2);
}

.example-dot:hover {
    background: #9ca3af;
}

.example-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
}

.example-current {
    color: #6b7280;
}

.example-title {
    font-weight: 600;
    color: #111827;
}

.example-time {
    color: #667eea;
    font-weight: 500;
}

/* Responsive Design for UI Showcase - Notion-inspired approach */
@media (max-width: 768px) {
    .ui-showcase-section {
        padding: 2rem 0;
    }

    .ui-showcase {
        padding: 0 1rem;
    }

    /* Mobile: Show simplified preview with key message */
    .ui-mockup {
        border-radius: 0.75rem;
    }

    .ui-header {
        padding: 0.5rem 0.75rem;
        height: 44px;
    }

    .ui-logo img {
        height: 20px;
    }

    .ui-breadcrumb {
        font-size: 0.75rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .ui-header-actions {
        gap: 0.25rem;
    }

    .ui-header-btn {
        padding: 0.25rem 0.4rem;
        font-size: 0.7rem;
    }

    /* Mobile: Single column layout - hide sidebar, show AI panel below */
    .ui-body {
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: 500px;
    }

    .ui-sidebar {
        display: none; /* Hide sidebar completely on mobile */
    }

    .ui-main {
        padding: 1rem;
        min-height: 320px;
        order: 1;
    }

    .ui-content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .ui-content-header h3 {
        font-size: 1.25rem;
    }

    .ui-content-actions {
        width: 100%;
        display: flex;
        gap: 0.5rem;
    }

    .ui-btn-secondary,
    .ui-btn-primary {
        flex: 1;
        padding: 0.6rem 0.75rem;
        font-size: 0.8rem;
        text-align: center;
    }

    .ui-content-area {
        padding: 1rem;
        min-height: 200px;
    }

    /* Show AI panel on mobile but make it compact */
    .ui-ai-panel {
        display: flex;
        flex-direction: column;
        border-left: none;
        border-top: 1px solid #e5e7eb;
        order: 2;
        max-height: 500px;
    }

    .ui-ai-header {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .ui-ai-chat {
        padding: 0.75rem;
        max-height: 300px;
        min-height: 220px;
    }

    .ui-ai-message {
        font-size: 0.8rem;
        padding: 0.6rem;
        max-width: 95%;
    }

    .ui-ai-suggestions {
        padding: 0.75rem 1rem;
    }

    .ui-suggestion-chip {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }

    .ui-ai-input {
        padding: 0.75rem 1rem;
    }

    .ui-ai-input textarea {
        font-size: 0.8rem;
        padding: 0.5rem;
    }

    .ui-ai-send {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    /* Tables: Stack vertically on mobile */
    .ui-table {
        display: block;
    }

    .ui-table-header {
        display: none; /* Hide headers on mobile */
    }

    .ui-table-row {
        display: flex;
        flex-direction: column;
        padding: 0.75rem;
        gap: 0.5rem;
        border-bottom: 2px solid #e5e7eb;
    }

    .ui-table-row > div {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 0.8rem;
    }

    .ui-table-row > div:before {
        content: attr(data-label);
        font-weight: 600;
        color: #6b7280;
        font-size: 0.75rem;
        text-transform: uppercase;
    }

    /* Charts: Reduce height and simplify */
    .ui-chart-container {
        padding: 1rem;
    }

    .ui-chart-title {
        font-size: 0.9rem;
    }

    .ui-chart {
        height: 100px;
        gap: 0.5rem;
    }

    .ui-chart-bar {
        min-height: 40px;
        padding: 0.25rem;
    }

    .ui-chart-bar span,
    .ui-chart-bar div {
        font-size: 0.7rem;
    }

    /* Automation flow: Stack vertically */
    .ui-automation-flow {
        flex-direction: column;
        padding: 1rem;
        gap: 0.75rem;
    }

    .ui-flow-step {
        min-width: 60px;
    }

    .ui-flow-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .ui-flow-text {
        font-size: 0.75rem;
    }

    .ui-flow-arrow {
        transform: rotate(90deg);
        font-size: 1.25rem;
    }

    /* Example navigation: Make more compact */
    .example-nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        margin-top: 1.5rem;
    }

    .example-info {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        font-size: 0.8rem;
    }

    .example-indicators {
        gap: 0.5rem;
    }

    .example-dot {
        width: 10px;
        height: 10px;
    }

    .example-title {
        font-size: 0.85rem;
    }

    .example-time {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    /* Extra small screens: Further simplification */
    .ui-mockup {
        border-radius: 0.5rem;
    }

    .ui-header {
        padding: 0.4rem 0.6rem;
        height: 40px;
    }

    .ui-breadcrumb {
        font-size: 0.7rem;
    }

    .ui-main {
        padding: 0.75rem;
        min-height: 240px;
    }

    .ui-content-header h3 {
        font-size: 1.1rem;
    }

    .ui-content-area {
        padding: 0.75rem;
        min-height: 160px;
    }

    .ui-ai-panel {
        max-height: 450px;
    }

    .ui-ai-chat {
        max-height: 280px;
        min-height: 200px;
        padding: 0.5rem;
    }

    .ui-ai-message {
        font-size: 0.75rem;
        padding: 0.5rem;
    }

    .example-nav {
        padding: 0.75rem;
        margin-top: 1rem;
    }

    .example-info {
        font-size: 0.75rem;
    }

    .example-title {
        font-size: 0.8rem;
    }
}

/* Pulse animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}