/* HeartLab - Professional Landing Page */
/* ===================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --white: #ffffff;
    --black: #000000;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    --gray-950: #0a0a0a;

    --red-500: #ef4444;
    --red-600: #dc2626;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --green-500: #22c55e;
    --green-600: #16a34a;
    --purple-500: #a855f7;
    --purple-600: #9333ea;
    --amber-500: #f59e0b;

    --bg: var(--white);
    --bg-alt: var(--gray-50);
    --bg-dark: var(--gray-900);
    --text: var(--gray-900);
    --text-secondary: var(--gray-600);
    --text-muted: var(--gray-500);
    --border: var(--gray-200);

    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --duration: 0.2s;
}

[data-theme="dark"] {
    --bg: var(--gray-950);
    --bg-alt: var(--gray-900);
    --bg-dark: var(--gray-800);
    --text: var(--gray-100);
    --text-secondary: var(--gray-400);
    --text-muted: var(--gray-500);
    --border: var(--gray-800);
}

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

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

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    /* Safe area support for notched devices */
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

/* iOS momentum scrolling */
.mobile-menu {
    -webkit-overflow-scrolling: touch;
}

/* Improve touch targets */
@media (pointer: coarse) {
    a, button {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Selection color */
::selection {
    background: rgba(239, 68, 68, 0.2);
    color: var(--text);
}

::-moz-selection {
    background: rgba(239, 68, 68, 0.2);
    color: var(--text);
}

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

/* ===================================== */
/* NAVIGATION                            */
/* ===================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    transition: all var(--duration) var(--ease);
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .nav.scrolled {
    background: rgba(10, 10, 10, 0.85);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.nav-inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
}

.logo img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.logo span {
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.02em;
}

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

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--duration);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration);
    position: relative;
}

.theme-btn:hover {
    border-color: var(--gray-300);
    background: var(--bg-alt);
}

.theme-btn svg {
    width: 18px;
    height: 18px;
    fill: var(--text-secondary);
    position: absolute;
    transition: all var(--duration);
}

.theme-btn .sun { opacity: 0; transform: scale(0.8); }
.theme-btn .moon { opacity: 1; }
[data-theme="dark"] .theme-btn .sun { opacity: 1; transform: scale(1); }
[data-theme="dark"] .theme-btn .moon { opacity: 0; transform: scale(0.8); }

.btn-nav {
    padding: 10px 20px;
    background: var(--text);
    color: var(--bg);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--duration);
}

.btn-nav:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    width: 44px;
    height: 44px;
    justify-content: center;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

.mobile-menu-btn span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s var(--ease);
    transform-origin: center;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease-out-expo), visibility 0.4s;
    overflow: hidden;
}

.mobile-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(239, 68, 68, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-close {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 28px;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease);
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-close:hover,
.mobile-menu-close:active {
    background: var(--border);
    transform: rotate(90deg);
}

.mobile-menu a {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    padding: 16px 32px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s var(--ease-out-expo);
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

.mobile-menu.active a {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.active a:nth-child(2) { transition-delay: 0.05s; }
.mobile-menu.active a:nth-child(3) { transition-delay: 0.1s; }
.mobile-menu.active a:nth-child(4) { transition-delay: 0.15s; }
.mobile-menu.active a:nth-child(5) { transition-delay: 0.2s; }
.mobile-menu.active a:nth-child(6) { transition-delay: 0.25s; }
.mobile-menu.active a:nth-child(7) { transition-delay: 0.3s; }

.mobile-menu a::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 32px;
    right: 32px;
    height: 3px;
    background: var(--red-500);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
    border-radius: 2px;
}

.mobile-menu a:hover::after,
.mobile-menu a:active::after {
    transform: scaleX(1);
}

.mobile-menu-cta {
    margin-top: 32px;
    padding: 16px 40px;
    background: var(--text);
    color: var(--bg);
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s var(--ease-out-expo);
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu.active .mobile-menu-cta {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.35s;
}

/* ===================================== */
/* HERO                                  */
/* ===================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 24px 80px;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .hero {
    background: #000000;
}

.hero-inner {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-mockup {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: -100px;
}

.hero-mockup img {
    width: 100%;
    max-width: 700px;
    height: auto;
    object-fit: contain;
}

/* Theme-based mockup visibility */
.mockup-dark {
    display: none;
}

.mockup-light {
    display: block;
}

[data-theme="dark"] .mockup-dark {
    display: block;
}

[data-theme="dark"] .mockup-light {
    display: none;
}

.hero-container {
    max-width: 900px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.hero-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

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

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

.hero-title {
    font-size: clamp(40px, 7vw, 72px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 24px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--red-600) 0%, var(--red-500) 50%, var(--purple-500) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 40px;
}

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

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--text);
    color: var(--bg);
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--duration);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-primary svg {
    width: 20px;
    height: 20px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--duration);
}

.btn-secondary:hover {
    background: var(--bg-alt);
    border-color: var(--gray-300);
}

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

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--border);
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: var(--border);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.6;
    transition: opacity 0.3s var(--ease);
    cursor: pointer;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-indicator span {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-indicator-icon {
    width: 24px;
    height: 40px;
    border: 2px solid var(--border);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator-icon::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 2px;
    animation: scrollBounce 1.5s infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(8px); opacity: 0.5; }
}

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

/* ===================================== */
/* WHY SECTION                           */
/* ===================================== */

.why-section {
    padding: 120px 24px;
    background: var(--bg);
}

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

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

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

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

.unique-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.unique-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px;
    transition: all var(--duration);
    position: relative;
}

.unique-card:hover {
    border-color: var(--gray-300);
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.08);
}

.unique-card.featured {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    border-color: var(--gray-700);
    position: relative;
    overflow: hidden;
}

.unique-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.5s var(--ease);
}

.unique-card.featured:hover::before {
    opacity: 1;
}

[data-theme="dark"] .unique-card.featured {
    background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-900) 100%);
}

.unique-card.featured * {
    color: var(--white);
}

.unique-card.featured .unique-list li {
    color: var(--gray-300);
}

.unique-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    padding: 6px 12px;
    background: var(--red-600);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 6px;
}

.unique-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(239, 68, 68, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.unique-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--red-500);
}

.unique-card.featured .unique-icon {
    background: rgba(255, 255, 255, 0.1);
}

.unique-card.featured .unique-icon svg {
    stroke: var(--white);
}

.unique-icon.blue { background: rgba(59, 130, 246, 0.1); }
.unique-icon.blue svg { stroke: var(--blue-500); }
.unique-icon.green { background: rgba(34, 197, 94, 0.1); }
.unique-icon.green svg { stroke: var(--green-500); }
.unique-icon.purple { background: rgba(168, 85, 247, 0.1); }
.unique-icon.purple svg { stroke: var(--purple-500); }

.unique-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.unique-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.unique-card.featured p {
    color: var(--gray-300);
}

.unique-list {
    list-style: none;
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.unique-list li {
    font-size: 14px;
    color: var(--text-secondary);
    padding-left: 24px;
    position: relative;
}

.unique-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--green-500);
    font-weight: 700;
}

/* ===================================== */
/* METRICS SECTION                       */
/* ===================================== */

.metrics-section {
    padding: 100px 24px;
    background: var(--bg-alt);
}

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

.metrics-header h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
}

.metrics-header p {
    color: var(--text-secondary);
    font-size: 16px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.metric-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    transition: all var(--duration);
}

.metric-card:hover {
    border-color: var(--red-500);
    transform: translateY(-2px);
}

.metric-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.metric-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ===================================== */
/* FEATURES SECTION                      */
/* ===================================== */

.features-section {
    padding: 120px 24px;
    background: var(--bg);
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.feature-row.reverse {
    direction: rtl;
}

.feature-row.reverse > * {
    direction: ltr;
}

.feature-content {
    max-width: 500px;
}

.feature-number {
    font-size: 14px;
    font-weight: 700;
    color: var(--red-600);
    margin-bottom: 16px;
}

.feature-content h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.feature-content p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.feature-points {
    list-style: none;
}

.feature-points li {
    font-size: 15px;
    color: var(--text);
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
    border-bottom: 1px solid var(--border);
}

.feature-points li:last-child {
    border-bottom: none;
}

.feature-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: var(--green-500);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-size: 10px;
    background-repeat: no-repeat;
    background-position: center;
}

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

.feature-icon-large {
    width: 200px;
    height: 200px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
}

.feature-icon-large svg {
    width: 80px;
    height: 80px;
    stroke: var(--red-500);
}

.feature-icon-large.blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
}

.feature-icon-large.blue svg {
    stroke: var(--blue-500);
}

.feature-icon-large.green {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0.05) 100%);
}

.feature-icon-large.green svg {
    stroke: var(--green-500);
}

/* ===================================== */
/* TECHNOLOGY SECTION                    */
/* ===================================== */

.tech-section {
    padding: 120px 24px;
    background: var(--gray-900);
}

[data-theme="dark"] .tech-section {
    background: var(--gray-800);
}

.section-header.light .section-label {
    color: var(--red-500);
}

.section-header.light .section-title,
.section-header.light .section-subtitle {
    color: var(--white);
}

.section-header.light .section-subtitle {
    color: var(--gray-400);
}

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

.tech-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 36px;
    transition: all var(--duration);
}

.tech-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.tech-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.tech-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--white);
}

.tech-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.tech-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--gray-400);
}

/* ===================================== */
/* HOW SECTION                           */
/* ===================================== */

.how-section {
    padding: 120px 24px;
    background: var(--bg);
}

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

.steps-timeline::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.step-item {
    display: flex;
    gap: 32px;
    padding-bottom: 48px;
    position: relative;
}

.step-item:last-child {
    padding-bottom: 0;
}

.step-number {
    width: 56px;
    height: 56px;
    background: var(--text);
    color: var(--bg);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.step-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    padding-top: 4px;
}

.step-content p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ===================================== */
/* REVIEWS SECTION                       */
/* ===================================== */

.reviews-section {
    padding: 120px 24px;
    background: var(--bg);
    overflow: hidden;
}

.reviews-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    margin-bottom: 56px;
    padding: 32px 48px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.reviews-stat {
    text-align: center;
}

.reviews-stat-value {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}

.reviews-stat-stars {
    color: #FBBF24;
    font-size: 14px;
    letter-spacing: 1px;
    margin: 4px 0;
}

.reviews-stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.reviews-stat-divider {
    width: 1px;
    height: 48px;
    background: var(--border);
}

.reviews-slider {
    position: relative;
    margin: 0 -24px;
    padding: 0 24px;
    overflow: hidden;
}

.reviews-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s var(--ease-out-expo);
    cursor: grab;
}

.reviews-track:active {
    cursor: grabbing;
}

.review-card {
    flex: 0 0 calc(33.333% - 16px);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.4s var(--ease-out-expo);
}

.review-card:hover {
    border-color: var(--gray-300);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .review-card:hover {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.review-header {
    display: flex;
    align-items: center;
}

.review-rating .stars {
    color: #FBBF24;
    font-size: 14px;
    letter-spacing: 1px;
}

.review-text {
    font-size: 14px;
    line-height: 1.75;
    color: var(--text-secondary);
    flex: 1;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--gray-700) 0%, var(--gray-600) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

[data-theme="dark"] .review-avatar {
    background: linear-gradient(135deg, var(--gray-600) 0%, var(--gray-500) 100%);
}

.review-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.review-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.review-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.reviews-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 48px;
}

.review-nav {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--bg-alt);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease);
}

.review-nav:hover {
    border-color: var(--gray-300);
    background: var(--bg);
}

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

.review-nav svg {
    width: 20px;
    height: 20px;
    stroke: var(--text);
}

.reviews-dots {
    display: flex;
    gap: 8px;
}

.review-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    padding: 0;
}

.review-dot:hover {
    background: var(--gray-400);
}

.review-dot.active {
    background: var(--red-500);
    width: 24px;
    border-radius: 4px;
}

.reviews-source {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.reviews-source svg {
    width: 16px;
    height: 16px;
    fill: var(--text-muted);
}

@media (max-width: 1024px) {
    .review-card {
        flex: 0 0 calc(50% - 12px);
    }
}

@media (max-width: 768px) {
    .reviews-section {
        padding: 80px 20px;
    }

    .reviews-stats {
        flex-direction: row;
        gap: 24px;
        padding: 24px 20px;
        margin-bottom: 40px;
    }

    .reviews-stat-value {
        font-size: 28px;
    }

    .reviews-stat-divider {
        height: 40px;
    }

    .review-card {
        flex: 0 0 calc(100% - 32px);
        padding: 24px;
    }

    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .reviews-controls {
        margin-top: 32px;
    }

    .review-nav {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .reviews-stats {
        gap: 16px;
        padding: 20px 16px;
    }

    .reviews-stat-value {
        font-size: 24px;
    }

    .reviews-stat-label {
        font-size: 11px;
    }

    .review-card {
        flex: 0 0 calc(100% - 16px);
    }

    .review-text {
        font-size: 13px;
    }

    .review-verified {
        font-size: 10px;
        padding: 3px 8px;
    }
}

/* ===================================== */
/* CTA SECTION                           */
/* ===================================== */

.cta-section {
    padding: 120px 24px;
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
}

[data-theme="dark"] .cta-section {
    background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-900) 100%);
}

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

.cta-content h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 17px;
    color: var(--gray-400);
    margin-bottom: 32px;
}

.app-store-btn {
    display: inline-block;
    transition: all 0.4s var(--ease-out-expo);
    border-radius: 12px;
    padding: 4px;
}

.app-store-btn:hover {
    transform: translateY(-4px) scale(1.02);
    filter: brightness(1.1);
}

.app-store-btn:active {
    transform: translateY(-2px) scale(0.98);
}

.app-store-btn img {
    height: 54px;
    display: block;
    border-radius: 10px;
}

.cta-note {
    margin-top: 24px;
    font-size: 13px;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.cta-note::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--green-500);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* ===================================== */
/* DISCLAIMER                            */
/* ===================================== */

.disclaimer {
    padding: 32px 24px;
    background: #fef2f2;
}

[data-theme="dark"] .disclaimer {
    background: rgba(239, 68, 68, 0.05);
}

.disclaimer-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.disclaimer-content svg {
    width: 24px;
    height: 24px;
    stroke: var(--red-500);
    flex-shrink: 0;
    margin-top: 2px;
}

.disclaimer-content strong {
    display: block;
    color: var(--red-600);
    font-size: 14px;
    margin-bottom: 4px;
}

.disclaimer-content p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===================================== */
/* FOOTER                                */
/* ===================================== */

.footer {
    padding: 80px 24px 40px;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
}

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

.footer-brand p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 16px;
    max-width: 280px;
    line-height: 1.6;
}

.footer-badges {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.footer-badge {
    padding: 4px 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
}

.footer-column h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--duration);
}

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

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration);
}

.social-links a:hover {
    border-color: var(--gray-300);
    background: var(--bg);
}

.social-links svg {
    width: 18px;
    height: 18px;
    fill: var(--text-secondary);
}

/* ===================================== */
/* LEGAL PAGES                           */
/* ===================================== */

.legal-page {
    padding: 120px 24px 80px;
    min-height: 100vh;
}

.legal-content {
    max-width: 700px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 8px;
}

.legal-meta {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.legal-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin-top: 48px;
    margin-bottom: 16px;
}

.legal-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--text);
}

.legal-content p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
}

.legal-content ul, .legal-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
    color: var(--text-secondary);
}

.legal-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.legal-content a {
    color: var(--red-600);
}

.legal-highlight {
    background: var(--bg-alt);
    border-left: 4px solid var(--red-600);
    padding: 20px 24px;
    margin: 32px 0;
    border-radius: 0 12px 12px 0;
}

.legal-highlight p {
    margin: 0;
    color: var(--text);
}

/* ===================================== */
/* ANIMATIONS                            */
/* ===================================== */

/* Smooth Easing Functions */
:root {
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out-cubic: cubic-bezier(0.65, 0, 0.35, 1);
}

/* Scroll Animations */
.animate-element {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
    will-change: opacity, transform;
}

.animate-element.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delay based on order */
.animate-element:nth-child(1) { transition-delay: 0s; }
.animate-element:nth-child(2) { transition-delay: 0.08s; }
.animate-element:nth-child(3) { transition-delay: 0.16s; }
.animate-element:nth-child(4) { transition-delay: 0.24s; }
.animate-element:nth-child(5) { transition-delay: 0.32s; }
.animate-element:nth-child(6) { transition-delay: 0.4s; }

/* Particles Background */
.particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    background: var(--red-500);
    border-radius: 50%;
    animation: floatParticle linear infinite;
}

@keyframes floatParticle {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(20px, -30px) rotate(45deg);
    }
    50% {
        transform: translate(-15px, -60px) rotate(90deg);
    }
    75% {
        transform: translate(25px, -30px) rotate(135deg);
    }
}

/* ECG Background Lines */
.ecg-bg-line {
    position: absolute;
    left: 0;
    width: 200%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        transparent 40%,
        var(--red-500) 45%,
        var(--red-500) 47%,
        transparent 47%,
        transparent 48%,
        var(--red-500) 48.5%,
        var(--red-500) 51%,
        transparent 51%,
        transparent 100%
    );
    background-size: 300px 100%;
    opacity: 0.1;
    animation: ecgMove 12s linear infinite;
}

@keyframes ecgMove {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

/* ECG Animation Container */
.ecg-animation {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

.ecg-animation svg {
    position: absolute;
    bottom: 10%;
    left: 0;
    width: 200%;
    height: 200px;
    animation: ecgScroll 20s linear infinite;
}

.ecg-path {
    stroke-dasharray: 2400;
    stroke-dashoffset: 2400;
    animation: ecgDraw 8s ease-in-out infinite;
}

@keyframes ecgScroll {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

@keyframes ecgDraw {
    0%, 100% { stroke-dashoffset: 2400; }
    50% { stroke-dashoffset: 0; }
}

/* Cursor Glow Effect */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    margin-left: -200px;
    margin-top: -200px;
    transition: opacity 0.3s ease;
    will-change: transform;
}

[data-theme="dark"] .cursor-glow {
    background: radial-gradient(circle, rgba(239, 68, 68, 0.12) 0%, transparent 70%);
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: rippleEffect 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Legacy scroll animation support */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Animations */
.hero-container {
    transition: transform 0.15s var(--ease-out-quart), opacity 0.4s ease;
    will-change: transform, opacity;
}

.hero-badge {
    animation: fadeInDown 1s var(--ease-out-expo) 0.1s both;
}

.hero-title {
    animation: fadeInUp 1s var(--ease-out-expo) 0.3s both;
}

.hero-subtitle {
    animation: fadeInUp 1s var(--ease-out-expo) 0.5s both;
}

.hero-cta {
    animation: fadeInUp 1s var(--ease-out-expo) 0.7s both;
}

.hero-stats {
    animation: fadeInUp 1s var(--ease-out-expo) 0.9s both;
}

.hero-mockup {
    animation: fadeInRight 1.2s var(--ease-out-expo) 0.4s both;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(60px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Gradient Text Animation */
.text-gradient {
    background-size: 200% auto;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

/* Badge Dot Pulse */
.badge-dot {
    animation: pulse 2s ease-in-out infinite;
}

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

/* Button Hover Effects */
.btn-primary {
    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%;
}

/* Card Hover Animations */
.unique-card {
    transition: all 0.5s var(--ease-out-expo);
    transform-style: preserve-3d;
    will-change: transform, box-shadow;
}

.unique-card:hover {
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
}

.unique-card:hover .unique-icon {
    transform: scale(1.15) rotate(8deg);
}

.unique-icon {
    transition: transform 0.5s var(--ease-out-expo);
}

.metric-card {
    transition: all 0.4s var(--ease-out-expo);
    transform-style: preserve-3d;
    will-change: transform, box-shadow;
}

.metric-card:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.tech-card {
    transition: all 0.5s var(--ease-out-expo);
    transform-style: preserve-3d;
    will-change: transform, box-shadow;
}

.tech-card:hover {
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
}

.tech-card:hover .tech-icon {
    transform: scale(1.15);
    background: rgba(255, 255, 255, 0.18);
}

.tech-icon {
    transition: all 0.5s var(--ease-out-expo);
}

/* Feature Icon Animation */
.feature-icon-large {
    transition: all 0.6s var(--ease-out-expo);
    animation: floatIcon 4s ease-in-out infinite;
}

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

.feature-row:hover .feature-icon-large {
    animation-play-state: paused;
    transform: scale(1.08);
}

.feature-icon-large svg {
    transition: all 0.6s var(--ease-out-expo);
}

.feature-row:hover .feature-icon-large svg {
    transform: scale(1.12);
}

/* Step Number Animation */
.step-number {
    transition: all 0.4s var(--ease-out-expo);
}

.step-item:hover .step-number {
    transform: scale(1.12) rotate(-3deg);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.step-content {
    transition: all 0.4s var(--ease-out-expo);
}

.step-item:hover .step-content {
    transform: translateX(8px);
}

/* Link Underline Animation */
.nav-links a {
    position: relative;
}

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

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

/* Footer Link Hover */
.footer-links a {
    transition: all 0.2s var(--ease);
}

.footer-links a:hover {
    color: var(--red-500);
    padding-left: 4px;
}

/* Social Links Animation */
.social-links a {
    transition: all 0.3s var(--ease);
}

.social-links a:hover {
    transform: translateY(-4px);
    border-color: var(--red-500);
}

.social-links a:hover svg {
    fill: var(--red-500);
}

/* App Store Button */
.app-store-btn {
    transition: all 0.3s var(--ease);
}

.app-store-btn:hover {
    transform: translateY(-4px) scale(1.05);
    filter: brightness(1.1);
}

/* Section Headers Animation */
.section-label {
    animation: fadeIn 0.6s var(--ease);
}

/* Unique Badge Pulse */
.unique-badge {
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(220, 38, 38, 0);
    }
}

/* Feature Points Checkmark Animation */
.feature-points li::before {
    transition: all 0.3s var(--ease);
}

.feature-points li:hover::before {
    transform: translateY(-50%) scale(1.2);
}

/* Staggered Animation Delays */
.unique-card:nth-child(1) { transition-delay: 0s; }
.unique-card:nth-child(2) { transition-delay: 0.1s; }
.unique-card:nth-child(3) { transition-delay: 0.2s; }
.unique-card:nth-child(4) { transition-delay: 0.3s; }

.metric-card:nth-child(1) { transition-delay: 0s; }
.metric-card:nth-child(2) { transition-delay: 0.05s; }
.metric-card:nth-child(3) { transition-delay: 0.1s; }
.metric-card:nth-child(4) { transition-delay: 0.15s; }
.metric-card:nth-child(5) { transition-delay: 0.2s; }
.metric-card:nth-child(6) { transition-delay: 0.25s; }

.tech-card:nth-child(1) { transition-delay: 0s; }
.tech-card:nth-child(2) { transition-delay: 0.1s; }
.tech-card:nth-child(3) { transition-delay: 0.2s; }
.tech-card:nth-child(4) { transition-delay: 0.3s; }

.step-item:nth-child(1) { transition-delay: 0s; }
.step-item:nth-child(2) { transition-delay: 0.15s; }
.step-item:nth-child(3) { transition-delay: 0.3s; }
.step-item:nth-child(4) { transition-delay: 0.45s; }

/* Floating Animation for Featured Card */
.unique-card.featured {
    animation: floatFeatured 5s ease-in-out infinite;
}

@keyframes floatFeatured {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: translateY(-12px) rotate(0.5deg);
        box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
    }
}

.unique-card.featured:hover {
    animation-play-state: paused;
}

/* Counter Animation */
.stat-value {
    transition: all 0.4s var(--ease-out-expo);
    display: inline-block;
}

.stat:hover .stat-value {
    transform: scale(1.15);
    color: var(--red-500);
}

.stat:hover .stat-label {
    color: var(--text);
}

.stat-label {
    transition: color 0.4s var(--ease-out-expo);
}

/* Pulsing Heart Animation */
@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.15); }
    28% { transform: scale(1); }
    42% { transform: scale(1.15); }
    70% { transform: scale(1); }
}

/* Loading Shimmer */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Smooth Global Transitions */
html {
    transition: background-color 0.4s var(--ease-out-quart);
}

body {
    transition: background-color 0.4s var(--ease-out-quart), color 0.4s var(--ease-out-quart);
}

/* Button Hover Improvements */
.btn-primary, .btn-secondary, .btn-nav {
    transition: all 0.3s var(--ease-out-expo);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    transform: translateY(-2px);
}

/* Disable animations for users who prefer reduced motion */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s var(--ease);
}

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

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

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

    .hero-mockup {
        margin-right: -40px;
    }

    .hero-mockup img {
        max-width: 500px;
    }

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

    .unique-card.featured {
        grid-column: span 1;
    }

    .unique-list {
        grid-template-columns: 1fr;
    }

    .metrics-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .feature-row,
    .feature-row.reverse {
        grid-template-columns: 1fr;
        gap: 40px;
        direction: ltr;
    }

    .feature-visual {
        order: -1;
    }

    .feature-icon-large {
        width: 160px;
        height: 160px;
    }

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

    /* Disable 3D effects on touch devices */
    .unique-card,
    .tech-card,
    .metric-card {
        transform: none !important;
    }

    .unique-card:hover,
    .tech-card:hover,
    .metric-card:hover {
        transform: translateY(-4px) !important;
    }

    /* Hide cursor glow on touch devices */
    .cursor-glow {
        display: none !important;
    }

    /* Reduce particles on tablet */
    .particle:nth-child(n+20) {
        display: none;
    }
}

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

    .mobile-menu-btn {
        display: flex;
    }

    .nav-actions .btn-nav {
        display: none;
    }

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

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        order: 2;
    }

    .hero-mockup {
        order: 1;
        margin-right: 0;
        margin-top: -20px;
    }

    .hero-mockup img {
        max-width: 100%;
        width: 100%;
    }

    .hero-badge {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-title {
        font-size: clamp(32px, 8vw, 48px);
    }

    .hero-subtitle {
        font-size: 16px;
        padding: 0 8px;
    }

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

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

    .stat-value {
        font-size: 32px;
    }

    .stat-label {
        font-size: 12px;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .metric-card {
        padding: 20px 16px;
    }

    .metric-value {
        font-size: 14px;
    }

    .metric-desc {
        font-size: 11px;
    }

    .section-header {
        margin-bottom: 48px;
    }

    .section-title {
        font-size: clamp(28px, 6vw, 40px);
    }

    .section-subtitle {
        font-size: 16px;
        padding: 0 8px;
    }

    .why-section,
    .features-section,
    .how-section {
        padding: 80px 20px;
    }

    .metrics-section {
        padding: 60px 20px;
    }

    .tech-section {
        padding: 80px 20px;
    }

    .unique-card {
        padding: 28px;
    }

    .unique-card h3 {
        font-size: 20px;
    }

    .feature-content h3 {
        font-size: 26px;
    }

    .features-list {
        gap: 60px;
    }

    .steps-timeline::before {
        left: 24px;
    }

    .step-number {
        width: 48px;
        height: 48px;
        font-size: 18px;
        border-radius: 14px;
    }

    .step-item {
        gap: 24px;
        padding-bottom: 36px;
    }

    .step-content h3 {
        font-size: 18px;
    }

    .step-content p {
        font-size: 14px;
    }

    .cta-section {
        padding: 80px 20px;
    }

    .cta-content h2 {
        font-size: clamp(24px, 5vw, 32px);
    }

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

    .footer-brand {
        grid-column: span 2;
    }

    .footer {
        padding: 60px 20px 32px;
    }

    /* Reduce particles on mobile */
    .particle:nth-child(n+15) {
        display: none;
    }

    .ecg-bg-line:nth-child(n+2) {
        display: none;
    }

    /* Disable floating animation on mobile */
    .unique-card.featured {
        animation: none;
    }

    .feature-icon-large {
        animation: none;
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 480px) {
    .nav {
        height: 64px;
        padding: 0 16px;
    }

    .logo img {
        width: 32px;
        height: 32px;
    }

    .logo span {
        font-size: 16px;
    }

    .hero {
        padding: 100px 16px 60px;
    }

    .hero-inner {
        gap: 32px;
    }

    .hero-mockup {
        margin-top: -10px;
    }

    .hero-mockup img {
        filter: none;
    }

    .hero-badge {
        font-size: 12px;
        padding: 6px 12px;
        margin-bottom: 24px;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        gap: 12px;
        margin-bottom: 48px;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 15px;
        border-radius: 12px;
    }

    .hero-stats {
        gap: 16px;
    }

    .stat-value {
        font-size: 28px;
    }

    .metrics-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .metric-card {
        padding: 16px 12px;
        border-radius: 12px;
    }

    .unique-card {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .unique-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        margin-bottom: 20px;
    }

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

    .unique-badge {
        top: 16px;
        right: 16px;
        padding: 5px 10px;
        font-size: 10px;
    }

    .tech-card {
        padding: 28px 24px;
        border-radius: 16px;
    }

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

    .tech-card h3 {
        font-size: 18px;
    }

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

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


    .disclaimer {
        padding: 24px 16px;
    }

    .disclaimer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .disclaimer-content svg {
        margin: 0 auto;
    }

    .legal-page {
        padding: 100px 16px 60px;
    }

    .legal-content h1 {
        font-size: 32px;
    }

    .legal-content h2 {
        font-size: 20px;
    }

    /* Hide all particles on very small screens */
    .particle:nth-child(n+10) {
        display: none;
    }

    /* Simpler hover effects on small mobile */
    .unique-card:hover,
    .tech-card:hover,
    .metric-card:hover {
        transform: translateY(-2px) !important;
    }
}

/* ===================================== */
/* FLOATING DOWNLOAD BUTTON (MOBILE)     */
/* ===================================== */

.floating-download {
    display: none;
}

@media (max-width: 768px) {
    body {
        padding-bottom: 90px; /* Space for floating download button */
    }

    .floating-download {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 999;
        padding: 12px 16px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
        background: transparent;
        opacity: 0;
        transform: translateY(100%);
        transition: all 0.4s var(--ease-out-expo);
        pointer-events: none;
    }

    .floating-download.visible {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .floating-download a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        padding: 16px 24px;
        background: var(--text);
        color: var(--bg);
        border-radius: 14px;
        font-size: 15px;
        font-weight: 600;
        text-decoration: none;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
        transition: all 0.3s var(--ease);
        -webkit-tap-highlight-color: transparent;
    }

    .floating-download a:active {
        transform: scale(0.98);
    }

    .floating-download svg {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }

}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .animate-on-scroll,
    .fade-in {
        opacity: 1 !important;
        transform: none !important;
    }
}
