@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;600;800&display=swap');

:root {
    --bg-color: #070709;
    --card-bg: rgba(20, 20, 28, 0.6);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #8e8e93;
    --text-tertiary: #48484a;
    --accent-cyan: #00f2fe;
    --accent-blue: #4facfe;
    --accent-green: #30d158;
    --accent-gold: #ffcc00;
    --accent-violet: #7f00ff;
    --gradient-primary: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    --gradient-glow: linear-gradient(180deg, rgba(0, 242, 254, 0.15), rgba(127, 0, 255, 0.05));
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --max-width: 1200px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-snappy: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-color);
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Background Gradients Glows */
.ambient-glow-1 {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.08) 0%, rgba(127, 0, 255, 0.01) 70%);
    top: -100px;
    left: -100px;
    pointer-events: none;
    z-index: 0;
    filter: blur(80px);
}

.ambient-glow-2 {
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(127, 0, 255, 0.05) 0%, rgba(79, 172, 254, 0) 70%);
    top: 50%;
    right: -200px;
    pointer-events: none;
    z-index: 0;
    filter: blur(100px);
}

/* General Layout Elements */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

section {
    position: relative;
    padding: 120px 0;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.section-tag {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
    display: inline-block;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin-bottom: 60px;
}

/* Nav Bar Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(7, 7, 9, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--card-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(to right, #ffffff, #8e8e93);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu-toggle,
.mobile-menu {
    display: none;
}

.mobile-menu-toggle {
    position: relative;
    z-index: 2;
    width: 44px;
    height: 44px;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    pointer-events: auto;
}

.mobile-menu-toggle span {
    pointer-events: none;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--text-primary);
    transition: var(--transition-smooth);
}

.mobile-menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.mobile-menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    display: none;
    border-top: 1px solid var(--card-border);
    background: rgba(7, 7, 9, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 18px 24px 22px;
}

.mobile-menu.is-open {
    display: block;
}

.mobile-menu-nav {
    display: grid;
    gap: 14px;
}

.mobile-menu-nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    padding: 6px 0;
}

.mobile-menu-actions {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--card-border);
}

.mobile-menu-actions .btn {
    min-width: 0;
    text-align: center;
}

/* Language Switcher Button */
.lang-switch-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-body);
    transition: var(--transition-smooth);
}

.lang-switch-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Button UI */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 24px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: var(--gradient-primary);
    color: #000;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 242, 254, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 242, 254, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--card-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1.05rem;
    border-radius: 30px;
}

/* Hero Section */
.hero-section {
    padding-top: 130px;
    padding-bottom: 40px;
    text-align: center;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-tag {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--accent-cyan);
    font-size: 1rem;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    background: linear-gradient(180deg, #ffffff 30%, #a2a2ab 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateY(25px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

.hero-engine-sub {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--accent-blue);
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(25px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    letter-spacing: 0.02em;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 780px;
    margin: 0 auto 32px auto;
    font-weight: 400;
    line-height: 1.7;
    opacity: 0;
    transform: translateY(25px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards;
}

.hero-indicators {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    max-width: 840px;
    margin: 0 auto 32px auto;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 20px 10px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(25px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards;
}

.hero-ind-item {
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-ind-item:last-child {
    border-right: none;
}

.hero-ind-num {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
    white-space: nowrap;
}

.hero-ind-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(25px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

/* Hero UI Mockup Grid */
.hero-mockup-wrapper {
    width: 100%;
    margin-top: 40px;
    border-radius: 16px;
    border: 1px solid var(--card-border);
    background: linear-gradient(180deg, rgba(20,20,28,0.7) 0%, rgba(10,10,14,0.9) 100%);
    padding: 6px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
    opacity: 0;
    transform: scale(0.96) translateY(30px);
    animation: scaleUpIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

.window-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.window-dots {
    display: flex;
    gap: 8px;
}

.window-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ff5f56;
}
.window-dot:nth-child(2) { background-color: #ffbd2e; }
.window-dot:nth-child(3) { background-color: #27c93f; }

.window-title {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: var(--font-body);
}

.window-body {
    padding: 30px;
    min-height: 400px;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    text-align: left;
}

@media(max-width: 900px) {
    .window-body {
        grid-template-columns: 1fr;
    }
}

/* Mockup Sidebar */
.mockup-sidebar {
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding-right: 20px;
}

.mockup-sidebar-item {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mockup-sidebar-item.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-weight: 500;
}

/* Mockup Main Board */
.mockup-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mockup-header-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.stat-box {
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    padding: 16px;
    border-radius: 12px;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.stat-val {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
}

.stat-val.highlight {
    color: var(--accent-cyan);
}

/* Feature grid section */
.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

@media (max-width: 800px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
}

.agent-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.agent-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}

.agent-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-cyan);
    box-shadow: 0 15px 35px rgba(0, 242, 254, 0.15), 0 5px 15px rgba(0, 0, 0, 0.4);
}

.agent-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--accent-cyan);
}

.agent-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.agent-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.agent-bullets {
    list-style: none;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.agent-bullets li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.agent-bullets li::before {
    content: '→';
    color: var(--accent-cyan);
}

/* Pain & Benefit comparison cards */
.comparison-section {
    background: linear-gradient(180deg, var(--bg-color) 0%, rgba(20, 20, 28, 0.3) 100%);
}

.comparison-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

@media(max-width: 800px) {
    .comparison-wrapper {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.comp-card {
    border-radius: 24px;
    padding: 40px;
    border: 1px solid var(--card-border);
}

.comp-card.pain {
    background: rgba(20, 10, 10, 0.4);
    border-color: rgba(255, 100, 100, 0.1);
}

.comp-card.benefit {
    background: rgba(10, 20, 20, 0.4);
    border-color: rgba(0, 242, 254, 0.15);
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.03);
}

.comp-title {
    font-size: 1.6rem;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.comp-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comp-item {
    font-size: 0.95rem;
}

.comp-item-header {
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comp-item-body {
    color: var(--text-secondary);
    padding-left: 20px;
}

.pain .comp-item-header { color: #ff6b6b; }
.benefit .comp-item-header { color: var(--accent-cyan); }

/* Interactive diagnostic loop section */
.interactive-section {
    background: #08080c;
}

.demo-board {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 320px 1fr;
    min-height: 550px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.6);
}

@media(max-width: 900px) {
    .demo-board {
        grid-template-columns: 1fr;
    }
}

.demo-control-panel {
    background: rgba(10, 10, 15, 0.9);
    border-right: 1px solid var(--card-border);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.demo-cases-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.demo-case-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    padding: 16px;
    border-radius: 12px;
    text-align: left;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: var(--font-body);
}

.demo-case-btn:hover {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.15);
}

.demo-case-btn.active {
    background: rgba(0, 242, 254, 0.08);
    border-color: var(--accent-cyan);
    color: var(--text-primary);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
}

.demo-canvas {
    padding: 40px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.demo-stage {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.demo-loop-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 30px;
}

@media(max-width: 600px) {
    .demo-loop-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

.loop-step-indicator {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    transition: var(--transition-smooth);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.loop-step-indicator.active {
    background: rgba(0, 242, 254, 0.05);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.loop-step-indicator.completed {
    background: rgba(79, 172, 254, 0.1);
    border-color: var(--accent-blue);
    color: #ffffff;
}

/* Diagnosis Console Output */
.console-box {
    background: #030304;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 24px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.8);
    position: relative;
}

.console-lines {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.console-line {
    margin-bottom: 6px;
    opacity: 0;
    transform: translateX(-5px);
    animation: slideInLeft 0.3s ease forwards;
}

.console-line.success {
    color: #4cd964;
}

.console-line.warning {
    color: #ffcc00;
}

.console-line.info {
    color: var(--accent-cyan);
}

.console-loader {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--accent-cyan);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-cyan);
    position: relative;
    display: inline-block;
}

.pulse-dot::before,
.pulse-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--accent-cyan);
    transform: translate(-50%, -50%);
    opacity: 0.8;
    pointer-events: none;
}

.pulse-dot::before {
    animation: rippleWave 2s cubic-bezier(0.25, 0, 0, 1) infinite;
}

.pulse-dot::after {
    animation: rippleWave 2s cubic-bezier(0.25, 0, 0, 1) infinite 1s;
}

@keyframes rippleWave {
    0% {
        width: 8px;
        height: 8px;
        opacity: 0.8;
    }
    100% {
        width: 32px;
        height: 32px;
        opacity: 0;
    }
}

/* Business metrics cards */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

@media(max-width: 1080px) {
    .metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media(max-width: 600px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }
}

.metric-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: 100%;
}

.metric-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-blue);
    box-shadow: 0 15px 35px rgba(79, 172, 254, 0.15), 0 5px 15px rgba(0, 0, 0, 0.4);
}

.metric-num {
    font-size: clamp(1.4rem, 2.5vw, 2.0rem);
    font-weight: 800;
    font-family: var(--font-heading);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    margin-bottom: 12px;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.metric-label {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.metric-desc {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.5;
}

/* Traction Section */
.traction-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

@media(max-width: 800px) {
    .traction-wrapper {
        grid-template-columns: 1fr;
    }
}

.traction-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 100%);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 40px;
    transition: var(--transition-smooth);
}

.traction-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-cyan);
    box-shadow: 0 15px 35px rgba(0, 242, 254, 0.12), 0 5px 15px rgba(0, 0, 0, 0.4);
}

.trac-tag {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--accent-cyan);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.trac-title {
    font-size: 1.6rem;
    margin-bottom: 16px;
}

.trac-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.trac-details {
    list-style: none;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 20px;
}

.trac-details li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.85rem;
}

.trac-lbl { color: var(--text-secondary); }
.trac-val { color: var(--text-primary); font-weight: 500; }

/* Contact Section & Form */
.contact-section {
    background: linear-gradient(180deg, var(--bg-color) 0%, #030304 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
}

@media(max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-item {
    margin-bottom: 30px;
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #ffffff;
}

.contact-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact-item a {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 500;
}

.contact-form-container {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.form-group-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

@media(max-width: 600px) {
    .form-group-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 12px 16px;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.1);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

/* Success Modal & Overlay */
.form-success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 7, 9, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.form-success-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.success-box {
    background: #0f0f15;
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 50px 40px;
    text-align: center;
    max-width: 480px;
    width: 90%;
    transform: scale(0.9);
    transition: var(--transition-smooth);
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
}

.form-success-overlay.active .success-box {
    transform: scale(1);
}

.success-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(0, 242, 254, 0.1);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
}

.success-box h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.success-box p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 30px;
}

/* Footer style */
footer {
    border-top: 1px solid var(--card-border);
    padding: 60px 0 40px 0;
    background-color: #030304;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media(max-width: 600px) {
    .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

.footer-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--text-primary);
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleUpIn {
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulsing {
    0% {
        transform: scale(0.9);
        opacity: 0.4;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(0.9);
        opacity: 0.4;
    }
}

/* Mock Telemetry Table Styles */
.mock-telemetry-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    overflow: hidden;
}

.mock-telemetry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
}

.mock-telemetry-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.mock-telemetry-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--accent-cyan);
}

.mock-table-wrapper {
    flex: 1;
    overflow-x: auto;
}

.mock-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    font-size: 0.8rem;
    text-align: left;
}

.mock-table th,
.mock-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.mock-table th {
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
}

.mock-table tbody tr {
    transition: var(--transition-smooth);
}

.mock-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.font-mono {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

.badge-success {
    background: rgba(76, 217, 100, 0.1);
    color: #4cd964;
    border: 1px solid rgba(76, 217, 100, 0.2);
}

/* Diagnostic Report Card Styling */
.demo-report-card {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    background: rgba(15, 15, 23, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--accent-cyan);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 40px rgba(0, 242, 254, 0.2);
    z-index: 10;
    opacity: 0;
    transform: scale(0.95) translateY(15px);
    animation: scaleUpIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
}

.report-header-left {
    display: flex;
    flex-direction: column;
}

.report-logo {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--accent-cyan);
}

.report-id {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    font-family: monospace;
}

.report-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 0;
}

.report-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.report-cell {
    display: flex;
    flex-direction: column;
}

.report-lbl {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 2px;
}

.report-val {
    font-size: 0.85rem;
    color: #ffffff;
    font-weight: 500;
}

.report-action-box {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 10px;
}

/* Mobile responsive fixes */
@media(max-width: 768px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    .ambient-glow-1,
    .ambient-glow-2 {
        display: none;
    }
    header {
        right: 0;
        width: 100dvw;
        max-width: 100%;
        overflow: hidden;
    }
    .container {
        width: 100dvw;
        max-width: 100dvw;
        padding-left: 20px;
        padding-right: 20px;
        overflow: hidden;
    }
    .logo-subbrand {
        display: none !important;
    }
    .nav-container > nav {
        display: none !important;
    }
    .nav-container {
        height: 64px;
        padding: 0 20px;
        width: 100dvw;
        max-width: 100dvw;
        min-width: 0;
        margin: 0;
        overflow: hidden;
    }
    .nav-controls {
        display: none !important;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    .logo {
        font-size: 1.55rem;
        min-width: 0;
        flex: 1 1 auto;
        max-width: calc(100dvw - 104px);
        overflow: hidden;
        white-space: nowrap;
    }
    .hero-title {
        font-size: clamp(2.35rem, 13vw, 2.75rem);
        margin-bottom: 12px;
    }
    .hero-indicators {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .hero-section {
        padding-top: 96px;
        padding-bottom: 28px;
    }
    .hero-desc {
        font-size: 1rem;
    }
    .hero-engine-sub {
        font-size: 1rem;
        line-height: 1.55;
    }
    .hero-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-bottom: 12px;
        opacity: 1;
        transform: none;
        animation: none;
    }
    .hero-actions .btn {
        width: 100%;
        min-width: 0;
        min-height: 56px;
        padding: 12px 14px;
        white-space: normal;
        line-height: 1.35;
    }
    .contact-grid,
    .contact-info,
    .contact-form-container,
    .contact-item,
    .form-group,
    .form-group-row {
        min-width: 0;
        max-width: 100%;
    }
    .contact-info p,
    .contact-item p,
    .contact-item a,
    .form-group label {
        overflow-wrap: anywhere;
    }
    .contact-form-container {
        padding: 24px 20px;
        border-radius: 16px;
    }
    .success-box {
        width: calc(100dvw - 40px);
        max-width: calc(100dvw - 40px);
        padding: 36px 24px;
    }
    .hero-tag,
    .hero-title,
    .hero-engine-sub,
    .hero-desc,
    .hero-indicators {
        opacity: 1;
        transform: none;
        animation: none;
    }
}


/* Scroll-triggered Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 3-Column Grid with Mobile Responsive Stacking */
.grid-3-col {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

@media (max-width: 900px) {
    .grid-3-col {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .mockup-header-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* Force custom visible horizontal scrollbar for tables on mobile/desktop */
.mock-table-wrapper {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px; /* space for scrollbar */
}

.mock-table-wrapper::-webkit-scrollbar {
    height: 6px !important;
    display: block !important;
}

.mock-table-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 3px;
}

.mock-table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(0, 242, 254, 0.3); /* semi-transparent cyan */
    border-radius: 3px;
}

.mock-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 242, 254, 0.6);
}


/* Mobile Title Formatting & Wrapping Prevention */
@media (max-width: 768px) {
    .section-title {
        font-size: clamp(1.4rem, 6vw, 1.8rem) !important;
    }
    .comp-title {
        font-size: clamp(1.1rem, 5vw, 1.35rem) !important;
    }
    .comp-card {
        padding: 24px 20px !important;
    }
    .traction-card {
        padding: 24px 20px !important;
    }
}

/* Chinese version title wrapping prevention */
html[lang="zh"] #onboarding .section-title,
html[lang="zh"] .comp-title span {
    white-space: nowrap !important;
}

/* English version proper layout & wrapping on word boundaries */
html[lang="en"] .comp-title {
    display: flex;
    flex-wrap: wrap;
    line-height: 1.3;
}

/* Responsive Diagnostic Report Card Layout */
.demo-report-card {
    overflow-y: auto !important; /* Allow vertical scrolling if stacked rows grow too tall on small viewports */
}

@media (max-width: 768px) {
    .report-row {
        grid-template-columns: 1fr !important; /* Stack columns vertically on mobile to prevent squeezing */
        gap: 10px !important;
    }
    .demo-report-card {
        padding: 15px !important; /* Slightly smaller padding to fit mobile viewport */
    }
    .report-body {
        gap: 8px !important;
    }
}


/* Mobile Mockup Table Collapse styling */
@media (max-width: 768px) {
    .hero-mockup-wrapper {
        display: none !important;
    }
    .mock-telemetry-container {
        max-height: 120px !important; /* Cap height to show only headers */
        overflow: hidden !important;
        position: relative !important;
        transition: max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }
    
    .mock-telemetry-container.is-expanded {
        max-height: 800px !important; /* Expand to show full table content */
    }
    
    .mock-telemetry-container::after {
        content: '' !important;
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 60px !important;
        background: linear-gradient(to top, rgba(7, 7, 9, 1) 0%, rgba(7, 7, 9, 0) 100%) !important;
        pointer-events: none !important;
        transition: opacity 0.3s !important;
        z-index: 2 !important;
    }
    
    .mock-telemetry-container.is-expanded::after {
        opacity: 0 !important;
    }
    
    .mock-expand-overlay {
        position: absolute !important;
        bottom: 12px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 5 !important;
        width: 80% !important;
        display: flex !important;
        justify-content: center !important;
        transition: opacity 0.3s !important;
    }
    
    .mock-telemetry-container.is-expanded .mock-expand-overlay {
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    .mock-expand-btn {
        background: var(--gradient-primary) !important;
        color: #000 !important;
        border: none !important;
        padding: 8px 24px !important;
        border-radius: 20px !important;
        font-size: 0.8rem !important;
        font-weight: 600 !important;
        cursor: pointer !important;
        box-shadow: 0 4px 15px rgba(0, 242, 254, 0.35) !important;
        font-family: var(--font-body) !important;
        white-space: nowrap !important;
    }
}

/* Hide expand overlay on desktop */
@media (min-width: 769px) {
    .mock-expand-overlay {
        display: none !important;
    }
}

/* Mobile Demo Redesign styles */
.mobile-demo-wrapper {
    display: none;
    margin-top: 30px;
    text-align: left;
}

@media (max-width: 768px) {
    .demo-board {
        display: none !important;
    }
    .mobile-demo-wrapper {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
}

.mobile-scenario-chips {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 20px;
    scrollbar-width: none;
    max-width: 100%;
    width: 100%;
    min-width: 0;
    -webkit-overflow-scrolling: touch;
}
.mobile-scenario-chips::-webkit-scrollbar {
    display: none;
}

.mobile-chip-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-snappy);
    font-family: var(--font-body);
    flex: 0 0 auto;
    max-width: calc(100vw - 48px);
}

.mobile-chip-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

.mobile-chip-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #000000;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}

.mobile-simulation-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: rgba(15, 15, 23, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 20px;
}

.mobile-step-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-step-card {
    display: flex;
    gap: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    align-items: flex-start;
    transition: var(--transition-smooth);
    min-width: 0;
}

.mobile-step-card .card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.mobile-step-card .card-icon svg {
    width: 18px;
    height: 18px;
}

.mobile-step-card .card-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.mobile-step-card .card-title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.mobile-step-card .card-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Final Result Card Mobile */
.mobile-result-card {
    background: linear-gradient(135deg, rgba(0, 125, 250, 0.1) 0%, rgba(48, 209, 88, 0.1) 100%);
    border: 1.5px solid var(--accent-cyan);
    border-radius: 16px;
    padding: 20px;
    margin-top: 10px;
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.15);
}

.mobile-result-card .result-header {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.mobile-result-card .result-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-result-card .result-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    font-size: 0.85rem;
}

.mobile-result-card .result-lbl {
    color: var(--text-secondary);
}

.mobile-result-card .result-val {
    color: #ffffff;
    font-weight: 500;
    text-align: right;
    overflow-wrap: anywhere;
}

/* Sticky Mobile CTA Bar */
.sticky-mobile-cta {
    display: none;
}

@media (max-width: 768px) {
    .sticky-mobile-cta {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100dvw;
        max-width: 100dvw;
        height: 70px;
        background: rgba(7, 7, 9, 0.8);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        z-index: 999;
        align-items: center;
        justify-content: center;
        padding: 0 20px;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
    }
    
    .sticky-cta-btn {
        width: 100%;
        min-width: 0;
        text-align: center;
        justify-content: center;
        padding: 12px 0 !important;
        font-size: 0.95rem !important;
        box-shadow: 0 4px 15px rgba(0, 125, 250, 0.4) !important;
    }
    
    /* Ensure page content is not hidden behind the fixed bottom bar */
    body {
        padding-bottom: 75px !important;
    }
}


