/*:root {
    /* Supercloudnow color palette */
/* --primary: #0066FF;
    --primary-dark: #0052CC;
    --accent: #00A8E8;
    --success: #00D084;
    --bg-dark: #0A1628;
    --bg-card: #1A2840;
    --bg-card-hover: #243447;
    --text-primary: #FFFFFF;
    --text-secondary: #A0AEC0;
    --text-muted: #708090;
    --border: #2D3E52; */
/* }*/
*/ * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Animated background grid */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.2;
    z-index: 0;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(60px, 60px);
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* Hero Section */
@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
        transform: translateX(-50%) scale(1);
    }

    50% {
        opacity: 0.8;
        transform: translateX(-50%) scale(1.1);
    }
}

.feature-hero-content {
    margin-top: 40px;
    text-align: center;
    position: relative;
}

.feature-hero-badge {
    padding: 0.4rem 1rem;
    margin-top: 54px;
    display: inline-block;
    background: rgba(0, 102, 255, 0.1);
    border: 1px solid rgba(0, 102, 255, 0.3);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    animation: slideUp 1s ease-out 0.2s backwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.feature-hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.6;
    animation: slideUp 1s ease-out 0.4s backwards;
}

.feature-hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: slideUp 1s ease-out 0.6s backwards;
}

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

/* Mobile/Tablet Styles (Small Screens) */
@media (max-width: 768px) {
    .btn {
        padding: 0.6rem 1.5rem;
        /* Smaller height and width */
        font-size: 0.9rem;
        /* Slightly smaller text for better fit */
        border-radius: 6px;
        /* Optional: tighter corners for smaller buttons */
        margin: 0;
    }
}

@media (max-width: 444px) {
    .btn {
        padding: 0.5rem 1.2rem;
        /* Even smaller for very small screens */
        font-size: 0.8rem;
        margin: 0;
    }
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 102, 255, 0.5);
}

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

.btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(0, 102, 255, 0.05);
}

/* Product Screenshot */
.feature-hero-screenshot {
    margin-top: -2rem;
    margin-bottom: 4rem;
}

.screenshot-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    /*box-shadow: 0 20px 60px rgba(0, 102, 255, 0.15);*/
}

.screenshot-container img {
    width: 100%;
    border-radius: 12px;
    display: block;
}

/* Stats Section */
.stats {
    padding: 3rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    background: var(--bg-card-hover);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--success), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

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

/* Section Styles */
.section {
    padding: 1rem 0;
}

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

.section-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0, 168, 232, 0.1);
    border: 1px solid rgba(0, 168, 232, 0.3);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    margin-top: 2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

h2 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.section-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(0, 102, 255, 0.2);
}

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

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

/* Base Feature Card Title defaults */
.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

/* Row-based Header for Unified/Solution pages */
.feature-card-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.feature-card-header .feature-icon {
    width: 42px;
    height: 42px;
    background: transparent;
    margin-bottom: 0;
    padding: 0;
    font-size: 1.4rem;
}

.feature-card-header .feature-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.feature-card-header h3 {
    color: #ffffff !important;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Link adjustments */
.feature-card-link {
    text-decoration: none !important;
}

.feature-card-link:hover h3 {
    color: var(--primary) !important;
}



.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}



/* Architecture Section */
.architecture {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3rem;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.architecture::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 168, 232, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.workflow-diagram {
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.workflow-diagram img {
    width: 100%;
    /* max-width: 900px; */
    border-radius: 12px;
    border: 1px solid var(--border);
}

.flow-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 992px) {
    .flow-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .flow-steps {
        grid-template-columns: 1fr;
    }
}

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

.flow-number {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.3);
}

.flow-step h4 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.flow-step p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Interface Showcase */
.interface-showcase {
    margin-top: 3rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.interface-showcase::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 168, 232, 0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.interface-showcase h3 {
    font-size: 1.7rem;
    margin-bottom: 1.2rem;
    position: relative;
    z-index: 1;
}

.interface-showcase p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.05rem;
    position: relative;
    z-index: 1;
}

.interface-showcase img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

/* Code Section */
.code-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    margin: 3rem 0;
}

.code-header {
    margin-bottom: 1.5rem;
}

.code-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

pre {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    overflow-x: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

code {
    color: var(--accent);
}

.code-comment {
    color: var(--text-muted);
}

.code-keyword {
    color: #FF6B9D;
}

.code-string {
    color: var(--success);
}

/* CTA Section */
.cta {
    padding: 5rem 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.08), rgba(0, 168, 232, 0.04));
    border: 1px solid var(--border);
    border-radius: 24px;
    margin: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.15) 0%, transparent 70%);
    animation: pulse 6s ease-in-out infinite;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta h2 {
    margin-bottom: 1.5rem;
}

.cta p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}



html {
    scroll-behavior: smooth;
}

/* ===============================
   FEATURE TABS (Analyzer)
   =============================== */

.feature-tabs {
    margin-top: 4rem;
}

.tabs-container {
    margin-top: 3rem;
}

/* Tabs Navigation */
.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.tab-btn {
    padding: 0.65rem 1.4rem;
    border-radius: 999px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.tab-btn:hover {
    border-color: var(--accent);
    background: var(--bg-card-hover);
}

.tab-btn.active {
    color: var(--text-primary);
    border-color: var(--primary);
    background: linear-gradient(135deg,
            rgba(0, 102, 255, 0.18),
            rgba(0, 168, 232, 0.12));
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.25);
}

/* Tab Panels */
.tabs-content {
    position: relative;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeUpTab 0.4s ease;
}

@keyframes fadeUpTab {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

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

/* Tab Layout */
.tab-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.7fr;
    gap: 3rem;
    align-items: start;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3rem;
    position: relative;
}

.tab-grid::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle,
            rgba(0, 168, 232, 0.08),
            transparent 70%);
}

/* Tab Text */
.tab-text {
    position: relative;
    z-index: 1;
}

.tab-text h3 {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.tab-text p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.tab-text ul {
    margin-top: 1.5rem;
    padding-left: 1.2rem;
}

.tab-text li {
    margin-bottom: 0.6rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Tab Visual */
.tab-visual {
    position: relative;
    z-index: 1;
}

.tab-visual img {
    width: 100%;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--bg-dark);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

/* Responsive */


.plyr {
   border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  overflow: hidden;
}

.plyr video {
  height: auto !important;
  object-fit: contain !important;
}

.plyr__control--overlaid {
  background: rgba(0, 102, 255, 0.8);
}

.plyr--full-ui input[type=range] {
  color: #00A8E8;
}

/* ===============================
   Tab Video (Click-to-Play)
   =============================== */

.tab-visual {
    position: relative;
}

.video-top-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.video-top-layout .tab-text {
  max-width: 800px;
}

.video-top-layout .tab-visual {
  width: 100%;
}

.video-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    /* 🔑 above video */

    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;

    background: rgba(10, 22, 40, 0.55);
    /* 🔑 visible initially */
    cursor: pointer;

    opacity: 1;
    /* 🔑 force visible */
    transition: background 0.25s ease, opacity 0.25s ease;
}


.video-overlay:hover {
    background: rgba(10, 22, 40, 0.65);
}

.video-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ===============================
   INLINE VIDEO (NO CROP)
   =============================== */

.inline-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    /* 🔑 preserves real video shape */
    height: auto;

    object-fit: contain;
    background: #000;

    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
    display: block;
}

.tab-visual video {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;

    object-fit: contain;
    background: #000;

    border-radius: 14px;
    border: 1px solid var(--border);
    display: block;
}




/* Transparent expand icon */
.video-expand-btn {
    position: absolute;
    right: 12px;
    bottom: 12px;

    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);

    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;

    width: 34px;
    height: 34px;
    border-radius: 8px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 16px;
    cursor: pointer;

    z-index: 4;
    /* 🔑 stays above video */
    transform: translateZ(0);
    /* 🔑 prevents subpixel shift */
}


.video-expand-btn:hover {
    background: rgba(0, 0, 0, 0.55);
    transform: scale(1.05);
}

.video-wrapper {
    position: relative;
    background: #000;
    /* 🔑 prevents blue bleed */
    border-radius: 14px;
    overflow: hidden;
    max-width: 1100px;
  margin: 0 auto;
    /* 🔑 clips children */
}

/* Hint floats over the video, does NOT add height */
.video-hint {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1.4rem;
    /* visually below video */

    text-align: right;
    font-size: 0.8rem;
    color: var(--text-muted);

    pointer-events: none;
}

/* ===============================
   VIDEO MODAL
   =============================== */

.video-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
}

.video-modal.active {
    display: block;
}

.video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
}

.video-modal-content {
    position: relative;
    z-index: 2;

    max-width: 90vw;
    max-height: 90vh;

    margin: auto;
    top: 50%;
    transform: translateY(-50%);

    background: #000;
    border-radius: 16px;
    overflow: hidden;
}

/* Modal video — NEVER crop */
.video-modal-content video {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    /* 🔑 */
    display: block;
}

/* Close button — ALWAYS clickable */
.video-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;

    z-index: 5;
    /* 🔑 ABOVE VIDEO */
    pointer-events: auto;

    width: 36px;
    height: 36px;

    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;

    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

/* =====================================================
   GLOBAL RESPONSIVE OVERRIDES
   (Must be at the end to ensure proper cascading)
   ===================================================== */

@media (max-width: 900px) {
    .tab-grid {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 2rem;
    }

    .tab-text h3 {
        font-size: 1.5rem;
    }

    .tab-visual video {
        height: auto !important;
    }

    .tabs-nav {
        gap: 0.5rem;
    }

    .tab-btn {
        padding: 0.55rem 1.1rem;
        font-size: 0.9rem;
    }

    .tab-visual .video-hint {
        position: relative;
        bottom: auto;
        margin-top: 1rem;
        text-align: center;
        width: 100%;
        font-size: 0.85rem;
        opacity: 0.85;
        pointer-events: auto;
    }
}


/* 🟢 Tablet Adjustments (< 768px) */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .feature-hero-subtitle {
        font-size: 1.1rem;
    }

    /* Progressive scale - More generous above 445px */
    h2 {
        font-size: 2.5rem;
    }

    .section-description {
        font-size: 1.15rem;
    }

    .feature-hero-buttons {
        flex-direction: column;
    }

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

    .flow-steps {
        grid-template-columns: 1fr;
    }

    .architecture {
        padding: 2rem;
        margin: 2rem 0;
    }

    .workflow-diagram {
        margin-bottom: 2rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .cta {
        padding: 4rem 1.5rem;
        margin: 3.5rem 0;
    }

    .cta p {
        font-size: 1.15rem;
    }

    .interface-showcase {
        padding: 2rem;
        margin-top: 2rem;
    }

    .interface-showcase h3 {
        font-size: 1.5rem;
    }

    .interface-showcase p {
        font-size: 1rem;
    }

    .code-section {
        padding: 2rem;
        margin: 2rem 0;
    }

    .code-header h3 {
        font-size: 1.3rem;
    }

    pre {
        padding: 1.5rem;
        font-size: 0.85rem;
    }

    .tab-visual .video-hint {
        margin-top: 0.85rem;
        font-size: 0.8rem;
    }
}

/* 🟢 Mobile adjustments (< 480px) */
@media (max-width: 480px) {
    .feature-card {
        padding: 1rem;
    }

    h2 {
        font-size: 2.1rem;
    }

    .section-description {
        font-size: 1.1rem;
    }

    .feature-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .feature-card p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .feature-icon {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .architecture {
        padding: 1.25rem;
        margin: 1.5rem 0;
        border-radius: 12px;
    }

    .workflow-diagram {
        margin-bottom: 1.5rem;
    }

    .flow-number {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .flow-step h4 {
        font-size: 1.1rem;
    }

    .flow-step p {
        font-size: 0.85rem;
    }

    .stat-card {
        padding: 1.25rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .cta {
        padding: 3rem 1.25rem;
        margin: 2.5rem 0;
        border-radius: 20px;
    }

    .cta p {
        font-size: 1.05rem;
        margin-bottom: 2rem;
    }

    .interface-showcase {
        padding: 1.5rem;
        margin-top: 1.5rem;
        border-radius: 16px;
    }

    .interface-showcase h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .interface-showcase p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .code-section {
        padding: 1.5rem;
        margin: 1.5rem 0;
        border-radius: 12px;
    }

    .code-header h3 {
        font-size: 1.15rem;
    }

    pre {
        padding: 1.25rem;
        font-size: 0.8rem;
    }

    /* Tab Grid Mobile */
    .tab-grid {
        padding: 1.25rem;
        gap: 1.5rem;
        border-radius: 12px;
    }

    .tab-text h3 {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }

    .tab-text p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .tab-text ul {
        margin-top: 1rem;
    }

    .tab-text li {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }

    .tab-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .video-overlay {
        font-size: 0.9rem;
    }

    .video-expand-btn {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .tab-visual .video-hint {
        margin-top: 0.75rem;
        font-size: 0.75rem;
    }
}

/* 🟢 Extra Small Mobile (< 368px) */
@media (max-width: 368px) {
    .feature-card {
        padding: 0.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .section-description {
        font-size: 0.9rem;
    }

    .feature-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.4rem;
    }

    .feature-card p {
        font-size: 0.85rem;
        line-height: 1.3;
    }

    .feature-icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
    }

    .architecture {
        padding: 0.8rem;
    }

    .flow-number {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .flow-step h4 {
        font-size: 1rem;
    }

    .flow-step p {
        font-size: 0.8rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .cta {
        padding: 2rem 1rem;
        margin: 2rem 0;
        border-radius: 16px;
    }

    .cta p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .interface-showcase {
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 12px;
    }

    .interface-showcase h3 {
        font-size: 1.1rem;
    }

    .interface-showcase p {
        font-size: 0.85rem;
    }

    .code-section {
        padding: 1rem;
        margin: 1rem 0;
        border-radius: 10px;
    }

    .code-header h3 {
        font-size: 1rem;
    }

    pre {
        padding: 1rem;
        font-size: 0.75rem;
    }

    /* Tab Grid Small Mobile */
    .tab-grid {
        padding: 1rem;
    }

    .tab-text h3 {
        font-size: 1.1rem;
    }

    .tab-text p {
        font-size: 0.85rem;
    }

    .tab-visual .video-hint {
        margin-top: 0.6rem;
        font-size: 0.7rem;
    }
}

/* ================= SHYFTQL AI ================= */

.shyftql-ai {
  padding: 120px 20px;
  
}

.shyftql-ai .container {
  max-width: 1200px;
  margin: 0 auto;
 
}

.ai-hero-card {
  position: relative;
  padding: 100px 80px;
  text-align: center;
  overflow: hidden;
   
  margin: 0 auto; 
}

/* glow effect */
/* .ai-hero-card::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0,123,255,0.25), transparent 70%);
  top: -100px;
  left: -100px;
  filter: blur(60px);
} */

.ai-badge {
  display: inline-block;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(0,123,255,0.15);
  color: #4da3ff;
  margin-top: 10px;
  margin-bottom: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.ai-heading {
  
  font-weight: 800;
  font-size: 56px;   /* was ~42 */
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: #fff;
}

.ai-heading span {
  background: linear-gradient(90deg, #4da3ff, #7cf3ff, #4da3ff);
  background-size: 200% auto;

  background-clip: text;              /* ✅ add this */
  -webkit-background-clip: text;

  color: transparent;                 /* ✅ use this instead */
  -webkit-text-fill-color: transparent;

  display: inline;   
  animation: gradientMove 4s linear infinite;                 /* ✅ IMPORTANT */
}

.ai-subtext {
  
   font-size: 18px;
  margin-top: 20px;
  color: rgba(255,255,255,0.75);
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

/* feature pills */
.ai-features {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.ai-demo-chat {
  margin: 60px auto 0;
  width: 100%;
  max-width: 650px;

  padding: 20px;
  border-radius: 16px;

  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255,255,255,0.08);

  backdrop-filter: blur(10px);
}

/* message bubbles */
.chat-msg {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  margin: 10px 0;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.4s ease forwards;
}

.chat-user {
  text-align: left;
  color: #9ca3af;
}

.chat-ai {
  text-align: left;
  color: #7cf3ff;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.ai-pill {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 14px;
  color: #dbeafe;
  backdrop-filter: blur(6px);
  transition: all 0.25s ease;
}
.ai-pill:hover {
  background: rgba(0,123,255,0.15);
  transform: translateY(-2px);
}



@keyframes gradientMove {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* buttons */
.ai-actions {
  margin-top: 35px;
  display: flex;
  justify-content: center;
  gap: 15px;
}
.ai-inline-badge {
  display: inline-block;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(124,243,255,0.15);
  color: #7cf3ff;
  margin-bottom: 15px;
  font-weight: 600;
}



.ai-demo-title {
  margin-left: 10px;
  font-size: 12px;
  color: #9ca3af;
}

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

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }


/* Cursor */
#ai-demo-text::after {
  content: "|";
  animation: blink 1s infinite;
  margin-left: 4px;
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}




#ai-demo-text {
  padding: 20px;
  color: #00ffd0;
  font-family: monospace;
  min-height: 140px;
  font-size: 14px;
}



.ai-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 60px;
}

/* LEFT */
.ai-left {
  flex: 1;
}

.ai-left h2 {
  font-size: 36px;
  margin: 10px 0 20px;
}

.ai-desc {
  color: #9ca3af;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* FLOW STEPS */
.ai-flow {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

/* vertical line */
.ai-flow::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(#00ffd0, transparent);
  opacity: 0.4;
}

.ai-step {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

/* dot */
.ai-step span {
  width: 12px;
  height: 12px;
  background: #00ffd0;
  border-radius: 50%;
  box-shadow: 0 0 10px #00ffd0;
}

/* text */
.ai-step p {
  margin: 0;
  color: #cbd5f5;
}

/* RIGHT */
.ai-right {
  flex: 1;
}

/* DEMO */
.ai-demo-box {
  background: linear-gradient(180deg, #0b1220, #020617);
  border-radius: 14px;
  border: 1px solid rgba(0,255,200,0.15);
  overflow: hidden;
  animation: float 4s ease-in-out infinite;
}

.ai-step {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.6s ease forwards;
}

.ai-step:nth-child(1){animation-delay:0.2s;}
.ai-step:nth-child(2){animation-delay:0.4s;}
.ai-step:nth-child(3){animation-delay:0.6s;}
.ai-step:nth-child(4){animation-delay:0.8s;}



.ai-query span {
  color: #00ffd0;
  font-size: 12px;
}



/* CHAT */
.ai-chat {
  background: rgba(0,255,200,0.05);
  border: 1px solid rgba(0,255,200,0.15);
  border-radius: 10px;
  padding: 14px;
  color: #cbd5f5;
  animation: fadeUp 0.8s ease forwards;
}

/* stagger animation */
.ai-query { animation: fadeUp 0.4s ease forwards; }
.ai-code { animation-delay: 0.3s; }
.ai-chat { animation-delay: 0.6s; }

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Query */
.ai-query {
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  padding: 12px;
  font-family: monospace;
   
  font-size: 14px;
}

/* Code */
.ai-code {
  background: #020617;
  border-radius: 10px;
  padding: 12px;
  color: #38bdf8;
  font-family: monospace;
  border: 1px solid rgba(0,255,200,0.2);
}

/* Chat */
.ai-chat {
  background: rgba(0,255,200,0.05);
  border-radius: 10px;
  padding: 12px;
  color: #cbd5f5;
}

/* subtle pulse */
@keyframes pulse {
  0% { box-shadow: 0 0 0 rgba(0,255,200,0.2); }
  50% { box-shadow: 0 0 20px rgba(0,255,200,0.3); }
  100% { box-shadow: 0 0 0 rgba(0,255,200,0.2); }
}


/* scroll */
.ai-chat-window::-webkit-scrollbar {
  width: 6px;
}
.ai-chat-window::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
}



/* Insight AI */
.chat-msg.assistant:nth-last-child(-n+4) {
  border-left: 2px solid #38bdf8;
}

.ai-chat-window {
  background: #020617;
  border: 1px solid rgba(0,255,200,0.15);
  border-radius: 14px;
  padding: 12px;

  height: 400px;              /* compact */
  overflow-y: auto;

  font-family: 'JetBrains Mono', monospace;
  box-shadow: 0 0 40px rgba(0,255,200,0.05);
}

/* smooth scroll */
.ai-chat-window {
  scroll-behavior: smooth;
}

/* messages */
.chat-msg {
  margin-bottom: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  max-width: 80%;
  font-size: 13px;
  line-height: 1.4;
 opacity: 1;   /* FIX */
  animation: none;  /* FIX */
}

/* assistant */
.chat-msg.assistant {
  background: rgba(0,255,200,0.08);
  color: #cbd5f5;
}

/* user */
.chat-msg.user {
  background: rgba(255,255,255,0.05);
  margin-left: auto;
  text-align: right;
  color: #e5e7eb;
}

/* typing */
.chat-msg.typing {
  color: #00ffd0;
  font-style: italic;
}

/* code */
.chat-msg.code {
  background: #000;
  border: 1px solid rgba(0,255,200,0.2);
}

.chat-msg.code pre {
  margin: 0;
  color: #38bdf8;
  font-size: 12px;
}

/* animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



#chat-container {
  display: flex;
  flex-direction: column;
}

/* header */
.ai-chat-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 12px;
  color: #9ca3af;
}

#ai-mode-title {
  margin-left: 10px;
  transition: all 0.3s ease;
}

/* content transition */
#chat-container {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;

  opacity: 1;
  transition: opacity 0.4s ease;
}

#chat-container.fade-out {
  opacity: 0;
}

#chat-container.fade-out {
  opacity: 0;
  transition: opacity 0.3s ease;
}

#chat-container {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* assistant */
.ai-chat-window.assistant { border-color: #00ffd0; }

/* ql */
.ai-chat-window.ql { border-color: #38bdf8; }

/* insight */
.ai-chat-window.insight { border-color: #a78bfa; }

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

.ai-tab {
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid rgba(0,255,200,0.2);
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  transition: 0.3s;
}

.ai-tab.active {
  background: rgba(0,255,200,0.1);
  color: #00ffd0;
  border-color: #00ffd0;
}

/* panes */
.ai-pane {
  display: none;
}

.ai-pane.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

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

/* ================= MOBILE RESPONSIVE ================= */

/* tablets */
@media (max-width: 992px) {
  .ai-hero-card {
    padding: 70px 40px;
  }

  .ai-heading {
    font-size: 42px;
  }

  .ai-subtext {
    font-size: 16px;
  }

  .ai-demo-chat {
    margin-top: 40px;
  }
}

/* mobile */
@media (max-width: 576px) {
  .shyftql-ai {
    padding: 70px 15px;
  }

  .ai-hero-card {
    padding: 50px 20px;
    text-align: center;
  }

  .ai-heading {
    font-size: 30px;
    line-height: 1.2;
  }

  .ai-subtext {
    font-size: 14px;
    margin-top: 15px;
    padding: 0 5px;
  }

  .ai-features {
    gap: 8px;
  }

  .ai-pill {
    font-size: 12px;
    padding: 8px 12px;
  }

  .ai-actions {
    flex-direction: column;
    gap: 10px;
  }

  .ai-actions .btn {
    width: 100%;
  }

  .ai-demo-chat {
    margin-top: 30px;
    padding: 15px;
  }

  .ai-chat-window {
    height: 280px; /* smaller for mobile */
  }

  .chat-msg {
    font-size: 12px;
    max-width: 90%;
  }
}

/* very small devices */
@media (max-width: 380px) {
  .ai-heading {
    font-size: 26px;
  }

  .ai-pill {
    font-size: 11px;
    padding: 6px 10px;
  }
}

/* ================= AI TABS SECTION RESPONSIVE ================= */

/* tablets */
@media (max-width: 992px) {
  .ai-container {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .ai-left,
  .ai-right {
    width: 100%;
  }

  .ai-left h2 {
    font-size: 28px;
  }

  .ai-left h3 {
    font-size: 18px;
  }

  .ai-desc {
    font-size: 15px;
  }

  .ai-flow {
    align-items: center;
  }

  .ai-flow::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .ai-step {
    justify-content: center;
  }
}

/* mobile */
@media (max-width: 576px) {

  .section-header {
    text-align: center;
    padding: 0 10px;
  }

  .section-title {
    font-size: 24px;
    line-height: 1.3;
  }

  .section-description {
    font-size: 14px;
  }

  /* tabs scroll instead of squish */
  .ai-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 10px;
  }

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

  .ai-tab {
    flex: 0 0 auto;
    font-size: 13px;
    padding: 6px 14px;
    white-space: nowrap;
  }

  /* content */
  .ai-container {
    gap: 30px;
  }

  .ai-left h2 {
    font-size: 22px;
  }

  .ai-left h3 {
    font-size: 16px;
  }

  .ai-desc {
    font-size: 13px;
  }

  /* flow steps cleaner */
  .ai-flow {
    gap: 16px;
  }

  .ai-step p {
    font-size: 13px;
    text-align: center;
  }

  .ai-step span {
    width: 10px;
    height: 10px;
  }

  /* chat box */
  .ai-chat-window {
    height: 260px;
  }
}

/* very small devices */
@media (max-width: 380px) {
  .section-title {
    font-size: 20px;
  }

  .ai-left h2 {
    font-size: 20px;
  }

  .ai-tab {
    font-size: 12px;
    padding: 5px 12px;
  }
}



/* ===== FIX FLOW TIMELINE ON MOBILE (KEEP LEFT STYLE) ===== */

@media (max-width: 576px) {

  .ai-flow {
    align-items: flex-start; /* IMPORTANT: stop centering */
    padding-left: 10px;
  }

  .ai-flow::before {
    left: 13px;              /* keep line on left */
    transform: none;        /* remove center shift */
  }

  .ai-step {
    flex-direction: row;    /* keep horizontal layout */
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
  }

  .ai-step span {
    margin-top: 6px;        /* align dot with text nicely */
    flex-shrink: 0;
  }

  .ai-step p {
    text-align: left;
    font-size: 13px;
    line-height: 1.5;
  }
}