/* ===== HealthDial Design System — Light Theme ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --blue: #2B7DE9;
    --blue-dark: #1B5FBF;
    --blue-light: #4D9AF5;
    --green: #43B649;
    --green-dark: #2E8F33;
    --green-light: #6DD370;
    --gradient: linear-gradient(135deg, #2B7DE9 0%, #43B649 100%);
    --gradient-reverse: linear-gradient(135deg, #43B649 0%, #2B7DE9 100%);

    --bg: #ffffff;
    --bg-alt: #f4f7fc;
    --surface: #ffffff;
    --surface-hover: #f0f4fa;
    --border: #e2e8f0;
    --border-hover: #cbd5e1;
    --text: #000000;
    --text-secondary: #00265b;
    --text-muted: #94a3b8;
    --danger: #ef4444;
    --danger-bg: #fef2f2;

    --font: 'Inter', -apple-system, system-ui, sans-serif;
    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-lg: 1.125rem;
    --fs-xl: 1.25rem;
    --fs-2xl: 1.5rem;
    --fs-3xl: 2rem;
    --fs-4xl: 2.5rem;
    --fs-5xl: 3.5rem;

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 999px;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.1);

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --duration: 0.3s;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul,
ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 96px 0;
    position: relative;
}

/* Section Header */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, rgba(43, 125, 233, 0.08), rgba(67, 182, 73, 0.08));
    border: 1px solid rgba(43, 125, 233, 0.15);
    color: var(--blue);
    font-size: var(--fs-sm);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.section-label svg {
    width: 16px;
    height: 16px;
}

.section-title {
    font-size: var(--fs-4xl);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: var(--fs-lg);
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.7;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header .section-label {
    margin: 0 auto 20px;
}

.section-header .section-subtitle {
    margin: 0 auto;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: var(--fs-base);
    transition: all var(--duration) var(--ease);
    position: relative;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 33, 75, 0.35);
}

.btn-secondary {
    background: var(--bg);
    color: var(--text);
    border: 1.5px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--blue);
    color: var(--blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.25);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.35);
}

.btn svg {
    width: 20px;
    height: 20px;
}

/* Cards */
.card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 32px;
    transition: all var(--duration) var(--ease);
    position: relative;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hover);
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon svg {
    width: 28px;
    height: 28px;
}

.card-icon.blue {
    background: rgba(43, 125, 233, 0.08);
    color: var(--blue);
}

.card-icon.green {
    background: rgba(67, 182, 73, 0.08);
    color: var(--green);
}

.card-icon.danger {
    background: var(--danger-bg);
    color: var(--danger);
}

.card-title {
    font-size: var(--fs-lg);
    font-weight: 700;
    margin-bottom: 8px;
}

.card-text {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all var(--duration) var(--ease);
}

.navbar.scrolled {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo img {
    height: 50px;
    width: auto;
}

.nav-logo-text {
    font-size: var(--fs-xl);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.nav-logo-text .blue {
    color: var(--blue);
}

.nav-logo-text .green {
    color: var(--green);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--duration) var(--ease);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width var(--duration) var(--ease);
    border-radius: 1px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-cta {
    padding: 10px 22px !important;
    font-size: var(--fs-sm) !important;
    border-radius: var(--radius) !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    transition: all var(--duration) var(--ease);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration) var(--ease);
}

.mobile-nav.active {
    display: flex;
    opacity: 1;
    pointer-events: all;
}

.mobile-nav a {
    font-size: var(--fs-2xl);
    font-weight: 600;
    color: var(--text);
}

.mobile-nav a:hover {
    color: var(--blue);
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    background: linear-gradient(135deg, #f0f7ff 0%, #f0faf0 100%);
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}

.hero-shape-1 {
    width: 600px;
    height: 600px;
    background: var(--blue);
    top: -200px;
    right: -150px;
    animation: floatShape 20s ease-in-out infinite;
}

.hero-shape-2 {
    width: 400px;
    height: 400px;
    background: var(--green);
    bottom: -100px;
    left: -100px;
    animation: floatShape 25s ease-in-out infinite reverse;
}

.hero-shape-3 {
    width: 200px;
    height: 200px;
    background: var(--gradient);
    top: 50%;
    left: 40%;
    animation: floatShape 15s ease-in-out infinite;
}

.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background: rgba(67, 182, 73, 0.08);
    border: 1px solid rgba(67, 182, 73, 0.2);
    color: var(--green-dark);
    font-size: var(--fs-sm);
    font-weight: 600;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s var(--ease) both;
}

.hero-badge .pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    animation: pulseDot 2s ease-in-out infinite;
}

.hero h1 {
    font-size: var(--fs-5xl);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    color: var(--text);
    animation: fadeInUp 0.8s var(--ease) 0.1s both;
}

.hero-subtitle {
    font-size: var(--fs-lg);
    color: var(--text-secondary);
    max-width: 480px;
    line-height: 1.7;
    margin-bottom: 32px;
    animation: fadeInUp 0.8s var(--ease) 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s var(--ease) 0.3s both;
}

.store-badge {
    height: 50px;
    width: auto;
    transition: transform var(--duration) var(--ease);
    border-radius: var(--radius-sm);
}

.store-badge:hover {
    transform: scale(1.05);
}

.hero-stats {
    display: flex;
    gap: 40px;
    animation: fadeInUp 0.8s var(--ease) 0.4s both;
}

.hero-stat-value {
    font-size: var(--fs-2xl);
    font-weight: 800;
}

.hero-stat-label {
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

/* Hero Phone */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInRight 1s var(--ease) 0.3s both;
}

.hero-phone {
    position: relative;
    width: 280px;
    height: 560px;
    background: var(--bg);
    border-radius: 36px;
    border: 3px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0, 0, 0, 0.02);
}

.hero-phone::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 24px;
    background: var(--bg-alt);
    border-radius: 12px;
    z-index: 2;
    border: 1px solid var(--border);
}

.hero-phone-screen {
    position: absolute;
    inset: 0;
    background: var(--bg-alt);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 16px 16px;
}

.phone-header {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-bottom: 16px;
}

.phone-header img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.phone-header span {
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--text);
}

.phone-search {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: var(--fs-xs);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.phone-search svg {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
}

.phone-cats {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.phone-cat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 4px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.phone-cat svg {
    width: 20px;
    height: 20px;
}

.phone-cat span {
    font-size: 9px;
    color: var(--text-secondary);
    font-weight: 500;
}

.floating-card {
    position: absolute;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-lg);
    animation: floatCard 6s ease-in-out infinite;
    white-space: nowrap;
}

.floating-card svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.floating-card-text {
    font-size: var(--fs-xs);
    font-weight: 600;
}

.floating-card-sub {
    font-size: 10px;
    color: var(--text-muted);
}

.floating-card-1 {
    top: 60px;
    right: -30px;
    animation-delay: 0s;
}

.floating-card-2 {
    bottom: 120px;
    left: -40px;
    animation-delay: 2s;
}

.floating-card-3 {
    bottom: 40px;
    right: -20px;
    animation-delay: 4s;
}

/* ===== PROBLEMS ===== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.problem-card {
    border-color: rgba(239, 68, 68, 0.12);
}

.problem-card:hover {
    border-color: rgba(239, 68, 68, 0.25);
    box-shadow: 0 8px 32px rgba(239, 68, 68, 0.06);
}

.problem-number {
    font-size: var(--fs-3xl);
    font-weight: 900;
    color: rgba(239, 68, 68, 0.12);
    margin-bottom: 12px;
}

/* ===== SOLUTIONS ===== */
.solution-card {
    border-color: rgba(67, 182, 73, 0.12);
}

.solution-card:hover {
    border-color: rgba(67, 182, 73, 0.25);
    box-shadow: 0 8px 32px rgba(67, 182, 73, 0.06);
}

.solution-check {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(67, 182, 73, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green);
}

.solution-check svg {
    width: 14px;
    height: 14px;
}

/* ===== FEATURES ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    text-align: center;
    padding: 40px 28px;
}

.feature-card .card-icon {
    margin: 0 auto 20px;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
}

.feature-card .card-icon svg {
    width: 30px;
    height: 30px;
}

/* ===== CATEGORIES ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.category-card {
    text-align: center;
    padding: 28px 16px;
    cursor: pointer;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--duration) var(--ease);
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--blue);
}

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    background: rgba(43, 125, 233, 0.06);
    color: var(--blue);
    transition: all var(--duration) var(--ease);
}

.category-icon svg {
    width: 28px;
    height: 28px;
}

.category-card:hover .category-icon {
    background: var(--gradient);
    color: #fff;
    transform: scale(1.1);
}

.category-name {
    font-size: var(--fs-sm);
    font-weight: 600;
}

/* ===== HOW IT WORKS ===== */
.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 40px;
    left: calc(16.67% + 30px);
    right: calc(16.67% + 30px);
    height: 3px;
    background: var(--gradient);
    border-radius: 2px;
}

.step-card {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    font-size: var(--fs-xl);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 4px 16px rgba(43, 125, 233, 0.3);
}

.step-title {
    font-size: var(--fs-lg);
    font-weight: 700;
    margin-bottom: 8px;
}

.step-text {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== NEWS ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.news-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all var(--duration) var(--ease);
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.news-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--bg-alt);
}

.news-card-body {
    padding: 24px;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.news-card-date,
.news-card-readtime {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: var(--fs-xs);
    color: var(--text-muted);
}

.news-card-date svg,
.news-card-readtime svg {
    width: 14px;
    height: 14px;
}

.news-card-title {
    font-size: var(--fs-lg);
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-desc {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
}

.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--blue);
    font-size: var(--fs-sm);
    font-weight: 600;
    cursor: pointer;
    transition: gap var(--duration) var(--ease);
}

.news-read-more:hover {
    gap: 8px;
}

.news-read-more svg {
    width: 16px;
    height: 16px;
}

/* News Modal */
.news-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration) var(--ease);
    padding: 24px;
}

.news-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.news-modal {
    background: var(--surface);
    border-radius: var(--radius-xl);
    max-width: 700px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    transform: translateY(20px) scale(0.95);
    transition: transform var(--duration) var(--ease);
    position: relative;
}

.news-modal-overlay.active .news-modal {
    transform: translateY(0) scale(1);
}

.news-modal-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.news-modal-body {
    padding: 32px;
}

.news-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.news-modal-close svg {
    width: 18px;
    height: 18px;
}

.news-modal-title {
    font-size: var(--fs-2xl);
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.news-modal-content {
    font-size: var(--fs-base);
    color: var(--text-secondary);
    line-height: 1.8;
    white-space: pre-wrap;
}

/* Skeleton */
.news-skeleton {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
}

.skeleton-img {
    width: 100%;
    height: 200px;
    background: linear-gradient(90deg, var(--bg-alt) 25%, #e8edf4 50%, var(--bg-alt) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-body {
    padding: 24px;
}

.skeleton-line {
    height: 14px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--bg-alt) 25%, #e8edf4 50%, var(--bg-alt) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    margin-bottom: 10px;
}

.skeleton-line.short {
    width: 60%;
}

.skeleton-line.medium {
    width: 80%;
}

/* ===== EMERGENCY ===== */
.emergency {
    background: linear-gradient(135deg, #fff5f5, #f0f7ff);
    border-top: 1px solid rgba(239, 68, 68, 0.1);
    border-bottom: 1px solid rgba(239, 68, 68, 0.1);
    text-align: center;
}

.emergency-beacon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--danger-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--danger);
    position: relative;
}

.emergency-beacon svg {
    width: 36px;
    height: 36px;
}

.emergency-beacon::before,
.emergency-beacon::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid var(--danger);
    opacity: 0;
    animation: emergencyPulse 2s ease-out infinite;
}

.emergency-beacon::after {
    animation-delay: 1s;
}

.emergency h2 {
    font-size: var(--fs-4xl);
    font-weight: 800;
    margin-bottom: 12px;
}

.emergency-text {
    font-size: var(--fs-lg);
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 28px;
}

.emergency-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* ===== TESTIMONIALS ===== */
.testimonials-slider {
    position: relative;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s var(--ease);
}

.testimonial-card {
    flex: 0 0 100%;
    padding: 0 24px;
}

.testimonial-inner {
    background: var(--bg-alt);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    padding: 40px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-bottom: 20px;
    color: #f59e0b;
}

.testimonial-stars svg {
    width: 20px;
    height: 20px;
}

.testimonial-quote {
    font-size: var(--fs-lg);
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    font-weight: 700;
}

.testimonial-location {
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

.testimonials-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 28px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    transition: all var(--duration) var(--ease);
    cursor: pointer;
}

.dot.active {
    background: var(--blue);
    width: 30px;
    border-radius: var(--radius-full);
}

/* ===== FAQ ===== */
.faq-list {
    max-width: 750px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color var(--duration) var(--ease);
}

.faq-item.active {
    border-color: rgba(43, 125, 233, 0.3);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 24px;
    color: var(--text);
    font-size: var(--fs-base);
    font-weight: 600;
    text-align: left;
    gap: 16px;
}

.faq-question svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform var(--duration) var(--ease);
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
    color: var(--blue);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease);
}

.faq-answer-inner {
    padding: 0 24px 24px;
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===== CTA ===== */
.cta-section {
    text-align: center;
    background: linear-gradient(135deg, #f0f7ff 0%, #f0faf0 100%);
}

.cta-section h2 {
    font-size: var(--fs-5xl);
    font-weight: 900;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.cta-subtitle {
    font-size: var(--fs-lg);
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 56px;
}

.cta-stats {
    display: flex;
    gap: 64px;
    justify-content: center;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.cta-stat-value {
    font-size: var(--fs-4xl);
    font-weight: 900;
    margin-bottom: 4px;
}

.cta-stat-label {
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

/* ===== FOOTER ===== */
.footer {
    padding: 64px 0 24px;
    border-top: 1px solid var(--border);
    background: var(--bg-alt);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 320px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-logo img {
    height: 100px;
}

.footer-desc {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    line-height: 1.7;
}

.footer-heading {
    font-size: var(--fs-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    transition: color var(--duration) var(--ease);
}

.footer-links a:hover {
    color: var(--blue);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: var(--fs-sm);
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.developer-credit {
    font-size: var(--fs-xs);
    color: var(--text-secondary);
}

.developer-credit a {
    color: var(--blue);
    font-weight: 600;
    transition: color var(--duration) var(--ease);
}

.developer-credit a:hover {
    color: var(--blue-light);
    text-decoration: underline;
}

/* ===== CONTACT ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--fs-sm);
    font-weight: 600;
    margin-bottom: 8px;
}

.form-label svg {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: var(--fs-base);
    color: var(--text);
    transition: border-color var(--duration) var(--ease);
    background: var(--bg);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(43, 125, 233, 0.1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes floatShape {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-30px, 20px);
    }
}

@keyframes floatCard {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulseDot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.5);
    }
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

@keyframes emergencyPulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s var(--ease);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.7s var(--ease);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.7s var(--ease);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.7s var(--ease);
}

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible {
    opacity: 1;
    transform: translate(0) scale(1);
}

.delay-1 {
    transition-delay: 0.1s !important;
}

.delay-2 {
    transition-delay: 0.2s !important;
}

.delay-3 {
    transition-delay: 0.3s !important;
}

.delay-4 {
    transition-delay: 0.4s !important;
}

.delay-5 {
    transition-delay: 0.5s !important;
}

.delay-6 {
    transition-delay: 0.6s !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        margin: 0 auto 32px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 64px 0;
    }

    .section-title {
        font-size: var(--fs-3xl);
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding: 120px 0 60px;
    }

    .hero h1 {
        font-size: var(--fs-3xl);
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .grid-2,
    .grid-3,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .steps-container::before {
        display: none;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .emergency-actions {
        flex-direction: column;
        align-items: center;
    }

    .cta-section h2 {
        font-size: var(--fs-3xl);
    }

    .cta-stats {
        flex-direction: column;
        gap: 24px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== PAGE TRANSITION OVERLAY ===== */
.page-transition {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease);
}

.page-transition::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(67, 182, 73, 0.05) 0%, rgba(43, 125, 233, 0.05) 100%);
}

.page-transition.active {
    opacity: 1;
    pointer-events: all;
}

.page-transition.page-enter {
    opacity: 1;
    pointer-events: all;
    animation: transitionFadeOut 0.6s var(--ease) 0.3s forwards;
}

.transition-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    position: relative;
    z-index: 2;
}

.transition-icon {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50px;
    animation: heartbeatPulse 1.5s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(43, 125, 233, 0.15));
}

.transition-spinner {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--blue);
    border-bottom-color: var(--green);
    position: absolute;
    top: -30px;
    animation: spinSlow 3s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.transition-text {
    font-size: var(--fs-2xl);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.transition-text .blue {
    color: var(--blue);
}

.transition-text .green {
    color: var(--green);
}

@keyframes transitionFadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        pointer-events: none;
    }
}

@keyframes heartbeatPulse {
    0% {
        transform: scale(1);
    }

    14% {
        transform: scale(1.15);
    }

    28% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.15);
    }

    70% {
        transform: scale(1);
    }
}

@keyframes spinSlow {
    from {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.05);
    }

    to {
        transform: rotate(360deg) scale(1);
    }
}

/* ===== ENHANCED CARD EFFECTS ===== */
.card {
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
    z-index: -1;
    border-radius: inherit;
}

.card:hover::before {
    opacity: 0.03;
}

.feature-card:hover .card-icon {
    transform: scale(1.15) rotate(-5deg);
    transition: transform 0.4s var(--ease);
}

.feature-card .card-icon {
    transition: transform 0.4s var(--ease);
}

/* ===== ENHANCED BUTTON EFFECTS ===== */
.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%) skewX(-15deg);
    transition: transform 0.6s var(--ease);
    border-radius: inherit;
}

.btn-primary:hover::before {
    transform: translateX(100%) skewX(-15deg);
}

/* ===== GRADIENT BORDER ON HOVER ===== */
.category-card {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}

.category-card:hover::before {
    opacity: 0.05;
}

.category-card:hover {
    border-color: var(--blue-light);
}

/* ===== HEALTH TECH ANIMATIONS ===== */
.particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 60px;
    height: 60px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%232B7DE9" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2v20M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"/></svg>') no-repeat center center;
    background-size: contain;
    opacity: 0.03;
    animation: techFloat linear infinite;
}

.particle-cross {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2343B649" opacity="0.1"><path d="M19 10h-5V5a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v5H5a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h5v5a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-5h5a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1z"/></svg>') no-repeat center center;
}

.particle-pulse {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%232B7DE9" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" opacity="0.2"><path d="M22 12h-4l-3 9L9 3l-3 9H2"/></svg>') no-repeat center center;
    width: 100px;
}

.particle:nth-child(1) {
    left: 10%;
    top: 20%;
    animation-duration: 25s;
    filter: blur(1px);
}

.particle:nth-child(2) {
    left: 80%;
    top: 60%;
    animation-duration: 30s;
    animation-delay: -5s;
    width: 40px;
    height: 40px;
}

.particle:nth-child(3) {
    left: 60%;
    top: 10%;
    animation-duration: 28s;
    animation-delay: -3s;
    width: 80px;
    height: 80px;
    filter: blur(2px);
}

.particle:nth-child(4) {
    left: 15%;
    top: 70%;
    animation-duration: 32s;
    animation-delay: -8s;
}

.particle:nth-child(5) {
    left: 50%;
    top: 50%;
    animation-duration: 26s;
    animation-delay: -12s;
    width: 120px;
    height: 40px;
}

.particle:nth-child(6) {
    left: 85%;
    top: 20%;
    animation-duration: 35s;
    animation-delay: -10s;
}

@keyframes techFloat {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.15;
    }

    90% {
        opacity: 0.15;
    }

    100% {
        transform: translateY(-150px) scale(0.8) rotate(20deg);
        opacity: 0;
    }
}

/* ===== PAGE ENTER ANIMATIONS ===== */
.page-enter-content .section-label,
.page-enter-content .section-title,
.page-enter-content .section-subtitle {
    animation: fadeInUp 0.7s var(--ease) both;
}

.page-enter-content .section-title {
    animation-delay: 0.1s;
}

.page-enter-content .section-subtitle {
    animation-delay: 0.2s;
}

/* ===== TILT ON HOVER (cards) ===== */
.card-tilt {
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.card-tilt:hover {
    transform: translateY(-6px) rotateX(2deg) rotateY(-2deg);
    box-shadow: var(--shadow-xl);
}

/* ===== TEXT GRADIENT ANIMATION ===== */
.animated-gradient {
    background: linear-gradient(270deg, #2B7DE9, #43B649, #2B7DE9);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }

    100% {
        background-position: 0% center;
    }
}

/* ===== ENHANCED SECTION DIVIDER ===== */
.section-divider {
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
    max-width: 100px;
    margin: 0 auto 48px;
    opacity: 0.5;
}

/* ===== MORE DELAY CLASSES ===== */
.delay-7 {
    transition-delay: 0.7s !important;
}

.delay-8 {
    transition-delay: 0.8s !important;
}

.delay-9 {
    transition-delay: 0.9s !important;
}

.delay-10 {
    transition-delay: 1.0s !important;
}

/* ===== COUNTER GLOW ===== */
.cta-stat-value,
.hero-stat-value {
    text-shadow: 0 0 30px rgba(43, 125, 233, 0.1);
}