/* ============================================
   Reflexio - Quiet Luxury Landing Page
   Design: Apple-esque, Light Mode
   ============================================ */

/* CSS Variables */
:root {
    /* Colors */
    --bg-primary: #FAFAFA;
    --bg-card: #FFFFFF;
    --text-primary: #1D1D1F;
    --text-secondary: #6E6E73;
    --text-tertiary: #86868B;
    --accent: #E57373;
    --accent-soft: rgba(229, 115, 115, 0.15);
    --accent-glow: rgba(229, 115, 115, 0.25);
    --border-color: rgba(0, 0, 0, 0.06);
    --border-color-strong: rgba(0, 0, 0, 0.1);

    /* Shadows - Apple-style diffuse multi-layered */
    --shadow-sm:
        0 1px 2px rgba(0, 0, 0, 0.02),
        0 4px 8px rgba(0, 0, 0, 0.02);
    --shadow-md:
        0 2px 4px rgba(0, 0, 0, 0.02),
        0 8px 16px rgba(0, 0, 0, 0.04),
        0 16px 32px rgba(0, 0, 0, 0.02);
    --shadow-lg:
        0 4px 8px rgba(0, 0, 0, 0.02),
        0 12px 24px rgba(0, 0, 0, 0.04),
        0 24px 48px rgba(0, 0, 0, 0.04),
        0 48px 96px rgba(0, 0, 0, 0.02);
    --shadow-xl:
        0 8px 16px rgba(0, 0, 0, 0.02),
        0 16px 32px rgba(0, 0, 0, 0.04),
        0 32px 64px rgba(0, 0, 0, 0.06),
        0 64px 128px rgba(0, 0, 0, 0.04);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-slow: 0.4s ease;
    --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 250, 250, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition-base);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
    color: var(--text-primary);
    font-weight: var(--font-weight-semibold);
    font-size: 1.125rem;
    transition: opacity var(--transition-fast);
}

.nav-logo:hover {
    opacity: 0.8;
}

.nav-logo-icon {
    width: 28px;
    height: 28px;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    font-family: var(--font-family);
    font-size: 0.9375rem;
    font-weight: var(--font-weight-medium);
    line-height: 1.4;
    text-decoration: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    outline: none;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border-color-strong);
}

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

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-card);
}

.btn-primary:hover {
    background: #2D2D2F;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-large {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1rem;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: calc(80px + var(--spacing-3xl)) var(--spacing-lg) var(--spacing-3xl);
    text-align: center;
}

.hero-container {
    max-width: 800px;
    width: 100%;
}

.hero-content {
    margin-bottom: var(--spacing-3xl);
}

.hero-headline {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: var(--font-weight-bold);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

.hero-subheadline {
    font-size: clamp(1.0625rem, 2vw, 1.25rem);
    font-weight: var(--font-weight-light);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Waitlist Card */
.waitlist-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-xl);
    max-width: 480px;
    margin: 0 auto;
}

.waitlist-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.waitlist-title {
    font-size: 1rem;
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
}

.waitlist-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.02em;
}

.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.waitlist-input {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    font-family: var(--font-family);
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-primary);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-full);
    outline: none;
    transition: all var(--transition-base);
}

.waitlist-input::placeholder {
    color: var(--text-tertiary);
}

.waitlist-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.waitlist-form .btn-primary {
    width: 100%;
    padding: var(--spacing-md);
}

.waitlist-note {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    margin-top: var(--spacing-md);
}

/* Brevo Honeypot - Must be hidden from users but present in DOM */
.input--hidden {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    visibility: hidden !important;
}

/* Hidden iframe for Brevo form submission */
.brevo-iframe-hidden {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Waitlist Success State */
.waitlist-content {
    transition: opacity 0.5s ease;
}

.waitlist-content.fade-out {
    opacity: 0;
    pointer-events: none;
}

.waitlist-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--spacing-md);
    animation: fadeInSuccess 0.5s ease forwards;
    height: 100%;
    min-height: 200px;
    /* Conserve space */
}

.success-icon-container {
    margin-bottom: var(--spacing-md);
    color: var(--accent);
    display: flex;
    justify-content: center;
}

.success-icon {
    animation: heartbeat 2s ease-in-out infinite;
}

.success-headline {
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.success-subtext {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}

@keyframes fadeInSuccess {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    15% {
        transform: scale(1.1);
        opacity: 0.9;
    }

    30% {
        transform: scale(1);
        opacity: 1;
    }

    45% {
        transform: scale(1.1);
        opacity: 0.9;
    }

    60% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ============================================
   Section Styling
   ============================================ */
/* Feature Section Headers */
.feature-section-label {
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
    color: var(--text-tertiary);
    text-align: center;
    display: block;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    /* Generous spacing above */
    margin-top: 8rem;
    /* Closer to cards below, but breathing room */
    margin-bottom: var(--spacing-xl);
}

.section-label {
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-headline {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
}

.section-subheadline-secondary {
    font-size: 1rem;
    font-weight: var(--font-weight-regular);
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   Problems Section - "Die Hürden"
   Apple-esque Quiet Luxury Design
   ============================================ */
.problems {
    padding: var(--spacing-4xl) 0;
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

.problem-card {
    background: var(--bg-card);
    padding: var(--spacing-2xl);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    border-radius: var(--radius-2xl);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.02),
        0 4px 8px rgba(0, 0, 0, 0.02),
        0 8px 16px rgba(0, 0, 0, 0.03),
        0 16px 32px rgba(0, 0, 0, 0.02);
    transition:
        transform 0.4s ease-out,
        box-shadow 0.4s ease-out;
    cursor: default;
}

.problem-card:hover {
    transform: translateY(-12px);
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.04),
        0 24px 48px rgba(0, 0, 0, 0.04),
        0 0 80px rgba(255, 90, 90, 0.2);
    /* Deep Glow Shadow */
}

.problem-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
}

/* Icons stay static in geometry, but change color */
.problem-icon svg {
    stroke: var(--text-secondary);
    stroke-width: 1.5;
    transition: stroke 0.3s ease-in-out;
}

.problem-card:hover .problem-icon svg {
    stroke: var(--accent);
}

.problem-title {
    font-size: 1.375rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.problem-description {
    font-size: 1rem;
    font-weight: var(--font-weight-light);
    color: var(--text-secondary);
    line-height: 1.75;
}

/* All icon specific animations removed for stability */

/* Animation cleared */

/* ============================================
   Icon: Verlorene Insights (Magnifying Glass)
   Animation: Circular Scanning (unchanged)
   ============================================ */
/* Animation cleared */


/* ============================================
   Features Section (Bento Grid)
   ============================================ */
/* ============================================
   Features Section (Bento Grid)
   ============================================ */
.features {
    padding: var(--spacing-4xl) 0;
}

/* Chat Visual Styles */
.chat-bubble {
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    max-width: 80%;
    line-height: 1.5;
}

.chat-bubble-ai {
    background: var(--bg-primary);
    color: var(--text-primary);
    align-self: flex-start;
    border: 1px solid var(--border-color);
}

.chat-bubble-user {
    background: var(--text-primary);
    color: var(--bg-card);
    align-self: flex-end;
}

/* Insights Visual */
.accent-text {
    color: var(--accent);
}

/* Privacy Badges */
.privacy-badges {
    margin-top: var(--spacing-lg);
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.privacy-badge {
    display: inline-flex;
    align-items: center;
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--bg-primary);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}


/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    padding: var(--spacing-4xl) 0;
    text-align: center;
}

.cta-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xl);
}

.cta-headline {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
}

.cta-subheadline {
    font-size: 1.125rem;
    font-weight: var(--font-weight-light);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    max-width: 500px;
}

/* CTA Waitlist Card - with hover glow effect */
.waitlist-card-cta {
    max-width: 520px;
    width: 100%;
    transition: transform 500ms ease-in-out,
        box-shadow 500ms ease-in-out;
}

.waitlist-card-cta:hover {
    transform: translateY(-8px);
    box-shadow:
        var(--shadow-lg),
        0 20px 50px -10px rgba(180, 95, 90, 0.12),
        0 30px 60px -15px rgba(180, 95, 90, 0.08);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: var(--spacing-3xl) 0;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-xl);
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
    color: var(--text-primary);
    font-weight: var(--font-weight-semibold);
    font-size: 1rem;
}

.footer-logo-icon {
    width: 24px;
    height: 24px;
}

.footer-tagline {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.footer-nav {
    display: flex;
    gap: var(--spacing-2xl);
    align-items: center;
}

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

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

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fillProgress {
    from {
        width: 0;
    }
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

/* Staggered animations on scroll */
.fade-in-up:nth-child(1) {
    animation-delay: 0s;
}

.fade-in-up:nth-child(2) {
    animation-delay: 0.1s;
}

.fade-in-up:nth-child(3) {
    animation-delay: 0.2s;
}

.fade-in-up:nth-child(4) {
    animation-delay: 0.3s;
}

/* ============================================
   Animated Bento Grid - "So funktioniert Reflexio"
   ============================================ */


/* ============================================
   Reflexio Features Section (Redesign)
   Structure: Analysis Grid (Top) -> Input Methods (Bottom)
   ============================================ */

/* Headers now unified at the top of the section styling */

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
    /* Harmonious spacing from input section above */
}

/* Vertical Feature Card */
.feature-card-vertical {
    background: var(--bg-card);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.03);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    height: 100%;
}

.feature-card-vertical:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), 0 20px 40px -10px rgba(0, 0, 0, 0.05);
}

.feature-card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Ensure content fills height */
}

.feature-card-header {
    margin-bottom: var(--spacing-xl);
}

.feature-card-header h3 {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.feature-card-header p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    background: var(--bg-primary);
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.feature-icon.accent-glow {
    background: var(--accent-soft);
    color: var(--accent);
}

/* 2. Visuals */

/* Shared Feature Visual Container (DRY) */
.feature-visual-container {
    height: 320px;
    min-height: 320px;
    max-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: auto;
    padding: var(--spacing-xl);
    background: #F9F9F9;
    border-radius: var(--radius-xl);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* Network Visualization Specifics */
.network-compact {
    /* Inherits from .feature-visual-container */
}

/* ============================================
   PROTECTED: #reflexio-network-svg Styles
   Isolated component - DO NOT MERGE OR DELETE
   ============================================ */

/* Network SVG Base */
#reflexio-network-svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Base lines - Thin grey hairlines (matching image_16.png) */
.rn-line {
    stroke: #8B8B8B;
    stroke-width: 1px;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Base nodes - Neutral mid-grey (matching image_16.png) */
.rn-node {
    fill: #8B8B8B;
}

/* ============================================
   Signal Animation: Zig-Zag + Triangle Path
   Unified animation (all elements together)
   
   Timing (9s total cycle):
   - 0-33%:  Grey → Coral fade (3s)
   - 33-55%: Hold Coral (2s)
   - 55-88%: Coral → Grey fade (3s)
   - 88-100%: Hold Grey / Pause (1s)
   ============================================ */

/* Signal line - Starts IDENTICAL to base (perfect camouflage) */
.rn-signal-line {
    stroke: #8B8B8B;
    stroke-width: 1px;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: rnSignalReveal 9s ease-in-out infinite;
}

/* Signal nodes - Start IDENTICAL to base (perfect camouflage) */
.rn-signal-node {
    fill: #8B8B8B;
    animation: rnNodeReveal 9s ease-in-out infinite;
}

/* Line color reveal animation */
@keyframes rnSignalReveal {

    /* Grey state (camouflaged) */
    0%,
    5% {
        stroke: #8B8B8B;
    }

    /* Fade to coral */
    33%,
    55% {
        stroke: #E57373;
    }

    /* Fade back to grey */
    88%,
    100% {
        stroke: #8B8B8B;
    }
}

/* Node color reveal animation */
@keyframes rnNodeReveal {

    /* Grey state (camouflaged) */
    0%,
    5% {
        fill: #8B8B8B;
    }

    /* Fade to coral */
    33%,
    55% {
        fill: #E57373;
    }

    /* Fade back to grey */
    88%,
    100% {
        fill: #8B8B8B;
    }
}

/* Weekly Dashboard Visual Specifics */
.weekly-dashboard-visual {
    /* Inherits from .feature-visual-container */
}

.dashboard-header {
    font-size: 0.625rem;
    font-weight: var(--font-weight-medium);
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--spacing-sm);
}

.highlight-note {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    width: 100%;
    /* Fit to padded container */
    box-sizing: border-box;
    box-shadow: var(--shadow-sm);
    min-height: auto;
}

.highlights-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.highlights-title {
    font-size: 0.75rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    text-transform: none;
    letter-spacing: normal;
    text-align: center;
    display: block;
    width: 100%;
}

.highlights-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
}

.highlight-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 18px;
    /* Match line height */
    color: var(--accent);
    /* Muted Coral checkmark */
    flex-shrink: 0;
}

.highlight-icon svg {
    width: 14px;
    height: 14px;
}

.highlight-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

@keyframes pulseTrend {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.trend-point {
    opacity: 0;
    transform-origin: center;
    animation: showPoint 0.3s ease-out 2.5s forwards;
}

@keyframes showPoint {
    to {
        opacity: 1;
    }
}

.key-insights {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.insight-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    font-size: 0.6875rem;
    opacity: 0;
    transform: translateX(-10px);
}

.feature-card-vertical:hover .insight-badge:nth-child(1) {
    animation: slideInBadge 0.4s ease-out 2.8s forwards;
}

.feature-card-vertical:hover .insight-badge:nth-child(2) {
    animation: slideInBadge 0.4s ease-out 3s forwards;
}

@keyframes slideInBadge {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.insight-icon {
    color: var(--accent);
    font-weight: bold;
    font-size: 0.75rem;
}

.insight-text {
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
}

/* 3. Input Methods (Now Top Section) */
.features-intro-section {
    margin-bottom: var(--spacing-4xl);
    /* Increased space before feature cards for breathing room */
    text-align: center;
}

.features-intro-header {
    max-width: 700px;
    margin: 0 auto var(--spacing-2xl);
}

.input-methods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

.input-method-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--spacing-lg);
    /* Reduced padding */
    background: transparent;
    transition: transform 0.4s ease;
}

.input-method-card:hover {
    transform: translateY(-5px);
}

.input-icon {
    width: 56px;
    /* Slightly smaller */
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    transition: all 0.4s ease;
}

.input-method-card:hover .input-icon {
    color: var(--accent);
    background: var(--accent-soft);
    box-shadow: var(--shadow-md);
}

.input-method-card h3 {
    font-size: 1.125rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.input-method-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}


/* 4. Security Banner */
.security-banner {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg) var(--spacing-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    max-width: 800px;
    margin: 60px auto 0;
    box-shadow: var(--shadow-sm);
}

.security-icon {
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
}

.security-banner p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: var(--font-weight-medium);
}

/* Responsive styles moved to end of file */



/* ============================================
   Card 1: Chat Simulation
   ============================================ */
/* Chat Simulation Specifics */
.chat-simulation {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    padding: var(--spacing-xl);
    /* Anchor content at top to prevent jumping - user message stays fixed */
    justify-content: flex-start;
    align-items: stretch;
    /* Inherits layout from .feature-visual-container (applied in HTML) */
}

/* Elegant fade at bottom if content overflows */
.chat-simulation::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, rgba(249, 249, 249, 0), rgba(249, 249, 249, 1));
    pointer-events: none;
}

.chat-message {
    display: flex;
    gap: var(--spacing-sm);
    align-items: flex-start;
    flex-shrink: 0;
    /* Prevent compression during animation */
}

/* User message: right-aligned, avatar on right side of bubble */
.chat-user {
    flex-direction: row;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.chat-user.visible {
    opacity: 1;
}

/* AI message: left-aligned with icon on left */
.chat-ai {
    flex-direction: row;
    justify-content: flex-start;
    opacity: 0;
    /* Reserve space for expanded state to prevent layout shift */
    min-height: 60px;
    align-items: flex-start;
    transition: opacity 0.4s ease-out;
}

.chat-ai.visible {
    opacity: 1;
}

.chat-avatar {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: var(--font-weight-semibold);
    flex-shrink: 0;
    align-self: flex-start;
}

.chat-avatar-user {
    background: var(--text-primary);
    color: var(--bg-card);
}

.chat-avatar-ai {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

/* Chat Bubbles - Clean fit-content design */
.chat-bubble {
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    line-height: 1.5;
    width: fit-content;
    max-width: 85%;
}

.chat-bubble p {
    margin: 0;
}

.chat-bubble-user {
    background: var(--text-primary);
    color: var(--bg-card);
    border-radius: var(--radius-lg) var(--radius-lg) var(--spacing-xs) var(--radius-lg);
}

/* AI Bubble - Morphing Animation States */
.chat-bubble-ai {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) var(--spacing-xs);
    position: relative;
    overflow: hidden;
    /* Buttersmooth morphing transition */
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loading State - Small compact box */
.chat-bubble-ai.is-loading {
    max-height: 40px;
    padding: var(--spacing-sm) var(--spacing-md);
}

.chat-bubble-ai.is-loading .chat-thinking-dots {
    opacity: 1;
    transition: opacity 0.3s ease-out;
}

.chat-bubble-ai.is-loading .chat-response-text {
    opacity: 0;
    position: absolute;
    top: var(--spacing-sm);
    left: var(--spacing-md);
    right: var(--spacing-md);
    pointer-events: none;
}

/* Expanded State - Full-size text box */
.chat-bubble-ai.is-expanded {
    max-height: 1000px;
    /* Allow dynamic growth */
    /* Increased for longer text */
    padding: var(--spacing-sm) var(--spacing-md);
    padding-bottom: 20px;
    /* Added 20px bottom padding as requested */
}

.chat-bubble-ai.is-expanded .chat-thinking-dots {
    opacity: 0;
    position: absolute;
    pointer-events: none;
}

.chat-bubble-ai.is-expanded .chat-response-text {
    opacity: 1;
    position: relative;
    transition: opacity 0.4s ease-in 0.15s;
    /* Delayed fade-in */
}

/* Typing Indicator Dots */
.chat-thinking-dots {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 20px;
}

.chat-thinking-dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-tertiary);
    animation: dotPulse 1.4s ease-in-out infinite;
}

.chat-thinking-dots .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.chat-thinking-dots .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotPulse {

    0%,
    80%,
    100% {
        opacity: 0.4;
        transform: scale(0.85);
    }

    40% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Floating elements removed */

.footer-copyright {
    display: block;
    margin-top: var(--spacing-sm);
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

/* ============================================
   Scroll Animate States
   ============================================ */
.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
}

.scroll-animate.animate-in {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Responsive styles moved to end of file */


/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {

    /* Layout & Containers */
    .nav-container {
        padding: var(--spacing-md);
    }

    .hero {
        padding: calc(80px + var(--spacing-xl)) var(--spacing-md) var(--spacing-2xl);
        min-height: auto;
    }

    .hero-content {
        margin-bottom: var(--spacing-2xl);
    }

    /* Grids */
    .problems-grid,
    .analysis-grid,
    .input-methods-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    /* Components */
    .feature-card-vertical {
        min-height: auto;
    }

    .waitlist-card {
        padding: var(--spacing-lg);
    }

    .waitlist-form {
        flex-direction: column;
    }

    .cta-card {
        padding: var(--spacing-2xl) var(--spacing-lg);
    }

    .security-banner {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
        padding: var(--spacing-lg);
    }

    /* Typography & Visuals */
    .section-headline {
        font-size: 2rem;
    }

    .chat-bubble {
        max-width: 95%;
    }

    .privacy-badges {
        justify-content: center;
    }

    /* Footer */
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-left {
        align-items: center;
    }

    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--spacing-xl);
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-lg: 1rem;
        --spacing-xl: 1.5rem;
        --spacing-2xl: 2rem;
        --spacing-3xl: 3rem;
        --spacing-4xl: 4rem;
    }

    .hero-headline {
        font-size: 2rem;
    }

    .hero-subheadline {
        font-size: 1rem;
    }

    .bento-card-title {
        font-size: 1.25rem;
    }

    .btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.875rem;
    }

    .btn-large {
        padding: var(--spacing-md) var(--spacing-lg);
    }
}

/* iPhone SE and very small screens (320-375px) */
@media (max-width: 375px) {
    .hero {
        padding: calc(70px + var(--spacing-lg)) var(--spacing-md) var(--spacing-xl);
    }

    .hero-headline {
        font-size: 1.75rem;
        line-height: 1.15;
        margin-bottom: var(--spacing-md);
    }

    .hero-subheadline {
        font-size: 0.9375rem;
        line-height: 1.6;
    }

    .hero-content {
        margin-bottom: var(--spacing-xl);
    }

    /* Waitlist Card - Compact but spacious */
    .waitlist-card {
        padding: var(--spacing-md);
        border-radius: var(--radius-lg);
    }

    .waitlist-header {
        margin-bottom: var(--spacing-md);
    }

    .waitlist-title {
        font-size: 0.9375rem;
    }

    /* Touch-friendly input and button */
    .waitlist-input {
        padding: var(--spacing-md);
        font-size: 16px;
        /* Prevents iOS zoom on focus */
        min-height: 48px;
        /* Touch target minimum */
    }

    .waitlist-form .btn-primary {
        min-height: 48px;
        /* Touch target minimum */
        font-size: 1rem;
        padding: var(--spacing-md);
    }

    .waitlist-note {
        font-size: 0.75rem;
        margin-top: var(--spacing-sm);
    }

    /* Success state adjustments */
    .waitlist-success {
        min-height: 180px;
        padding: var(--spacing-sm);
    }

    .success-icon-container svg {
        width: 40px;
        height: 40px;
    }

    .success-headline {
        font-size: 1.125rem;
    }

    .success-subtext {
        font-size: 0.875rem;
    }

    /* Navigation compact */
    .nav-container {
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .nav-logo-text {
        font-size: 1rem;
    }

    .nav-logo-icon {
        width: 24px;
        height: 24px;
    }

    .btn-outline {
        padding: var(--spacing-xs) var(--spacing-md);
        font-size: 0.8125rem;
    }

    /* CTA Section */
    .cta-headline {
        font-size: 1.5rem;
    }

    .cta-subheadline {
        font-size: 1rem;
    }

    /* Problem cards compact */
    .problem-card {
        padding: var(--spacing-lg);
    }

    .problem-title {
        font-size: 1.125rem;
    }

    .problem-description {
        font-size: 0.9375rem;
    }

    /* FAQ compact */
    .accordion-title {
        font-size: 1rem;
    }

    .accordion-header {
        padding: var(--spacing-md) 0;
    }

    /* Footer compact */
    .footer-nav {
        gap: var(--spacing-lg);
    }

    .footer-link {
        font-size: 0.8125rem;
    }
}

/* ============================================
   Utility Classes
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   FAQ Section - Quiet Luxury Accordion
   ============================================ */
/* ============================================
   FAQ Section - Minimalist "Quiet Luxury" Redesign
   ============================================ */
.faq {
    padding: var(--spacing-4xl) 0;
    background: #ffffff;
}

.accordion-container {
    max-width: 800px;
    margin: 40px auto 0;
}

.accordion-item {
    border-bottom: 1px solid #eeeeee;
    transition: all 0.3s ease-in-out;
}

.accordion-item:first-child {
    border-top: 1px solid #eeeeee;
}

.accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-xl) 0;
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    text-align: left;
}

.accordion-header:focus {
    outline: none;
}

.accordion-title {
    font-size: 1.125rem;
    font-weight: var(--font-weight-bold);
    color: #333333;
    transition: color 0.3s ease;
}

.accordion-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-header[aria-expanded="true"] .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease-in-out;
    overflow: hidden;
}

.accordion-header[aria-expanded="true"]+.accordion-content {
    grid-template-rows: 1fr;
}

.accordion-body {
    overflow: hidden;
}

.accordion-body p {
    padding-bottom: var(--spacing-xl);
    color: #666666;
    line-height: 1.7;
    font-weight: var(--font-weight-regular);
    margin: 0;
}