/* Kentro Orange: rgb(255, 77, 0) = #FF4D00 */

:root {
    --kentro-orange: #FF4D00;
    --kentro-orange-dark: #E64500;
    --kentro-orange-light: rgba(255, 77, 0, 0.1);
    --kentro-orange-glow: rgba(255, 77, 0, 0.4);
    --dark-bg: #141414;
    --dark-surface: #1f1f1f;
    --warm-white: #fffaf5;
}

.gradient-bg {
    background: linear-gradient(135deg, #FF4D00 0%, #FF6B2C 100%);
}

.gradient-text {
    background: linear-gradient(135deg, #FF4D00 0%, #FF6B2C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient {
    background: linear-gradient(135deg, #FF4D00 0%, #FF6B2C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-bg {
    background: linear-gradient(135deg, rgba(255, 77, 0, 0.03) 0%, rgba(255, 107, 44, 0.03) 100%);
}

.feature-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--kentro-orange);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.testimonial-card {
    background: linear-gradient(135deg, rgba(255, 77, 0, 0.02) 0%, rgba(255, 107, 44, 0.02) 100%);
}

.btn-primary {
    background: var(--kentro-orange);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--kentro-orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px var(--kentro-orange-glow);
}

.section-divider {
    background: linear-gradient(90deg, transparent 0%, var(--kentro-orange) 50%, transparent 100%);
    height: 1px;
    width: 100px;
    margin: 0 auto;
}

/* Dark section with orange accents */
.bg-gradient-dark {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-surface) 100%);
}

/* Pillar cards on dark background */
.pillar-card {
    background: rgba(255, 77, 0, 0.05);
    border: 1px solid rgba(255, 77, 0, 0.15);
    transition: all 0.3s ease;
}

.pillar-card:hover {
    border-color: rgba(255, 77, 0, 0.3);
    background: rgba(255, 77, 0, 0.08);
}

/* Step number badges */
.step-number {
    background: var(--kentro-orange);
}

/* Loop visualization */
.loop-arrow {
    color: var(--kentro-orange);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.loop-box-active {
    background: linear-gradient(135deg, #FF4D00 0%, #FF6B2C 100%);
}

.loop-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
}

/* Outlined loop boxes - keeps orange accents without competing with CTA */
.loop-box-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
}

.loop-box-highlight {
    border: 2px solid var(--kentro-orange);
    background: rgba(255, 77, 0, 0.1);
}

/* Step cards */
.step-card {
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Feature cards border on hover */
.feature-hover:hover {
    border-color: var(--kentro-orange) !important;
}

/* Quote marks */
.quote-mark {
    color: rgba(255, 77, 0, 0.2);
}

/* Tagline styling */
.tagline {
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--kentro-orange);
}

/* Hero subtitle */
.hero-subtitle {
    font-size: 1.75rem;
}

@media (max-width: 768px) {
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

/* Checkmarks in pricing */
.check-orange {
    color: var(--kentro-orange);
}

/* Orange ring focus states */
.focus-orange:focus {
    outline: none;
    ring: 2px;
    ring-color: var(--kentro-orange);
}

/* Link hover */
a.link-orange:hover {
    color: var(--kentro-orange);
}

/* ============================================
   Story-as-Outline Section Styles
   ============================================ */

/* Text colors */
.text-primary { color: #1a1a1a; }
.text-secondary { color: #525252; }
.text-muted { color: #737373; }

/* Hand-drawn double arc underline */
.underline-sketch {
    position: relative;
    display: inline-block;
    white-space: nowrap;
}
.underline-sketch::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: -3%;
    width: 106%;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 24' preserveAspectRatio='none'%3E%3Cpath d='M3 10 Q 35 3, 80 8 Q 130 14, 170 6 Q 190 3, 197 7' stroke='%23FF4D00' stroke-width='3.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M5 17 Q 45 10, 95 15 Q 140 20, 175 12 Q 192 9, 195 13' stroke='%23FF4D00' stroke-width='2.5' fill='none' stroke-linecap='round' stroke-linejoin='round' opacity='0.7'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

/* Hand-drawn circle */
.circle-sketch {
    position: relative;
    display: inline;
    padding: 0.1em 0.3em;
}
.circle-sketch::before {
    content: '';
    position: absolute;
    top: -0.15em;
    left: -0.25em;
    right: -0.25em;
    bottom: -0.15em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 50' preserveAspectRatio='none'%3E%3Cellipse cx='50' cy='25' rx='46' ry='20' stroke='%23FF4D00' stroke-width='2' fill='none' stroke-linecap='round' transform='rotate(-1 50 25)'/%3E%3Cellipse cx='50' cy='25' rx='44' ry='18' stroke='%23FF4D00' stroke-width='1.5' fill='none' stroke-linecap='round' opacity='0.5' transform='rotate(1 50 25)'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    pointer-events: none;
}

/* Marker highlight effect */
.marker {
    background: linear-gradient(104deg,
        rgba(255,77,0,0) 0.9%,
        rgba(255,77,0,0.2) 2.4%,
        rgba(255,77,0,0.15) 5.8%,
        rgba(255,77,0,0.15) 93%,
        rgba(255,77,0,0.2) 96%,
        rgba(255,77,0,0) 98%
    );
    padding: 0.1em 0.4em;
    margin: -0.1em -0.2em;
    border-radius: 0.8em 0.3em;
}

/* Subtle card style */
.card-subtle {
    background: white;
    border: 1px solid #e5e5e5;
    transition: border-color 0.2s ease;
}
.card-subtle:hover {
    border-color: var(--kentro-orange);
}

/* Scroll-triggered fade up - visible by default to prevent FOUC */
.fade-up {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

/* Only apply hidden state when JS is ready */
.js-ready .fade-up {
    opacity: 0;
    transform: translateY(20px);
}

.js-ready .fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Breathing animation for CTA */
@keyframes breathe {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.02); opacity: 0.9; }
}
.breathe {
    animation: breathe 4s ease-in-out infinite;
}

/* Act Styling */
.story-act {
    background: #fafafa;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e5e5e5;
}

.act-header {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.act-number {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--kentro-orange);
    background: var(--kentro-orange-light);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.act-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.act-description {
    font-size: 0.875rem;
    color: #737373;
    font-style: italic;
    margin-bottom: 1rem;
    padding-left: 0.5rem;
}

/* Chapter Container */
.chapters-container {
    padding-left: 0.5rem;
    border-left: 2px solid #e5e5e5;
    margin-left: 0.5rem;
}

/* Chapter Styling */
.story-chapter {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border: 1px solid #ebebeb;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.story-chapter:hover {
    border-color: #d5d5d5;
}

.story-chapter:last-child {
    margin-bottom: 0;
}

.chapter-highlight {
    border-left: 3px solid var(--kentro-orange);
    background: linear-gradient(90deg, rgba(255, 77, 0, 0.03) 0%, white 30%);
}

.chapter-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.chapter-marker {
    font-size: 0.7rem;
    font-weight: 600;
    color: #737373;
    background: #f0f0f0;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-family: 'Inter', monospace;
}

.chapter-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a1a;
}

.plot-point {
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--kentro-orange);
    background: var(--kentro-orange-light);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    margin-left: auto;
}

/* Chapter Content */
.chapter-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #525252;
}

.chapter-content p {
    margin-bottom: 0.5rem;
}

.chapter-content p:last-child {
    margin-bottom: 0;
}

.scene-detail {
    font-size: 0.875rem;
    color: #737373;
}

.text-emphasis {
    color: #1a1a1a;
    font-weight: 600;
}

/* Quotes */
.story-quote {
    padding: 0.5rem 0;
    margin: 0.5rem 0;
    font-size: 1rem;
}

.story-quote-large {
    padding: 1rem;
    margin: 0.75rem 0;
    font-size: 1.1rem;
    line-height: 1.5;
    color: #1a1a1a;
    background: rgba(255, 77, 0, 0.03);
    border-radius: 6px;
    border-left: 3px solid var(--kentro-orange);
}

/* Feature Showcase - Generated Output */
.feature-showcase {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 0.75rem;
    border: 1px dashed #d5d5d5;
}

.showcase-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #737373;
    margin-bottom: 0.75rem;
}

.mini-outline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.mini-act {
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1a1a1a;
    border: 1px solid #e5e5e5;
}

.mini-arrow {
    color: var(--kentro-orange);
    font-size: 1.25rem;
}

/* Regeneration Showcase */
.regeneration-showcase {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.regen-version {
    flex: 1;
    min-width: 140px;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
}

.regen-before {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
}

.regen-after {
    background: rgba(255, 77, 0, 0.05);
    border: 1px solid rgba(255, 77, 0, 0.2);
}

.regen-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #737373;
    margin-bottom: 0.25rem;
}

.regen-text {
    color: #525252;
    font-style: italic;
}

.regen-after .regen-text {
    color: #1a1a1a;
}

.regen-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.25rem;
}

.regen-action {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--kentro-orange);
    white-space: nowrap;
}

/* Transformation Flow */
.transformation-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: linear-gradient(90deg, #fafafa 0%, rgba(255, 77, 0, 0.05) 100%);
    border-radius: 8px;
    flex-wrap: wrap;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #e5e5e5;
}

.flow-step-final {
    border-color: var(--kentro-orange);
    background: rgba(255, 77, 0, 0.05);
}

.flow-icon {
    font-size: 1.25rem;
}

.flow-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #525252;
}

.flow-step-final .flow-label {
    color: var(--kentro-orange);
    font-weight: 600;
}

.flow-arrow {
    color: var(--kentro-orange);
    font-size: 1.25rem;
}

/* Final Line */
.final-line {
    font-size: 1rem;
    margin-top: 0.75rem;
    color: #1a1a1a;
}

/* Responsive adjustments for story outline */
@media (max-width: 640px) {
    .story-act {
        padding: 1rem;
    }

    .act-header {
        flex-direction: column;
        gap: 0.25rem;
    }

    .chapters-container {
        padding-left: 0.75rem;
        margin-left: 0.25rem;
    }

    .chapter-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .plot-point {
        margin-left: 0;
    }

    .regeneration-showcase {
        flex-direction: column;
    }

    .regen-arrow {
        transform: rotate(90deg);
        padding: 0.25rem 0;
    }

    .transformation-flow {
        gap: 0.25rem;
    }

    .flow-arrow {
        font-size: 1rem;
    }

    .flow-step {
        padding: 0.4rem 0.5rem;
    }

    .flow-icon {
        font-size: 1rem;
    }

    .flow-label {
        font-size: 0.65rem;
    }
}
