/* ==========================================================================
   InitSpec Stylesheet - Beautiful Modern CSS Design System
   ========================================================================== */

/* 1. Global Reset & Variables */
:root {
    --bg-primary: #030712;
    --bg-secondary: #0b0f19;
    --bg-card: rgba(15, 23, 42, 0.65);
    --bg-card-hover: rgba(30, 41, 59, 0.8);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(139, 92, 246, 0.3);
    
    --color-primary: #8b5cf6;
    --color-primary-glow: rgba(139, 92, 246, 0.15);
    --color-secondary: #3b82f6;
    --color-accent: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --font-family: 'Plus Jakarta Sans', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container-width: 1200px;
    --border-radius: 16px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-family);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

pre, code {
    font-family: 'Courier New', Courier, monospace;
}

/* 2. Layout & Typography */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
    position: relative;
}

.alt-bg {
    background-color: var(--bg-secondary);
}

.section-header {
    margin-bottom: 60px;
    max-width: 700px;
}

.section-header.text-center {
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.15rem;
    font-weight: 400;
}

.text-gradient {
    background: linear-gradient(135deg, #a78bfa 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

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

/* 3. Glowing Background Blobs */
.glow-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    mix-blend-mode: screen;
    animation: blob-float 15s infinite alternate ease-in-out;
}

.blob-1 {
    top: 10%;
    left: 10%;
    width: 400px;
    height: 400px;
    background-color: var(--color-primary);
}

.blob-2 {
    top: 30%;
    right: 5%;
    width: 500px;
    height: 500px;
    background-color: var(--color-secondary);
    animation-delay: -5s;
}

.blob-3 {
    bottom: 20%;
    left: 20%;
    width: 450px;
    height: 450px;
    background-color: var(--color-primary);
    animation-delay: -10s;
}

@keyframes blob-float {
    0% { transform: translate(0px, 0px) scale(1); }
    50% { transform: translate(40px, -50px) scale(1.15); }
    100% { transform: translate(-20px, 20px) scale(0.9); }
}

/* 4. Buttons & UI Elements */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-family);
    font-weight: 600;
    border-radius: 30px;
    padding: 12px 28px;
    cursor: pointer;
    transition: var(--transition);
    gap: 8px;
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5);
}

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

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.875rem;
}

/* 5. Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(3, 7, 18, 0.7);
    transition: var(--transition);
}

.nav-container {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-lang {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background-color: rgba(255, 255, 255, 0.02);
    transition: var(--transition);
    cursor: pointer;
}

.btn-lang:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.05);
}

.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-nav-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition);
}

/* 6. Hero Section */
.hero-section {
    padding: 160px 0 100px;
    position: relative;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 30px;
    padding: 6px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #a78bfa;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-security {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.security-item svg {
    color: var(--color-primary);
}

/* Hero Visual / Mockup */
.hero-visual-wrapper {
    position: relative;
}

.hero-visual-wrapper::after {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    z-index: -1;
}

.hero-visual {
    background-color: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
}

.visual-header {
    height: 40px;
    background-color: rgba(3, 7, 18, 0.5);
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-bottom: 1px solid var(--border-color);
    gap: 8px;
}

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

.window-dot.red { background-color: #ef4444; }
.window-dot.yellow { background-color: #f59e0b; }
.window-dot.green { background-color: #10b981; }

.window-title {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-family: monospace;
    margin-left: 8px;
}

.visual-body {
    padding: 24px;
}

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

.flow-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    width: 100%;
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
}

.pm-color {
    background-color: rgba(59, 130, 246, 0.15);
    color: var(--color-secondary);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.card-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.card-text p {
    font-size: 0.95rem;
    font-weight: 500;
}

.flow-line-y {
    width: 2px;
    height: 30px;
    background: linear-gradient(180deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    position: relative;
}

.flow-line-y::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--color-primary);
    filter: drop-shadow(0 2px 4px rgba(139, 92, 246, 0.5));
}

.flow-engine {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(59, 130, 246, 0.15) 100%);
    border: 1px solid var(--border-hover);
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    position: relative;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.engine-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 12px;
    border: 1px solid var(--color-primary);
    opacity: 0;
    animation: engine-pulse 2s infinite;
}

@keyframes engine-pulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.1); opacity: 0; }
}

.flow-outputs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.flow-output-card {
    border-radius: 12px;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
}

.pointer-color {
    background-color: rgba(16, 185, 129, 0.05);
    border-left: 4px solid var(--color-accent);
}

.risk-color {
    background-color: rgba(245, 158, 11, 0.05);
    border-left: 4px solid var(--color-warning);
}

.edge-color {
    background-color: rgba(239, 68, 68, 0.05);
    border-left: 4px solid var(--color-error);
}

.criteria-color {
    background-color: rgba(59, 130, 246, 0.05);
    border-left: 4px solid var(--color-secondary);
}

.test-color {
    background-color: rgba(139, 92, 246, 0.05);
    border-left: 4px solid var(--color-primary);
}

.security-color {
    background-color: rgba(239, 68, 68, 0.05);
    border-left: 4px solid var(--color-error);
}

.telemetry-color {
    background-color: rgba(16, 185, 129, 0.05);
    border-left: 4px solid var(--color-accent);
}

.scope-color {
    background-color: rgba(107, 114, 128, 0.05);
    border-left: 4px solid var(--text-muted);
}

.flag-color {
    background-color: rgba(245, 158, 11, 0.05);
    border-left: 4px solid var(--color-warning);
}

.output-header {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.pointer-color .output-header { color: var(--color-accent); }
.risk-color .output-header { color: var(--color-warning); }
.edge-color .output-header { color: var(--color-error); }
.criteria-color .output-header { color: var(--color-secondary); }
.test-color .output-header { color: var(--color-primary); }
.security-color .output-header { color: var(--color-error); }
.telemetry-color .output-header { color: var(--color-accent); }
.scope-color .output-header { color: var(--text-muted); }
.flag-color .output-header { color: var(--color-warning); }

.output-content {
    font-size: 0.9rem;
    font-weight: 500;
    font-family: monospace;
}

/* 7. Problem Section */
.problems-section {
    position: relative;
    z-index: 1;
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.problem-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 32px 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.problem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    transition: var(--transition);
}

.problem-card:hover {
    transform: translateY(-4px);
    background-color: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.problem-card:hover::before {
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

.problem-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border: 1px solid transparent;
}

.red-glow {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--color-error);
    border-color: rgba(239, 68, 68, 0.2);
}

.yellow-glow {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--color-warning);
    border-color: rgba(245, 158, 11, 0.2);
}

.orange-glow {
    background-color: rgba(249, 115, 22, 0.1);
    color: #f97316;
    border-color: rgba(249, 115, 22, 0.2);
}

.purple-glow {
    background-color: rgba(139, 92, 246, 0.1);
    color: var(--color-primary);
    border-color: rgba(139, 92, 246, 0.2);
}

.blue-glow {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--color-secondary);
    border-color: rgba(59, 130, 246, 0.2);
}

.problem-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.problem-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.problem-stat {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.problem-quote-wrapper {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
    border: 1px solid var(--border-hover);
    border-radius: var(--border-radius);
    padding: 30px;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.problem-quote {
    font-size: 1.3rem;
    font-style: italic;
    font-weight: 600;
    text-align: center;
    line-height: 1.5;
    position: relative;
}

.problem-quote::before, .problem-quote::after {
    content: '"';
    font-size: 3rem;
    color: rgba(139, 92, 246, 0.3);
    position: absolute;
    font-family: Georgia, serif;
}

.problem-quote::before {
    top: -20px;
    left: -20px;
}

/* 8. How It Works Section */
.how-it-works-section {
    position: relative;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 60px;
}

.step-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
}

.step-num {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.02) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: absolute;
    top: 20px;
    right: 20px;
}

.step-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

.interactive-loop-showcase {
    background-color: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.showcase-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.showcase-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.chat-mockup {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-bubble {
    display: flex;
    gap: 16px;
    max-width: 80%;
}

.chat-bubble.ai {
    align-self: flex-start;
}

.chat-bubble.pm {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.bubble-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    font-size: 1.1rem;
}

.chat-bubble.ai .bubble-avatar {
    background-color: var(--color-primary-glow);
    border-color: rgba(139, 92, 246, 0.3);
}

.chat-bubble.pm .bubble-avatar {
    background-color: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

.bubble-content {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 16px 20px;
    font-size: 0.925rem;
}

.chat-bubble.ai .bubble-content {
    border-top-left-radius: 2px;
}

.chat-bubble.pm .bubble-content {
    background-color: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.2);
    border-top-right-radius: 2px;
}

.bubble-content code {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* 9. Interactive Demo Playground Section */
.demo-section {
    position: relative;
}

.playground-card {
    background-color: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: grid;
    grid-template-columns: 320px 1fr;
    height: 580px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    backdrop-filter: blur(20px);
}

.playground-sidebar {
    background-color: rgba(3, 7, 18, 0.6);
    border-right: 1px solid var(--border-color);
    padding: 24px;
    overflow-y: auto;
}

.playground-sidebar h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

.demo-select-btn {
    width: 100%;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 12px;
    cursor: pointer;
    text-align: left;
    display: flex;
    gap: 12px;
    align-items: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.demo-select-btn:hover {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

.demo-select-btn.active {
    background-color: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.4);
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.1);
}

.demo-select-btn .icon {
    font-size: 1.3rem;
}

.demo-select-btn .btn-info {
    display: flex;
    flex-direction: column;
}

.demo-select-btn .title {
    font-weight: 600;
    font-size: 0.9rem;
}

.demo-select-btn .tag {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.playground-main {
    padding: 32px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    background-color: rgba(10, 15, 28, 0.5);
}

.playground-step {
    display: none;
    flex-direction: column;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.playground-step.active {
    display: flex;
    opacity: 1;
}

.playground-step .step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.playground-step .badge {
    background-color: var(--color-primary-glow);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: #a78bfa;
    border-radius: 30px;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.playground-step .badge.success {
    background-color: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.editor-filename, .ticket-id {
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Editor Input Step */
.editor-content-wrapper {
    flex: 1;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.draft-text-display {
    font-size: 1.4rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.5;
    max-width: 500px;
    color: var(--text-primary);
}

/* Processing Step */
.status-indicator-text {
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: 600;
}

.pulsing {
    animation: text-pulse 1.5s infinite alternate;
}

@keyframes text-pulse {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

.processing-loader-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.custom-progress {
    width: 100%;
    max-width: 400px;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 24px;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: 3px;
    transition: width 0.1s linear;
}

.progress-logs {
    list-style: none;
    width: 100%;
    max-width: 450px;
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.progress-logs li {
    margin-bottom: 8px;
    padding-left: 16px;
    position: relative;
}

.progress-logs li::before {
    content: '❯';
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

/* Q&A Step */
.qa-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
}

.qa-ai-question {
    display: flex;
    gap: 16px;
}

.qa-ai-question .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-primary-glow);
    border: 1px solid rgba(139, 92, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.question-box {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    flex: 1;
}

.question-box h5 {
    font-size: 0.85rem;
    color: var(--color-primary);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.question-box p {
    font-size: 0.95rem;
    font-weight: 500;
}

.qa-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 500px;
    margin-left: 56px;
}

.option-btn {
    background-color: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--text-secondary);
    font-family: var(--font-family);
    font-size: 0.9rem;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.option-btn:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
    background-color: rgba(139, 92, 246, 0.05);
}

/* Result Ticket Step */
.result-scrollable {
    flex: 1;
    overflow-y: auto;
    padding-right: 8px;
    margin-bottom: 20px;
}

.ticket-header-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stat-badge {
    border-radius: 30px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.stat-badge.risk-high { background-color: rgba(245, 158, 11, 0.15); color: var(--color-warning); }
.stat-badge.risk-critical { background-color: rgba(239, 68, 68, 0.15); color: var(--color-error); }
.stat-badge.risk-low { background-color: rgba(16, 185, 129, 0.15); color: var(--color-accent); }

.stat-badge.cost-saved { background-color: rgba(139, 92, 246, 0.15); color: #a78bfa; }
.stat-badge.coverage { background-color: rgba(59, 130, 246, 0.15); color: #60a5fa; }

.result-section {
    margin-bottom: 24px;
}

.result-section h4 {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 0.03em;
}

.result-list {
    padding-left: 16px;
    font-size: 0.925rem;
}

.result-list li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 8px;
}

.result-list li::before {
    content: '•';
    color: var(--color-primary);
    position: absolute;
    left: -12px;
    font-weight: bold;
}

.code-pointers-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.code-pointer-item {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 14px;
    font-family: monospace;
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
}

.pointer-path {
    color: var(--text-primary);
}

.pointer-lines {
    color: var(--color-accent);
    font-weight: bold;
}

.warning-box {
    background-color: rgba(245, 158, 11, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-left: 4px solid var(--color-warning);
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 0.9rem;
}

.warning-box p {
    margin-bottom: 8px;
    font-weight: 600;
}

.warning-box ul {
    padding-left: 12px;
}

.warning-box li {
    margin-bottom: 4px;
}

.sql-code {
    display: block;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    font-size: 0.8rem;
    color: #60a5fa;
    overflow-x: auto;
    white-space: pre;
    line-height: 1.4;
}

/* Hide utility class */
.hidden {
    display: none !important;
}

.playground-step .step-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

/* 10. Key Features */
.features-section {
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.feature-card-glow {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 40px;
    transition: var(--transition);
    position: relative;
}

.feature-card-glow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
    border: 1px solid transparent;
    pointer-events: none;
    transition: var(--transition);
}

.feature-card-glow:hover {
    background-color: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.1);
}

.feature-card-glow:hover::after {
    border-color: var(--border-hover);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: var(--color-primary-glow);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-card-glow h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

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

/* 11. Exclusive Section */
.exclusive-section {
    position: relative;
}

.badge-exclusive {
    display: inline-flex;
    background-color: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: var(--color-warning);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 30px;
    padding: 4px 12px;
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

.exclusive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.exclusive-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.005) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 32px;
    position: relative;
    transition: var(--transition);
}

.exclusive-card:hover {
    border-color: rgba(245, 158, 11, 0.25);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.exclusive-card .exc-badge {
    position: absolute;
    top: 32px;
    right: 32px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 30px;
}

.exclusive-card .exc-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--color-warning);
}

.exclusive-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.exclusive-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 12. Audience Section */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 24px;
}

.audience-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 32px;
    transition: var(--transition);
}

.audience-card:hover {
    background-color: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.15);
    transform: scale(1.02);
}

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

.aud-icon {
    font-size: 1.8rem;
}

.audience-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.audience-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* 13. Gains / Comparison Table Section */
.metrics-table-wrapper {
    background-color: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.metrics-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.metrics-table th, .metrics-table td {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.metrics-table th {
    background-color: rgba(3, 7, 18, 0.4);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
}

.metrics-table tbody tr:last-child td {
    border-bottom: none;
}

.metrics-table tr:hover {
    background-color: rgba(255, 255, 255, 0.01);
}

.initspec-col {
    color: var(--color-primary);
    font-weight: 700;
}

.initspec-col-val {
    font-weight: 600;
}

.gain-badge {
    display: inline-flex;
    border-radius: 30px;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 700;
}

.gain-badge.green {
    background-color: rgba(16, 185, 129, 0.12);
    color: var(--color-accent);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.table-footnote {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* 14. Integrations Section */
.integrations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.integration-item {
    background-color: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.integration-item:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.1);
}

.integration-item .int-icon {
    font-size: 2rem;
}

.integration-item .int-name {
    font-size: 0.9rem;
    font-weight: 600;
}

/* 15. FAQ Section */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 16px;
    background-color: rgba(15, 23, 42, 0.4);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--border-hover);
}

.faq-trigger {
    width: 100%;
    background: none;
    border: none;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.faq-icon-arrow {
    width: 12px;
    height: 12px;
    position: relative;
    transition: var(--transition);
}

.faq-icon-arrow::before, .faq-icon-arrow::after {
    content: '';
    position: absolute;
    background-color: var(--text-secondary);
    transition: var(--transition);
}

.faq-icon-arrow::before {
    width: 12px;
    height: 2px;
    top: 5px;
    left: 0;
}

.faq-icon-arrow::after {
    width: 2px;
    height: 12px;
    top: 0;
    left: 5px;
}

.faq-item.active .faq-icon-arrow {
    transform: rotate(45deg);
}

.faq-item.active .faq-icon-arrow::before, .faq-item.active .faq-icon-arrow::after {
    background-color: var(--color-primary);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
}

.faq-item.active .faq-content {
    max-height: 1000px;
    transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
}

.faq-content p {
    padding: 0 24px 24px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 16. CTA Section */
.cta-section {
    padding: 120px 0;
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.15) 0%, transparent 60%);
    position: relative;
}

.cta-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    line-height: 1.2;
}

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

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* 17. Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 80px 0 60px;
    background-color: var(--bg-secondary);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.brand-desc {
    color: var(--text-secondary);
    max-width: 250px;
}

.brand-copy {
    font-size: 0.8rem;
    margin-top: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links a {
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--text-primary);
}

/* 18. Micro-Animations & Responsive Styles */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in { animation: fadeIn 0.8s ease forwards; }
.animate-fade-in-delay { animation: fadeIn 0.8s ease 0.2s forwards; opacity: 0; }
.animate-fade-in-delay-2 { animation: fadeIn 0.8s ease 0.4s forwards; opacity: 0; }
.animate-fade-in-delay-3 { animation: fadeIn 0.8s ease 0.6s forwards; opacity: 0; }

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .playground-card {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .playground-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        display: flex;
        gap: 12px;
        overflow-x: auto;
        padding: 16px 24px;
        align-items: center;
    }
    
    .playground-sidebar h4 {
        margin-bottom: 0;
        margin-right: 16px;
        flex-shrink: 0;
    }
    
    .demo-select-btn {
        margin-bottom: 0;
        width: auto;
        flex-shrink: 0;
    }
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
    }
    
    .mobile-nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 80px);
        background-color: var(--bg-secondary);
        flex-direction: column;
        padding: 40px;
        gap: 24px;
        z-index: 99;
        transition: var(--transition);
        border-right: 1px solid var(--border-color);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .mobile-nav-overlay {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        z-index: 98;
        display: none;
        opacity: 0;
        transition: var(--transition);
    }
    
    .mobile-nav-overlay.active {
        display: block;
        opacity: 1;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.3rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .playground-main {
        padding: 20px;
    }
}
