/* ========================================
   Advocate Website Styles
   Color Palette from Logo:
   - Magenta/Pink: #E91E8C
   - Purple: #9C27B0
   - Orange: #FF6B35
   - Amber/Yellow: #FFB347, #FFC107
   - Cyan: #00BCD4
   - Blue: #2196F3
   ======================================== */

:root {
    /* Primary Colors from Logo */
    --magenta: #E91E8C;
    --purple: #9C27B0;
    --orange: #FF6B35;
    --amber: #FFB347;
    --yellow: #FFC107;
    --cyan: #00BCD4;
    --blue: #2196F3;
    --green: #4CAF50;

    /* Neutrals */
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #E91E8C 0%, #9C27B0 50%, #2196F3 100%);
    --gradient-hero: linear-gradient(135deg, #E91E8C 0%, #9C27B0 25%, #2196F3 50%, #00BCD4 75%, #FFB347 100%);
    --gradient-warm: linear-gradient(135deg, #FF6B35 0%, #FFB347 100%);
    --gradient-cool: linear-gradient(135deg, #00BCD4 0%, #2196F3 100%);
    --gradient-dark: linear-gradient(135deg, #1F2937 0%, #374151 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;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 40px rgba(233, 30, 140, 0.3);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

/* ========================================
   Reset & Base
   ======================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

/* ========================================
   Utilities
   ======================================== */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

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

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

.section-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: var(--space-sm);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
}

.section-header.light h2,
.section-header.light p {
    color: var(--white);
}

.section-header.light p {
    opacity: 0.9;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(233, 30, 140, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 30, 140, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--gray-700);
    border: 2px solid var(--gray-200);
}

.btn-secondary:hover {
    border-color: var(--magenta);
    color: var(--magenta);
}

.btn-nav {
    background: var(--white);
    color: var(--magenta);
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

.btn-nav:hover {
    background: var(--gray-50);
}

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

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

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

.nav-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.nav-title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--white);
    transition: color var(--transition-base);
}

.navbar.scrolled .nav-title {
    color: var(--gray-800);
}

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

.nav-links a:not(.btn) {
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    transition: color var(--transition-fast);
}

.navbar.scrolled .nav-links a:not(.btn) {
    color: var(--gray-600);
}

.nav-links a:not(.btn):hover {
    color: var(--white);
}

.navbar.scrolled .nav-links a:not(.btn):hover {
    color: var(--magenta);
}

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

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all var(--transition-fast);
}

.navbar.scrolled .mobile-menu-btn span {
    background: var(--gray-800);
}

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

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px var(--space-lg) 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    z-index: -2;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 107, 53, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 188, 212, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(156, 39, 176, 0.2) 0%, transparent 60%);
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.5px;
    margin-bottom: var(--space-lg);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: var(--space-lg);
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--white) 0%, var(--amber) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto var(--space-2xl);
    line-height: 1.7;
}

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

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-3xl);
    flex-wrap: wrap;
    padding-bottom: 80px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    z-index: 1;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: auto;
}

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

.features {
    padding: var(--space-4xl) 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
}

.feature-card {
    padding: var(--space-xl);
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--gray-100);
    transition: all var(--transition-base);
    opacity: 0;
    transform: translateY(20px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
}

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

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-sm);
}

.feature-card p {
    color: var(--gray-500);
    line-height: 1.7;
}

/* ========================================
   Health Tracking Section
   ======================================== */

.health-tracking {
    padding: var(--space-4xl) 0;
    background: var(--gray-50);
}

.feature-detail {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3xl);
    margin-bottom: var(--space-4xl);
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.feature-detail.visible {
    opacity: 1;
    transform: translateX(0);
}

.feature-detail.reverse {
    transform: translateX(30px);
}

.feature-detail.reverse.visible {
    transform: translateX(0);
}

.feature-detail:last-child {
    margin-bottom: 0;
}

.feature-detail-content {
    flex: 1;
    max-width: 700px;
    margin: 0 auto;
}

.feature-detail-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-lg);
}

.feature-detail h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: var(--space-md);
}

.feature-detail-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

.feature-list {
    display: grid;
    gap: var(--space-sm);
}

.feature-list li {
    position: relative;
    padding-left: var(--space-xl);
    color: var(--gray-600);
    line-height: 1.6;
}

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

/* ========================================
   Care Team Section
   ======================================== */

.care-team {
    padding: var(--space-4xl) 0;
    background: var(--white);
}

.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
}

.role-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: var(--space-xl);
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-base);
}

.role-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.role-card:hover {
    box-shadow: var(--shadow-md);
}

.role-card.primary {
    border-color: var(--magenta);
    background: linear-gradient(135deg, rgba(233, 30, 140, 0.03), rgba(156, 39, 176, 0.03));
}

.role-badge {
    position: absolute;
    top: -10px;
    left: var(--space-lg);
    background: var(--gradient-primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-sm);
    margin-top: var(--space-sm);
}

.role-card > p {
    color: var(--gray-500);
    font-size: 0.9375rem;
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

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

.role-permissions li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.875rem;
    color: var(--gray-600);
}

.role-permissions .check {
    color: var(--green);
    font-weight: 700;
}

.role-permissions .partial {
    color: var(--amber);
    font-weight: 700;
}

.role-permissions .no {
    color: var(--gray-400);
    font-weight: 700;
}

.permissions-highlight {
    background: var(--gray-50);
    border-radius: 16px;
    padding: var(--space-2xl);
    text-align: center;
}

.permissions-highlight h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-sm);
}

.permissions-highlight > p {
    color: var(--gray-500);
    margin-bottom: var(--space-lg);
}

.permission-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
}

.permission-tag {
    background: var(--white);
    border: 1px solid var(--gray-200);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--gray-700);
    font-weight: 500;
}

/* ========================================
   AI Assistant Section
   ======================================== */

.ai-assistant {
    padding: var(--space-4xl) 0;
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

.ai-assistant::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 0% 100%, rgba(233, 30, 140, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 100% 0%, rgba(33, 150, 243, 0.2) 0%, transparent 50%);
}

.ai-demo {
    max-width: 700px;
    margin: 0 auto var(--space-3xl);
    position: relative;
}

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

.ai-command {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.command-bubble {
    padding: var(--space-lg);
    border-radius: 16px;
    max-width: 90%;
}

.command-bubble.user {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    align-self: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.command-bubble.ai {
    background: var(--gradient-primary);
    color: var(--white);
    align-self: flex-end;
}

.command-bubble .speaker {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-xs);
    opacity: 0.8;
}

.ai-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-xl);
    position: relative;
}

.ai-feature {
    text-align: center;
}

.ai-feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-md);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.ai-feature h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-sm);
}

.ai-feature p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ========================================
   Summaries Section
   ======================================== */

.summaries-section {
    padding: var(--space-4xl) 0;
    background: var(--white);
}

.summaries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.summary-card {
    background: var(--gray-50);
    border-radius: 16px;
    padding: var(--space-2xl);
    text-align: center;
    transition: all var(--transition-base);
}

.summary-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.summary-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.summary-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-sm);
}

.summary-card > p {
    color: var(--gray-500);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.summary-card ul {
    text-align: left;
}

.summary-card li {
    padding: var(--space-sm) 0;
    padding-left: var(--space-lg);
    position: relative;
    color: var(--gray-600);
    border-bottom: 1px solid var(--gray-200);
}

.summary-card li:last-child {
    border-bottom: none;
}

.summary-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--magenta);
}

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

.security {
    padding: var(--space-4xl) 0;
    background: var(--gray-900);
    position: relative;
}

.security::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(233, 30, 140, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(0, 188, 212, 0.1) 0%, transparent 40%);
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
    position: relative;
}

.security-item {
    text-align: center;
    padding: var(--space-xl);
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-base);
}

.security-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.security-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-md);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan);
}

.security-item h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-sm);
}

.security-item p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.compliance-badges {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
    position: relative;
}

.badge {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    color: var(--white);
    font-weight: 600;
}

.badge-icon {
    font-size: 1.25rem;
}

/* ========================================
   Accessibility Section
   ======================================== */

.accessibility {
    padding: var(--space-4xl) 0;
    background: var(--gray-50);
}

.accessibility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.accessibility-card {
    background: var(--white);
    border-radius: 16px;
    padding: var(--space-2xl);
    box-shadow: var(--shadow-md);
}

.accessibility-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-lg);
}

.accessibility-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.accessibility-list li {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    color: var(--gray-600);
}

.acc-icon {
    font-size: 1.25rem;
    width: 32px;
    text-align: center;
}

.accessibility-card.languages {
    background: var(--gradient-primary);
    color: var(--white);
}

.accessibility-card.languages h3 {
    color: var(--white);
}

.language-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.language {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.flag {
    font-size: 2rem;
}

.language span:last-child {
    font-weight: 600;
}

.language-note {
    font-size: 0.875rem;
    opacity: 0.9;
    text-align: center;
}

/* ========================================
   How It Works Section
   ======================================== */

.how-it-works {
    padding: var(--space-4xl) 0;
    background: var(--white);
}

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    text-align: center;
    padding: var(--space-xl);
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-base);
}

.step.visible {
    opacity: 1;
    transform: translateY(0);
}

.step-number {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--space-lg);
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
}

.step h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-sm);
}

.step p {
    color: var(--gray-500);
    line-height: 1.7;
}

.step-connector {
    display: none;
    width: 60px;
    height: 24px;
    margin-top: 30px;
    position: relative;
}

.step-connector::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 12px;
    height: 2px;
    background: linear-gradient(90deg, var(--magenta), var(--cyan));
    transform: translateY(-50%);
}

.step-connector::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid var(--cyan);
    transform: translateY(-50%);
}

@media (min-width: 900px) {
    .step-connector {
        display: block;
    }
}

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

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

.cta-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    z-index: -1;
}

.cta-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 90%, rgba(255, 179, 71, 0.3) 0%, transparent 40%),
        radial-gradient(circle at 90% 10%, rgba(0, 188, 212, 0.3) 0%, transparent 40%);
}

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

.cta-content h2 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: var(--space-md);
}

.cta-content > p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-2xl);
}

.cta-info {
    text-align: center;
}

.coming-soon-badge {
    display: inline-block;
    margin-bottom: var(--space-2xl);
    position: relative;
}

.coming-soon-text {
    display: inline-block;
    font-size: 2rem;
    font-weight: 900;
    color: var(--white);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(20px);
    padding: 1rem 3rem;
    border-radius: 60px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 4px;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.3),
            0 0 20px rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.3),
            0 0 40px rgba(255, 255, 255, 0.2);
    }
}

.app-stores {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-md);
}

.store-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all var(--transition-base);
    cursor: default;
    opacity: 0.8;
}

.store-badge:hover {
    opacity: 1;
}

.store-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.store-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}

.store-label {
    font-size: 0.5rem;
    opacity: 0.7;
    letter-spacing: 0.3px;
}

.store-name {
    font-size: 0.75rem;
    font-weight: 600;
}

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

.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: var(--space-3xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid var(--gray-800);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

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

.footer-logo span {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--white);
}

.footer-brand p {
    max-width: 300px;
    line-height: 1.7;
}

.footer-company {
    margin-top: var(--space-md);
    font-size: 0.875rem;
    color: var(--gray-500);
}

.footer-links {
    display: flex;
    gap: var(--space-3xl);
}

.footer-column h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-lg);
}

.footer-column a {
    display: block;
    font-size: 0.9375rem;
    color: var(--gray-400);
    margin-bottom: var(--space-sm);
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: var(--space-xl);
    text-align: center;
    font-size: 0.875rem;
}

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

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px var(--space-xl) var(--space-xl);
        gap: var(--space-lg);
        box-shadow: var(--shadow-xl);
        transition: right var(--transition-base);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a:not(.btn) {
        color: var(--gray-700);
        font-size: 1.125rem;
    }

    .nav-links .btn-nav {
        width: 100%;
        justify-content: center;
        margin-top: var(--space-md);
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 1001;
    }

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

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

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

    .hero {
        padding-top: 100px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

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

    .hero-stats {
        gap: var(--space-xl);
    }

    .stat-number {
        font-size: 2rem;
    }

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

    .feature-detail {
        flex-direction: column;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .footer-links {
        flex-wrap: wrap;
        gap: var(--space-2xl);
    }

    .footer-column {
        min-width: 140px;
    }
}

@media (max-width: 480px) {
    .form-group {
        flex-direction: column;
    }

    .form-group input[type="email"],
    .form-group .btn-primary {
        width: 100%;
    }

    .command-bubble {
        max-width: 100%;
    }

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

/* ========================================
   Animation Utilities
   ======================================== */

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

.feature-card,
.role-card,
.security-item,
.step {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-detail {
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* ========================================
   Legal Pages (Privacy, Terms, HIPAA)
   ======================================== */

.legal-hero {
    background: var(--gradient-primary);
    padding: 160px var(--space-lg) var(--space-3xl);
    text-align: center;
    position: relative;
}

.legal-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 107, 53, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 188, 212, 0.2) 0%, transparent 50%);
}

.legal-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    color: var(--white);
    margin-bottom: var(--space-sm);
    position: relative;
}

.legal-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
}

.legal-content {
    padding: var(--space-4xl) var(--space-lg);
    background: var(--white);
}

.legal-body {
    max-width: 800px;
    margin: 0 auto;
}

.legal-body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-top: var(--space-3xl);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--gray-100);
}

.legal-body h2:first-of-type {
    margin-top: 0;
}

.legal-body h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
}

.legal-body h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.legal-body p {
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.legal-body ul,
.legal-body ol {
    margin-bottom: var(--space-lg);
    padding-left: var(--space-xl);
}

.legal-body ul {
    list-style-type: disc;
}

.legal-body ol {
    list-style-type: decimal;
}

.legal-body li {
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: var(--space-sm);
    padding-left: var(--space-sm);
}

.legal-body li strong {
    color: var(--gray-800);
}

/* Nested lists */
.legal-body ul ul,
.legal-body ol ul,
.legal-body ul ol,
.legal-body ol ol {
    margin-top: var(--space-sm);
    margin-bottom: var(--space-sm);
    padding-left: var(--space-xl);
}

.legal-body ul ul {
    list-style-type: circle;
}

.legal-body ul ul ul {
    list-style-type: square;
}

/* Highlight boxes */
.legal-highlight {
    background: linear-gradient(135deg, rgba(233, 30, 140, 0.05), rgba(156, 39, 176, 0.05));
    border-left: 4px solid var(--magenta);
    padding: var(--space-lg) var(--space-xl);
    margin: var(--space-xl) 0;
    border-radius: 0 12px 12px 0;
}

.legal-highlight p {
    margin-bottom: 0;
    color: var(--gray-700);
}

.legal-highlight p:not(:last-child) {
    margin-bottom: var(--space-md);
}

/* Warning/Critical boxes */
.legal-warning {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.08), rgba(255, 179, 71, 0.08));
    border-left: 4px solid var(--orange);
    padding: var(--space-lg) var(--space-xl);
    margin: var(--space-xl) 0;
    border-radius: 0 12px 12px 0;
}

.legal-warning p {
    margin-bottom: 0;
    color: var(--gray-700);
}

/* Success/Commitment boxes */
.legal-commitment {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.08), rgba(139, 195, 74, 0.08));
    border-left: 4px solid var(--green);
    padding: var(--space-lg) var(--space-xl);
    margin: var(--space-xl) 0;
    border-radius: 0 12px 12px 0;
}

.legal-commitment p {
    margin-bottom: 0;
    color: var(--gray-700);
}

/* Contact info styling */
.contact-info {
    background: var(--gray-50);
    padding: var(--space-xl);
    border-radius: 12px;
    margin: var(--space-lg) 0;
}

.contact-info p {
    margin-bottom: var(--space-sm);
    color: var(--gray-600);
}

.contact-info p:last-child {
    margin-bottom: 0;
}

.contact-info strong {
    color: var(--gray-800);
}

/* Table styling for legal pages */
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-xl) 0;
    font-size: 0.9375rem;
}

.legal-table th,
.legal-table td {
    padding: var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.legal-table th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-800);
}

.legal-table td {
    color: var(--gray-600);
}

/* Effective date badge */
.legal-effective-date {
    display: inline-block;
    background: var(--gray-100);
    padding: var(--space-sm) var(--space-md);
    border-radius: 6px;
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: var(--space-xl);
}

/* Quick summary section */
.legal-summary {
    background: var(--gray-50);
    padding: var(--space-xl);
    border-radius: 12px;
    margin-bottom: var(--space-3xl);
}

.legal-summary h3 {
    margin-top: 0;
    color: var(--gray-900);
}

.legal-summary ul {
    margin-bottom: 0;
}

/* Two-column layout for certain sections */
.legal-two-column {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin: var(--space-xl) 0;
}

.legal-column {
    background: var(--gray-50);
    padding: var(--space-xl);
    border-radius: 12px;
}

.legal-column h4 {
    margin-top: 0;
    color: var(--gray-900);
}

/* Links in legal content */
.legal-body a {
    color: var(--magenta);
    text-decoration: underline;
    transition: color var(--transition-fast);
}

.legal-body a:hover {
    color: var(--purple);
}

/* Last updated badge */
.legal-last-updated {
    text-align: center;
    padding: var(--space-lg);
    background: var(--gray-50);
    border-radius: 8px;
    margin-top: var(--space-3xl);
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Responsive adjustments for legal pages */
@media (max-width: 768px) {
    .legal-hero {
        padding: 120px var(--space-md) var(--space-2xl);
    }

    .legal-content {
        padding: var(--space-2xl) var(--space-md);
    }

    .legal-body h2 {
        font-size: 1.3rem;
    }

    .legal-body h3 {
        font-size: 1.1rem;
    }

    .legal-highlight,
    .legal-warning,
    .legal-commitment {
        padding: var(--space-md);
    }

    .legal-two-column {
        grid-template-columns: 1fr;
    }
}
