/* ==========================================================================
   Haptix Landing Page - Modern Design System v2
   ========================================================================== */

:root {
    /* Primary gradient from logo */
    --primary: #0ea5e9;
    --primary-light: #38bdf8;
    --accent: #06b6d4;
    --gradient: linear-gradient(135deg, #0ea5e9, #06b6d4);

    /* Dark background */
    --bg-dark: #050507;
    --bg-surface: #0a0a0f;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);

    /* Category accents */
    --cat-workout: #ef4444;
    --cat-speaking: #8b5cf6;
    --cat-productivity: #3b82f6;
    --cat-meditation: #14b8a6;
    --cat-orange: #f97316;

    /* Text */
    --text: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    /* Borders */
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);

    /* Spacing */
    --section-padding: 140px;
    --container-max: 1100px;

    /* Animation */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Noise overlay for texture */
.noise-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    animation: noiseShift 0.5s steps(3) infinite;
}

@keyframes noiseShift {
    0% {
        transform: translate(0, 0);
    }

    33% {
        transform: translate(-2%, -2%);
    }

    66% {
        transform: translate(2%, 1%);
    }

    100% {
        transform: translate(0, 0);
    }
}

/* Grid pattern background */
.grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

/* ==========================================================================
   Glassmorphism
   ========================================================================== */

.glass {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    transition: all 0.3s var(--ease-out);
}

.glass:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

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

.hero-glow {
    position: absolute;
    width: 800px;
    height: 800px;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, rgba(6, 182, 212, 0.08) 40%, transparent 70%);
    pointer-events: none;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }

    50% {
        opacity: 0.7;
        transform: translateX(-50%) scale(1.1);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
}

/* Beta Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

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

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* Hero Title */
.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.title-line {
    display: block;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

/* Hero CTAs */
.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.cta-button.primary {
    background: var(--gradient);
    color: white;
    box-shadow:
        0 0 0 1px rgba(14, 165, 233, 0.3),
        0 4px 20px rgba(14, 165, 233, 0.3),
        0 0 40px rgba(14, 165, 233, 0.15);
    animation: ctaPulse 2s infinite;
}

@keyframes ctaPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.6);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(14, 165, 233, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(14, 165, 233, 0);
    }
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 0 1px rgba(14, 165, 233, 0.5),
        0 8px 30px rgba(14, 165, 233, 0.4),
        0 0 60px rgba(14, 165, 233, 0.25);
    animation: none;
}

.cta-button.primary:active {
    transform: translateY(2px) scale(0.98);
    box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.3);
    animation: none;
}

.cta-button.secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.cta-button.secondary:hover {
    background: var(--bg-card);
    color: var(--text);
    border-color: var(--border-hover);
}

.cta-button.secondary:active {
    transform: scale(0.98);
    background: var(--bg-card-hover);
}

.cta-button svg {
    transition: transform 0.3s var(--ease-out);
}

.cta-button:hover svg {
    transform: translateX(3px);
}

/* App Preview */
.hero-visual {
    margin-top: 20px;
    animation: breathingRhythm 4s ease-in-out infinite;
}

@keyframes breathingRhythm {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 0px rgba(14, 165, 233, 0));
    }

    50% {
        transform: scale(1.02);
        filter: drop-shadow(0 0 20px rgba(14, 165, 233, 0.3));
    }

    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0px rgba(14, 165, 233, 0));
    }
}

.app-preview {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
}

.app-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.app-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.app-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
}

.app-tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Scroll hint */
.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% {
        opacity: 0;
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        opacity: 1;
        transform: scaleY(1);
    }

    100% {
        opacity: 0;
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* ==========================================================================
   Pull Quote
   ========================================================================== */

.pull-quote {
    padding: 80px 24px;
    text-align: center;
    position: relative;
}

.quote-text {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 600;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
    font-style: italic;
}

/* ==========================================================================
   Problem/Solution Section
   ========================================================================== */

.problem-solution {
    padding: 80px 24px 100px;
    max-width: var(--container-max);
    margin: 0 auto;
}

.problem-solution-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.problem-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
}

.problem-narrative {
    margin-bottom: 32px;
}

.narrative-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.narrative-text:last-child {
    margin-bottom: 0;
}

.narrative-text em {
    color: var(--primary);
    font-style: italic;
}

.narrative-text strong {
    color: var(--text);
    font-weight: 600;
}

.solution-intro {
    margin-top: 40px;
    margin-bottom: 32px;
    padding: 24px;
    background: rgba(14, 165, 233, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(14, 165, 233, 0.1);
}

.solution-intro h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.solution-intro p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 8px;
}

.solution-intro p:last-child {
    margin-bottom: 0;
}

.solution-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 48px;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 32px;
}

.comparison-card {
    padding: 28px;
    border-radius: 16px;
    text-align: left;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
}

.comparison-card.without {
    border-color: rgba(239, 68, 68, 0.2);
    background: rgba(239, 68, 68, 0.03);
}

.comparison-card.with {
    border-color: rgba(34, 197, 94, 0.2);
    background: rgba(34, 197, 94, 0.03);
}

.comparison-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text);
}

.comparison-card.without h3 {
    color: #f87171;
}

.comparison-card.with h3 {
    color: #4ade80;
}

.comparison-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comparison-card li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.comparison-card .icon {
    flex-shrink: 0;
    font-size: 0.9rem;
}

.comparison-card.without .icon {
    color: #f87171;
}

.comparison-card.with .icon {
    color: #4ade80;
}

/* ==========================================================================
   Section Styles
   ========================================================================== */

.features,
.why-section,
.testing-section {
    padding: var(--section-padding) 24px;
    max-width: var(--container-max);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: var(--text);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* ==========================================================================
   Features - Hero + Supporting Layout
   ========================================================================== */

/* Hero Features - 2 large cards side by side */
.hero-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.hero-feature-card {
    padding: 40px 32px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

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

.hero-feature-card .feature-icon.large {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(14, 165, 233, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary);
}

.hero-feature-card.stoplight .feature-icon.large {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(250, 204, 21, 0.15), rgba(239, 68, 68, 0.15));
}

.hero-feature-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.hero-feature-card p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Glow effect on hero features */
.hero-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.hero-feature-card:hover::before {
    opacity: 1;
}

/* Supporting Features - 4 smaller text-only cards */
.supporting-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.supporting-feature-card {
    padding: 24px;
    border-radius: 14px;
    opacity: 0;
    transform: translateY(20px);
}

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

.supporting-feature-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.supporting-feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Legacy feature grid for backwards compatibility */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.feature-card {
    padding: 28px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

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

/* Glow effect on hover */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

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

.feature-card[data-glow="orange"]::before {
    background: linear-gradient(90deg, transparent, var(--cat-orange), transparent);
}

.feature-card[data-glow="teal"]::before {
    background: linear-gradient(90deg, transparent, var(--cat-meditation), transparent);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(14, 165, 233, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary);
}

.feature-card[data-glow="orange"] .feature-icon {
    background: rgba(249, 115, 22, 0.1);
    color: var(--cat-orange);
}

.feature-card[data-glow="teal"] .feature-icon {
    background: rgba(20, 184, 166, 0.1);
    color: var(--cat-meditation);
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

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

/* ==========================================================================
   Use Cases Section
   ========================================================================== */

.use-cases-section {
    padding: var(--section-padding) 24px;
    max-width: var(--container-max);
    margin: 0 auto;
}

/* Use Case Carousel */
.use-cases-carousel-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 60px;
}

.use-cases-carousel {
    position: relative;
    overflow: hidden;
    min-height: 280px;
}

.use-case-card {
    padding: 40px 32px;
    border-radius: 16px;
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.5s var(--ease-out);
    pointer-events: none;
}

.use-case-card.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    position: relative;
}

.use-case-card.prev {
    opacity: 0;
    transform: translateX(-100px);
}

.use-case-emoji {
    font-size: 3rem;
    display: block;
    margin-bottom: 16px;
}

.use-case-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
}

.use-case-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.carousel-nav:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
    transform: translateY(-50%) scale(1.05);
}

.carousel-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-nav.prev {
    left: 0;
}

.carousel-nav.next {
    right: 0;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 32px;
}

.carousel-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.carousel-dots .dot:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.2);
}

.carousel-dots .dot.active {
    background: rgba(255, 255, 255, 0.15);
    width: 24px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.carousel-dots .dot.active::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: var(--primary);
    border-radius: 4px;
    animation: dotProgress 5s linear forwards;
}

.carousel-dots .dot.active.paused::after {
    animation-play-state: paused;
}

@keyframes dotProgress {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}


/* ==========================================================================
   Testing Guide Section
   ========================================================================== */

.testing-section {
    padding: var(--section-padding) 24px;
    max-width: var(--container-max);
    margin: 0 auto;
}

.testing-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.testing-content .section-title {
    margin-bottom: 12px;
}

.testing-content .section-subtitle {
    margin-bottom: 40px;
}

.testing-guide {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.guide-item {
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
}

.guide-item.highlight {
    border-color: var(--primary);
    background: rgba(14, 165, 233, 0.05);
}

.guide-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    position: relative;
    transition: background 0.2s;
}

/* Make entire header clickable/tactile */
.guide-header:active {
    background: rgba(255, 255, 255, 0.05);
}

.guide-number {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    /* Square with rounded corners for checkbox feel */
    background: rgba(255, 255, 255, 0.05);
    color: transparent;
    /* Hide the number */
    border: 2px solid rgba(255, 255, 255, 0.2);
    font-size: 0;
    /* Hide the number */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    cursor: pointer;
    /* Explicitly show this is the click target */
}

/* The Gray Checkmark (Always visible) */
.guide-number::after {
    content: '✓';
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.15);
    /* Grayed out state */
    transition: all 0.2s;
    transform: scale(0.8);
}

/* Hover state for the CHECKBOX ONLY */
.guide-item:not(.completed) .guide-number:hover {
    border-color: var(--primary);
    background: rgba(14, 165, 233, 0.1);
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.2);
    animation: none;
}

.guide-item:not(.completed) .guide-number:hover::after {
    color: var(--primary);
    transform: scale(1);
    opacity: 0.8;
}

/* Completed State */
.guide-item.completed .guide-number {
    background: #22c55e;
    border-color: #22c55e;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
    animation: none;
}

.guide-item.completed .guide-number::after {
    color: white;
    transform: scale(1.1);
}

/* Remove row hover effects since row click now expands */
.guide-item:not(.completed):hover .guide-number {
    /* No change when hovering row, only when hovering box directly */
    border-color: rgba(255, 255, 255, 0.2);
    color: transparent;
    background: rgba(255, 255, 255, 0.05);
    transform: none;
    box-shadow: none;
    animation: none;
}

.guide-item:hover {
    background: rgba(255, 255, 255, 0.02);
    /* Subtle row highlight */
}

.guide-item {
    cursor: pointer;
    /* Reinforce clickability */
}

.guide-title {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.guide-title strong {
    font-size: 0.95rem;
    color: var(--text);
}

.guide-title span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.guide-toggle {
    color: var(--text-muted);
    transition: transform 0.3s var(--ease-out);
}

.guide-item.open .guide-toggle {
    transform: rotate(180deg);
}

.guide-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s var(--ease-out), padding 0.3s var(--ease-out);
    padding: 0 20px;
}

.guide-item.open .guide-content {
    max-height: 300px;
    padding: 0 20px 20px;
}

.guide-content ol {
    padding-left: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.8;
}

.guide-content ol li {
    margin-bottom: 4px;
}

.guide-content strong {
    color: var(--text);
}

.progress-bar {
    margin-top: 32px;
    height: 48px;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--gradient);
    border-radius: 14px;
    width: 0%;
    transition: width 0.5s var(--ease-out);
    opacity: 0.3;
}

.progress-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    padding: 100px 24px 60px;
    border-top: 1px solid var(--border);
}

.footer-content {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.footer-cta {
    margin-bottom: 48px;
}

.footer-cta h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text);
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

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

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

.footer-trust {
    margin-bottom: 16px;
}

.footer-trust p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

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

/* ==========================================================================
   Back to Top Button
   ========================================================================== */

.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9990;
    opacity: 0;
    transform: translateY(20px);
    visibility: hidden;
    transition: all 0.3s var(--ease-out);
}

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

.back-to-top:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--text-muted);
    transform: translateY(-2px);
}

.back-to-top:active {
    transform: translateY(2px) scale(0.95);
}

/* Adjust position if toasts are present */
.toast-container:not(:empty)~.back-to-top {
    bottom: 100px;
    /* Shift up when toast is present */
}

/* ==========================================================================
   Easter Egg: Konami Code Modal
   ========================================================================== */

.konami-modal {
    background: rgba(0, 0, 0, 0.98);
    border: 4px solid #39ff14;
    border-radius: 24px;
    padding: 48px 40px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.5s var(--ease-spring);
    box-shadow:
        0 0 0 4px #000,
        0 0 60px rgba(57, 255, 20, 0.4),
        0 0 120px rgba(57, 255, 20, 0.2),
        0 25px 50px rgba(0, 0, 0, 0.5);
    animation: konamiGlow 2s ease-in-out infinite;
}

.modal-overlay.active .konami-modal {
    transform: scale(1) translateY(0);
}

@keyframes konamiGlow {

    0%,
    100% {
        box-shadow:
            0 0 0 4px #000,
            0 0 60px rgba(57, 255, 20, 0.4),
            0 0 120px rgba(57, 255, 20, 0.2),
            0 25px 50px rgba(0, 0, 0, 0.5);
    }

    50% {
        box-shadow:
            0 0 0 4px #000,
            0 0 80px rgba(57, 255, 20, 0.6),
            0 0 160px rgba(57, 255, 20, 0.3),
            0 25px 50px rgba(0, 0, 0, 0.5);
    }
}

.konami-scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg,
            rgba(255, 255, 255, 0.03),
            rgba(255, 255, 255, 0.03) 1px,
            transparent 1px,
            transparent 2px);
    pointer-events: none;
    border-radius: 20px;
}

.konami-emoji {
    font-size: 4rem;
    margin-bottom: 8px;
    animation: konamiBounce 0.6s var(--ease-spring);
}

@keyframes konamiBounce {
    0% {
        transform: scale(0) rotate(-20deg);
    }

    50% {
        transform: scale(1.3) rotate(10deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
    }
}

.konami-text {
    font-size: 1.25rem;
    font-family: 'Courier New', monospace;
    color: #39ff14;
    text-shadow: 0 0 10px #39ff14;
    letter-spacing: 0.2em;
    margin-bottom: 8px;
    animation: retroFlicker 0.15s infinite;
}

.konami-message {
    font-size: 2.5rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    color: #ff6b9d;
    text-shadow:
        0 0 10px #ff6b9d,
        0 0 20px #ff6b9d,
        0 0 40px #ff6b9d;
    letter-spacing: 0.1em;
    margin: 0 0 16px 0;
    animation: retroPulse 1s ease-in-out infinite;
}

.konami-hearts {
    font-size: 2rem;
    margin-bottom: 24px;
    animation: heartBounce 0.5s ease-in-out infinite alternate;
}

.konami-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

@keyframes retroFlicker {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

@keyframes retroPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes heartBounce {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-5px);
    }
}

/* ==========================================================================
   Easter Egg: Ultra Dark Mode (OLED Black)
   ========================================================================== */

body.ultra-dark {
    --bg-dark: #000000;
    --bg-surface: #050505;
    --bg-card: rgba(255, 255, 255, 0.02);
    --bg-card-hover: rgba(255, 255, 255, 0.04);
    --border: rgba(255, 255, 255, 0.06);
    --primary: #00ffff;
    --primary-light: #00ffff;
    --accent: #ff00ff;
    --gradient: linear-gradient(135deg, #00ffff, #ff00ff);
}

body.ultra-dark .hero-glow {
    background: radial-gradient(circle, rgba(0, 255, 255, 0.15) 0%, rgba(255, 0, 255, 0.08) 40%, transparent 70%);
}

body.ultra-dark .gradient-text {
    background: linear-gradient(135deg, #00ffff, #ff00ff);
    -webkit-background-clip: text;
    background-clip: text;
}

body.ultra-dark .cta-button.primary {
    background: linear-gradient(135deg, #00ffff, #ff00ff);
    box-shadow:
        0 0 0 1px rgba(0, 255, 255, 0.3),
        0 4px 20px rgba(0, 255, 255, 0.3),
        0 0 40px rgba(255, 0, 255, 0.15);
}

/* ==========================================================================
   Easter Egg: Logo Spin
   ========================================================================== */

.app-icon.spinning {
    animation: logoSpin 0.8s var(--ease-spring);
}

@keyframes logoSpin {
    0% {
        transform: rotate(0deg) scale(1);
    }

    25% {
        transform: rotate(180deg) scale(1.2);
    }

    50% {
        transform: rotate(360deg) scale(0.9);
    }

    75% {
        transform: rotate(360deg) scale(1.1);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* ==========================================================================
   DM Link Styling
   ========================================================================== */

.dm-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    margin-bottom: 12px;
}

.dm-link:hover {
    background: var(--bg-card);
    color: var(--text);
    border-color: var(--border-hover);
}

.dm-link svg {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   Confetti Canvas
   ========================================================================== */

#confetti-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 10000;
}

/* ==========================================================================
   Celebration Modal
   ========================================================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease-out), visibility 0.4s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.celebration-modal {
    background: rgba(15, 15, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 48px 40px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.5s var(--ease-spring);
    box-shadow:
        0 0 0 1px rgba(34, 197, 94, 0.3),
        0 0 60px rgba(34, 197, 94, 0.2),
        0 25px 50px rgba(0, 0, 0, 0.5);
    animation: modalGlow 2s ease-in-out infinite;
}

.modal-overlay.active .celebration-modal {
    transform: scale(1) translateY(0);
}

@keyframes modalGlow {

    0%,
    100% {
        box-shadow:
            0 0 0 1px rgba(34, 197, 94, 0.3),
            0 0 60px rgba(34, 197, 94, 0.2),
            0 25px 50px rgba(0, 0, 0, 0.5);
    }

    50% {
        box-shadow:
            0 0 0 1px rgba(34, 197, 94, 0.5),
            0 0 80px rgba(34, 197, 94, 0.35),
            0 25px 50px rgba(0, 0, 0, 0.5);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

.modal-close:active {
    transform: scale(0.9);
}

.modal-emoji {
    font-size: 4rem;
    margin-bottom: 16px;
    animation: bounce 0.6s var(--ease-spring);
}

@keyframes bounce {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

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

.modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.modal-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.promo-code-container {
    background: rgba(34, 197, 94, 0.1);
    border: 2px dashed rgba(34, 197, 94, 0.4);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.promo-code-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.promo-code {
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: #4ade80;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.copy-btn {
    background: rgba(34, 197, 94, 0.2);
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    color: #4ade80;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.copy-btn:hover {
    background: rgba(34, 197, 94, 0.3);
    transform: scale(1.05);
}

.copy-btn:active,
.share-btn:active {
    transform: scale(0.95);
}

.copy-btn.copied {
    background: #22c55e;
    color: white;
}

.modal-email-section {
    margin-bottom: 24px;
}

.modal-email-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: block;
}

.modal-email-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    font-size: 1rem;
    transition: all 0.2s;
}

.modal-email-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

.modal-email-input::placeholder {
    color: var(--text-muted);
}

.share-section {
    border-top: 1px solid var(--border);
    padding-top: 24px;
}

.share-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: #FF4500;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.share-btn:hover {
    background: #FF5722;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 69, 0, 0.4);
}

.share-btn svg {
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   Milestone Toast Notifications
   ========================================================================== */

.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9998;
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
}

.toast {
    padding: 16px 20px;
    border-radius: 12px;
    background: rgba(20, 20, 25, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    max-width: 360px;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.4s var(--ease-out);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.hide {
    transform: translateX(120%);
    opacity: 0;
}

.toast-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 2px;
}

.toast-message {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Toast variants */
.toast.bronze {
    border-color: rgba(205, 127, 50, 0.3);
    box-shadow: 0 0 30px rgba(205, 127, 50, 0.1);
}

.toast.silver {
    border-color: rgba(192, 192, 192, 0.3);
    box-shadow: 0 0 30px rgba(192, 192, 192, 0.1);
}

.toast.gold {
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.15);
}

/* Enhanced Checklist UX */

.guide-item {
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.guide-item:hover {
    transform: translateX(4px);
}

.guide-item:hover .guide-checkbox:not(.checked) {
    transform: scale(1.05);
    border-color: rgba(14, 165, 233, 0.5);
}

.guide-checkbox {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s var(--ease-spring);
    cursor: pointer;
}

/* Unchecked state - gray checkmark */
.guide-checkbox .checkmark-icon {
    opacity: 0.25;
    stroke: rgba(255, 255, 255, 0.4);
    transition: all 0.3s var(--ease-spring);
}

/* Hover effect for unchecked */
.guide-item:hover .guide-checkbox:not(.checked) .checkmark-icon {
    opacity: 0.4;
}

/* Checkbox hint ring on hover */
.guide-checkbox::before {
    content: '';
    position: absolute;
    inset: -4px;
    border: 2px dashed rgba(14, 165, 233, 0.3);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s;
}

.guide-item:hover .guide-checkbox:not(.checked)::before {
    opacity: 1;
    animation: pulseRing 1.5s ease-in-out infinite;
}

@keyframes pulseRing {

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

    50% {
        transform: scale(1.1);
        opacity: 0.6;
    }
}

/* Completed state - colored checkmark */
.guide-item.completed .guide-checkbox {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-color: #22c55e;
    animation: checkPop 0.4s var(--ease-spring);
}

.guide-item.completed .guide-checkbox .checkmark-icon {
    opacity: 1;
    stroke: white;
}

.guide-item.completed .guide-checkbox::before {
    display: none;
}

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

    50% {
        transform: scale(1.3);
    }

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

.guide-item.completed {
    opacity: 0.7;
}

.guide-item.completed:hover {
    opacity: 1;
}

.guide-item.completed .guide-title strong {
    text-decoration: line-through;
    text-decoration-color: rgba(255, 255, 255, 0.3);
}


/* ==========================================================================
   Easter Egg - Progress Bar Secret
   ========================================================================== */

.progress-bar {
    margin-top: 32px;
    height: 52px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.progress-bar:hover {
    transform: scale(1.01);
}

.progress-bar.secret-active {
    animation: secretGlow 0.5s ease-out;
}

@keyframes secretGlow {
    0% {
        box-shadow: 0 0 0 rgba(139, 92, 246, 0);
    }

    50% {
        box-shadow: 0 0 40px rgba(139, 92, 246, 0.6);
    }

    100% {
        box-shadow: 0 0 0 rgba(139, 92, 246, 0);
    }
}

.progress-bar.secret-unlocked {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
}

.progress-bar.secret-unlocked .progress-fill {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
}

.secret-message {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #a855f7;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s;
}

.progress-bar.secret-unlocked .secret-message {
    opacity: 1;
}

.progress-bar.secret-unlocked .progress-text {
    opacity: 0;
}

/* Sparkle effect for easter egg */
.sparkle {
    position: absolute;
    pointer-events: none;
    animation: sparkleAnim 0.6s ease-out forwards;
}

@keyframes sparkleAnim {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: scale(1) rotate(180deg);
        opacity: 0;
    }
}

/* ==========================================================================
   Animations
   ========================================================================== */

.animate-fade-in {
    animation: fadeIn 0.8s var(--ease-out) forwards;
    opacity: 0;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s var(--ease-out) forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.15s;
}

.delay-2 {
    animation-delay: 0.3s;
}

.delay-3 {
    animation-delay: 0.45s;
}

.delay-4 {
    animation-delay: 0.7s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
    .supporting-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 100px;
    }

    .hero {
        min-height: auto;
        padding: 120px 20px 80px;
    }

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

    .hero-cta {
        flex-direction: column;
        gap: 12px;
    }

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

    .scroll-hint {
        display: none;
    }

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

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

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

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

    .use-cases-carousel-wrapper {
        padding: 0 50px;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
    }

    .footer-links {
        gap: 20px;
    }

    .problem-solution {
        padding: 60px 20px 80px;
    }

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

@media (max-width: 480px) {
    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    .app-preview {
        padding: 12px 16px;
    }

    .app-icon {
        width: 44px;
        height: 44px;
    }

    .guide-header {
        padding: 14px 16px;
    }

    .guide-checkbox {
        width: 28px;
        height: 28px;
    }

    .guide-checkbox .checkmark-icon {
        width: 16px;
        height: 16px;
    }

    .hero-feature-card {
        padding: 28px 24px;
    }

    .hero-feature-card h3 {
        font-size: 1.2rem;
    }

    .comparison-card {
        padding: 20px;
    }
}