/* ========================================
   DITTAH - Main Styles
   "Build with Intelligence. Run with Confidence."
   Uses theme.css for colors
   ======================================== */

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

html {
    scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
}

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

a:hover {
    color: var(--color-yellow);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-navbar);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: var(--space-sm) 0;
    transition: var(--transition-normal);
}

.navbar.scrolled {
    padding: var(--space-xs) 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0;
}

.logo img {
    height: 90px;
    width: auto;
    border-radius: var(--radius-sm);
}

.logo-text {
    font-size: 1.85rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* Mobile theme toggle - shown only on mobile */
.mobile-theme-toggle {
    display: none;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: var(--gradient-brand);
    opacity: 0.05;
    border-radius: 50%;
    transform: rotate(-15deg);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 50%;
    height: 100%;
    background: var(--gradient-brand-reverse);
    opacity: 0.03;
    border-radius: 50%;
}

.hero-headline {
    text-align: center;
    margin-bottom: var(--space-lg);
    position: relative;
    z-index: 1;
}

.hero-headline .hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: var(--space-sm);
}

.hero-headline .hero-tagline {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-orange);
    letter-spacing: 2px;
    font-weight: 500;
    margin: 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
    position: relative;
    z-index: 1;
}

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

.hero-tagline {
    font-size: clamp(0.875rem, 2vw, 1rem);
    color: var(--color-orange);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: var(--space-sm);
    font-weight: 600;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.hero-description {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

.hero-characters {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-md);
    position: relative;
}

.hero-characters .hero-tagline {
    margin-bottom: var(--space-sm);
}

.hero-characters .character-row {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: var(--space-md);
}

.character {
    position: relative;
    animation: float 3s ease-in-out infinite;
}

.character:nth-child(2) {
    animation-delay: 0.5s;
}

.character img {
    height: 350px;
    width: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4));
    border-radius: var(--radius-lg);
}

.hero-banner {
    max-width: 500px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4));
    border-radius: var(--radius-lg);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ========================================
   QA STAGE - Interactive Carousel
   ======================================== */
.qa-stage {
    padding: var(--space-xl) 0;
    background: var(--bg-secondary);
}

.qa-theater {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    min-height: 350px;
    margin: var(--space-lg) 0;
}

.qa-di.active .character-label {
    color: var(--color-coral);
}

.qa-ta.active .character-label {
    color: var(--color-golden);
}

.qa-conversation {
    flex: 1;
    max-width: 550px;
    position: relative;
}

.qa-slides {
    position: relative;
    width: 100%;
    height: 280px; /* Fixed height to prevent jumping */
}

.qa-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.qa-slide.active {
    opacity: 1;
    pointer-events: auto;
}

/* Comic-style speech bubble */
.qa-bubble {
    background: var(--bg-card);
    border-radius: 30px;
    padding: var(--space-lg) var(--space-xl);
    box-shadow: var(--shadow-md);
    border: 3px solid transparent;
    position: relative;
    transition: box-shadow 0.3s ease;
}

/* Bubble tail - comic style */
.qa-bubble::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    border: 20px solid transparent;
    transform: translateY(-50%);
}

/* Di's bubble - positioned left with tail pointing left */
.qa-bubble.di {
    border-color: var(--color-coral);
    margin-left: 30px;
    margin-right: auto;
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(232, 90, 79, 0.05) 100%);
}

.qa-bubble.di::before {
    left: -35px;
    border-right-color: var(--color-coral);
    border-left: none;
}

.qa-bubble.di::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -29px;
    width: 0;
    height: 0;
    border: 17px solid transparent;
    border-right-color: var(--bg-card);
    border-left: none;
    transform: translateY(-50%);
}

/* Ta's bubble - positioned right with tail pointing right */
.qa-bubble.ta {
    border-color: var(--color-golden);
    margin-right: 30px;
    margin-left: auto;
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(245, 166, 35, 0.05) 100%);
}

.qa-bubble.ta::before {
    right: -35px;
    border-left-color: var(--color-golden);
    border-right: none;
}

.qa-bubble.ta::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -29px;
    width: 0;
    height: 0;
    border: 17px solid transparent;
    border-left-color: var(--bg-card);
    border-right: none;
    transform: translateY(-50%);
}

.qa-bubble h3 {
    font-size: 1.3rem;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
    font-family: 'Comic Neue', cursive;
}

.qa-bubble p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Character styling */
.qa-character {
    flex-shrink: 0;
    text-align: center;
    transition: var(--transition-normal);
    opacity: 0.5;
    transform: scale(0.9);
}

.qa-character img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
    transition: var(--transition-normal);
}

.qa-character .char-speaking {
    display: none;
}

.qa-character .character-label {
    display: block;
    margin-top: var(--space-sm);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    font-family: 'Comic Neue', cursive;
}

/* Active speaker */
.qa-character.active {
    opacity: 1;
}

.qa-character.active .char-default {
    display: none;
}

.qa-character.active .char-speaking {
    display: block;
}

.qa-character.active img {
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}


/* Clickable conversation area */
.qa-conversation {
    cursor: pointer;
    position: relative;
    outline: none;
}

.qa-conversation:focus {
    outline: none;
}

.qa-conversation:hover .qa-bubble {
    box-shadow: var(--shadow-lg);
}

/* Tap hint */
.tap-hint {
    display: block;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.6;
    transition: opacity 0.3s ease;
    pointer-events: none;
    margin-top: var(--space-sm);
}

.qa-conversation:hover .tap-hint {
    opacity: 1;
}

/* Clickable characters */
.qa-character {
    cursor: pointer;
    transition: opacity 0.3s ease;
    outline: none;
}

.qa-character:focus {
    outline: none;
}

.qa-character:not(.active) {
    opacity: 0.5;
}

.qa-character:hover {
    opacity: 0.8;
}

/* Progress dots below theater */
.qa-dots {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.qa-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: var(--transition-normal);
}

.qa-dot:hover {
    background: var(--text-secondary);
}

.qa-dot.active {
    background: var(--color-coral);
    transform: scale(1.2);
}

/* QA Stage Responsive */
@media (max-width: 900px) {
    .qa-stage {
        padding: var(--space-lg) 0;
    }

    .qa-theater {
        gap: var(--space-sm);
        min-height: auto;
        margin: var(--space-md) 0;
        align-items: center;
    }

    .qa-character img {
        width: 120px;
        height: 120px;
    }

    .qa-character .character-label {
        font-size: 0.85rem;
        margin-top: 4px;
    }

    .qa-conversation {
        flex: 1;
        max-width: none;
    }

    .qa-slides {
        height: 220px; /* Fixed height for tablet */
    }

    /* Hide bubble tails on mobile */
    .qa-bubble {
        margin: 0;
        padding: var(--space-md);
        border-radius: 16px;
    }

    .qa-bubble::before,
    .qa-bubble::after {
        display: none;
    }

    .qa-bubble h3 {
        font-size: 0.95rem;
        margin-bottom: var(--space-xs);
    }

    .qa-bubble p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .tap-hint {
        font-size: 0.7rem;
    }

    .qa-dots {
        margin-top: var(--space-sm);
    }

    .qa-dot {
        width: 8px;
        height: 8px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .qa-theater {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-sm);
    }

    /* Characters side by side at top */
    .qa-theater .qa-character {
        order: 0;
        flex: 0 0 auto;
    }

    .qa-theater .qa-di {
        order: 1;
    }

    .qa-theater .qa-ta {
        order: 2;
    }

    /* Conversation below characters, full width */
    .qa-theater .qa-conversation {
        order: 3;
        flex: 1 1 100%;
        width: 100%;
    }

    .qa-character img {
        width: 70px;
        height: 70px;
    }

    .qa-character .character-label {
        font-size: 0.7rem;
    }

    .qa-slides {
        height: auto;
        min-height: 160px;
    }

    .qa-bubble {
        padding: var(--space-sm);
        border-radius: 12px;
    }

    .qa-bubble h3 {
        font-size: 0.95rem;
    }

    .qa-bubble p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .tap-hint {
        font-size: 0.7rem;
    }
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition-normal);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-brand);
    color: white;
    box-shadow: 0 4px 20px rgba(232, 90, 79, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(232, 90, 79, 0.4);
    color: white;
}

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

.btn-secondary:hover {
    border-color: var(--color-orange);
    color: var(--color-orange);
}

.btn-outline {
    background: transparent;
    color: var(--color-orange);
    border: 2px solid var(--color-orange);
}

.btn-outline:hover {
    background: var(--color-orange);
    color: var(--bg-primary);
}

.btn-group {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

/* ========================================
   COMIC PANELS & SPEECH BUBBLES
   ======================================== */
.comic-section {
    padding: var(--space-lg) 0;
    background: var(--bg-secondary);
}

.comic-panel {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-md);
    align-items: start;
    margin-bottom: var(--space-md);
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-slow);
}

.comic-panel.visible {
    opacity: 1;
    transform: translateY(0);
}

.comic-panel.reverse {
    grid-template-columns: 1fr auto;
    gap: var(--space-xs);
    justify-content: end;
}

.comic-panel.reverse .comic-character {
    order: 2;
}

.comic-panel.reverse .speech-bubble {
    order: 1;
    margin-left: auto;
}

.comic-character {
    width: 140px;
    flex-shrink: 0;
    text-align: center;
}

.comic-character img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    filter: drop-shadow(var(--shadow-md));
}

.comic-character .avatar-speaking {
    display: none;
}

.comic-character:hover .avatar-default {
    display: none;
}

.comic-character:hover .avatar-speaking {
    display: block;
}

.comic-character .character-label {
    display: block;
    margin-top: var(--space-xs);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    font-family: 'Comic Neue', cursive;
}

.speech-bubble {
    position: relative;
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    max-width: 650px;
    border: 2px solid transparent;
}

.speech-bubble.di {
    background: var(--bubble-di-bg);
    border-color: var(--bubble-di-border);
}

.speech-bubble.ta {
    background: var(--bubble-ta-bg);
    border-color: var(--bubble-ta-border);
}

.speech-bubble::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border: 15px solid transparent;
}

.speech-bubble.di::before {
    left: -22px;
    top: 25px;
    border-right-color: var(--bubble-di-border);
    border-left: 0;
}

.speech-bubble.ta::before {
    left: -22px;
    top: 25px;
    border-right-color: var(--bubble-ta-border);
    border-left: 0;
}

.comic-panel.reverse .speech-bubble.ta::before {
    left: auto;
    right: -22px;
    border-left: 15px solid var(--bubble-ta-border);
    border-right: 0;
}

.comic-panel.reverse .speech-bubble.di::before {
    left: auto;
    right: -22px;
    border-left: 15px solid var(--bubble-di-border);
    border-right: 0;
}

.speech-bubble h3 {
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    font-size: clamp(1rem, 2.5vw, 1.25rem);
}

.speech-bubble p {
    color: var(--text-secondary);
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    margin: 0;
    line-height: 1.7;
}

.character-name {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-xs);
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   THREE PILLARS
   ======================================== */
.pillars-section {
    padding: var(--space-lg) 0 var(--space-xl);
    background: var(--bg-primary);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.pillar-card {
    background: var(--card-bg);
    padding: var(--space-lg) var(--space-md);
    border-radius: var(--radius-lg);
    border: 2px solid var(--card-border);
    text-align: center;
    text-decoration: none;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-brand);
    opacity: 0;
    transition: var(--transition-normal);
}

.pillar-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-orange);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(232, 90, 79, 0.15);
}

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

/* Pillar Avatar */
.pillar-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--space-sm);
    position: relative;
}

.pillar-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
    transition: var(--transition-normal);
}

/* Speaking avatar - hidden by default */
.pillar-avatar .avatar-speaking {
    display: none;
}

/* On hover - show speaking, hide default */
.pillar-card:hover .pillar-avatar .avatar-default {
    display: none;
}

.pillar-card:hover .pillar-avatar .avatar-speaking {
    display: block;
    animation: avatarPop 0.3s ease-out;
}

@keyframes avatarPop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.pillar-card .pillar-avatar img {
    transform: scale(1.1);
}

.pillar-card:hover .pillar-avatar img {
    transform: scale(1.15);
}

/* Dual avatar for Ops Hub */
.pillar-avatar-dual {
    width: 160px;
    margin-bottom: var(--space-lg);
}

.pillar-avatar-dual img {
    width: 90px;
    height: 90px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.pillar-avatar-dual .avatar-left {
    left: 0;
}

.pillar-avatar-dual .avatar-right {
    right: 0;
}

/* Dual avatar speaking states */
.pillar-avatar-dual .avatar-speaking {
    display: none;
}

.pillar-card:hover .pillar-avatar-dual .avatar-default {
    display: none;
}

.pillar-card:hover .pillar-avatar-dual .avatar-speaking {
    display: block;
    animation: avatarPop 0.3s ease-out;
}

.pillar-card:hover .pillar-avatar-dual .avatar-left {
    transform: translateY(-50%) scale(1.1) rotate(-5deg);
}

.pillar-card:hover .pillar-avatar-dual .avatar-right {
    transform: translateY(-50%) scale(1.1) rotate(5deg);
}

.pillar-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
    display: inline-block;
    background: var(--bg-tertiary);
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.pillar-card:hover .pillar-icon {
    background: var(--gradient-brand);
    transform: scale(1.05);
}

.pillar-card h3 {
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    font-size: 1.5rem;
}

.pillar-card p {
    color: var(--text-secondary);
    margin: 0 0 var(--space-sm);
    font-size: 0.95rem;
    line-height: 1.6;
}

.pillar-cta {
    display: inline-block;
    color: var(--color-orange);
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition-normal);
}

.pillar-card:hover .pillar-cta {
    opacity: 1;
    transform: translateY(0);
}

/* All pillar cards - highlighted by default */
.pillar-card {
    transform: translateY(-8px);
    border-color: var(--color-orange);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(232, 90, 79, 0.15);
}

.pillar-card::before {
    opacity: 1;
}

.pillar-card .pillar-avatar img {
    transform: scale(1.1);
}

.pillar-card .pillar-icon {
    background: var(--gradient-brand);
}

.pillar-card .pillar-cta {
    opacity: 1;
    transform: translateY(0);
}

.pillar-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(232, 90, 79, 0.25);
}

.pillar-card:hover .pillar-avatar img {
    transform: scale(1.15);
}

/* Pillars Responsive */
@media (max-width: 768px) {
    .pillars-grid {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .pillar-card {
        padding: var(--space-md);
    }

    .pillar-avatar {
        width: 80px;
        height: 80px;
    }

    .pillar-avatar-dual {
        width: 100px;
    }

    .pillar-avatar-dual img {
        width: 55px;
        height: 55px;
    }

    .pillar-icon {
        font-size: 2rem;
        width: 56px;
        height: 56px;
        line-height: 56px;
    }

    .pillar-cta {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   USECASE CAROUSEL
   ======================================== */
.usecase-carousel-section {
    padding: var(--space-xl) 0;
    background: var(--bg-secondary);
}

.usecase-carousel {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    max-width: 900px;
    margin: 0 auto;
}

.carousel-viewport {
    flex: 1;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
}

.carousel-slides {
    position: relative;
    width: 100%;
}

.carousel-slide {
    display: none;
    width: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.carousel-slide.active {
    display: block;
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* Navigation Buttons */
.carousel-btn {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    border-color: var(--color-orange);
    background: var(--color-orange);
    color: white;
}

/* Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: var(--transition-normal);
}

.carousel-dot:hover {
    background: var(--text-secondary);
}

.carousel-dot.active {
    background: var(--color-orange);
    transform: scale(1.2);
}

/* Usecase Carousel Responsive */
@media (max-width: 768px) {
    .usecase-carousel {
        gap: var(--space-sm);
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

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

/* ========================================
   FEATURE CARDS
   ======================================== */
.features-section {
    padding: var(--space-lg) 0;
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-md);
}

.section-header h2 {
    color: var(--text-primary);
    display: inline-block;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-brand);
    border-radius: 2px;
}

.section-header p {
    max-width: 600px;
    margin: var(--space-sm) auto 0;
    color: var(--text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
}

.feature-card {
    background: var(--card-bg);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    border: 1px solid var(--card-border);
    transition: var(--transition-normal);
    opacity: 0;
    transform: translateY(20px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-orange);
    box-shadow: var(--shadow-lg);
    background: var(--bg-card-hover);
}

.feature-card.visible:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-brand);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-sm);
    font-size: 1.5rem;
}

.feature-card h4 {
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.feature-card p {
    color: var(--text-secondary);
    margin: 0;
}

/* ========================================
   STUDIO BLOCKS (Shared Styles)
   ======================================== */
.studio-block {
    position: relative;
    padding: var(--space-lg);
    border-radius: var(--radius-xl);
    border: 2px solid transparent;
    background-clip: padding-box;
}

/* Gradient border effect */
.studio-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-xl);
    padding: 2px;
    background: var(--gradient-brand);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Outer glow */
.studio-block::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: var(--radius-xl);
    background: var(--gradient-brand);
    opacity: 0.1;
    z-index: -1;
    filter: blur(20px);
}

/* Feature cards inside studio blocks - elevated by default */
.studio-block .feature-card {
    transform: translateY(-5px);
    border-color: var(--color-orange);
    box-shadow: var(--shadow-lg);
    background: var(--bg-card-hover);
}

.studio-block .feature-card.visible {
    transform: translateY(-5px);
}

.studio-block .feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(232, 90, 79, 0.2);
}

@media (max-width: 768px) {
    .studio-block {
        padding: var(--space-md);
        border-radius: var(--radius-lg);
    }

    .studio-block::before,
    .studio-block::after {
        border-radius: var(--radius-lg);
    }
}

/* ========================================
   BUILD STUDIO SECTION
   ======================================== */
.build-studio-section {
    background: var(--bg-primary);
}

.build-studio-block {
    background: #1c2125;
}

.build-studio-section .section-header {
    position: relative;
}

.build-studio-section .section-header::before {
    content: '🛠️';
    font-size: 4rem;
    display: block;
    margin-bottom: var(--space-sm);
    filter: drop-shadow(0 4px 8px rgba(232, 90, 79, 0.3));
}

[data-theme="light"] .build-studio-block {
    background: #fdf8f7;
}

@media (max-width: 768px) {
    .build-studio-section .section-header::before {
        font-size: 3rem;
    }
}

/* ========================================
   WORKFLOW GRID WITH ARROWS
   ======================================== */
.workflow-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: var(--space-sm);
    align-items: center;
}

.workflow-step {
    position: relative;
}

/* Arrow styling */
.workflow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-orange);
    font-size: 1.5rem;
    opacity: 0.8;
}

.workflow-arrow.arrow-right::before {
    content: '→';
    font-weight: bold;
}

.workflow-arrow.arrow-down {
    grid-column: 1 / -1;
    padding: var(--space-xs) 0;
}

.workflow-arrow.arrow-down::before {
    content: '↓';
    font-weight: bold;
    font-size: 2rem;
}

/* Responsive - stack vertically on mobile */
@media (max-width: 900px) {
    .workflow-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xs);
    }

    .workflow-arrow.arrow-right {
        transform: rotate(90deg);
        padding: var(--space-xs) 0;
    }

    .workflow-arrow.arrow-down {
        display: flex;
    }
}

/* ========================================
   CHAT STUDIO SECTION
   ======================================== */
.chat-studio-section {
    background: var(--bg-secondary);
}

.chat-studio-block {
    background: #1c2125;
}

.chat-studio-section .section-header {
    position: relative;
}

.chat-studio-section .section-header::before {
    content: '💬';
    font-size: 4rem;
    display: block;
    margin-bottom: var(--space-sm);
    filter: drop-shadow(0 4px 8px rgba(245, 166, 35, 0.3));
}

[data-theme="light"] .chat-studio-block {
    background: #f7f9fc;
}

@media (max-width: 768px) {
    .chat-studio-section .section-header::before {
        font-size: 3rem;
    }
}

/* ========================================
   OPS HUB SECTION
   ======================================== */
.ops-hub-section {
    background: var(--bg-primary);
}

.ops-hub-block {
    background: #1c2125;
}

.ops-hub-section .section-header {
    position: relative;
}

.ops-hub-section .section-header::before {
    content: '📡';
    font-size: 4rem;
    display: block;
    margin-bottom: var(--space-sm);
    filter: drop-shadow(0 4px 8px rgba(247, 208, 70, 0.3));
}

[data-theme="light"] .ops-hub-block {
    background: #f8fdf8;
}

/* Mission Block (About page) */
.mission-block {
    background: #1c2125;
}

[data-theme="light"] .mission-block {
    background: #f9f7fd;
}

@media (max-width: 768px) {
    .ops-hub-section .section-header::before {
        font-size: 3rem;
    }
}

.ops-hub-layout {
    position: relative;
    z-index: 1;
}

.ops-hub-visual {
    margin-bottom: var(--space-lg);
}

.ops-metrics {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.ops-metric {
    text-align: center;
    padding: var(--space-md) var(--space-lg);
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 2px solid var(--card-border);
    min-width: 160px;
    transition: var(--transition-normal);
}

.ops-metric:hover {
    border-color: var(--color-orange);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.metric-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.metric-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ops-hub-grid {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
    .ops-metrics {
        gap: var(--space-sm);
    }

    .ops-metric {
        padding: var(--space-sm) var(--space-md);
        min-width: 120px;
    }

    .metric-value {
        font-size: 1.75rem;
    }

    .ops-hub-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .ops-metrics {
        flex-direction: column;
        align-items: center;
    }

    .ops-metric {
        min-width: unset;
        width: 100%;
        max-width: 200px;
    }

    .metric-value {
        font-size: 1.5rem;
    }
}

/* ========================================
   HOW IT WORKS
   ======================================== */
.how-it-works {
    padding: var(--space-xl) 0;
    background: var(--bg-primary);
}

.how-it-works .section-header h2,
.how-it-works .section-header p {
    color: var(--text-primary);
}

.how-it-works .section-header p {
    color: var(--text-secondary);
}

.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-md);
    position: relative;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 15%;
    right: 15%;
    height: 4px;
    background: var(--gradient-brand);
    z-index: 0;
    border-radius: 2px;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 70px;
    height: 70px;
    background: var(--gradient-brand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 auto var(--space-sm);
    color: white;
    box-shadow: 0 4px 20px rgba(232, 90, 79, 0.3);
}

.step h4 {
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.step p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding: 0 var(--space-sm);
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    padding: var(--space-xl) 0;
    background: var(--bg-primary);
}

.cta-box {
    background: var(--gradient-brand);
    padding: var(--space-lg);
    border-radius: var(--radius-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 60%;
    height: 200%;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

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

.cta-box h2 {
    color: white;
    margin-bottom: var(--space-sm);
}

.cta-box p {
    color: rgba(255,255,255,0.9);
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: var(--space-md);
}

.cta-box .btn-secondary {
    background: white;
    color: var(--color-red);
    border: none;
}

.cta-box .btn-secondary:hover {
    background: var(--bg-primary);
    color: var(--color-orange);
}

.cta-buttons {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-box .btn-primary {
    background: white;
    color: var(--color-red);
    border: none;
}

.cta-box .btn-primary:hover {
    background: var(--bg-primary);
    color: var(--color-orange);
    transform: translateY(-2px);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--footer-bg);
    color: white;
    padding: 0;
    position: relative;
}

.footer-accent {
    height: 4px;
    background: var(--gradient-brand);
}

/* Main Footer Layout */
.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: var(--space-lg);
    padding: var(--space-xl) 0 var(--space-lg);
}

/* Brand Column */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-logo-link {
    display: flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
}

.footer-logo {
    height: 50px;
    width: auto;
    transition: var(--transition-normal);
}

.footer-logo-link:hover .footer-logo {
    transform: scale(1.05);
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

.footer-social-links {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-xs);
}

.footer-social {
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-normal);
}

.footer-social:hover {
    background: var(--gradient-brand);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(232, 90, 79, 0.4);
}

/* Navigation Columns */
.footer-nav h4 {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: var(--space-sm);
    font-weight: 600;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: var(--space-xs);
}

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

.footer-nav a:hover {
    color: var(--color-orange);
    padding-left: 5px;
}

/* Characters Column */
.footer-characters {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.footer-char-group {
    display: flex;
    gap: var(--space-xs);
    align-items: flex-end;
}

.footer-mascot-wrapper {
    position: relative;
}

.footer-mascot {
    height: 70px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    transition: var(--transition-normal);
    cursor: pointer;
}

.footer-mascot:hover {
    transform: translateY(-5px) scale(1.1);
}

.footer-di:hover {
    filter: drop-shadow(0 6px 12px rgba(232, 90, 79, 0.4));
}

.footer-ta:hover {
    filter: drop-shadow(0 6px 12px rgba(245, 166, 35, 0.4));
}

/* Speech Bubble */
.footer-bubble {
    background: var(--bg-card);
    border: 2px solid var(--color-orange);
    border-radius: var(--radius-lg);
    padding: var(--space-sm) var(--space-md);
    position: relative;
    max-width: 200px;
    text-align: center;
    animation: subtlePulse 3s ease-in-out infinite;
}

.footer-bubble::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-bottom-color: var(--color-orange);
    border-top: 0;
}

.footer-bubble::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: var(--bg-card);
    border-top: 0;
}

.footer-bubble p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-family: 'Comic Neue', cursive;
    font-weight: 700;
}

@keyframes subtlePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(232, 90, 79, 0.2); }
    50% { box-shadow: 0 0 15px 3px rgba(232, 90, 79, 0.15); }
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--space-md) 0;
    border-top: 1px solid var(--border-color);
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Responsive footer */
@media (max-width: 900px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-md);
    }

    .footer-brand {
        grid-column: 1 / -1;
        align-items: center;
        text-align: center;
    }

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

    .footer-social-links {
        justify-content: center;
    }

    .footer-characters {
        grid-column: 1 / -1;
        margin-top: var(--space-sm);
    }
}

@media (max-width: 600px) {
    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-md);
    }

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

    .footer-nav a:hover {
        padding-left: 0;
    }

    .footer-mascot {
        height: 60px;
    }

    .footer-bubble {
        max-width: 180px;
    }
}

.social-links {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    margin-bottom: var(--space-md);
}

.social-links a {
    width: 44px;
    height: 44px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition-fast);
}

.social-links a:hover {
    background: var(--gradient-brand);
    color: white;
}

/* ========================================
   PAGE HEADERS
   ======================================== */
.page-header {
    padding: calc(80px + var(--space-xl)) 0 var(--space-lg);
    background: var(--bg-secondary);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    margin-bottom: var(--space-sm);
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   PRODUCT PAGE HERO
   ======================================== */
.product-hero {
    padding: calc(80px + var(--space-lg)) 0 var(--space-lg);
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
    border-bottom: none;
}

.product-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 70%;
    height: 200%;
    background: var(--gradient-brand);
    opacity: 0.05;
    border-radius: 50%;
    transform: rotate(-15deg);
}

.product-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 40%;
    height: 80%;
    background: var(--gradient-brand-reverse);
    opacity: 0.03;
    border-radius: 50%;
}

.product-hero-centered {
    text-align: center;
    position: relative;
    z-index: 1;
}

.product-hero-centered h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: var(--space-sm);
}

.product-hero-centered p {
    font-size: clamp(1rem, 3vw, 1.4rem);
    color: var(--text-secondary);
    margin: 0 auto;
    max-width: 600px;
    padding: 0 var(--space-sm);
}

/* ========================================
   ABOUT PAGE
   ======================================== */
.about-hero {
    padding: calc(80px + var(--space-lg)) 0 var(--space-lg);
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
    border-bottom: none;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 70%;
    height: 200%;
    background: var(--gradient-brand);
    opacity: 0.05;
    border-radius: 50%;
    transform: rotate(-15deg);
}

.about-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 40%;
    height: 120%;
    background: var(--gradient-brand);
    opacity: 0.03;
    border-radius: 50%;
}

.about-hero-centered {
    text-align: center;
    position: relative;
    z-index: 1;
}

.about-hero-centered h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: var(--space-sm);
}

.about-hero-centered p {
    font-size: clamp(1rem, 3vw, 1.4rem);
    color: var(--text-secondary);
    margin: 0 auto;
    max-width: 600px;
    padding: 0 var(--space-sm);
}

/* Meet Characters Section */
.meet-characters {
    padding: var(--space-lg) 0;
}

.pillars-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .pillars-grid-2 {
        grid-template-columns: 1fr;
    }
}

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

.character-card h3 {
    margin-bottom: var(--space-xs);
}

.character-role {
    display: inline-block;
    margin-top: var(--space-sm);
    padding: 0.4rem 1rem;
    background: var(--gradient-brand);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid var(--color-orange);
    border-radius: var(--radius-full);
}

/* ========================================
   CONTACT PAGE
   ======================================== */
.contact-hero {
    position: relative;
    overflow: hidden;
    border-bottom: none;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 50%;
    height: 160%;
    background: var(--gradient-brand);
    opacity: 0.06;
    border-radius: 50%;
    transform: rotate(-20deg);
}

.contact-hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
}

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

.contact-hero-text h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: var(--space-xs);
}

.contact-hero-text p {
    color: var(--text-secondary);
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin: 0;
}

/* Hero guide characters */
.hero-guide-left,
.hero-guide-right {
    z-index: 1;
}

.hero-guide-left img,
.hero-guide-right img {
    width: 100px;
}

/* Tooltips to the side of characters in hero */
.hero-guide-left .form-guide-tip,
.hero-guide-right .form-guide-tip {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    background: var(--bg-card);
}

/* Di's tooltip - appears to the right */
.hero-guide-left .form-guide-tip,
.hero-guide-left .form-guide-tip.tip-left {
    left: 100%;
    right: auto;
    margin-left: var(--space-sm);
    background: var(--bg-card);
}

.hero-guide-left .form-guide-tip::after,
.hero-guide-left .form-guide-tip.tip-left::after {
    top: 50%;
    bottom: auto;
    left: -16px;
    right: auto;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-right-color: var(--bubble-di-border);
}

/* Ta's tooltip - appears to the left */
.hero-guide-right .form-guide-tip {
    right: 100%;
    left: auto;
    margin-right: var(--space-sm);
    top: 30%;
}

.hero-guide-right .form-guide-tip::after {
    top: 50%;
    bottom: auto;
    right: -16px;
    left: auto;
    transform: translateY(-50%);
    border-top-color: transparent;
    border-bottom-color: transparent;
    border-left-color: var(--bubble-ta-border);
    border-right-color: transparent;
}

.hero-guide-left:hover .form-guide-tip,
.hero-guide-right:hover .form-guide-tip {
    transform: translateY(-50%);
}

@media (max-width: 768px) {
    .hero-guide-left img,
    .hero-guide-right img {
        width: 60px;
    }

    .hero-guide-left .form-guide-tip,
    .hero-guide-right .form-guide-tip {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-guide-left img,
    .hero-guide-right img {
        width: 45px;
    }
}

.contact-section {
    padding: var(--space-lg) 0 var(--space-xl);
}

/* FAQ section cards with orange border */
.faq-section {
    background: var(--bg-secondary);
}

.faq-section .feature-card {
    border-color: var(--color-orange);
    box-shadow: var(--shadow-md);
    opacity: 1;
    transform: none;
}

.faq-section .feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), 0 0 15px rgba(245, 166, 35, 0.2);
}

/* Full-width form */
.contact-form-full {
    max-width: 850px;
    margin: 0 auto;
}

/* Form header */
.form-header {
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.form-header h3 {
    margin: 0;
}

.form-guide {
    position: relative;
    cursor: pointer;
}

.form-guide img {
    width: 80px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: transform var(--transition-normal);
}

.form-guide .guide-speaking {
    display: none;
}

.form-guide:hover .guide-default {
    display: none;
}

.form-guide:hover .guide-speaking {
    display: block;
    transform: scale(1.1);
}

/* Tooltip base */
.form-guide-tip {
    position: absolute;
    bottom: 100%;
    right: 0;
    width: 220px;
    padding: var(--space-sm);
    background: var(--bubble-ta-bg);
    border: 2px solid var(--bubble-ta-border);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    color: var(--text-primary);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-normal);
    margin-bottom: var(--space-xs);
    box-shadow: var(--shadow-md);
    z-index: 10;
}

.form-guide-tip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 30px;
    border: 8px solid transparent;
    border-top-color: var(--bubble-ta-border);
}

.form-guide:hover .form-guide-tip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.form-guide-tip strong {
    color: var(--color-orange);
}

/* Di's tooltip - coral colors, positioned left */
.form-guide-tip.tip-left {
    right: auto;
    left: 0;
    background: var(--bubble-di-bg);
    border-color: var(--bubble-di-border);
}

.form-guide-tip.tip-left::after {
    right: auto;
    left: 30px;
    border-top-color: var(--bubble-di-border);
}

.form-guide-tip.tip-left strong {
    color: var(--color-red);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .form-guide img {
        width: 60px;
    }

    .form-guide-tip {
        width: 180px;
        font-size: 0.8rem;
        padding: var(--space-xs);
    }
}

.contact-item {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-brand);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-item h4 {
    color: var(--text-primary);
    margin-bottom: 0;
}

.contact-item p {
    color: var(--text-secondary);
    margin: 0;
}

/* Enhanced contact item cards */
.contact-item {
    background: var(--bg-card);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

.contact-item:hover {
    border-color: var(--color-orange);
    transform: translateX(5px);
}

/* Contact form with gradient border */
.contact-form {
    position: relative;
    background: var(--bg-card);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
}

.contact-form::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 2px;
    background: var(--gradient-brand);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.contact-form h3 {
    margin-bottom: var(--space-md);
}

.form-group {
    margin-bottom: var(--space-sm);
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: var(--space-sm);
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-orange);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

/* ========================================
   ABOUT PAGE
   ======================================== */
.about-story {
    padding: var(--space-xl) 0;
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
}

.story-text h2 {
    color: var(--text-primary);
}

.story-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

.story-image {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
}

.story-image img {
    height: 280px;
    width: auto;
    border-radius: var(--radius-lg);
    filter: drop-shadow(var(--shadow-lg));
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.value-item {
    padding: var(--space-sm);
    border-left: 4px solid;
    border-image: var(--gradient-brand) 1;
    background: var(--bg-tertiary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.value-item h4 {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-xs);
}

.value-item p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 968px) {
    .hero-headline .hero-title {
        font-size: clamp(1.75rem, 4vw, 2.5rem);
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-characters {
        justify-content: center;
    }

    .hero-banner {
        max-width: 100%;
        width: 100%;
    }

    .character img {
        height: 250px;
    }

    .story-content,
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 90px;
    }

    .logo img {
        height: 50px;
    }

    .logo-text {
        font-size: 1.4rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-navbar);
        flex-direction: column;
        padding: var(--space-md);
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    /* Show theme toggle next to hamburger on mobile */
    .mobile-theme-toggle {
        display: flex;
    }

    .comic-panel {
        display: block;
        text-align: center;
    }

    .comic-panel.reverse {
        display: block;
    }

    /* Hide standalone character on mobile - avatar goes inside bubble */
    .comic-panel .comic-character {
        display: none;
    }

    /* Speech bubble with avatar inside */
    .comic-panel .speech-bubble {
        position: relative;
        max-width: 100%;
        margin: 0 auto var(--space-md);
        padding-top: var(--space-lg);
    }

    /* Hide arrow tails on mobile */
    .comic-panel .speech-bubble::before,
    .comic-panel.reverse .speech-bubble::before {
        display: none;
    }

    /* Avatar inside bubble */
    .comic-panel .speech-bubble::after {
        content: '';
        position: absolute;
        top: 12px;
        width: 45px;
        height: 45px;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    }

    /* Di's bubble - avatar on left */
    .comic-panel .speech-bubble.di::after {
        left: 15px;
        background-image: url('../images/Di.png');
    }

    /* Ta's bubble - avatar on right */
    .comic-panel .speech-bubble.ta::after {
        right: 15px;
        background-image: url('../images/Ta.png');
    }

    .steps-container {
        flex-direction: column;
        align-items: center;
    }

    .steps-container::before {
        display: none;
    }

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

@media (max-width: 480px) {
    .hero {
        padding-top: 100px;
    }

    .hero-headline .hero-title {
        font-size: clamp(1.4rem, 6vw, 2rem);
        line-height: 1.3;
    }

    .hero-description {
        font-size: 1rem;
        line-height: 1.6;
    }

    .hero-characters {
        flex-direction: column;
        align-items: center;
    }

    .hero-banner {
        max-width: 100%;
    }

    .character img {
        height: 200px;
    }

    .btn-group {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .section-header h2 {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

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

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .cta-box {
        padding: var(--space-md);
    }

    .cta-box h2 {
        font-size: clamp(1.25rem, 5vw, 1.75rem);
    }

    .cta-box p {
        font-size: 1rem;
    }
}
