/* Design System Tokens - Capyform Bright & Chill Theme */
:root {
    --bg-primary: #fffdfa;
    --bg-secondary: #fdf6ec;
    --bg-card: #ffffff;
    --border-color: #f3e8d9;
    --border-hover: #f59e0b;
    
    --text-primary: #292524;
    --text-secondary: #57534e;
    --text-muted: #78716c;
    
    --accent-amber: #d97706;
    --accent-gold: #f59e0b;
    --accent-teal: #0d9488;
    --accent-emerald: #059669;
    --accent-rose: #ef4444;
    
    --gradient-primary: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --gradient-secondary: linear-gradient(135deg, #0d9488 0%, #059669 100%);
    --gradient-text: linear-gradient(135deg, #b45309 0%, #d97706 50%, #0d9488 100%);
    
    --glow-warm: rgba(245, 158, 11, 0.15);
    --glow-teal: rgba(13, 148, 136, 0.12);
    
    --font-sans: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Outfit', var(--font-sans);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --shadow-soft: 0 10px 30px -10px rgba(180, 83, 9, 0.08);
    --shadow-card: 0 14px 40px -12px rgba(120, 113, 108, 0.12);
    --shadow-hover: 0 20px 50px -15px rgba(217, 119, 6, 0.22);
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    accent-color: var(--accent-amber);
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Focus States (A11y) */
*:focus-visible {
    outline: 2px solid var(--accent-teal);
    outline-offset: 4px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: #e7e5e4;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}

/* Background Ambient Glows & Grid */
.bg-glow {
    position: fixed;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -3;
    pointer-events: none;
    opacity: 0.35;
}

.bg-glow-1 {
    top: -200px;
    left: -200px;
    background: radial-gradient(circle, rgba(253, 230, 138, 0.6) 0%, transparent 70%);
    animation: floatGlow1 35s infinite alternate ease-in-out;
}

.bg-glow-2 {
    bottom: -200px;
    right: -200px;
    background: radial-gradient(circle, rgba(153, 246, 228, 0.5) 0%, transparent 70%);
    animation: floatGlow2 45s infinite alternate ease-in-out;
}

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(217, 119, 6, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(217, 119, 6, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center;
    z-index: -2;
    pointer-events: none;
    mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 90%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 90%);
}

@keyframes floatGlow1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(80px, 120px) scale(1.1); }
}

@keyframes floatGlow2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-100px, -80px) scale(0.95); }
}

@keyframes gridPan {
    from { background-position: 0 0; }
    to { background-position: 1000px 500px; }
}

/* Typography & Layout Utilities */
h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.accent-text {
    color: var(--accent-cyan);
    font-weight: 600;
}

.visually-hidden {
    position: absolute !important;
    clip-path: inset(50%) !important;
    overflow: hidden !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
    white-space: nowrap !important;
}

/* Header Section */
.header {
    background-color: rgba(255, 253, 250, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition-fast);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.logo-emoji {
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 4px rgba(217, 119, 6, 0.2));
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--accent-amber);
}

.cta-btn-header {
    text-decoration: none;
    background: var(--gradient-primary);
    color: #ffffff !important;
    padding: 0.65rem 1.4rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.25);
    transition: var(--transition-normal);
}

.cta-btn-header:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.35);
}

/* Buttons System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 2.2rem;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
    min-height: 50px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(217, 119, 6, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(217, 119, 6, 0.4);
}

/* Hero Section */
.hero {
    max-width: 1080px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
    .pill-group {
        justify-content: center;
    }
}

.pill-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
}

.pill-gold {
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.pill-teal {
    background: rgba(13, 148, 136, 0.12);
    color: #0f766e;
    border: 1px solid rgba(13, 148, 136, 0.3);
}

.pill-amber {
    background: rgba(217, 119, 6, 0.12);
    color: #92400e;
    border: 1px solid rgba(217, 119, 6, 0.3);
}

.hero-title {
    margin-bottom: 1.5rem;
}

.hero-brand-name {
    display: block;
    width: 100%;
    font-size: clamp(3.2rem, 5.8vw, 4.5rem);
    font-weight: 800;
    color: #1c1917;
    margin-bottom: 0.4rem;
    letter-spacing: -0.02em;
    line-height: 1.05;
}

.hero-tagline-line {
    display: block;
    width: 100%;
    font-size: clamp(1.75rem, 3.2vw, 2.35rem);
    font-weight: 700;
    color: #44403c;
    line-height: 0.5;
    white-space: nowrap;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .hero-actions {
        justify-content: center;
    }
}

/* Mascot Display Card */
.hero-mascot-card {
    background: #ffffff;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-card);
    transition: var(--transition-normal);
}

.hero-mascot-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-gold);
}

.mascot-img-wrapper {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #fdf6ec;
}

.mascot-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.mascot-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: #fdf6ec;
    border-radius: var(--radius-md);
    border: 1px solid #fde68a;
}

.mascot-badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #059669;
    color: #ffffff;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.mascot-badge-text {
    font-size: 0.88rem;
    color: #78350f;
}

/* Quirky PostHog-inspired Section Badges & Microcopy */
.quirky-tag {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-full);
    background: #fef3c7;
    border: 2px dashed #d97706;
    color: #92400e;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1.25rem;
    transform: rotate(-1deg);
    box-shadow: 2px 2px 0px #b45309;
}

.hero-micro-note {
    margin-top: 1.25rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
}

.card-sticker-tag {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #fde68a;
    border: 2px solid #78350f;
    color: #78350f;
    font-size: 0.72rem;
    font-weight: 900;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    transform: rotate(2deg);
    box-shadow: 2px 2px 0px #78350f;
    letter-spacing: 0.05em;
}

/* Features Section - Standardized Whitespace & Layout */
.features {
    max-width: 1080px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.section-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 4.75rem; /* Ample breathing room above cards and stickers */
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 0.75rem;
}

/* PostHog-Inspired Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.25rem;
}

.feature-card {
    background: #ffffff;
    border: 2.5px solid #292524;
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: 6px 6px 0px #292524;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.feature-card:hover {
    transform: translate(-3px, -3px) scale(1.015);
    box-shadow: 10px 10px 0px #d97706;
    border-color: #292524;
}

.feature-hero-wrapper {
    height: 165px;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    margin-bottom: 1.25rem;
    position: relative;
}

.feature-hero-wrapper picture {
    display: flex;
    align-items: flex-end;
    height: 100%;
}

.card-capybara-hero {
    height: 165px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    aspect-ratio: auto;
    filter: drop-shadow(4px 4px 0px rgba(41, 37, 36, 0.15));
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.35s ease;
    transform-origin: bottom center;
}

.feature-card:hover .card-capybara-hero {
    transform: scale(1.09) rotate(-4deg) translateY(-4px);
    filter: drop-shadow(6px 8px 0px rgba(41, 37, 36, 0.25));
}

#card-ai-guidance:hover .card-capybara-hero {
    transform: scale(1.09) rotate(4deg) translateY(-4px);
}

.icon-amber {
    background: #fef3c7;
}

.icon-teal {
    background: #ccfbf1;
}

.icon-emerald {
    background: #d1fae5;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.85rem;
    color: var(--text-primary);
    min-height: 3.4rem;
    display: flex;
    align-items: flex-start;
}

.card-text {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.feature-checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    border-top: 2px dashed #e7e5e4;
    padding-top: 1.25rem;
}

.feature-checklist li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.feature-checklist li span {
    color: #059669;
    font-size: 1.1rem;
}

/* PostHog-Style Simulator Section */
.simulator-section {
    max-width: 1080px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

/* ============================================================
   Interactive 3D Turntable Capybara Carousel
   ============================================================ */
.demo-carousel-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2.25rem;
    position: relative;
    user-select: none;
}

.carousel-nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 680px;
    position: relative;
}

/* Chunky Navigation Arrow Buttons */
.carousel-arrow {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-full);
    background: #ffffff;
    border: 2.5px solid #292524;
    box-shadow: 4px 4px 0px #292524;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #1c1917;
    cursor: pointer;
    z-index: 20;
    flex-shrink: 0;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.carousel-arrow:hover {
    background: #fef3c7;
    border-color: #d97706;
    color: #92400e;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #d97706;
}

.carousel-arrow:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #292524;
}

.carousel-arrow .arrow-icon {
    display: inline-block;
    line-height: 1;
}

/* 3D Carousel Stage */
.pedestal-stage {
    position: relative;
    width: 100%;
    max-width: 520px;
    height: 270px;
    perspective: 900px;
    perspective-origin: 50% 60%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    touch-action: pan-y;
}

/* Carousel Track & Items */
.carousel-items-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    transform-style: preserve-3d;
    touch-action: pan-y;
}

.carousel-item.preset-btn {
    position: absolute;
    bottom: 8px;
    left: 50%;
    margin-left: -130px;
    width: 260px;
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    cursor: pointer;
    transform-origin: center bottom;
    transition: transform 0.45s cubic-bezier(0.34, 1.3, 0.64, 1), opacity 0.35s ease, filter 0.35s ease;
    will-change: transform, opacity;
    outline: none;
}

.carousel-item.preset-btn:focus-visible .carousel-item-badge {
    outline: 2px solid var(--accent-teal);
    outline-offset: 4px;
}

.carousel-capy-img {
    display: block;
    max-height: 205px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(41, 37, 36, 0.18));
    transition: filter 0.35s ease;
}

/* Item Badges */
.carousel-item-badge {
    margin-top: 0.35rem;
    background: #ffffff;
    border: 2px solid #292524;
    border-radius: var(--radius-full);
    padding: 0.35rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 800;
    color: #1c1917;
    box-shadow: 3px 3px 0px #292524;
    white-space: nowrap;
    letter-spacing: 0.01em;
    transition: all 0.25s ease;
}

/* 3D Positional States */
.carousel-item.pos-center {
    transform: translate3d(0, -6px, 60px) scale(1);
    opacity: 1;
    z-index: 10;
    cursor: default;
    pointer-events: auto;
}

.carousel-item.pos-center .carousel-capy-img {
    filter: drop-shadow(0 14px 22px rgba(41, 37, 36, 0.25));
}

.carousel-item.pos-center .carousel-item-badge {
    background: #fef3c7;
    border-color: #d97706;
    color: #92400e;
    box-shadow: 3px 3px 0px #d97706;
    transform: scale(1.05);
}

.carousel-item.pos-left {
    transform: translate3d(-155px, -18px, -40px) scale(0.62);
    opacity: 0.62;
    z-index: 4;
    filter: brightness(0.9) saturate(0.85);
}

.carousel-item.pos-left:hover {
    opacity: 0.88;
    transform: translate3d(-155px, -22px, -30px) scale(0.66);
    filter: brightness(1) saturate(1);
}

.carousel-item.pos-right {
    transform: translate3d(155px, -18px, -40px) scale(0.62);
    opacity: 0.62;
    z-index: 4;
    filter: brightness(0.9) saturate(0.85);
}

.carousel-item.pos-right:hover {
    opacity: 0.88;
    transform: translate3d(155px, -22px, -30px) scale(0.66);
    filter: brightness(1) saturate(1);
}

/* Legacy fallback button support if needed */
.preset-btn:not(.carousel-item) {
    background: #ffffff;
    border: 2px solid #292524;
    border-radius: var(--radius-full);
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1c1917;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 2px 2px 0px #292524;
}

.preset-btn:not(.carousel-item):hover,
.preset-btn:not(.carousel-item).active {
    background: #fef3c7;
    border-color: #d97706;
    color: #92400e;
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px #d97706;
}

/* Indicator Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background: #e7e5e4;
    border: 1.5px solid #78716c;
    transition: all 0.25s ease;
}

.carousel-dot.active {
    width: 26px;
    background: #f59e0b;
    border-color: #292524;
    box-shadow: 1.5px 1.5px 0px #292524;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .carousel-item.preset-btn,
    .carousel-arrow,
    .carousel-item-badge,
    .carousel-dot {
        transition: none !important;
    }
}

/* ============================================================
   Guided Demo (step-by-step scenario walkthrough)
   ============================================================ */
.guided-demo {
    margin-top: 1.5rem;
}

/* Flex/grid children still honour the hidden attribute */
.guided-demo [hidden] {
    display: none;
}

/* Step Rail */
.demo-steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin: 0 0 1.25rem;
    padding: 0;
}

.demo-step {
    display: flex;
}

.demo-step-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    text-align: left;
    background: #ffffff;
    border: 2px solid #292524;
    border-radius: var(--radius-md);
    box-shadow: 3px 3px 0px #292524;
    padding: 0.6rem 0.8rem;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s ease;
}

.demo-step-btn:hover {
    background: #fef3c7;
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0px #292524;
}

.demo-step-num {
    flex: 0 0 auto;
    width: 1.6rem;
    height: 1.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: #f5f5f4;
    border: 2px solid #292524;
    font-size: 0.8rem;
    font-weight: 800;
    color: #1c1917;
}

.demo-step-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1c1917;
    line-height: 1.25;
}

.demo-step.is-current .demo-step-btn {
    background: #fef3c7;
    border-color: #d97706;
    box-shadow: 4px 4px 0px #d97706;
}

.demo-step.is-current .demo-step-num {
    background: #d97706;
    border-color: #92400e;
    color: #ffffff;
}

.demo-step.is-done .demo-step-num {
    background: #d1fae5;
    border-color: #059669;
    color: #065f46;
}

/* Stage Layout */
.demo-stage {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.demo-form-panel {
    min-height: 0;
    gap: 0;
}

.demo-form-panel .box-header {
    gap: 0.75rem;
    flex-wrap: wrap;
}

.demo-form-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
    color: #1c1917;
    margin-bottom: 1.1rem;
    line-height: 1.3;
}

/* Simulated (non-editable) answer box */
.demo-textarea {
    width: 100%;
    min-height: 150px;
    background: #ffffff;
    border: 2px solid #44403c;
    border-radius: var(--radius-md);
    color: #1c1917;
    padding: 1rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.55;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
    cursor: default;
    overflow-wrap: break-word;
}

[data-step="feedback"] .demo-textarea,
[data-step="completion"] .demo-textarea {
    border-color: #d97706;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18), inset 0 2px 4px rgba(0, 0, 0, 0.03);
}

.guided-demo.is-complete .demo-textarea {
    border-color: #059669;
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.03);
}

.demo-text-added:empty {
    display: none;
}

.demo-text-added {
    background: #fef3c7;
    box-shadow: 0 0 0 2px #fef3c7;
    border-radius: 2px;
    color: #78350f;
    font-weight: 600;
}

.demo-textarea.is-typing .demo-text-added::after {
    content: "";
    display: inline-block;
    width: 2px;
    height: 1em;
    margin-left: 1px;
    vertical-align: text-bottom;
    background: #d97706;
    animation: capyCaret 0.9s steps(1) infinite;
}

@keyframes capyCaret {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* Success state for the shared feedback bubble */
.feedback-bubble.alert-success {
    background-color: #ecfdf5 !important;
    border: 2px solid #065f46 !important;
    border-left: 6px solid #059669 !important;
    box-shadow: 4px 4px 0px #065f46 !important;
}

.feedback-bubble.alert-success .feedback-text {
    color: #065f46 !important;
    font-weight: 700;
}

.demo-form-panel .feedback-bubble {
    padding-right: 18px;
}

/* Missing-detail chips */
.demo-gap-chips {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0.9rem 0 0;
    padding: 0;
}

.demo-gap-chip {
    display: inline-flex;
    align-items: baseline;
    gap: 0.4rem;
    max-width: 100%;
    color: #1c1917;
    background: #ffffff;
    border: 2px solid #292524;
    border-radius: var(--radius-full);
    box-shadow: 2px 2px 0px #292524;
    padding: 0.28rem 0.75rem;
    transition: all 0.15s ease;
}

.demo-gap-chip::before {
    content: "＋";
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--accent-amber);
}

.demo-gap-label {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* The extracted value only exists once CapyForm has actually parsed it. */
.demo-gap-value {
    display: none;
    min-width: 0;
    font-size: 0.78rem;
    font-weight: 700;
    color: #047857;
    overflow-wrap: anywhere;
}

.demo-gap-chip.is-resolved {
    color: #065f46;
    background: #d1fae5;
    border-color: var(--accent-emerald);
    box-shadow: 2px 2px 0px var(--accent-emerald);
    transform: translate(-1px, -1px);
}

.demo-gap-chip.is-resolved::before {
    content: "✓";
    color: var(--accent-emerald);
}

.demo-gap-chip.is-resolved .demo-gap-label {
    color: #047857;
    opacity: 0.75;
}

.demo-gap-chip.is-resolved .demo-gap-value {
    display: inline;
}

/* Demo submit button states */
.demo-submit-btn {
    margin-top: 1.1rem;
    width: 100%;
    cursor: default;
}

.demo-submit-btn.is-blocked {
    opacity: 0.55;
}

.demo-submit-btn.is-validated::after {
    content: "\00a0\00a0✓";
}

/* Narration card — full width, above the stage */
.demo-explainer {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 1.5rem 2.5rem;
    align-items: start;
    background: #ffffff;
    border: 2.5px solid #292524;
    border-radius: var(--radius-lg);
    box-shadow: 6px 6px 0px #292524;
    padding: 1.75rem;
    margin-bottom: 2rem;
}

.demo-explainer-lead {
    min-width: 0;
}

.demo-step-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    color: #1c1917;
    line-height: 1.25;
    margin-bottom: 0.6rem;
}

.demo-step-body {
    font-size: 0.95rem;
    color: #57534e;
    line-height: 1.6;
}

.demo-step-points {
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.demo-step-point {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #292524;
    line-height: 1.45;
}

.demo-step-point::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #d97706;
    font-weight: 800;
}

/* Payload panel inside the guided demo */
.demo-stage .demo-payload {
    margin-top: 0;
    min-width: 0;
}

.demo-payload .demo-payload-body {
    padding: 1.1rem 1.25rem;
    background: #09090b;
    max-height: 420px;
}

.demo-payload .payload-code-block {
    word-break: normal;
    overflow-wrap: anywhere;
}

[data-step="structured"] .demo-payload .payload-code-block {
    color: #34d399;
}


.demo-automations {
    list-style: none;
    margin: 0;
    padding: 1rem 1.25rem;
    background: #18181b;
    border-top: 1px dashed #3f3f46;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.demo-automation {
    position: relative;
    padding-left: 1.6rem;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.45;
    color: #d4d4d8;
}

.demo-automations.is-manual .demo-automation::before {
    content: "⚠";
    position: absolute;
    left: 0;
    color: #fbbf24;
}

.demo-automations.is-auto .demo-automation::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #34d399;
    font-weight: 800;
}

/* Step navigation */
.demo-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.demo-nav-btn {
    background: #ffffff;
    border: 2px solid #292524;
    border-radius: var(--radius-full);
    box-shadow: 3px 3px 0px #292524;
    padding: 0.6rem 1.4rem;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 800;
    color: #1c1917;
    cursor: pointer;
    transition: all 0.15s ease;
}

.demo-nav-btn:hover:not(:disabled) {
    background: #fef3c7;
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0px #292524;
}

.demo-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: 2px 2px 0px #a8a29e;
}

.demo-nav-next {
    background: var(--gradient-primary);
    color: #1c1917;
    border-color: #92400e;
    box-shadow: 3px 3px 0px #92400e;
}

.demo-nav-next:hover:not(:disabled) {
    background: var(--gradient-primary);
    box-shadow: 5px 5px 0px #92400e;
}

.demo-nav-replay {
    background: #d1fae5;
    border-color: #065f46;
    color: #065f46;
    box-shadow: 3px 3px 0px #065f46;
}

.demo-nav-replay:hover:not(:disabled) {
    background: #a7f3d0;
    box-shadow: 5px 5px 0px #065f46;
}

/* Mobile-only: see the note in index.html next to #demo-nav-caption. */
.demo-nav-caption {
    display: none;
    text-align: center;
    margin: 1.75rem 0 0;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.demo-dots {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.demo-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #e7e5e4;
    border: 1.5px solid #a8a29e;
    transition: all 0.2s ease;
}

.demo-dot.is-current {
    background: #d97706;
    border-color: #92400e;
    transform: scale(1.25);
}

@media (prefers-reduced-motion: reduce) {
    .demo-textarea.is-typing .demo-text-added::after {
        animation: none;
    }
    .demo-step-btn:hover,
    .demo-nav-btn:hover:not(:disabled),
    .demo-gap-chip.is-resolved {
        transform: none;
    }
}

/* Guided Demo — tablet & mobile */
@media (max-width: 960px) {
    .demo-stage {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
    }
    .demo-explainer {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.25rem;
        padding: 1.4rem;
    }

    /* The JSON only means something next to the form that produced it, so once
       the two cards stack the whole payload panel goes — code, header, status
       badge and outcome list alike. The filled-in chips carry the proof that
       CapyForm extracted the fields. */
    #guided-demo .demo-payload {
        display: none;
    }

    /* 3D Turntable Carousel Mobile Adjustments */
    .demo-carousel-container {
        margin-bottom: 1.5rem;
    }

    .carousel-nav-wrapper {
        gap: 0.35rem;
        max-width: 100%;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        box-shadow: 2.5px 2.5px 0px #292524;
    }

    .pedestal-stage {
        height: 200px;
        max-width: 320px;
    }

    .carousel-item.preset-btn {
        margin-left: -90px;
        width: 180px;
        bottom: 6px;
    }

    .carousel-capy-img {
        max-height: 145px;
    }

    .carousel-item-badge {
        font-size: 0.72rem;
        padding: 0.25rem 0.6rem;
    }

    .carousel-item.pos-center {
        transform: translate3d(0, -4px, 40px) scale(1);
    }

    .carousel-item.pos-left {
        transform: translate3d(-92px, -12px, -30px) scale(0.58);
    }

    .carousel-item.pos-right {
        transform: translate3d(92px, -12px, -30px) scale(0.58);
    }

    /* Scenario tabs fallback */
    .sandbox-presets-bar {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        gap: 0.6rem;
        padding: 0.7rem 0.9rem;
        margin-bottom: 1.25rem;
        -webkit-overflow-scrolling: touch;
    }
    .sandbox-presets-bar::-webkit-scrollbar {
        display: none;
    }
    .sandbox-presets-bar .preset-label {
        display: none;
    }
    .sandbox-presets-bar .preset-btn {
        flex: 0 0 auto;
    }

    /* Step rail: numbered stepper. The narration card directly below names the
       current step, so the labels are redundant on screen — keep them for
       assistive tech only. */
    .demo-steps {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    .demo-step-btn {
        justify-content: center;
        padding: 0.55rem 0.5rem;
    }
    .demo-step-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .demo-nav-caption {
        display: block;
    }
    .demo-nav {
        margin-top: 0.6rem;
    }

    /* The answer box was reserving 190px for three lines of text. */
    .demo-textarea {
        min-height: 130px;
    }
}

@media (max-width: 560px) {
    .demo-step-btn {
        box-shadow: 2px 2px 0px #292524;
    }
    .demo-step.is-current .demo-step-btn {
        box-shadow: 3px 3px 0px #d97706;
    }
    .demo-form-title {
        font-size: 1.05rem;
    }
    .demo-textarea {
        font-size: 0.9rem;
        padding: 0.85rem;
    }
    .demo-explainer {
        padding: 1.25rem;
        box-shadow: 4px 4px 0px #292524;
    }
    .demo-step-title {
        font-size: 1.15rem;
    }
    .demo-nav {
        gap: 0.75rem;
    }
}

/* Live Structured JSON Payload Section */
.json-payload-section {
    margin-top: 3rem;
    background: #1c1917;
    border: 2.5px solid #292524;
    border-radius: var(--radius-lg);
    box-shadow: 6px 6px 0px #292524;
    overflow: hidden;
}

.payload-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #292524;
    padding: 0.85rem 1.25rem;
    border-bottom: 2px solid #44403c;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.payload-header-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #f59e0b;
    letter-spacing: 0.03em;
}

.payload-status-badge {
    font-size: 0.78rem;
    font-weight: 700;
    color: #34d399;
    letter-spacing: 0.04em;
    font-family: monospace;
}

.payload-card-body {
    flex: 1;
    overflow-y: auto;
    max-height: 240px;
}

.payload-code-block {
    margin: 0;
    font-family: 'Source Code Pro', monospace, sans-serif;
    font-size: 0.84rem;
    color: #a1a1aa;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Drop-In Code Snippet Card in Works With Your Stack Section */
.stack-snippet-card {
    max-width: 820px;
    margin: 0 auto 3.5rem;
    background: #1c1917;
    border: 2.5px solid #292524;
    border-radius: var(--radius-lg);
    box-shadow: 6px 6px 0px #292524;
    overflow: hidden;
}

.snippet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #292524;
    padding: 0.75rem 1.25rem;
    border-bottom: 2px solid #44403c;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.snippet-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: #fbbf24;
}

.copy-snippet-btn {
    background: #f59e0b;
    border: none;
    color: #1c1917;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s ease;
}

.copy-snippet-btn:hover {
    background: #fbbf24;
    transform: scale(1.03);
}

.stack-code-block {
    margin: 0;
    padding: 1.25rem 1.5rem;
    background: #09090b;
    font-family: 'Source Code Pro', monospace, sans-serif;
    font-size: 0.88rem;
    color: #34d399;
    line-height: 1.5;
    white-space: pre-wrap;
}

/* PostHog-Inspired Trust & FAQ Section */
.trust-faq-section {
    max-width: 1080px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
}

.framework-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 4rem;
}

.framework-badge {
    background: #ffffff;
    border: 2px solid #292524;
    border-radius: var(--radius-full);
    padding: 0.5rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 800;
    color: #1c1917;
    box-shadow: 4px 4px 0px #292524;
    transition: transform 0.15s ease;
}

.framework-badge:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #292524;
    background: #fef3c7;
}

/* Retro FAQ Accordion */
.faq-container {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.faq-item {
    background: #ffffff;
    border: 2.5px solid #292524;
    border-radius: var(--radius-lg);
    box-shadow: 5px 5px 0px #292524;
    padding: 1.25rem 1.75rem;
    transition: all 0.15s ease;
}

.faq-item[open] {
    box-shadow: 7px 7px 0px #d97706;
    border-color: #292524;
    background: #fffdfa;
}

.faq-question {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1c1917;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-icon {
    font-size: 1.4rem;
    font-weight: 800;
    color: #d97706;
}

.faq-answer {
    margin-top: 1rem;
    font-size: 0.98rem;
    color: #57534e;
    line-height: 1.6;
    border-top: 2px dashed #e7e5e4;
    padding-top: 0.85rem;
}

.simulator-box {
    background: #ffffff;
    border: 2.5px solid #292524;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 6px 6px 0px #292524;
    display: flex;
    flex-direction: column;
    min-height: 380px;
    position: relative;
    transition: var(--transition-normal);
}

.box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 2px dashed #e7e5e4;
    padding-bottom: 1rem;
}

.box-badge {
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: 2px solid #292524;
    box-shadow: 3px 3px 0px #292524;
}

.status-standard {
    background: #ffffff;
    color: #57534e;
}

.status-smart {
    background: #ccfbf1;
    color: #115e59;
    border-color: var(--accent-teal);
    box-shadow: 3px 3px 0px var(--accent-teal);
}

.box-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.field-label {
    font-weight: 700;
    font-size: 1rem;
    color: #1c1917;
    margin-bottom: 0.75rem;
}

.field-hint {
    font-size: 0.82rem;
    font-weight: 600;
    color: #57534e;
    margin-top: 0.75rem;
}

/* HIGH CONTRAST LIGHT TEXTAREA & INPUT FIELD STYLING */
.simulator-box textarea,
textarea,
input[type="text"],
input[type="email"],
input[type="url"] {
    width: 100%;
    background: #ffffff !important;
    border: 2px solid #44403c !important;
    border-radius: var(--radius-md) !important;
    color: #1c1917 !important;
    padding: 1rem !important;
    font-family: inherit !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03) !important;
    transition: var(--transition-fast) !important;
}

.simulator-box textarea {
    height: 140px;
    resize: none;
}

.simulator-box textarea::placeholder,
textarea::placeholder,
input::placeholder {
    color: #78716c !important;
    opacity: 0.85 !important;
}

.simulator-box textarea:focus,
textarea:focus,
input:focus {
    outline: none !important;
    border-color: #d97706 !important;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.03) !important;
}

.smart-input-container {
    position: relative;
    flex: 1;
}

/* Dynamic AI Feedback Bubble */
.feedback-bubble {
    position: relative;
    display: none;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 34px 14px 18px;
    border-radius: 12px;
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.5;
    margin-top: 14px;
    box-sizing: border-box;
    background: #ffffff;
    border: 2px solid #292524;
    box-shadow: 4px 4px 0px #292524;
    z-index: 10;
}

.feedback-bubble.visible {
    display: flex;
    animation: fadeIn 0.3s ease-in-out;
}

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

.feedback-bubble.alert-mandatory {
    background-color: #fff1f2 !important;
    border: 2px solid #991b1b !important;
    border-left: 6px solid #dc2626 !important;
    box-shadow: 4px 4px 0px #991b1b !important;
}

.feedback-bubble.alert-mandatory .feedback-text {
    color: #7f1d1d !important;
    font-weight: 700;
}

.feedback-bubble.alert-optional {
    background-color: #fffbeb !important;
    border: 2px solid #78350f !important;
    border-left: 6px solid #d97706 !important;
    box-shadow: 4px 4px 0px #78350f !important;
}

.feedback-bubble.alert-optional .feedback-text {
    color: #78350f !important;
    font-weight: 700;
}

.feedback-content {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.feedback-text {
    font-size: 0.9rem;
    color: #1c1917;
    line-height: 1.45;
}

/* PostHog-Style Waitlist Section & Form */
.waitlist-section {
    max-width: 1080px;
    margin: 0 auto;
    padding: 5rem 2rem;
    display: flex;
    justify-content: center;
}

.form-card {
    background: #ffffff;
    border: 2.5px solid #292524;
    border-radius: var(--radius-lg);
    padding: 3.5rem 3rem;
    width: 100%;
    max-width: 620px;
    box-shadow: 8px 8px 0px #292524;
    position: relative;
}

.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.form-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #1c1917;
}

.form-subtitle {
    color: #57534e;
    font-size: 1.05rem;
    font-weight: 500;
}

.form-fieldset {
    border: none;
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1c1917;
    margin-bottom: 0.5rem;
}

.required {
    color: #dc2626;
}

.optional-label {
    color: #78716c;
    font-size: 0.8rem;
    font-weight: 500;
}

.form-group input {
    background: #ffffff !important;
    border: 2px solid #44403c !important;
    border-radius: var(--radius-md) !important;
    color: #1c1917 !important;
    padding: 0.85rem 1rem !important;
    font-size: 1rem !important;
    min-height: 50px !important;
    width: 100% !important;
}

.form-group input::placeholder {
    color: #78716c !important;
}

.form-group input.invalid-input {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.2) !important;
}

.error-msg {
    color: #dc2626;
    font-size: 0.82rem;
    font-weight: 600;
    margin-top: 0.4rem;
    min-height: 1.2em;
    display: block;
}

.btn-submit {
    width: 100%;
    background: var(--gradient-primary);
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 800;
    border: 2px solid #292524;
    box-shadow: 4px 4px 0px #292524;
    margin-top: 1rem;
    border-radius: var(--radius-full);
}

.btn-submit:hover:not(:disabled) {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #292524;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* PostHog-Style Demo Builder Section */
.demo-builder-section {
    max-width: 1080px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.demo-builder-card {
    background: #fdf6ec;
    border: 2.5px solid #292524;
    border-radius: var(--radius-lg);
    padding: 3.5rem 2rem;
    box-shadow: 8px 8px 0px #292524;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.demo-builder-card::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    background: #10b981;
    top: -150px;
    right: -150px;
    filter: blur(120px);
    opacity: 0.06;
    pointer-events: none;
}

.demo-badge {
    background: #fef3c7;
    border: 2px dashed #d97706;
    color: #92400e;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.demo-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #1c1917;
}

.demo-subtitle {
    max-width: 650px;
    margin: 0 auto 2.5rem;
    color: #57534e;
    line-height: 1.6;
    font-weight: 500;
}

.demo-form-wrapper {
    display: flex;
    gap: 1rem;
    max-width: 650px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.demo-input {
    flex: 1;
    min-width: 280px;
    background: #ffffff !important;
    border: 2px solid #44403c !important;
    border-radius: var(--radius-md) !important;
    color: #1c1917 !important;
    padding: 0.85rem 1.25rem !important;
    font-size: 1rem !important;
    min-height: 50px !important;
    transition: var(--transition-fast) !important;
}

.demo-input::placeholder {
    color: #78716c !important;
}

.demo-input:focus {
    outline: none !important;
    border-color: #d97706 !important;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.25) !important;
}

.btn-demo-builder {
    background: var(--gradient-primary);
    color: #ffffff;
    font-weight: 800;
    border: 2px solid #292524;
    box-shadow: 4px 4px 0px #292524;
    border-radius: var(--radius-full);
}

.btn-demo-builder:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #292524;
}

.demo-info {
    font-size: 0.88rem;
    font-weight: 600;
    color: #78716c;
    margin-top: 1.25rem;
}

/* Modals Overlay & Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(28, 25, 23, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: #ffffff;
    border: 2.5px solid #292524;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    max-width: 480px;
    width: 100%;
    box-shadow: 8px 8px 0px #292524;
    text-align: center;
    transform: scale(0.9);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.visible .modal-card {
    transform: scale(1);
}

.modal-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #1c1917;
    font-family: var(--font-display);
}

.modal-body {
    color: #57534e;
    font-size: 0.98rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-modal-close {
    background: #f5f5f4;
    color: #1c1917;
    border: 2px solid #292524;
    width: 100%;
    font-weight: 700;
    border-radius: var(--radius-full);
    box-shadow: 3px 3px 0px #292524;
}

.btn-modal-close:hover {
    background: #e7e5e4;
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0px #292524;
}

/* Success Card styling */
.success-checkmark {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #d1fae5;
    border: 2px solid #059669;
    color: #059669;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    animation: scaleIn 0.4s ease-out;
}

@keyframes scaleIn {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

/* Footer styling */
.footer {
    border-top: 1px solid var(--border-color);
    background-color: rgba(11, 15, 25, 0.9);
    padding: 3rem 2rem;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

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

/* Mobile Responsiveness Improvements */
@media (max-width: 768px) {
    .header-container {
        padding: 1rem 1.5rem;
    }
    .nav {
        display: none; /* simple burger menu or hide for landing page simplicity */
    }
    .hero {
        padding: 4rem 1.5rem 2rem;
    }
    .features {
        padding: 4rem 1.5rem;
    }
    .feature-card {
        padding: 2rem 1.5rem;
    }
    .simulator-section {
        padding: 2rem 1.5rem 4rem;
    }
    .simulator-box {
        padding: 1.5rem;
        min-height: auto;
    }
    .waitlist-section {
        padding: 4rem 1.5rem;
    }
    .form-card {
        padding: 2.5rem 1.5rem;
    }
    .demo-builder-section {
        padding: 2rem 1.5rem 4rem;
    }
    .demo-builder-card {
        padding: 2.5rem 1.5rem;
    }
    .demo-form-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    .demo-input {
        width: 100%;
    }
    .btn-demo-builder {
        width: 100%;
    }
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .footer-links {
        justify-content: center;
        gap: 1.5rem;
    }
}
