/* ============================================
   Akuma Media — N8N Automation Agency
   Ultra-Modern Landing Page Styles
   ============================================ */

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

:root {
    --white: #FFFFFF;
    --off-white: #FAFAFA;
    --gray-50: #F8F8F8;
    --gray-100: #F0F0F0;
    --gray-200: #E4E4E7;
    --gray-300: #D1D1D6;
    --gray-400: #A1A1AA;
    --gray-500: #71717A;
    --gray-600: #52525B;
    --gray-700: #3F3F46;
    --gray-800: #27272A;
    --gray-900: #18181B;
    --black: #0A0A0A;

    --accent: #FF6B35;
    --accent-light: #FF8F66;
    --accent-dark: #E55A25;
    --accent-glow: rgba(255, 107, 53, 0.15);

    --purple: #A78BFA;
    --green: #34D399;
    --blue: #60A5FA;

    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

/* Lenis Smooth Scroll — required base styles */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
.lenis.lenis-smooth iframe { pointer-events: none; }
.lenis.lenis-stopped { overflow: clip; }

body {
    font-family: var(--font-primary);
    background: var(--white);
    color: var(--gray-900);
    overflow-x: clip;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* === Cursor Glow === */
.cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 0;
}

.cursor-glow.active {
    opacity: 1;
}

/* === Container === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === Navigation === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.4s var(--ease-out-expo);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 12px 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--black);
}

.logo-icon {
    display: flex;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: color 0.2s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s var(--ease-out-expo);
}

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

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--black);
    color: var(--white);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s var(--ease-out-expo);
}

.nav-cta:hover {
    background: var(--gray-800);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--black);
    transition: all 0.3s var(--ease-out-expo);
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* === Mobile Menu === */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out-expo);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.mobile-link {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--black);
    transition: color 0.2s ease;
}

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

.mobile-cta {
    margin-top: 16px;
    padding: 16px 32px;
    background: var(--black);
    color: var(--white);
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 500;
}

/* === Hero Section === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 60px;
    overflow: hidden;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,0,0,0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.07) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent);
}

.hero-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.hero-orb-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-glow);
    top: -200px;
    right: -200px;
    animation: orbFloat 8s ease-in-out infinite;
}

.hero-orb-2 {
    width: 400px;
    height: 400px;
    background: rgba(167, 139, 250, 0.08);
    bottom: -100px;
    left: -100px;
    animation: orbFloat 10s ease-in-out infinite reverse;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

.hero-container {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Animate-in classes (subtle blur+fade+slide) */
.animate-in {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(3px);
}

.animate-in.visible {
    animation: fadeInUp 1.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.animate-in[data-delay="1"].visible { animation-delay: 0.12s; }
.animate-in[data-delay="2"].visible { animation-delay: 0.24s; }
.animate-in[data-delay="3"].visible { animation-delay: 0.4s; }
.animate-in[data-delay="4"].visible { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
        filter: blur(3px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gray-600);
    margin-bottom: 32px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--black);
    margin-bottom: 24px;
}

.hero-line {
    display: block;
}

.hero-highlight {
    position: relative;
    display: inline-block;
    color: var(--accent);
}

.highlight-underline {
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 12px;
    opacity: 0.5;
}

.highlight-underline path {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: drawLine 1s var(--ease-out-expo) 0.8s forwards;
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--gray-500);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 64px;
}

/* === Buttons === */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--accent);
    color: var(--white);
    border: none;
    cursor: pointer;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.15) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.35);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--white);
    color: var(--black);
    border: 1px solid var(--gray-200);
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s var(--ease-out-expo);
}

.btn-secondary:hover {
    border-color: var(--gray-300);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.btn-play-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: 50%;
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.875rem;
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.05rem;
}

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

/* === Hero Stats === */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

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

.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--black);
}

.stat-suffix {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gray-400);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--gray-400);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--gray-200);
}

/* === Hero Visual (Workflow Preview) === */
.hero-visual {
    position: relative;
    z-index: 2;
    margin-top: 40px;
    width: 100%;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.workflow-preview {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 1px 3px rgba(0,0,0,0.04),
        0 8px 32px rgba(0,0,0,0.06),
        0 24px 60px rgba(0,0,0,0.04);
    transition: transform 0.6s var(--ease-out-expo), box-shadow 0.6s var(--ease-out-expo);
}

.workflow-preview:hover {
    transform: translateY(-4px);
    box-shadow:
        0 1px 3px rgba(0,0,0,0.04),
        0 12px 40px rgba(0,0,0,0.08),
        0 32px 80px rgba(0,0,0,0.06);
}

.workflow-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-100);
}

.workflow-dots {
    display: flex;
    gap: 6px;
}

.workflow-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-200);
}

.workflow-dots span:first-child { background: #FF5F57; }
.workflow-dots span:nth-child(2) { background: #FFBD2E; }
.workflow-dots span:last-child { background: #28CA41; }

.workflow-title {
    font-size: 0.8rem;
    color: var(--gray-400);
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.workflow-canvas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 48px 32px;
    background: var(--white);
    background-image:
        radial-gradient(circle, var(--gray-200) 1px, transparent 1px);
    background-size: 20px 20px;
}

.wf-node {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 14px;
    position: relative;
    transition: all 0.3s var(--ease-out-expo);
    cursor: default;
    flex-shrink: 0;
}

.wf-node::after {
    content: attr(data-label);
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--gray-400);
    white-space: nowrap;
}

.wf-node:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.wf-node-trigger { border-color: var(--accent); }
.wf-node-process { border-color: var(--purple); }
.wf-node-ai { border-color: var(--green); }
.wf-node-output { border-color: var(--blue); }

.wf-connector {
    width: 60px;
    height: 2px;
    background: var(--gray-200);
    position: relative;
    flex-shrink: 0;
}

.wf-pulse {
    position: absolute;
    top: -3px;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulseThroughConnector 2.5s var(--ease-out-quint) infinite;
}

.wf-c2 .wf-pulse { animation-delay: 0.4s; }
.wf-c3 .wf-pulse { animation-delay: 0.8s; }

@keyframes pulseThroughConnector {
    0% { left: -4px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: calc(100% - 4px); opacity: 0; }
}

/* === Logos Marquee === */
.logos-section {
    padding: 60px 0;
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
    overflow: hidden;
}

.logos-label {
    text-align: center;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-400);
    margin-bottom: 32px;
}

.logos-marquee {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.logos-track {
    display: flex;
    gap: 60px;
    animation: marquee 90s linear infinite;
    width: max-content;
}

.logo-item {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gray-300);
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.logo-item:hover {
    color: var(--gray-500);
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* === Trust Section === */
.trust-section {
    padding: 100px 0;
    background: var(--white);
}

/* --- Trust Section --- */
.trust-grid {
    display: grid;
    grid-template-columns: 0.85fr 1fr;
    gap: 64px;
    align-items: center;
}

.trust-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.trust-image-wrapper img {
    width: 100%;
    height: 520px;
    display: block;
    object-fit: cover;
    object-position: top center;
    border-radius: 20px;
}

.trust-image-accent {
    position: absolute;
    bottom: -6px;
    left: -6px;
    width: 50%;
    height: 50%;
    border-radius: 0 16px 0 16px;
    background: var(--accent);
    opacity: 0.12;
    z-index: -1;
}

.trust-content .section-tag {
    margin-bottom: 20px;
}

.trust-heading {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--gray-900);
    margin-bottom: 24px;
}

.trust-text {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--gray-600);
    margin-bottom: 16px;
}

.trust-text:last-of-type {
    margin-bottom: 32px;
}

.trust-proof {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.trust-avatars {
    display: flex;
}

.trust-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid var(--white);
    margin-left: -10px;
    object-fit: cover;
}

.trust-avatar:first-child {
    margin-left: 0;
}

.trust-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.trust-stars {
    display: flex;
    gap: 2px;
    color: #FBBC04;
}

.trust-star {
    width: 20px;
    height: 20px;
}

.trust-rating-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-600);
}

@media (max-width: 768px) {
    .trust-section {
        padding: 64px 0;
    }

    .trust-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .trust-image-wrapper img {
        height: 400px;
    }

    .trust-heading {
        font-size: 1.5rem;
    }

    .trust-proof {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* === Section Shared Styles === */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--accent-glow);
    color: var(--accent);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--black);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--gray-500);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* === Scroll Reveal (subtle blur + fade + slide) === */
.scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(3px);
    transition: opacity 1.3s cubic-bezier(0.22, 1, 0.36, 1),
                transform 1.3s cubic-bezier(0.22, 1, 0.36, 1),
                filter 1.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.scroll-reveal[data-delay="1"] { transition-delay: 0.1s; }
.scroll-reveal[data-delay="2"] { transition-delay: 0.2s; }
.scroll-reveal[data-delay="3"] { transition-delay: 0.35s; }
.scroll-reveal[data-delay="4"] { transition-delay: 0.5s; }
.scroll-reveal[data-delay="5"] { transition-delay: 0.65s; }

/* === Services Section === */
.services-section {
    padding: 120px 0;
}

/* ================================================
   EDITORIAL SERVICE LIST
   ================================================ */

/* --- Top: Split header (title left, intro right) --- */
.sv-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: end;
    margin-bottom: 72px;
}

.sv-top-left .section-tag {
    margin-bottom: 20px;
}

.sv-top-left .section-title {
    text-align: left;
    margin-bottom: 0;
}

.sv-intro {
    font-size: 1.02rem;
    color: var(--gray-500);
    line-height: 1.75;
    margin-bottom: 20px;
}

.sv-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    transition: gap 0.3s var(--ease-out-expo);
}

.sv-cta-link:hover {
    gap: 14px;
}

/* --- Service List --- */
.sv-list {
    display: flex;
    flex-direction: column;
}

/* --- Single Row --- */
.sv-row {
    border-top: 1px solid var(--gray-200);
    cursor: pointer;
    position: relative;
}

.sv-row:last-child {
    border-bottom: 1px solid var(--gray-200);
}

/* Active accent bar left */
.sv-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--accent);
    border-radius: 0 3px 3px 0;
    transition: height 0.4s var(--ease-out-expo);
}

.sv-row.is-open::before {
    height: 100%;
}

/* --- Main row (always visible) --- */
.sv-row-main {
    display: flex;
    align-items: center;
    padding: 28px 0;
    gap: 24px;
    transition: padding 0.3s var(--ease-out-expo);
}

.sv-row:hover .sv-row-main {
    padding-left: 12px;
}

.sv-row.is-open .sv-row-main {
    padding-left: 12px;
    padding-bottom: 12px;
}

/* Number */
.sv-num {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--gray-300);
    min-width: 32px;
    transition: color 0.3s ease;
}

.sv-row:hover .sv-num,
.sv-row.is-open .sv-num {
    color: var(--accent);
}

/* Center: title + tagline */
.sv-row-center {
    flex: 1;
    min-width: 0;
}

.sv-title {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.5vw, 1.65rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--black);
    transition: color 0.3s ease;
    margin: 0;
}

.sv-tagline {
    display: block;
    font-size: 0.82rem;
    color: var(--gray-400);
    margin-top: 4px;
    letter-spacing: 0.01em;
    transition: color 0.3s ease;
}

.sv-row:hover .sv-tagline {
    color: var(--gray-500);
}

/* Right: Metric */
.sv-metric {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-shrink: 0;
    text-align: right;
}

.sv-metric-num {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--black);
    line-height: 1;
    transition: color 0.4s ease;
}

.sv-row:hover .sv-metric-num,
.sv-row.is-open .sv-metric-num {
    color: var(--accent);
}

.sv-metric-unit {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--gray-400);
    line-height: 1.3;
    text-align: left;
}

/* Chevron indicator */
.sv-chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gray-50);
    color: var(--gray-400);
    flex-shrink: 0;
    transition: transform 0.35s var(--ease-out-expo), background 0.2s ease, color 0.2s ease;
}

.sv-row:hover .sv-chevron {
    background: var(--gray-100);
    color: var(--gray-600);
}

.sv-row.is-open .sv-chevron {
    transform: rotate(180deg);
    background: rgba(255, 107, 53, 0.08);
    color: var(--accent);
}

/* --- Expandable detail area --- */
.sv-row-expand {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s var(--ease-out-expo);
}

.sv-row.is-open .sv-row-expand {
    grid-template-rows: 1fr;
}

.sv-expand-inner {
    overflow: hidden;
}

.sv-expand-inner p {
    padding: 0 0 16px 56px;
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.75;
    max-width: 640px;
}

.sv-expand-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 24px 56px;
    gap: 24px;
}

/* Tool pills */
.sv-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sv-tools span {
    padding: 5px 12px;
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--gray-500);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.sv-row.is-open .sv-tools span {
    border-color: var(--gray-200);
}

/* Detail link */
.sv-detail-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    white-space: nowrap;
    transition: gap 0.25s ease;
    flex-shrink: 0;
}

.sv-detail-link:hover {
    gap: 10px;
}

/* === Process Section === */
.process-section {
    padding: 120px 0;
    background: var(--gray-50);
}

.process-timeline {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.process-line {
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gray-200);
}

.process-line-fill {
    width: 100%;
    height: 0;
    background: var(--accent);
    transition: height 0.1s linear;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    padding: 32px 0;
    position: relative;
}

.step-number {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 16px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gray-400);
    position: relative;
    z-index: 1;
    transition: all 0.4s var(--ease-out-expo);
}

.process-step.revealed .step-number {
    border-color: var(--accent);
    color: var(--accent);
}

.step-content h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 8px;
}

.step-content p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.65;
}

.step-duration {
    flex-shrink: 0;
    padding: 6px 14px;
    background: var(--accent-glow);
    color: var(--accent);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 4px;
}

/* === Cases Section === */
.cases-section {
    padding: 120px 0;
}

.cases-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.case-card {
    padding: 40px 36px;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: 20px;
    transition: all 0.4s var(--ease-out-expo);
}

.case-card:hover {
    border-color: var(--gray-200);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.case-card-large {
    grid-column: 1 / -1;
    background: var(--gray-50);
    border-color: var(--gray-100);
}

.case-quote {
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.6;
    color: var(--black);
    margin-bottom: 28px;
}

.case-card-large .case-quote {
    font-size: 1.35rem;
}

.case-result {
    display: flex;
    gap: 32px;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--gray-100);
}

.result-metric {
    display: flex;
    flex-direction: column;
}

.metric-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
}

.metric-label {
    font-size: 0.8rem;
    color: var(--gray-400);
    margin-top: 2px;
}

.case-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gray-500);
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--black);
}

.author-role {
    font-size: 0.8rem;
    color: var(--gray-400);
}

/* === Pricing Section === */
.pricing-section {
    padding: 120px 0;
    background: var(--gray-50);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
}

.pricing-card {
    padding: 40px 32px;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: 20px;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.pricing-card-featured {
    border: 2px solid var(--accent);
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.1);
}

.pricing-card-featured:hover {
    box-shadow: 0 16px 48px rgba(255, 107, 53, 0.15);
}

.pricing-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    background: var(--accent);
    color: var(--white);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.pricing-header {
    margin-bottom: 24px;
}

.pricing-name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 6px;
}

.pricing-desc {
    font-size: 0.85rem;
    color: var(--gray-400);
}

.pricing-price {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--gray-100);
}

.price-amount {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--black);
}

.price-period {
    font-size: 0.9rem;
    color: var(--gray-400);
    margin-left: 4px;
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--gray-600);
}

/* === CTA Section === */
.cta-section {
    padding: 120px 0;
    background: var(--gray-50);
}

.cta-card {
    position: relative;
    padding: 80px 60px;
    background: var(--black);
    border-radius: 24px;
    overflow: hidden;
    text-align: center;
}

.cta-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(167, 139, 250, 0.08) 0%, transparent 50%);
}

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

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--black);
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 16px;
}

.cta-desc {
    font-size: 1.05rem;
    color: var(--gray-500);
    max-width: 480px;
    margin: 0 0 0;
    line-height: 1.7;
}

.cta-actions {
    margin-bottom: 24px;
}

.cta-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* === Footer === */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--gray-100);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--gray-400);
    margin-top: 16px;
    line-height: 1.6;
}

.footer-links h4 {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    font-size: 0.85rem;
    color: var(--gray-500);
    padding: 4px 0;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--gray-100);
    font-size: 0.8rem;
    color: var(--gray-400);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .sv-top {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .sv-top-left .section-title {
        text-align: left;
    }

    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-card:last-child {
        grid-column: 1 / -1;
        max-width: 400px;
        margin: 0 auto;
        width: 100%;
    }

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

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 100px 20px 40px;
        min-height: auto;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .hero-actions {
        flex-direction: column;
        margin-bottom: 48px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .workflow-canvas {
        padding: 32px 16px;
        gap: 0;
    }

    .wf-connector {
        width: 30px;
    }

    .wf-node {
        width: 44px;
        height: 44px;
        border-radius: 10px;
    }

    .wf-node::after {
        font-size: 0.6rem;
        bottom: -18px;
    }

    .sv-row-main {
        flex-wrap: wrap;
        gap: 12px;
    }

    .sv-metric {
        width: 100%;
        padding-left: 56px;
    }

    .sv-expand-inner p {
        padding-left: 0;
    }

    .sv-expand-footer {
        padding-left: 0;
        flex-direction: column;
        align-items: flex-start;
    }

    .services-section,
    .process-section,
    .cases-section,
    .pricing-section,
    .cta-section {
        padding: 80px 0;
    }

    .process-step {
        flex-wrap: wrap;
        gap: 12px;
        padding-left: 0;
    }

    .step-number {
        width: 48px;
        height: 48px;
        font-size: 0.8rem;
    }

    .process-line {
        left: 23px;
    }

    .step-content {
        flex: 1;
        min-width: 0;
    }

    .step-duration {
        margin-left: 60px;
    }

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

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

    .pricing-card:last-child {
        max-width: 100%;
    }

    .cta-card {
        padding: 48px 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .cursor-glow {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .case-result {
        flex-direction: column;
        gap: 16px;
    }

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

/* === Smooth scroll offset === */
section[id] {
    scroll-margin-top: 80px;
}


/* ============================================
   NEW FEATURE STYLES
   Appended for conversion optimization
   ============================================ */


/* ============================================
   1. FAQ SECTION — Accordion
   ============================================ */
.faq-section {
    padding: 120px 0;
    background: var(--gray-50);
}

.faq-grid {
    max-width: 768px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    border-color: var(--gray-200);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.faq-item.active {
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.08);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 28px 40px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--black);
    text-align: left;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: var(--accent);
}

.faq-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gray-50);
    transition: transform 0.4s var(--ease-out-expo), background 0.3s ease;
}

.faq-icon svg {
    width: 14px;
    height: 14px;
    stroke: var(--gray-500);
    transition: stroke 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    background: var(--accent-glow);
}

.faq-item.active .faq-icon svg {
    stroke: var(--accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-out-expo), padding 0.4s var(--ease-out-expo);
}

.faq-answer-inner,
.faq-answer p {
    padding: 0 40px 28px;
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.7;
}

.faq-question span {
    color: var(--black);
}

.faq-section .section-title,
.faq-section .section-tag,
.faq-section .section-subtitle {
    color: var(--gray-900);
}

.faq-section .section-tag {
    color: var(--accent);
}

.faq-section .section-subtitle {
    color: var(--gray-500);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-cta {
    text-align: center;
    margin-top: 48px;
}

.faq-cta p {
    font-size: 0.95rem;
    color: var(--gray-500);
    margin-bottom: 16px;
}



/* ============================================
   4. FLOATING CTA BUTTON (WhatsApp / Phone)
   ============================================ */
.floating-cta {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 997;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

.floating-cta-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.35);
    transition: all 0.3s var(--ease-out-expo);
    position: relative;
    animation: floatingPulse 2.5s ease-in-out infinite;
}

.floating-cta-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(255, 107, 53, 0.45);
}

.floating-cta-btn svg {
    width: 24px;
    height: 24px;
}

.floating-cta-label {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--black);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.floating-cta-btn:hover .floating-cta-label {
    opacity: 1;
}

@keyframes floatingPulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(255, 107, 53, 0.35);
    }
    50% {
        box-shadow: 0 4px 30px rgba(255, 107, 53, 0.55), 0 0 0 12px rgba(255, 107, 53, 0.08);
    }
}


/* ============================================
   5. STICKY TOP BAR
   ============================================ */
.sticky-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: var(--black);
    color: var(--white);
    padding: 10px 24px;
    text-align: center;
    transform: translateY(-100%);
    transition: transform 0.5s var(--ease-out-expo);
}

.sticky-topbar.visible {
    transform: translateY(0);
}

.sticky-topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.sticky-topbar-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-300);
}

.sticky-topbar-text strong {
    color: var(--white);
    font-weight: 700;
}

.sticky-topbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 18px;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
}

.sticky-topbar-btn:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
}

.sticky-topbar-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px;
    transition: color 0.2s ease;
}

.sticky-topbar-close:hover {
    color: var(--white);
}

/* Push navbar down when topbar is visible */
.sticky-topbar.visible ~ .navbar,
body.topbar-visible .navbar {
    top: 42px;
}


/* ============================================
   6. BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 92px;
    right: 28px;
    z-index: 996;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 50%;
    color: var(--gray-600);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.3s var(--ease-out-expo);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--black);
    border-color: var(--black);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.back-to-top svg {
    width: 18px;
    height: 18px;
}


/* ============================================
   7. SOCIAL PROOF NOTIFICATION (Toast)
   ============================================ */
.social-proof-toast {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 998;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    max-width: 360px;
    transform: translateX(-120%);
    transition: transform 0.5s var(--ease-out-expo);
}

.social-proof-toast.visible {
    transform: translateX(0);
}

.social-proof-toast.dismissing {
    transform: translateX(-120%);
}

.toast-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
}

.toast-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.toast-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.toast-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--black);
}

.toast-action {
    font-size: 0.8rem;
    color: var(--gray-500);
    line-height: 1.4;
}

.toast-time {
    font-size: 0.7rem;
    color: var(--gray-400);
}

.toast-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s ease;
}

.toast-close:hover {
    color: var(--black);
}


/* ============================================
   8. BLOG STYLES
   ============================================ */

/* --- Reading Progress Bar (thin at very top) --- */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    z-index: 10001;
    transition: width 0.1s linear;
}

/* --- Blog Grid (Index Page) --- */
.blog-section {
    padding: 120px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.blog-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s var(--ease-out-expo);
}

.blog-card:hover {
    border-color: var(--gray-200);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.blog-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--gray-50);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out-expo);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-body {
    padding: 24px;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.8rem;
    color: var(--gray-400);
}

.blog-card-category {
    display: inline-block;
    padding: 3px 10px;
    background: var(--accent-glow);
    color: var(--accent);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

.blog-card-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 8px;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.blog-card-title a {
    transition: color 0.2s ease;
}

.blog-card-title a:hover {
    color: var(--accent);
}

.blog-card-excerpt {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 16px;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--gray-400);
}

.blog-card-read-more {
    font-weight: 600;
    color: var(--accent);
    transition: gap 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.blog-card-read-more:hover {
    gap: 8px;
}

/* --- Breadcrumb Navigation --- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
    font-size: 0.85rem;
    color: var(--gray-400);
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--gray-500);
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb-separator {
    color: var(--gray-300);
}

.breadcrumb-current {
    color: var(--gray-600);
    font-weight: 500;
}

/* --- Article Layout --- */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 48px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 24px 80px;
    align-items: start;
}

.article-main {
    min-width: 0;
}

/* --- Article Header --- */
.article-header {
    margin-bottom: 40px;
}

.article-header .blog-card-category {
    margin-bottom: 16px;
}

.article-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--black);
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.875rem;
    color: var(--gray-400);
    flex-wrap: wrap;
}

.article-meta-divider {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gray-300);
}

/* --- Article Typography --- */
.article-content {
    font-size: 1.05rem;
    color: var(--gray-700);
    line-height: 1.8;
}

.article-content h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--black);
    margin: 48px 0 16px;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.article-content h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--black);
    margin: 36px 0 12px;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.article-content h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--black);
    margin: 28px 0 10px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: rgba(255, 107, 53, 0.3);
    transition: text-decoration-color 0.2s ease;
}

.article-content a:hover {
    text-decoration-color: var(--accent);
}

.article-content strong {
    font-weight: 700;
    color: var(--black);
}

.article-content ul,
.article-content ol {
    margin: 16px 0 24px;
    padding-left: 24px;
}

.article-content ul {
    list-style: disc;
}

.article-content ol {
    list-style: decimal;
}

.article-content li {
    margin-bottom: 8px;
    padding-left: 4px;
}

.article-content li::marker {
    color: var(--accent);
}

.article-content blockquote {
    margin: 28px 0;
    padding: 20px 24px;
    border-left: 4px solid var(--accent);
    background: var(--gray-50);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--gray-600);
}

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

.article-content pre {
    margin: 24px 0;
    padding: 24px;
    background: var(--gray-900);
    border-radius: 12px;
    overflow-x: auto;
    border: 1px solid var(--gray-800);
}

.article-content code {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.9em;
}

.article-content pre code {
    color: var(--gray-200);
    font-size: 0.875rem;
    line-height: 1.7;
}

.article-content p code,
.article-content li code {
    background: var(--gray-100);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.88em;
    color: var(--accent-dark);
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 24px 0;
}

.article-content hr {
    border: none;
    height: 1px;
    background: var(--gray-100);
    margin: 40px 0;
}

/* --- Article Tables (Comparison) --- */
.article-content table {
    width: 100%;
    margin: 24px 0;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--gray-100);
    font-size: 0.9rem;
}

.article-content thead {
    background: var(--gray-50);
}

.article-content th {
    padding: 14px 18px;
    text-align: left;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--black);
    border-bottom: 2px solid var(--gray-100);
}

.article-content td {
    padding: 12px 18px;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-600);
    vertical-align: top;
}

.article-content tbody tr:last-child td {
    border-bottom: none;
}

.article-content tbody tr:hover {
    background: var(--gray-50);
}

/* --- Table of Contents Sidebar --- */
.toc-sidebar {
    position: sticky;
    top: 100px;
}

.toc-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: 16px;
    padding: 24px;
}

.toc-title {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.toc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.toc-list a {
    display: block;
    padding: 8px 12px;
    font-size: 0.85rem;
    color: var(--gray-500);
    border-left: 2px solid var(--gray-200);
    transition: all 0.2s ease;
    line-height: 1.4;
}

.toc-list a:hover {
    color: var(--accent);
    border-left-color: var(--accent);
}

.toc-list a.active {
    color: var(--accent);
    border-left-color: var(--accent);
    font-weight: 600;
    background: var(--accent-glow);
    border-radius: 0 8px 8px 0;
}

.toc-list .toc-h3 {
    padding-left: 24px;
    font-size: 0.8rem;
}

/* --- Author Info Box --- */
.author-box {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 28px;
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: 16px;
    margin: 48px 0;
}

.author-box-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent);
}

.author-box-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.author-box-info h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 4px;
}

.author-box-info p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* --- CTA Banner within Articles --- */
.article-cta-banner {
    margin: 48px 0;
    padding: 36px 32px;
    background: var(--black);
    border-radius: 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.article-cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 107, 53, 0.15) 0%, transparent 60%);
}

.article-cta-banner h3 {
    position: relative;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 8px;
}

.article-cta-banner p {
    position: relative;
    font-size: 0.9rem;
    color: var(--gray-400);
    margin-bottom: 20px;
    line-height: 1.6;
}

.article-cta-banner .btn-primary {
    position: relative;
}

/* --- Category Tags / Badges --- */
.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.category-tag {
    display: inline-block;
    padding: 5px 14px;
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: all 0.2s ease;
    cursor: pointer;
}

.category-tag:hover,
.category-tag.active {
    background: var(--accent-glow);
    border-color: var(--accent);
    color: var(--accent);
}

/* --- Related Articles Grid --- */
.related-articles {
    padding: 60px 0;
    border-top: 1px solid var(--gray-100);
}

.related-articles h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 32px;
    letter-spacing: -0.02em;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}


/* ============================================
   9. LOCATION / STANDORT SECTION
   ============================================ */
.location-section {
    padding: 120px 0;
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.location-card {
    padding: 36px 32px;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: 20px;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.location-card:hover {
    border-color: var(--gray-200);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.location-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.location-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border-radius: 14px;
    color: var(--accent);
    flex-shrink: 0;
}

.location-icon svg {
    width: 24px;
    height: 24px;
}

.location-card-header h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--black);
}

.location-card-header p {
    font-size: 0.85rem;
    color: var(--gray-400);
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.location-detail {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.5;
}

.location-detail svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--gray-400);
    margin-top: 2px;
}

.location-map-placeholder {
    width: 100%;
    height: 200px;
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: 12px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 0.85rem;
    overflow: hidden;
}

.location-map-placeholder iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}


/* ============================================
   10. SCROLL / READING PROGRESS BAR
   ============================================ */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    z-index: 10002;
    transition: width 0.05s linear;
    pointer-events: none;
}


/* ============================================
   11. PRINT STYLES
   ============================================ */
@media print {
    *,
    *::before,
    *::after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    body {
        font-family: Georgia, 'Times New Roman', serif;
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }

    a,
    a:visited {
        text-decoration: underline;
        color: #000;
    }

    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        font-weight: normal;
    }

    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }

    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        page-break-inside: avoid;
    }

    p {
        orphans: 3;
        widows: 3;
    }

    .navbar,
    .nav-toggle,
    .mobile-menu,
    .exit-overlay,
    .floating-cta,
    .sticky-topbar,
    .back-to-top,
    .social-proof-toast,
    .reading-progress,
    .scroll-progress-bar,
    .cursor-glow,
    .toc-sidebar,
    .article-cta-banner,
    footer,
    .footer {
        display: none !important;
    }

    .article-layout {
        display: block;
    }

    .article-content {
        max-width: 100%;
    }

    .article-content pre {
        border: 1px solid #ccc;
        page-break-inside: avoid;
        white-space: pre-wrap;
        word-wrap: break-word;
    }

    .article-content table {
        border-collapse: collapse;
    }

    .article-content th,
    .article-content td {
        border: 1px solid #ccc;
    }

    @page {
        margin: 2cm;
    }
}


/* ============================================
   12. RESPONSIVE BREAKPOINTS — New Elements
   ============================================ */

/* --- Tablet & Small Desktop (1024px) --- */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-layout {
        grid-template-columns: 1fr;
    }

    .toc-sidebar {
        position: relative;
        top: auto;
        order: -1;
    }

    .toc-card {
        margin-bottom: 24px;
    }

    .toc-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0;
    }

    .toc-list a {
        border-left: none;
        border-bottom: 2px solid var(--gray-200);
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .toc-list a.active {
        border-bottom-color: var(--accent);
        border-radius: 8px 8px 0 0;
    }

    .toc-list .toc-h3 {
        padding-left: 12px;
    }

    .location-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* --- Mobile (768px) --- */
@media (max-width: 768px) {
    .faq-section {
        padding: 80px 0;
    }

    .faq-question {
        font-size: 0.95rem;
        padding: 24px 32px;
    }

    .faq-answer-inner,
    .faq-answer p {
        padding: 0 20px 16px;
        font-size: 0.9rem;
    }

    .floating-cta {
        bottom: 16px;
        right: 16px;
    }

    .floating-cta-btn {
        width: 50px;
        height: 50px;
    }

    .floating-cta-label {
        display: none;
    }

    .back-to-top {
        bottom: 80px;
        right: 20px;
        width: 40px;
        height: 40px;
    }

    .social-proof-toast {
        bottom: 16px;
        left: 16px;
        right: 16px;
        max-width: none;
    }

    .sticky-topbar-inner {
        gap: 10px;
    }

    .sticky-topbar-text {
        font-size: 0.8rem;
    }

    .blog-section {
        padding: 80px 0;
    }

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

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

    .article-layout {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px 16px 60px;
    }

    .article-title {
        font-size: 1.75rem;
    }

    .article-content {
        font-size: 1rem;
    }

    .article-content h2 {
        font-size: 1.4rem;
        margin-top: 36px;
    }

    .article-content h3 {
        font-size: 1.15rem;
        margin-top: 28px;
    }

    .article-content pre {
        padding: 16px;
        border-radius: 10px;
    }

    .article-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .article-cta-banner {
        padding: 28px 20px;
    }

    .article-cta-banner h3 {
        font-size: 1.15rem;
    }

    .location-section {
        padding: 80px 0;
    }

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

    .location-card {
        padding: 28px 24px;
    }
}

/* --- Small Mobile (480px) --- */
@media (max-width: 480px) {
    .faq-question {
        font-size: 0.9rem;
        padding: 20px 24px;
    }

    .faq-answer-inner,
    .faq-answer p {
        padding: 0 16px 14px;
        font-size: 0.85rem;
    }

    .sticky-topbar-btn {
        font-size: 0.75rem;
        padding: 5px 14px;
    }

    .blog-card-body {
        padding: 16px;
    }

    .blog-card-title {
        font-size: 1.05rem;
    }

    .article-title {
        font-size: 1.5rem;
    }

    .article-meta {
        font-size: 0.8rem;
        gap: 8px;
    }

    .breadcrumb {
        font-size: 0.8rem;
    }

    .category-tags {
        gap: 6px;
    }

    .category-tag {
        font-size: 0.75rem;
        padding: 4px 10px;
    }

    .location-card-header {
        flex-direction: column;
        gap: 12px;
    }
}

/* ===========================================
   DSGVO Trust Section
   =========================================== */

.dsgvo-trust-section {
    padding: 80px 0;
    background: var(--white);
}

.dsgvo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.dsgvo-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.dsgvo-card:hover {
    border-color: rgba(255, 107, 53, 0.3);
    background: rgba(255, 107, 53, 0.03);
    transform: translateY(-4px);
}

.dsgvo-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(255, 107, 53, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.dsgvo-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 12px;
}

.dsgvo-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ===========================================
   Contact Form Section
   =========================================== */

.contact-wrapper {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: 24px;
    padding: 56px;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.contact-header {
    text-align: center;
    margin-bottom: 48px;
}

.contact-header .cta-title {
    margin-bottom: 16px;
}

.contact-header .cta-desc {
    max-width: 600px;
    margin: 0 auto;
}

.contact-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-photo {
    overflow: hidden;
    border-radius: 20px;
    height: 100%;
}

.contact-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    border-radius: 20px;
}

.contact-benefits-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px 36px;
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid var(--gray-100);
}

.contact-benefit {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--gray-500);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-500);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 14px 18px;
    color: var(--black);
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    outline: none;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%2371717A' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.form-group select option {
    background: var(--white);
    color: var(--black);
}

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

.form-privacy {
    margin-top: -4px;
}

.checkbox-label {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.82rem;
    color: var(--gray-500);
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #FF6B35;
    flex-shrink: 0;
    cursor: pointer;
}

.checkbox-label a {
    color: #FF6B35;
    text-decoration: underline;
}

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

.form-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--gray-400);
    margin-top: -8px;
}

.contact-success {
    text-align: center;
    padding: 60px 20px;
}

.contact-success svg {
    margin-bottom: 20px;
}

.contact-success h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    color: var(--black);
    margin-bottom: 12px;
}

.contact-success p {
    color: var(--gray-500);
    font-size: 1rem;
    line-height: 1.6;
}

/* Invalid form states */
.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
    border-color: #EF4444;
}

/* ===========================================
   Contact Form Responsive
   =========================================== */

@media (max-width: 1024px) {
    .dsgvo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-wrapper {
        padding: 40px;
    }
    .contact-body {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .contact-photo img {
        max-height: 400px;
    }
    .contact-benefits-row {
        gap: 16px 28px;
    }
}

@media (max-width: 640px) {
    .dsgvo-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .dsgvo-card {
        padding: 24px 20px;
    }
    .contact-wrapper {
        padding: 24px;
    }
    .contact-header {
        margin-bottom: 32px;
    }
    .contact-photo img {
        max-height: 300px;
    }
    .contact-benefits-row {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-top: 32px;
        padding-top: 28px;
    }
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 16px; /* Prevents iOS zoom */
    }
}


/* ============================================
   Code Editor Animation Component
   ============================================ */
.code-anim-section {
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}

.code-anim-wrapper {
    max-width: 820px;
    margin: 0 auto;
}

.code-anim-header {
    text-align: center;
    margin-bottom: 40px;
}

.code-anim-header .section-tag {
    display: inline-block;
    margin-bottom: 16px;
}

.code-anim-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--black);
    margin-bottom: 12px;
}

.code-anim-header p {
    font-size: 1rem;
    color: var(--gray-500);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto;
}

.code-editor-anim {
    border-radius: 18px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--gray-200);
    box-shadow:
        0 1px 3px rgba(0,0,0,0.03),
        0 8px 32px rgba(0,0,0,0.05),
        0 24px 60px rgba(0,0,0,0.03);
    font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', 'Cascadia Code', monospace;
    position: relative;
    transition: box-shadow 0.4s var(--ease-out-expo);
}

.code-editor-anim:hover {
    box-shadow:
        0 1px 3px rgba(0,0,0,0.03),
        0 12px 40px rgba(0,0,0,0.07),
        0 32px 80px rgba(0,0,0,0.05);
}

.code-editor-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.code-editor-dots {
    display: flex;
    gap: 7px;
}

.code-editor-dots span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.code-editor-dots span:nth-child(1) { background: #ff5f57; }
.code-editor-dots span:nth-child(2) { background: #ffbd2e; }
.code-editor-dots span:nth-child(3) { background: #28c840; }

.code-editor-filename {
    font-size: 0.78rem;
    color: var(--gray-400);
    letter-spacing: 0.03em;
    font-weight: 500;
}

.code-editor-body {
    position: relative;
    height: 360px;
    overflow: hidden;
    padding: 4px 0;
}

.code-editor-body::before,
.code-editor-body::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 48px;
    z-index: 2;
    pointer-events: none;
}

.code-editor-body::before {
    top: 0;
    background: linear-gradient(to bottom, var(--white) 0%, transparent 100%);
}

.code-editor-body::after {
    bottom: 0;
    background: linear-gradient(to top, var(--white) 0%, transparent 100%);
}

.code-scroll-track {
    display: flex;
    flex-direction: column;
    animation: codeScrollUp 30s linear infinite;
}

@keyframes codeScrollUp {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.code-editor-anim:hover .code-scroll-track {
    animation-play-state: paused;
}

.code-line {
    display: flex;
    align-items: flex-start;
    padding: 3px 24px 3px 0;
    font-size: 0.82rem;
    line-height: 1.75;
    white-space: pre;
}

.code-ln {
    display: inline-block;
    width: 44px;
    min-width: 44px;
    text-align: right;
    padding-right: 18px;
    color: var(--gray-300);
    user-select: none;
    font-size: 0.78rem;
}

/* All code text is black */
.code-content { color: var(--black); }
.code-kw { color: var(--black); font-weight: 600; }
.code-fn { color: var(--black); font-weight: 500; }
.code-str { color: var(--gray-600); }
.code-cm { color: var(--gray-400); font-style: italic; }
.code-var { color: var(--black); }
.code-op { color: var(--gray-500); }
.code-num { color: var(--black); font-weight: 500; }
.code-cls { color: var(--black); font-weight: 600; }
.code-dec { color: var(--black); font-weight: 600; }

@media (max-width: 768px) {
    .code-anim-section {
        padding: 60px 0 80px;
    }
    .code-editor-body {
        height: 260px;
    }
    .code-line {
        font-size: 0.7rem;
    }
    .code-ln {
        width: 36px;
        min-width: 36px;
        padding-right: 12px;
    }
}
