/* CSS Variables - Marketing Light Mode Design System */
:root {
    /* Lelia Biotech Brand Palette Inverted */
    --lt-navy: #090d19; /* Serves as our off-black text now */
    --lt-cyan: rgb(80, 87, 229); /* Primary Brand Anchor */
    --lt-cyan-dim: rgba(80, 87, 229, 0.1); /* Soft background accent */
    --lt-gray-light: #f8fafc; /* Subtle sections */
    --lt-gray-border: #e2e8f0;
    --lt-gray-text: #475569; /* Slate grey for readability */
    --lt-white: #ffffff; /* Primary Background */

    --font-heading: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition-standard: 0.3s ease;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
}

/* Language Localization Core */
body.lang-de .lang-en { display: none !important; }
body.lang-en .lang-de { display: none !important; }

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

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

body {
    font-family: var(--font-body);
    background-color: var(--lt-white);
    
    /* Clean Marketing Grid Background with Premium Grain */
    background-size: 100% 100%, 100% 100%, 40px 40px, 120px 120px;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(80, 87, 229, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(80, 87, 229, 0.04) 0%, transparent 50%),
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3%3Cfilter id='noiseFilter'%3%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3%3C/filter%3%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3%3C/svg%3");
        
    color: var(--lt-navy);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.1;
    color: var(--lt-navy);
    font-weight: 700;
}

h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    font-size: 1.125rem;
    color: var(--lt-gray-text);
    margin-bottom: 1.5rem;
    max-width: 65ch; /* Optimal reading measure */
}

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

.container {
    width: min(1240px, calc(100% - clamp(3rem, 6vw, 7rem)));
    margin: 0 auto;
}

/* Typography Utilities */
.highlight-cyan {
    color: var(--lt-cyan);
}

.bold-cyan {
    font-weight: 800; /* Extra weight to balance blue visual density */
}

/* Rotating Text Effect */
.rotating-container {
    display: block;
    position: relative;
    height: 1.6em; /* Extra large window to prevent any possible clipping */
    overflow-x: visible;
    overflow-y: hidden;
    text-align: center;
    margin: 0.15em auto 0;
}

.rotating-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-align: center;
}

.rotating-text.exit {
    animation: slideUpOut 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.rotating-text.enter {
    animation: slideUpIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpIn {
    0% { transform: translateY(100%); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes slideUpOut {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-100%); opacity: 0; }
}

/* Buttons (SaaS Conversion Style) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-standard);
    cursor: pointer;
    border: none;
    font-family: var(--font-heading);
    white-space: nowrap;
}

.nav-utility .btn {
    width: 160px;
    flex-shrink: 0;
}

.btn-primary {
    background-color: var(--lt-cyan);
    color: var(--lt-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover, .btn-primary:focus-visible {
    background-color: #3e44b5; /* Slightly darker shade on hover */
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--lt-white);
    color: var(--lt-navy);
    border: 1px solid var(--lt-gray-border);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover, .btn-secondary:focus-visible {
    background-color: var(--lt-gray-light);
    border-color: var(--lt-cyan);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.25rem 3rem;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    z-index: 100;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background-color: transparent;
}

.navbar.scrolled {
    padding: 1rem 3rem;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--lt-gray-border);
    box-shadow: var(--shadow-sm);
}

.logo img {
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    justify-content: center;
}

.nav-utility {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    justify-content: flex-end;
    /* Optical alignment fix */
    margin-top: -2px; 
}

.berlin-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--lt-cyan);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid var(--lt-cyan-dim);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    background-color: var(--lt-cyan-dim);
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--lt-gray-text);
    transition: color var(--transition-standard);
}

.nav-links a:hover, .nav-links a:focus-visible {
    color: var(--lt-cyan);
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-header {
    margin-bottom: 4rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    border-bottom: 1px solid var(--lt-gray-border);
}

.hero-inner {
    display: flex;
    align-items: center;
    gap: 5rem;
    width: 100%;
    padding-inline: 1rem;
}

.hero-content {
    flex: 1.15; /* Give headline more breathing room */
    padding: 0;
    z-index: 1;
    min-width: 0;
}

.hero-visual {
    flex: 0.85; /* Visual takes up slightly less horizontal space */
    display: flex;
    justify-content: flex-end; /* Moor the asset to the right edge */
    align-items: center;
}

.pattern-showcase {
    background: var(--lt-white);
    border: 1px solid var(--lt-gray-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 520px;
}

.pattern-showcase-header {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--lt-cyan);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.pattern-option {
    border: 1px solid var(--lt-gray-border);
    border-radius: 8px;
    padding: 1rem;
    background: var(--lt-gray-light);
}

.pattern-option-featured {
    background: linear-gradient(180deg, rgba(80, 87, 229, 0.08), rgba(80, 87, 229, 0.03));
    border-color: rgba(80, 87, 229, 0.3);
}

.pattern-split {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
    gap: 0.75rem;
}

.pattern-pane {
    border-radius: 8px;
    padding: 0.9rem;
}

.pattern-pane-input {
    background: var(--lt-white);
    border: 1px solid var(--lt-gray-border);
}

.pattern-pane-output {
    background: var(--lt-cyan-dim);
    border: 1px solid rgba(80, 87, 229, 0.2);
}

.demo-tag {
    display: inline-block;
    background: var(--lt-cyan-dim);
    color: var(--lt-cyan);
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.25rem;
    font-style: normal;
    vertical-align: middle;
}

.pattern-split-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lt-cyan);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
}

.demo-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.7rem;
    color: var(--lt-gray-text);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
    color: var(--lt-cyan);
}

.pattern-pane-input .demo-label {
    color: var(--lt-gray-text);
}

.pattern-pane-input p,
.pattern-pane-output p {
    font-size: 0.875rem;
    margin-bottom: 0;
    max-width: none;
    color: var(--lt-navy);
    line-height: 1.5;
}

.capture-assets {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.85rem;
    flex-wrap: wrap;
}

.capture-photo {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    border: 1px solid var(--lt-gray-border);
    box-shadow: var(--shadow-sm);
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.capture-photo-a {
    background-image:
        linear-gradient(135deg, rgba(9, 13, 25, 0.1), rgba(9, 13, 25, 0.02)),
        linear-gradient(0deg, rgba(80, 87, 229, 0.28), rgba(80, 87, 229, 0)),
        linear-gradient(135deg, #dbe4f0 0%, #f8fafc 52%, #cbd5e1 52%, #94a3b8 100%);
}

.capture-photo-b {
    background-image:
        linear-gradient(135deg, rgba(9, 13, 25, 0.06), rgba(9, 13, 25, 0.01)),
        linear-gradient(90deg, rgba(80, 87, 229, 0.18) 0 38%, transparent 38% 100%),
        linear-gradient(180deg, #e2e8f0 0%, #f8fafc 48%, #cbd5e1 48%, #94a3b8 100%);
}

/* Eyebrow Labels */
.eyebrow {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--lt-cyan);
    margin-bottom: 1rem;
    padding: 0.3rem 0.8rem;
    background: var(--lt-cyan-dim);
    border: 1px solid rgba(80, 87, 229, 0.15);
    border-radius: 50px;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--lt-cyan);
    background: var(--lt-cyan-dim);
    border: 1px solid rgba(80, 87, 229, 0.2);
    border-radius: 50px;
    padding: 0.35rem 0.9rem;
    margin-bottom: 1.5rem;
}

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

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

/* Trusted By */
.trusted-by {
    padding: 2.5rem 0;
    border-top: 1px solid var(--lt-gray-border);
    border-bottom: 1px solid var(--lt-gray-border);
    background: var(--lt-gray-light);
    text-align: center;
}

.trusted-label {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--lt-gray-text);
    margin-bottom: 1.25rem;
    max-width: none;
}

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

.logo-pill {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--lt-gray-text);
    background: var(--lt-white);
    border: 1px solid var(--lt-gray-border);
    border-radius: 6px;
    padding: 0.5rem 1.1rem;
    opacity: 0.65;
    transition: opacity 0.2s;
}

.logo-pill:hover {
    opacity: 1;
}

/* Testimonials */
.testimonials-section {
    background: var(--lt-navy);
}

.testimonials-section .section-header h2,
.testimonials-section .section-header .eyebrow {
    color: var(--lt-white);
}

.testimonials-section .section-header .eyebrow {
    background: rgba(80, 87, 229, 0.25);
    border-color: rgba(80, 87, 229, 0.3);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: background 0.3s, border-color 0.3s;
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(80, 87, 229, 0.4);
}

.testimonial-stars {
    color: #f59e0b;
    font-size: 0.875rem;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 0;
    max-width: none;
    flex: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.testimonial-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--lt-cyan);
    color: white;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.testimonial-meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.testimonial-meta strong {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    color: var(--lt-white);
}

.testimonial-meta span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
}

/* FAQ */
.faq-section {
    background: var(--lt-gray-light);
    border-top: 1px solid var(--lt-gray-border);
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.faq-item {
    border-bottom: 1px solid var(--lt-gray-border);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--lt-navy);
    transition: color 0.2s;
}

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

.faq-icon {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--lt-cyan);
    flex-shrink: 0;
    transition: transform 0.3s ease;
    line-height: 1;
}

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

.faq-answer {
    display: none;
    padding-bottom: 1.25rem;
}

.faq-answer p {
    font-size: 0.9375rem;
    max-width: none;
    margin-bottom: 0;
    color: var(--lt-gray-text);
}

.faq-item.open .faq-answer {
    display: block;
}

/* Pain Point Cards */
.pain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.pain-card {
    background: var(--lt-white);
    border: 1px solid var(--lt-gray-border);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.pain-icon {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    display: block;
}

.pain-card h4 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.pain-card p {
    font-size: 0.9375rem;
    margin-bottom: 0;
    max-width: none;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    color: var(--lt-gray-text);
}

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

/* Content Engine Diagram - SaaS Widget Approach */
.engine-diagram {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4rem 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    gap: 4rem;
    background-color: var(--lt-gray-light);
    border: 1px solid var(--lt-gray-border);
    border-radius: 12px;
}

.engine-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1;
    min-width: 250px;
}

.node-card {
    display: flex;
    flex-direction: column;
    background-color: var(--lt-white);
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--lt-gray-border);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s;
}

.node-card:hover {
    box-shadow: var(--shadow-md);
}

.node-title {
    font-weight: 600;
    color: var(--lt-navy);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.node-meta {
    font-size: 0.8125rem;
    color: var(--lt-gray-text);
}

.hub {
    align-items: center;
    padding: 0 2rem;
    flex: 1.5;
}

.flow-arrow {
    color: var(--lt-cyan);
    font-size: 2.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-core {
    text-align: center;
    background-color: var(--lt-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--lt-gray-border);
    width: 100%;
}

.lelia-logo {
    max-width: 140px;
    height: auto;
    margin-bottom: 1rem;
}

.node-badge {
    color: var(--lt-navy);
    font-size: 0.875rem;
    font-weight: 600;
    position: relative;
    padding: 0.75rem 1rem 0.75rem 2rem;
    background-color: var(--lt-white);
    border: 1px solid var(--lt-gray-border);
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
}

.node-badge::before {
    content: "";
}

/* Feature Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.feature-block {
    display: flex;
    flex-direction: column;
    background-color: var(--lt-gray-light);
    border: 1px solid var(--lt-gray-border);
    border-radius: 12px;
    padding: 3rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-block:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-list {
    list-style: none;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--lt-gray-border);
}

.feature-list li {
    margin-bottom: 0.875rem;
    color: var(--lt-navy);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
}

.feature-list li::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--lt-cyan);
    border-radius: 50%;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

/* CTA Section */
.cta-section {
    background-color: var(--lt-navy);
    color: var(--lt-white);
    text-align: center;
    border-top: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-section h2 {
    color: var(--lt-white);
}

/* Footer */
footer {
    padding: 4rem 0 2rem;
    background-color: var(--lt-gray-light);
    border-top: 1px solid var(--lt-gray-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 3rem;
}

.footer-brand p {
    margin-bottom: 0;
    margin-top: 1rem;
    font-size: 0.875rem;
}

.footer-links {
    color: var(--lt-gray-text);
    font-size: 0.875rem;
    text-align: right;
    max-width: 300px;
}

/* Essential Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Reveals for High Impact */
.staggered-container.visible > * {
    opacity: 0;
    animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.staggered-container.visible > *:nth-child(1) { animation-delay: 0.1s; }
.staggered-container.visible > *:nth-child(2) { animation-delay: 0.2s; }
.staggered-container.visible > *:nth-child(3) { animation-delay: 0.3s; }
.staggered-container.visible > *:nth-child(4) { animation-delay: 0.4s; }
.staggered-container.visible > *:nth-child(5) { animation-delay: 0.5s; }

/* Interactive Hover States */
.feature-block {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.feature-block:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 60px -12px rgba(80, 87, 229, 0.12), 0 18px 36px -18px rgba(0, 0, 0, 0.08);
    border-color: var(--lt-cyan);
}

.feature-block::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.8s ease;
    pointer-events: none;
}

.feature-block:hover::after {
    left: 100%;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--lt-cyan);
    transition: width 0.3s ease;
}

.nav-links a {
    position: relative;
}

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

@keyframes slideUpFade {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Language Toggle Button */
.lang-controls {
    display: flex;
    align-items: center;
    margin-right: 1.5rem;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    cursor: pointer;
    border: 1px solid var(--lt-gray-border);
    background: var(--lt-white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8125rem;
    color: var(--lt-navy);
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-sm);
}

.lang-toggle:hover {
    border-color: var(--lt-cyan);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.lang-toggle span {
    opacity: 0.3;
    transition: opacity var(--transition-standard);
}

body.lang-en .lang-btn-en, body.lang-de .lang-btn-de {
    opacity: 1;
    color: var(--lt-cyan);
}

/* Mechanism Section */
.mechanism-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem; /* Tightened from 4rem */
    flex-wrap: wrap;
    padding: 2rem 0;
}

.mechanism-step {
    flex: 1;
    min-width: 250px;
    background: var(--lt-white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--lt-gray-border);
    position: relative;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mechanism-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--lt-cyan);
}

.step-icon {
    width: 40px;
    height: 40px;
    background: var(--lt-cyan);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.mobile-mockup-wrapper {
    flex: 0 0 auto;
    position: relative;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--lt-gray-border);
    border-radius: 12px;
    padding: 1rem;
    width: 260px;
    box-shadow: var(--shadow-lg);
    z-index: 10;
    transition: transform var(--transition-standard);
}

.floating-card:hover {
    transform: translateY(-4px);
}

.card-top-left {
    top: 5%;
    left: -140px;
}

.card-bottom-right {
    bottom: 5%;
    right: -140px;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8125rem;
    color: var(--lt-navy);
}

.card-body p {
    font-size: 0.8125rem;
    line-height: 1.4;
    margin-bottom: 0;
    font-style: italic;
    color: var(--lt-gray-text);
}

.mobile-mockup {
    width: 260px;
    height: 540px;
    background: #111;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 25px 50px -12px rgba(80, 87, 229, 0.15);
    position: relative;
}

.mobile-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #111;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    z-index: 2;
}

.mobile-screen {
    background: #f8fafc;
    height: 100%;
    width: 100%;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pro-ui {
    background: #ffffff;
}

.app-nav {
    padding: 1.5rem 1rem 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
}

.app-nav-dot {
    width: 8px;
    height: 8px;
    background: #64748b;
    border-radius: 50%;
}

.app-nav-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
}

.app-body {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pro-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.pro-card-muted {
    opacity: 0.6;
}

.pro-tag {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--lt-cyan);
    margin-bottom: 0.25rem;
    display: block;
}

.pro-tag-muted {
    color: #64748b;
}

.pro-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--lt-navy);
    margin-bottom: 0.5rem;
    display: block;
}

.pro-desc {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.4;
}

.pro-stats {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #f1f5f9;
}

.stat-item {
    font-size: 0.7rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.stat-value {
    color: var(--lt-cyan);
    font-weight: 700;
}

.recording-bar {
    background: var(--lt-navy);
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 600;
}

.recording-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recording-dot {
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.app-header {
    text-align: center;
    margin-bottom: 2rem;
}

.app-date {
    font-size: 0.65rem;
    font-weight: 700;
    color: #9084af;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.app-title {
    font-size: 1.125rem;
    color: #2b1f4a;
    margin-top: 0.25rem;
}

.app-transcript {
    font-family: 'JetBrains Mono', monospace;
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 15px rgba(118, 86, 225, 0.08);
    font-size: 0.8125rem;
    color: #4a4163;
    line-height: 1.5;
    margin-bottom: 2rem;
    position: relative;
}

.app-waveform {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: auto; /* pushes recording UI to bottom */
    padding: 0 0.5rem;
}

.app-time {
    font-size: 0.75rem;
    font-weight: 700;
    color: #2b1f4a;
}

.waveform-bars {
    display: flex;
    gap: 3px;
    align-items: center;
    flex-grow: 1;
}

.waveform-bars i {
    flex: 1;
    background: #6e5aa3;
    border-radius: 2px;
    animation: wave 1s ease-in-out infinite alternate;
}

.waveform-bars i:nth-child(odd) { height: 10px; animation-delay: 0.1s;}
.waveform-bars i:nth-child(even) { height: 20px; animation-delay: 0.3s;}
.waveform-bars i:nth-child(3n) { height: 15px; animation-delay: 0.2s;}
.waveform-bars i:nth-child(4n) { height: 24px; animation-delay: 0.4s;}
.waveform-bars i:nth-child(5n) { height: 8px; animation-delay: 0.5s;}

@keyframes wave {
    0% { transform: scaleY(0.5); }
    100% { transform: scaleY(1); }
}

.recording-ui {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    height: 140px;
    justify-content: center;
}

.pulse-ring {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(144, 94, 255, 0.2);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s infinite;
    z-index: 0;
}

.pulse-ring::after {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(144, 94, 255, 0.1);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.mic-icon {
    font-size: 1.5rem;
    z-index: 1;
    background: radial-gradient(circle, #a185ff 0%, #7656e1 100%);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    box-shadow: 0 10px 25px rgba(118, 86, 225, 0.4);
}



@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(0.9); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2.2); opacity: 0; }
}

/* Responsive */
@media (max-width: 900px) {
    .container {
        width: min(1240px, calc(100% - 2rem));
    }

    .navbar {
        display: flex;
        justify-content: space-between;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .nav-links {
        display: none;
    }

    .hero {
        align-items: flex-start;
        padding-top: 120px; /* Ensure it stays at the top but below navbar */
        min-height: auto;
    }

    .hero-inner {
        flex-direction: column;
        gap: 3rem;
        align-items: flex-start;
        padding-inline: 0;
    }

    .hero-visual {
        width: 100%;
    }

    .pattern-showcase {
        max-width: 100%;
    }

    .pattern-split {
        grid-template-columns: 1fr;
    }

    .pattern-split-arrow {
        min-height: 1.25rem;
        transform: rotate(90deg);
    }

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

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

    .hero-actions {
        flex-direction: column;
    }

    .engine-diagram {
        flex-direction: column;
        align-items: flex-stretch;
        padding: 2rem;
    }

    .hub {
        padding: 2rem 0;
        width: 100%;
        align-items: center;
    }

    .flow-arrow {
        transform: rotate(90deg);
        margin: 1rem 0;
    }

    h1 {
        font-size: 2.25rem;
        line-height: 1.1;
        hyphens: auto;
        word-break: break-word;
        text-align: left;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .mechanism-container {
        flex-direction: column;
        gap: 2rem;
    }

    .mobile-mockup-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .floating-card {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        width: 100%;
        margin: 1rem 0;
    }
}
