/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #5B7FFF;
    --color-primary-dark: #4A6AE5;
    --color-secondary: #FF6B9D;
    --color-bg: #0F1419;
    --color-bg-light: #1A1F2E;
    --color-text: #E8EAED;
    --color-text-secondary: #9AA0A6;
    --color-border: #2D3748;
    --spacing-xs: clamp(0.25rem, 2vw, 0.5rem);
    --spacing-sm: clamp(0.5rem, 3vw, 1rem);
    --spacing-md: clamp(1rem, 4vw, 2rem);
    --spacing-lg: clamp(2rem, 6vw, 4rem);
    --spacing-xl: clamp(3rem, 8vw, 6rem);
    --radius: 16px;
    --radius-lg: 24px;
    --radius-md: 12px;
    --radius-xl: 32px;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.4);
    --shadow-3d: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --glass-bg: rgba(26, 31, 46, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

html {
    background-color: #0F1419;
    overflow-x: hidden;
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    font-display: swap;
    height: 100%;
    overflow-x: hidden;
}

/* ============================================
   TEXT REVEAL ANIMATIONS
   ============================================ */
/* Hide section titles initially until they're in view */
.section-title:not([data-animated]),
.breathing-title:not([data-animated]) {
    opacity: 0;
}

.word-reveal {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    animation: wordReveal 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    margin-right: 0.25em;
}

.word-reveal:last-child {
    margin-right: 0;
}

/* Fix for breathing-title gradient - apply to each word */
.breathing-title .word-reveal {
    background: linear-gradient(135deg, #E8EAED 0%, #9CA3AF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* 3D card perspective removed */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
}

.logo-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.nav-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(91, 127, 255, 0.3);
}

.nav-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(91, 127, 255, 0.4);
}

.nav-download-btn:active {
    transform: scale(0.95);
}

.nav-download-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.nav-download-btn.loading .btn-icon {
    animation: pulse 0.8s ease-in-out infinite;
}

.nav-download-btn .btn-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

/* Hide mobile nav button on desktop */
@media (min-width: 769px) {
    .nav-download-btn {
        display: none;
    }

    .nav {
        justify-content: center;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(91, 127, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 15px 35px rgba(91, 127, 255, 0.5),
        0 0 0 1px rgba(91, 127, 255, 0.3) inset;
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-primary.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-primary.loading .btn-icon {
    animation: pulse 0.8s ease-in-out infinite;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-secondary:active {
    transform: scale(0.98);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

/* Loading pulse animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(0.9);
    }
}

/* Hero Section */
.hero {
    padding-top: calc(60px + var(--spacing-xl));
    padding-bottom: var(--spacing-xl);
    background: linear-gradient(135deg, #0F1419 0%, #1A1F2E 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(91, 127, 255, 0.1) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    border-radius: 50%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.hero-text {
    z-index: 1;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-title {
    font-size: clamp(2rem, 5vw + 1rem, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(91, 127, 255, 0.3);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw + 0.5rem, 1.25rem);
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-md);
    max-width: 500px;
    line-height: 1.7;
}

.hero-buttons {
    margin-bottom: var(--spacing-sm);
}

.hero-version {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: 350px;
    max-width: 100%;
    border-radius: 40px;
    overflow: hidden;
    border: 3px solid var(--color-border);
    box-shadow:
        var(--shadow-3d),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 0 60px rgba(91, 127, 255, 0.2);
    animation: float 6s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.phone-mockup:hover {
    transform: scale(1.02);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Accessibility: Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .phone-mockup {
        animation: none;
    }
}

.app-screenshot {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 37px;
    object-fit: cover;
    aspect-ratio: 1206 / 2622;
}

/* Section Styles */
section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    font-size: clamp(1.75rem, 4vw + 0.5rem, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: clamp(0.9rem, 2vw + 0.3rem, 1.1rem);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

/* Features Section */
.features {
    background: var(--color-bg-light);
    position: relative;
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(91, 127, 255, 0.03) 0%, transparent 70%);
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    pointer-events: none;
}

/* Modern unified grid */
.features-grid-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: linear-gradient(135deg, rgba(91, 127, 255, 0.1) 0%, rgba(255, 107, 157, 0.1) 100%);
    padding: 2px;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

/* Unified feature cards */
.feature-card-modern {
    background: var(--color-bg-light);
    padding: clamp(2rem, 4vw, 3rem);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    min-height: 320px;
}

/* Border radius for corner cards to match container */
.feature-card-modern:nth-child(1) {
    border-top-left-radius: calc(var(--radius-lg) - 2px);
}

.feature-card-modern:nth-child(3) {
    border-top-right-radius: calc(var(--radius-lg) - 2px);
}

.feature-card-modern:nth-child(4) {
    border-bottom-left-radius: calc(var(--radius-lg) - 2px);
}

.feature-card-modern:nth-child(6) {
    border-bottom-right-radius: calc(var(--radius-lg) - 2px);
}

/* Shared gradient border effect on hover */
.feature-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(91, 127, 255, 0.08) 0%, rgba(255, 107, 157, 0.08) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

/* Connecting dot decoration */
.feature-card-modern::after {
    content: '';
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: 50%;
    opacity: 0.3;
    transition: all 0.4s ease;
}

.feature-card-modern:hover {
    transform: translateY(-8px);
    z-index: 10;
}

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

.feature-card-modern:hover::after {
    opacity: 1;
    transform: scale(1.5);
    box-shadow: 0 0 20px rgba(91, 127, 255, 0.6);
}

/* Feature numbers - creates visual sequence as background */
.feature-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(6rem, 12vw, 10rem);
    font-weight: 900;
    background: linear-gradient(135deg, rgba(91, 127, 255, 0.08) 0%, rgba(255, 107, 157, 0.08) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    user-select: none;
    transition: all 0.4s ease;
    z-index: 0;
    pointer-events: none;
}

.feature-card-modern:hover .feature-number {
    background: linear-gradient(135deg, rgba(91, 127, 255, 0.15) 0%, rgba(255, 107, 157, 0.15) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translate(-50%, -50%) scale(1.05);
}

/* Unified icon styling */
.feature-icon-modern {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    box-shadow: 0 8px 32px rgba(91, 127, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.feature-icon-modern svg {
    width: 40px;
    height: 40px;
    color: white;
    transition: transform 0.4s ease;
}

.feature-card-modern:hover .feature-icon-modern {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(91, 127, 255, 0.5);
}

.feature-card-modern:hover .feature-icon-modern svg {
    transform: rotate(-5deg);
}

/* Unified typography */
.feature-card-modern h3 {
    font-size: clamp(1.25rem, 2vw + 0.5rem, 1.5rem);
    margin-bottom: clamp(0.75rem, 1.5vw, 1rem);
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.feature-card-modern p {
    color: var(--color-text-secondary);
    line-height: 1.7;
    font-size: clamp(0.95rem, 1.5vw + 0.2rem, 1.05rem);
    position: relative;
    z-index: 1;
}

/* Breathing Disruption Section - Clean Split Layout */
.breathing-disruption {
    background: var(--color-bg-light);
    position: relative;
    overflow: hidden;
}

.breathing-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(3rem, 6vw, 5rem);
    align-items: center;
}

/* Left Side - Visual */
.breathing-visual-side {
    position: relative;
}

.breathing-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9CA3AF;
    margin-bottom: var(--spacing-sm);
    padding: 0.5rem 1rem;
    background: rgba(156, 163, 175, 0.15);
    border-radius: 50px;
}

.breathing-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    background: linear-gradient(135deg, #E8EAED 0%, #9CA3AF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.breathing-screenshot-wrapper {
    position: relative;
    max-width: 280px;
}

.breathing-screenshot {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(156, 163, 175, 0.15);
    transition: transform 0.4s ease;
}

.breathing-screenshot-wrapper:hover .breathing-screenshot {
    transform: scale(1.02);
}

/* Right Side - Content */
.breathing-content-side {
    position: relative;
}

/* Responsive */
@media (max-width: 767px) {
    .breathing-visual-side {
        text-align: center;
    }

    .breathing-screenshot-wrapper {
        max-width: 280px;
        margin: 0 auto;
    }
}

/* Detection Methodology - Awwwards Style */
.detection-methodology {
    position: relative;
}

.detection-header {
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
    text-align: center;
}

.detection-label {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #9CA3AF;
    margin-bottom: 1rem;
}

.detection-heading {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.detection-intro {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--color-text-secondary);
    line-height: 1.7;
    max-width: 540px;
    margin: 0 auto;
}

.detection-steps {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, 4vw, 3rem);
}

/* Connecting line between steps */
.detection-steps::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 60px;
    height: calc(100% - 120px);
    width: 2px;
    background: linear-gradient(180deg,
        rgba(156, 163, 175, 0.3) 0%,
        rgba(156, 163, 175, 0.1) 50%,
        rgba(156, 163, 175, 0) 100%);
}

.detection-step {
    display: flex;
    gap: clamp(1.25rem, 3vw, 2rem);
    align-items: flex-start;
    position: relative;
}

.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-text);
    background: linear-gradient(135deg, rgba(156, 163, 175, 0.15) 0%, rgba(156, 163, 175, 0.05) 100%);
    border: 2px solid rgba(156, 163, 175, 0.2);
    border-radius: 50%;
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.detection-step:hover .step-number {
    background: linear-gradient(135deg, rgba(156, 163, 175, 0.25) 0%, rgba(156, 163, 175, 0.15) 100%);
    border-color: rgba(156, 163, 175, 0.4);
    transform: scale(1.1);
}

.step-content {
    flex: 1;
    padding-top: 0.25rem;
}

.step-content h4 {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.detection-step:hover .step-content h4 {
    color: #9CA3AF;
}

.step-content p {
    font-size: clamp(0.9375rem, 1.5vw, 1rem);
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* Mobile: hide connecting line */
@media (max-width: 767px) {
    .detection-steps::before {
        display: none;
    }
}

/* Responsive */
@media (min-width: 768px) {
    .breathing-split {
        grid-template-columns: 1fr 1fr;
        gap: clamp(4rem, 8vw, 6rem);
    }

    .breathing-screenshot-wrapper {
        max-width: 340px;
    }
}

/* Testimonials Section - Awwwards Style */
.testimonials {
    background: var(--color-bg);
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(91, 127, 255, 0.08) 0%, transparent 70%);
    top: -200px;
    left: -300px;
    border-radius: 50%;
    pointer-events: none;
}

.testimonials-header {
    text-align: center;
    margin-bottom: clamp(3rem, 6vw, 5rem);
    position: relative;
    z-index: 1;
}

.testimonials-badge {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    padding: 0.5rem 1.25rem;
    background: rgba(91, 127, 255, 0.1);
    border-radius: 50px;
    border: 1px solid rgba(91, 127, 255, 0.2);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: clamp(3rem, 6vw, 4rem);
    position: relative;
    z-index: 1;
}

.testimonial-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: clamp(1.5rem, 3vw, 2rem);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(91, 127, 255, 0.05) 0%, rgba(255, 107, 157, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
    border-radius: var(--radius-lg);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    border-color: rgba(91, 127, 255, 0.4);
    box-shadow:
        0 20px 40px rgba(91, 127, 255, 0.15),
        0 0 0 1px rgba(91, 127, 255, 0.1) inset;
}

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

.testimonial-featured {
    background: linear-gradient(135deg, rgba(91, 127, 255, 0.08) 0%, rgba(255, 107, 157, 0.08) 100%);
    border-color: rgba(91, 127, 255, 0.3);
}

.testimonial-source {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    position: relative;
    z-index: 1;
}

.reddit-icon {
    width: 32px;
    height: 32px;
    color: #FF4500;
    flex-shrink: 0;
}

.apple-icon {
    width: 32px;
    height: 32px;
    color: #A3A3A3;
    flex-shrink: 0;
}

.source-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

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

.source-meta {
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
}

.testimonial-quote {
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.7;
    color: var(--color-text);
    margin: 0;
    position: relative;
    z-index: 1;
    font-style: italic;
}

.testimonial-quote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: -15px;
    font-size: 3rem;
    color: var(--color-primary);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-author {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    font-style: normal;
    position: relative;
    z-index: 1;
}

/* Testimonial Illustration Card */
.testimonial-illustration {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: clamp(2rem, 4vw, 3rem);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    overflow: hidden;
    grid-column: span 2;
}

.testimonial-illustration::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(91, 127, 255, 0.08) 0%, rgba(255, 107, 157, 0.08) 100%);
    opacity: 0.5;
    z-index: 0;
    border-radius: var(--radius-lg);
}

.testimonial-illustration:hover {
    transform: translateY(-8px);
    border-color: rgba(91, 127, 255, 0.4);
    box-shadow:
        0 20px 40px rgba(91, 127, 255, 0.15),
        0 0 0 1px rgba(91, 127, 255, 0.1) inset;
}

.illustration-svg {
    width: 100%;
    max-width: 280px;
    height: auto;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 20px rgba(91, 127, 255, 0.2));
}

.illustration-text {
    text-align: center;
    position: relative;
    z-index: 1;
}

.illustration-text h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.illustration-text p {
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-illustration {
        grid-column: span 1;
    }

    .testimonial-quote::before {
        font-size: 2rem;
        top: -5px;
        left: -10px;
    }
}

/* ============================================
   FAQ Section
   ============================================ */
.faq {
    background: var(--color-bg);
    position: relative;
    overflow: hidden;
}

.faq::before {
    content: '';
    position: absolute;
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(91, 127, 255, 0.05) 0%, transparent 70%);
    top: 0;
    right: -20%;
    border-radius: 50%;
    pointer-events: none;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.25rem, 3vw, 2rem);
    position: relative;
    z-index: 1;
}

.faq-item {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    word-wrap: break-word;
}

@media (min-width: 768px) {
    .faq-item {
        padding: 2rem;
    }
}

@media (min-width: 1024px) {
    .faq-item {
        padding: 2.5rem;
    }
}

.faq-item:hover {
    border-color: rgba(91, 127, 255, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(91, 127, 255, 0.1);
}

.faq-item h3 {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 1rem;
    line-height: 1.4;
    background: linear-gradient(135deg, var(--color-text) 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-item p {
    font-size: clamp(0.9375rem, 1.8vw, 1.0625rem);
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin: 0;
}

.file-path {
    font-family: 'SF Mono', 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--color-primary);
    background: rgba(91, 127, 255, 0.1);
    padding: 0.2em 0.5em;
    border-radius: 4px;
    border: 1px solid rgba(91, 127, 255, 0.2);
    white-space: normal;
    font-weight: 500;
    display: inline-block;
    max-width: 100%;
    word-break: break-word;
}

@media (min-width: 768px) {
    .file-path {
        white-space: nowrap;
    }
}

.file-path-list {
    margin: 0.75rem 0 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.file-path-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.file-path-desc {
    color: var(--color-text-secondary);
    font-size: 0.95em;
}

.file-path-desc::before {
    content: "—";
    margin-right: 0.5rem;
    opacity: 0.5;
}

/* Responsive: 2-column layout on larger screens */
@media (min-width: 768px) {
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Contact Section */
.contact {
    background: var(--color-bg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(91, 127, 255, 0.08) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    position: relative;
    z-index: 1;
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
}

.contact-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

.contact-text {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.contact-button {
    margin-top: var(--spacing-sm);
}

/* Download Section */
.download {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    background-size: 200% 200%;
    animation: gradient-shift 15s ease infinite;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.download::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: glow-pulse 8s ease-in-out infinite;
}

.download > * {
    position: relative;
    z-index: 1;
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes glow-pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

.download .section-title {
    color: white;
}

.download-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
}

.download .btn-primary {
    background: white;
    color: var(--color-primary);
}

.download .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.download-requirements {
    margin-top: var(--spacing-sm);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}


/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-md);
    }

    .hero-visual {
        order: -1;
    }

    .hero-subtitle {
        margin: 0 auto var(--spacing-md);
    }

    .phone-mockup {
        width: min(280px, 90vw);
    }

    /* Modern grid responsive - stack on mobile */
    .features-grid-modern {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .feature-card-modern {
        min-height: 280px;
    }

    /* Mobile: reset 3-column corner radiuses and apply single-column corners */
    .feature-card-modern:nth-child(3),
    .feature-card-modern:nth-child(4),
    .feature-card-modern:nth-child(6) {
        border-radius: 0;
    }

    .feature-card-modern:nth-child(1) {
        border-top-left-radius: calc(var(--radius-lg) - 2px);
        border-top-right-radius: calc(var(--radius-lg) - 2px);
        border-bottom-left-radius: 0;
    }

    .feature-card-modern:nth-child(6) {
        border-bottom-left-radius: calc(var(--radius-lg) - 2px);
        border-bottom-right-radius: calc(var(--radius-lg) - 2px);
    }

    .feature-number {
        font-size: clamp(5rem, 15vw, 8rem);
    }

    /* Better touch targets for mobile */
    .btn {
        min-height: 48px;
        padding: 1rem 1.5rem;
    }

    .btn-large {
        min-height: 56px;
        padding: 1.25rem 2rem;
        font-size: clamp(1rem, 3vw, 1.1rem);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

    .hero {
        padding-top: calc(64px + var(--spacing-lg));
        padding-bottom: var(--spacing-lg);
    }

    .phone-mockup {
        width: min(260px, 85vw);
    }

    .feature-card,
    .breathing-feature {
        padding: var(--spacing-sm);
    }

    .nav {
        padding: 1rem var(--spacing-md);
        min-height: 64px;
    }

    .nav-logo {
        font-size: 1.1rem;
    }

    .logo-icon {
        width: 30px;
        height: 30px;
    }
}

/* Disable 3D effects on mobile for performance */
@media (max-width: 768px) {
    @keyframes float-3d {
        0%, 100% {
            transform: translateY(0px);
        }
        50% {
            transform: translateY(-5px);
        }
    }
}

/* ============================================
   Privacy Policy Page
   ============================================ */
.privacy-policy {
    padding: clamp(6rem, 10vw, 8rem) 0 clamp(4rem, 8vw, 6rem);
    background: var(--color-bg);
}

.privacy-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
    background: linear-gradient(135deg, var(--color-text) 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.privacy-updated {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 1rem;
    margin-bottom: 3rem;
}

.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: clamp(2rem, 5vw, 3rem);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
}

.privacy-intro {
    font-size: 1.125rem;
    color: var(--color-text);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.privacy-section {
    margin-bottom: 2.5rem;
}

.privacy-section:last-child {
    margin-bottom: 0;
}

.privacy-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.privacy-section p {
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.privacy-section p:last-child {
    margin-bottom: 0;
}

.privacy-section ul {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.privacy-section ul li {
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.privacy-section ul li::before {
    content: '•';
    color: var(--color-primary);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -0.25rem;
}

.privacy-section ul li strong {
    color: var(--color-text);
}

.privacy-email {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.privacy-email:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

.privacy-actions {
    text-align: center;
    margin-top: 3rem;
}

/* Footer */
.footer {
    background: var(--color-bg-light);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

.footer p {
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.nav-links a.active {
    color: var(--color-primary);
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}
