/* ===================================
   H.E.R. ASSISTANT - STYLES
   Design: Noir & Blanc avec animations
   =================================== */

/* Variables */
:root {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #111111;
    --bg-card: #141414;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --border-color: #222222;
    --border-light: #333333;
    --accent: #ffffff;
    --gradient-1: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    --gradient-2: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.02) 100%);
    --glow: 0 0 40px rgba(255,255,255,0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(255,255,255,0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(255,255,255,0.02) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(255,255,255,0.01) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* Grid Background Animation */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

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

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #888888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.highlight {
    position: relative;
    display: inline;
    vertical-align: baseline;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
    pointer-events: none;
}

.highlight:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Highlight in section titles - inherit gradient */
.section-title .highlight {
    -webkit-text-fill-color: inherit;
    background: inherit;
    -webkit-background-clip: inherit;
    background-clip: inherit;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::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:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
}

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

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

.btn-secondary:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--text-primary);
}

.btn-large {
    padding: 18px 48px;
    font-size: 1.1rem;
}

/* ===================================
   HEADER
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(0,0,0,0.95);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: var(--text-primary);
}

.logo-sub {
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    color: var(--text-secondary);
    margin-top: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:not(.btn-nav)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text-primary);
    transition: width 0.3s ease;
}

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

.nav-links a:not(.btn-nav):hover::after {
    width: 100%;
}

.btn-nav {
    padding: 10px 20px;
    background: var(--text-primary);
    color: var(--bg-primary) !important;
    border-radius: 6px;
}

.btn-nav:hover {
    transform: scale(1.05);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* Language Selector */
.lang-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 16px;
}

.lang-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lang-btn:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.lang-btn.active {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

@media (max-width: 768px) {
    .lang-selector {
        position: absolute;
        top: 16px;
        right: 60px;
    }
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
}

/* Animated particles background */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08) 0%, transparent 25%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.05) 0%, transparent 30%);
    animation: heroBgPulse 8s ease-in-out infinite;
}

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

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

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    padding: 8px 16px;
    border: 1px solid var(--border-light);
    border-radius: 50px;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.8s forwards;
    opacity: 0;
}

.hero-launch {
    font-size: 0.9rem;
    color: var(--text-muted);
    animation: fadeInUp 0.8s ease 1s forwards;
    opacity: 0;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 1.2s ease 0.5s forwards;
    opacity: 0;
}

.hero-illustration {
    position: relative;
    width: 400px;
    height: 400px;
}

.brain-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
}

.brain-svg {
    width: 100%;
    height: 100%;
    animation: rotateSlow 30s linear infinite;
}

.pulse-ring {
    animation: pulseRing 2s ease-out infinite;
    transform-origin: center;
}

@keyframes pulseRing {
    0% { r: 20; opacity: 1; }
    100% { r: 80; opacity: 0; }
}

@keyframes rotateSlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Floating Icons */
.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.float-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    animation: float 6s ease-in-out infinite;
}

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

.icon-mic { top: 10%; left: 10%; animation-delay: 0s; }
.icon-calendar { top: 5%; right: 15%; animation-delay: 1s; }
.icon-message { bottom: 15%; left: 5%; animation-delay: 2s; }
.icon-location { bottom: 10%; right: 10%; animation-delay: 3s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(2deg); }
    75% { transform: translateY(10px) rotate(-2deg); }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===================================
   DIFFERENCE SECTION
   =================================== */
.difference {
    padding: 120px 24px;
    background: var(--gradient-1);
    position: relative;
}

.difference::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}

.quote-box {
    max-width: 800px;
    margin: 3rem auto;
    padding: 2rem 3rem;
    background: var(--bg-card);
    border-left: 3px solid var(--text-primary);
    border-radius: 0 8px 8px 0;
    position: relative;
}

.quote-box::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 6rem;
    color: var(--border-light);
    font-family: Georgia, serif;
    line-height: 1;
}

.quote-box p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    font-style: italic;
    position: relative;
    z-index: 1;
}

.taglines {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.tagline {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    position: relative;
    padding-left: 1.5rem;
}

.tagline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--text-primary);
    border-radius: 50%;
    animation: taglinePulse 2s ease-in-out infinite;
}

@keyframes taglinePulse {
    0%, 100% { transform: translateY(-50%) scale(1); opacity: 1; }
    50% { transform: translateY(-50%) scale(1.5); opacity: 0.5; }
}

/* ===================================
   EXAMPLE HIGHLIGHT
   =================================== */
.example-highlight {
    padding: 80px 24px;
    background: var(--bg-secondary);
}

.example-card {
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.example-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.03) 0%, transparent 50%);
    pointer-events: none;
}

.example-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.example-icon svg {
    width: 28px;
    height: 28px;
    color: var(--text-primary);
}

.example-card h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.example-scenario {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.example-result {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    text-align: left;
    border: 1px solid var(--border-color);
}

.her-badge {
    display: inline-block;
    background: var(--text-primary);
    color: var(--bg-primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.example-result p {
    color: var(--text-primary);
    font-size: 1rem;
}

.example-outcome {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ===================================
   FEATURES SECTION
   =================================== */
.features {
    padding: 120px 24px;
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.02) 0%, transparent 70%);
    pointer-events: none;
}

.memory-examples {
    max-width: 700px;
    margin: 0 auto 2rem;
}

.memory-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.memory-item:hover {
    border-color: var(--border-light);
    transform: translateX(10px);
}

.memory-you {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-style: italic;
}

.memory-you .label,
.memory-her .label {
    font-style: normal;
    font-weight: 600;
    color: var(--text-muted);
}

.memory-her {
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border-left: 3px solid var(--text-primary);
}

.features-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 2rem;
}

/* ===================================
   DATA SOURCES SECTION
   =================================== */
.data-sources {
    padding: 120px 24px;
    background: var(--bg-secondary);
}

.sources-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 4rem;
}

.source-card {
    padding: 2rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.source-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.source-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-light);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

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

.source-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.source-card:hover .source-icon {
    background: var(--text-primary);
    transform: scale(1.1);
}

.source-card:hover .source-icon svg {
    color: var(--bg-primary);
}

.source-icon svg {
    width: 28px;
    height: 28px;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.source-card h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.source-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.stats-banner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.stats-banner p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.stats-banner strong {
    color: var(--text-primary);
}

.stats-highlight {
    font-size: 1.2rem !important;
    color: var(--text-primary) !important;
}

.stats-highlight span {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    margin: 0 4px;
}

/* ===================================
   REALTIME SECTION
   =================================== */
.realtime {
    padding: 120px 24px;
    position: relative;
    overflow: hidden;
}

/* Animated lines background */
.realtime::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 100px,
            rgba(255,255,255,0.02) 100px,
            rgba(255,255,255,0.02) 101px
        );
    animation: scanlines 10s linear infinite;
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(100px); }
}

.reaction-time {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 12px;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.time-value {
    font-size: 5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    animation: numberGlow 2s ease-in-out infinite;
}

@keyframes numberGlow {
    0%, 100% { text-shadow: 0 0 20px rgba(255,255,255,0.3); }
    50% { text-shadow: 0 0 40px rgba(255,255,255,0.6); }
}

.time-unit {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.time-desc {
    width: 100%;
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
}

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

.intervention-card {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.intervention-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--text-primary), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.intervention-card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
}

.intervention-card:hover::after {
    opacity: 1;
}

.intervention-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

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

.intervention-card h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.intervention-trigger {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-style: italic;
}

.intervention-response {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 6px;
    border-left: 2px solid var(--text-primary);
}

/* ===================================
   ECOSYSTEM SECTION
   =================================== */
.ecosystem {
    padding: 120px 24px;
    background: var(--bg-secondary);
}

.ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 3rem;
}

.ecosystem-card {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.ecosystem-card.featured {
    border-color: var(--text-primary);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(255,255,255,0.05) 100%);
}

.ecosystem-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--text-primary);
    color: var(--bg-primary);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ecosystem-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-light);
}

.ecosystem-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: var(--bg-secondary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.ecosystem-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.ecosystem-card > p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.ecosystem-detail {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.ecosystem-price {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.ecosystem-price span {
    font-weight: 700;
    color: var(--text-primary);
}

.integrations {
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.integrations h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.integrations p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ===================================
   PRICING SECTION
   =================================== */
.pricing {
    padding: 120px 24px;
    position: relative;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    padding: 3rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card.featured {
    border-color: var(--text-primary);
    transform: scale(1.02);
}

.pricing-card:hover {
    border-color: var(--border-light);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-primary);
    color: var(--bg-primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.price {
    text-align: center;
    margin-bottom: 0.5rem;
}

.price .amount {
    font-size: 3.5rem;
    font-weight: 800;
}

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

.pricing-tagline {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-color);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.pricing-features li.included {
    color: var(--text-primary);
}

.pricing-features li.included svg {
    color: var(--text-primary);
}

.pricing-features li.excluded {
    color: var(--text-muted);
}

.pricing-features li.excluded svg {
    color: var(--text-muted);
}

.pricing-features li.detail {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.pricing-card .btn {
    width: 100%;
}

/* ===================================
   PRIVACY SECTION
   =================================== */
.privacy {
    padding: 120px 24px;
    background: var(--bg-secondary);
}

.privacy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 3rem;
}

.privacy-item {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.privacy-item:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
}

.privacy-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.privacy-icon svg {
    width: 28px;
    height: 28px;
    color: var(--text-primary);
}

.privacy-item h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.privacy-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.privacy-quote {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-card);
}

.privacy-quote p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* ===================================
   BETA SECTION
   =================================== */
.beta {
    padding: 120px 24px;
    position: relative;
    overflow: hidden;
}

/* Animated gradient background */
.beta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg at 50% 50%,
        transparent 0deg,
        rgba(255,255,255,0.02) 60deg,
        transparent 120deg);
    animation: conicRotate 20s linear infinite;
}

@keyframes conicRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.beta-form {
    max-width: 500px;
    margin: 0 auto 4rem;
    padding: 3rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.1);
}

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

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23666' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 24px;
}

.form-group select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.beta-form .btn {
    width: 100%;
    margin-top: 0.5rem;
}

.form-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.beta-success {
    max-width: 500px;
    margin: 0 auto 4rem;
    padding: 3rem;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--text-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: successPop 0.5s ease;
}

@keyframes successPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.success-icon svg {
    width: 40px;
    height: 40px;
    color: var(--bg-primary);
}

.beta-success h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.beta-success p {
    color: var(--text-secondary);
}

.availability {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.availability h4 {
    text-align: center;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

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

.availability-item {
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.availability-item .label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.availability-item .value {
    font-size: 0.9rem;
    color: var(--text-primary);
    text-align: right;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    padding: 80px 24px 40px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

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

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 6px 0;
    transition: color 0.3s ease;
}

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

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

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

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

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

/* ===================================
   SCROLL ANIMATIONS
   =================================== */
.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Stagger children animations */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.6s; }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.7s; }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.8s; }

.stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   GEOLOCATION SECTION
   =================================== */
.geolocation {
    padding: 120px 24px;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.geolocation::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255,255,255,0.02) 0%, transparent 60%);
    pointer-events: none;
}

.geo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 4rem;
}

.geo-card {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.geo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--text-primary), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.geo-card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
}

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

.geo-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.geo-card:hover .geo-icon {
    background: var(--text-primary);
    transform: scale(1.1);
}

.geo-card:hover .geo-icon svg {
    color: var(--bg-primary);
}

.geo-icon svg {
    width: 28px;
    height: 28px;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.geo-card h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

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

.geo-example {
    max-width: 700px;
    margin: 0 auto;
}

/* ===================================
   EMERGENCY SECTION
   =================================== */
.emergency {
    padding: 120px 24px;
    position: relative;
    overflow: hidden;
}

/* Animated red pulse background */
.emergency::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center top, rgba(255,50,50,0.03) 0%, transparent 50%);
    pointer-events: none;
    animation: emergencyPulse 4s ease-in-out infinite;
}

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

.emergency-hero {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto 4rem;
}

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

.pulse-emergency {
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emergency-icon-main {
    width: 80px;
    height: 80px;
    color: var(--text-primary);
    position: relative;
    z-index: 2;
    animation: emergencyIconPulse 2s ease-in-out infinite;
}

@keyframes emergencyIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.pulse-ring-emergency {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    animation: pulseRingEmergency 2s ease-out infinite;
}

.pulse-ring-emergency.delay-1 {
    animation-delay: 0.5s;
}

.pulse-ring-emergency.delay-2 {
    animation-delay: 1s;
}

@keyframes pulseRingEmergency {
    0% {
        width: 80px;
        height: 80px;
        opacity: 1;
    }
    100% {
        width: 200px;
        height: 200px;
        opacity: 0;
    }
}

.emergency-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.emergency-content > p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.emergency-list {
    list-style: none;
}

.emergency-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.emergency-list li svg {
    width: 20px;
    height: 20px;
    color: var(--text-primary);
    flex-shrink: 0;
}

.emergency-scenarios {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 3rem;
}

.emergency-card {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.emergency-card.critical {
    border-color: rgba(255,100,100,0.3);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(255,50,50,0.05) 100%);
}

.emergency-card.critical::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ff4444, #ff6666, #ff4444);
    animation: criticalGlow 2s ease-in-out infinite;
}

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

.emergency-card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
}

.emergency-card-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.emergency-card.critical .emergency-card-icon {
    background: rgba(255,68,68,0.15);
}

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

.emergency-card.critical .emergency-card-icon svg {
    color: #ff6666;
}

.emergency-card h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.emergency-trigger {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.emergency-response {
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border-left: 3px solid var(--text-primary);
}

.emergency-card.critical .emergency-response {
    border-left-color: #ff4444;
}

.emergency-response p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.her-badge.urgent {
    background: linear-gradient(135deg, #ff4444, #ff6666);
    animation: urgentPulse 1.5s ease-in-out infinite;
}

@keyframes urgentPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,68,68,0.4); }
    50% { box-shadow: 0 0 0 8px rgba(255,68,68,0); }
}

.emergency-note {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    max-width: 700px;
    margin: 0 auto;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.emergency-note svg {
    width: 24px;
    height: 24px;
    color: var(--text-muted);
    flex-shrink: 0;
    margin-top: 2px;
}

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

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

    .hero-content {
        order: 1;
    }

    .hero-visual {
        order: 0;
        margin-bottom: 2rem;
    }

    .hero-illustration {
        width: 300px;
        height: 300px;
    }

    .hero-description {
        margin: 0 auto 2rem;
    }

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

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

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

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

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

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

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

    .emergency-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-primary);
        border-top: 1px solid var(--border-color);
        padding: 24px;
        flex-direction: column;
        gap: 16px;
    }

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

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

    .taglines {
        flex-direction: column;
        gap: 1.5rem;
    }

    .sources-grid,
    .interventions-grid,
    .ecosystem-grid,
    .pricing-grid,
    .privacy-grid,
    .geo-grid,
    .emergency-scenarios {
        grid-template-columns: 1fr;
    }

    .emergency-list {
        text-align: left;
    }

    .pricing-card.featured {
        transform: none;
    }

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

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

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }

    .reaction-time {
        flex-direction: column;
        text-align: center;
    }

    .time-value {
        font-size: 4rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 16px 60px;
    }

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

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

    .quote-box {
        padding: 1.5rem;
    }

    .beta-form {
        padding: 2rem 1.5rem;
    }

    .pricing-card {
        padding: 2rem;
    }
}

/* ===================================
   CUSTOM SCROLLBAR
   =================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ===================================
   SELECTION
   =================================== */
::selection {
    background: var(--text-primary);
    color: var(--bg-primary);
}
