/* ========================================
   MLPipes - myCARI Product Website
   Modern CSS with Light/Dark Mode
   ======================================== */

/* CSS Custom Properties (Light Mode - Default) */
:root {
    /* Brand Colors */
    --primary: #0088ff;
    --primary-light: #3da5ff;
    --primary-dark: #006dcc;
    --primary-50: #e6f3ff;
    --primary-100: #b3d9ff;
    --primary-900: #001b33;

    --secondary: #22c55e;
    --secondary-light: #4ade80;
    --secondary-dark: #16a34a;

    --accent-orange: #ff9500;
    --accent-purple: #9b59b6;
    --accent-pink: #ec4899;
    --accent-red: #ef4444;
    --accent-teal: #14b8a6;
    --accent-indigo: #6366f1;

    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-elevated: #ffffff;

    /* Text Colors */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #64748b;
    --text-muted: #94a3b8;
    --text-on-primary: #ffffff;

    /* Border Colors */
    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;
    --border-dark: #94a3b8;

    /* Shadow Colors */
    --shadow-color: rgba(0, 0, 0, 0.1);
    --shadow-color-medium: rgba(0, 0, 0, 0.15);
    --shadow-color-heavy: rgba(0, 0, 0, 0.2);

    /* Glow Colors */
    --glow-primary: rgba(0, 136, 255, 0.3);
    --glow-secondary: rgba(34, 197, 94, 0.3);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-hero: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    --gradient-cta: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);

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

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 3.75rem;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Z-Index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal: 400;
    --z-tooltip: 500;

    /* Container */
    --container-max: 1200px;
    --container-padding: 1.5rem;
}

/* Dark Mode Theme */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-card: #1e293b;
    --bg-elevated: #253449;

    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --text-muted: #64748b;

    --border-light: #334155;
    --border-medium: #475569;
    --border-dark: #64748b;

    --shadow-color: rgba(0, 0, 0, 0.3);
    --shadow-color-medium: rgba(0, 0, 0, 0.4);
    --shadow-color-heavy: rgba(0, 0, 0, 0.5);

    --glow-primary: rgba(0, 136, 255, 0.4);
    --glow-secondary: rgba(34, 197, 94, 0.4);

    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --gradient-card: linear-gradient(145deg, #1e293b 0%, #253449 100%);
    --gradient-cta: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

/* ========================================
   Base Styles
   ======================================== */

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

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

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color var(--transition-base), color var(--transition-base);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

/* ========================================
   Utility Classes
   ======================================== */

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

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

.section {
    padding: var(--space-4xl) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

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

/* ========================================
   Buttons
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-weight: 600;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-icon {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-on-primary);
    box-shadow: 0 4px 14px var(--glow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--glow-primary);
    color: var(--text-on-primary);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-medium);
    color: var(--text-primary);
}

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

.btn-white:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    color: var(--primary-dark);
}

.btn-large {
    padding: var(--space-md) var(--space-xl);
    font-size: var(--font-size-base);
}

.btn-block {
    width: 100%;
}

/* ========================================
   Navigation
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition-base);
}

[data-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.8);
}

.navbar.scrolled {
    box-shadow: 0 4px 20px var(--shadow-color);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 700;
    font-size: var(--font-size-xl);
    color: var(--text-primary);
}

.nav-logo:hover {
    color: var(--text-primary);
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-links a {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.theme-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
}

.theme-toggle:hover {
    background: var(--bg-secondary);
    border-color: var(--border-medium);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

.sun-icon { display: none; }
.moon-icon { display: block; }

[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
}

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

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 72px;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
}

.shape-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -200px;
    background: radial-gradient(circle, var(--primary-50) 0%, transparent 70%);
}

.shape-2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -100px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.1) 0%, transparent 70%);
}

.shape-3 {
    width: 300px;
    height: 300px;
    top: 40%;
    left: 10%;
    background: radial-gradient(circle, rgba(155, 89, 182, 0.08) 0%, transparent 70%);
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float-slow 20s ease-in-out infinite;
}

.gradient-orb-1 {
    width: 500px;
    height: 500px;
    top: 10%;
    right: 5%;
    background: linear-gradient(135deg, var(--primary-50) 0%, rgba(0, 136, 255, 0.2) 100%);
}

.gradient-orb-2 {
    width: 400px;
    height: 400px;
    bottom: 10%;
    left: 5%;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(20, 184, 166, 0.1) 100%);
    animation-delay: -10s;
}

[data-theme="dark"] .shape-1 {
    background: radial-gradient(circle, rgba(0, 136, 255, 0.15) 0%, transparent 70%);
}

[data-theme="dark"] .shape-2 {
    background: radial-gradient(circle, rgba(34, 197, 94, 0.1) 0%, transparent 70%);
}

[data-theme="dark"] .gradient-orb-1 {
    background: linear-gradient(135deg, rgba(0, 136, 255, 0.2) 0%, rgba(0, 136, 255, 0.1) 100%);
    opacity: 0.4;
}

[data-theme="dark"] .gradient-orb-2 {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(20, 184, 166, 0.08) 100%);
    opacity: 0.3;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

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

.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--primary);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.hero-subtitle-icon {
    height: 2.5em;
    width: auto;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.hero-description {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.hero-trust {
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-light);
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-sm);
    color: var(--text-tertiary);
}

.trust-icon {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    position: relative;
    z-index: 1;
}

.phone-frame {
    width: 280px;
    height: 580px;
    background: #1a1a1a;
    border-radius: 44px;
    padding: 12px;
    box-shadow:
        0 50px 100px -20px var(--shadow-color-heavy),
        0 30px 60px -30px rgba(0, 0, 0, 0.3),
        inset 0 0 0 2px rgba(255, 255, 255, 0.1);
    position: relative;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 28px;
    background: #000;
    border-radius: 20px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 36px;
    overflow: hidden;
    position: relative;
}

.phone-glow {
    position: absolute;
    inset: -50px;
    background: radial-gradient(circle at center, var(--glow-primary) 0%, transparent 60%);
    z-index: -1;
    opacity: 0.5;
    animation: glow-pulse 4s ease-in-out infinite;
}

/* Carousel */
.carousel {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.carousel-track img {
    width: 256px;
    min-width: 256px;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

/* Floating Cards Container */
.floating-cards-container {
    position: absolute;
    left: calc(50% + 160px);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 2;
}

.floating-cards-container .floating-card {
    margin-bottom: 16px;
}

.floating-cards-container .floating-card:last-child {
    margin-bottom: 0;
}

/* Floating Cards */
.floating-card {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 40px var(--shadow-color);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
}

.floating-card svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--primary);
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
}

.hero-scroll-indicator svg {
    width: 24px;
    height: 24px;
}

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

.problem-section {
    background: var(--bg-secondary);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.problem-card {
    background: var(--bg-card);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    transition: all var(--transition-base);
}

.problem-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px var(--shadow-color);
}

.problem-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
}

.problem-icon svg {
    width: 28px;
    height: 28px;
}

.problem-icon-1 {
    background: linear-gradient(135deg, rgba(0, 136, 255, 0.15) 0%, rgba(0, 136, 255, 0.05) 100%);
    color: var(--primary);
}

.problem-icon-2 {
    background: linear-gradient(135deg, rgba(255, 149, 0, 0.15) 0%, rgba(255, 149, 0, 0.05) 100%);
    color: var(--accent-orange);
}

.problem-icon-3 {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.05) 100%);
    color: var(--accent-red);
}

.problem-icon-4 {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.15) 0%, rgba(155, 89, 182, 0.05) 100%);
    color: var(--accent-purple);
}

.problem-card h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.problem-card p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
   Pillars Section
   ======================================== */

.pillars-section {
    background: var(--bg-primary);
}

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

.pillar-card {
    background: var(--gradient-card);
    padding: var(--space-2xl);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

.pillar-wellness::before {
    background: linear-gradient(90deg, var(--accent-orange) 0%, #fbbf24 100%);
}

.pillar-healthcare::before {
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent-teal) 100%);
}

.pillar-assistance::before {
    background: linear-gradient(90deg, var(--accent-purple) 0%, var(--accent-pink) 100%);
}

.pillar-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px var(--shadow-color);
}

.pillar-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-lg);
}

.pillar-icon svg {
    width: 32px;
    height: 32px;
    color: var(--primary);
}

.pillar-wellness .pillar-icon svg { color: var(--accent-orange); }
.pillar-healthcare .pillar-icon svg { color: var(--primary); }
.pillar-assistance .pillar-icon svg { color: var(--accent-purple); }

.pillar-label {
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.pillar-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.pillar-tagline {
    font-size: var(--font-size-base);
    color: var(--primary);
    font-weight: 500;
    margin-bottom: var(--space-md);
}

.pillar-wellness .pillar-tagline { color: var(--accent-orange); }
.pillar-healthcare .pillar-tagline { color: var(--primary); }
.pillar-assistance .pillar-tagline { color: var(--accent-purple); }

.pillar-description {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.pillar-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.pillar-features li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.pillar-features li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--secondary);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ========================================
   Features Section
   ======================================== */

.features-section {
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.feature-card {
    background: var(--bg-card);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    transition: all var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px var(--shadow-color);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
}

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

.feature-icon-blue { background: rgba(0, 136, 255, 0.1); color: var(--primary); }
.feature-icon-orange { background: rgba(255, 149, 0, 0.1); color: var(--accent-orange); }
.feature-icon-green { background: rgba(34, 197, 94, 0.1); color: var(--secondary); }
.feature-icon-purple { background: rgba(155, 89, 182, 0.1); color: var(--accent-purple); }
.feature-icon-red { background: rgba(239, 68, 68, 0.1); color: var(--accent-red); }
.feature-icon-teal { background: rgba(20, 184, 166, 0.1); color: var(--accent-teal); }
.feature-icon-indigo { background: rgba(99, 102, 241, 0.1); color: var(--accent-indigo); }
.feature-icon-pink { background: rgba(236, 72, 153, 0.1); color: var(--accent-pink); }

.feature-card h3 {
    font-size: var(--font-size-base);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

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

/* ========================================
   Security Section
   ======================================== */

.security-section {
    background: var(--bg-primary);
    overflow: hidden;
}

.security-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.security-text .section-title {
    text-align: left;
}

.security-text .section-subtitle {
    text-align: left;
    margin: 0 0 var(--space-xl) 0;
}

.security-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.security-feature {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.security-check {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.security-check svg {
    width: 16px;
    height: 16px;
    color: white;
}

.security-feature h4 {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.security-feature p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.security-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.security-shield {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.security-shield svg {
    width: 120px;
    height: 120px;
    color: var(--primary);
}

.shield-glow {
    position: absolute;
    inset: -40px;
    background: radial-gradient(circle, var(--glow-primary) 0%, transparent 70%);
    animation: glow-pulse 3s ease-in-out infinite;
}

.security-badges {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.security-badge {
    padding: var(--space-sm) var(--space-lg);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-secondary);
}

/* ========================================
   Pricing Section
   ======================================== */

.pricing-section {
    background: var(--bg-secondary);
}

.pricing-comparison {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
    flex-wrap: wrap;
}

.comparison-text {
    text-align: center;
}

.comparison-label {
    font-size: var(--font-size-sm);
    color: var(--text-tertiary);
    margin-bottom: var(--space-xs);
}

.comparison-old-price {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--text-muted);
    text-decoration: line-through;
}

.comparison-old-price span {
    font-size: var(--font-size-lg);
    font-weight: 400;
}

.comparison-new-price {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--secondary);
}

.comparison-new-price span {
    font-size: var(--font-size-lg);
    font-weight: 400;
}

.comparison-arrow {
    color: var(--primary);
}

.comparison-arrow svg {
    width: 32px;
    height: 32px;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    padding: var(--space-2xl);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--border-light);
    position: relative;
    transition: all var(--transition-base);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px var(--shadow-color);
}

.pricing-card-featured {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary), 0 20px 40px var(--shadow-color);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: var(--space-xs) var(--space-md);
    background: var(--gradient-primary);
    color: white;
    font-size: var(--font-size-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
}

.pricing-header {
    text-align: center;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--border-light);
}

.pricing-header h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.price .currency {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-primary);
}

.price .amount {
    font-size: var(--font-size-5xl);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.price .period {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
}

.price-note {
    font-size: var(--font-size-sm);
    color: var(--secondary);
    margin-top: var(--space-sm);
}

.pricing-features {
    margin-bottom: var(--space-xl);
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.pricing-features li::before {
    content: '✓';
    color: var(--secondary);
    font-weight: 700;
}

.pricing-guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--bg-tertiary);
    border-radius: var(--radius-xl);
    margin-top: var(--space-2xl);
}

.pricing-guarantee svg {
    width: 24px;
    height: 24px;
    color: var(--secondary);
    flex-shrink: 0;
}

.pricing-guarantee p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

/* ========================================
   CTA Section
   ======================================== */

.cta-section {
    background: var(--gradient-cta);
    position: relative;
    overflow: hidden;
}

.cta-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cta-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.cta-shape-1 {
    width: 400px;
    height: 400px;
    top: -200px;
    right: -100px;
}

.cta-shape-2 {
    width: 300px;
    height: 300px;
    bottom: -150px;
    left: -50px;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: var(--space-2xl) 0;
}

.cta-content h2 {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-md);
}

.cta-content p {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-xl);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
}

/* ========================================
   Contact Section
   ======================================== */

.contact-section {
    background: var(--bg-primary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-3xl);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.contact-card {
    background: var(--bg-secondary);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-50);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
}

[data-theme="dark"] .contact-icon {
    background: rgba(0, 136, 255, 0.15);
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.contact-card h4 {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.contact-card p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.contact-secondary {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

.contact-social {
    display: flex;
    gap: var(--space-md);
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    transition: all var(--transition-base);
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.contact-form {
    background: var(--bg-secondary);
    padding: var(--space-2xl);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--border-light);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--glow-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

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

.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
    padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-3xl);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

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

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

.footer-brand > p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.footer-app {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
}

.footer-app .app-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
}

.footer-app strong {
    display: block;
    font-size: var(--font-size-sm);
    color: var(--text-primary);
}

.footer-app span {
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
}

.footer-links h4 {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-light);
}

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

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

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

@keyframes float-slow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

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

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

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.animate-fade-in {
    animation: fade-in 0.6s ease-out forwards;
}

.animate-fade-in-up {
    animation: fade-in-up 0.6s ease-out forwards;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float 6s ease-in-out infinite;
    animation-delay: -3s;
}

.animate-bounce {
    animation: bounce 2s ease-in-out infinite;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

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

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

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

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

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

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

    .hero-visual {
        order: -1;
        margin-bottom: var(--space-xl);
    }

    .floating-card {
        display: none;
    }

    .problem-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .security-content {
        grid-template-columns: 1fr;
    }

    .security-visual {
        order: -1;
        margin-bottom: var(--space-xl);
    }

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

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --font-size-5xl: 2.5rem;
        --font-size-4xl: 2rem;
        --font-size-3xl: 1.5rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border-light);
        flex-direction: column;
        padding: var(--space-lg);
        gap: var(--space-md);
    }

    .nav-links.active {
        display: flex;
    }

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

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

    .hero {
        min-height: auto;
        padding: 120px 0 var(--space-3xl);
    }

    .hero-title {
        font-size: var(--font-size-4xl);
    }

    .phone-frame {
        width: 240px;
        height: 500px;
    }

    .carousel-track img {
        width: 216px;
        min-width: 216px;
    }

    .floating-cards-container {
        display: none;
    }

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

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

    .pricing-cards {
        grid-template-columns: 1fr;
    }

    .pricing-comparison {
        flex-direction: column;
    }

    .comparison-arrow {
        transform: rotate(90deg);
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
}

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

    .section {
        padding: var(--space-3xl) 0;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
    .navbar,
    .hero-scroll-indicator,
    .theme-toggle,
    .cta-section {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .section {
        page-break-inside: avoid;
    }
}

/* ========================================
   Cookie Consent Modal
   ======================================== */

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border-light);
    box-shadow: 0 -4px 20px var(--shadow-color);
    padding: var(--space-lg) var(--space-xl);
    z-index: var(--z-modal);
    transform: translateY(100%);
    transition: transform var(--transition-slow);
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.cookie-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    color: var(--accent-orange);
}

.cookie-icon svg {
    width: 100%;
    height: 100%;
}

.cookie-text {
    flex: 1;
}

.cookie-text h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 var(--space-xs) 0;
}

.cookie-text p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.cookie-text a {
    color: var(--primary);
    text-decoration: underline;
}

.cookie-text a:hover {
    color: var(--primary-dark);
}

.cookie-actions {
    display: flex;
    gap: var(--space-md);
    flex-shrink: 0;
}

.cookie-btn {
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--font-size-sm);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .cookie-consent {
        padding: var(--space-md);
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
    }

    .cookie-icon {
        width: 40px;
        height: 40px;
    }

    .cookie-actions {
        width: 100%;
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
    }
}
