/* ==========================================================================
   Design Tokens & Variables (Premium True Black Theme)
   ========================================================================== */
:root {
    --bg-darker: #000000; /* True Pitch Black */
    --bg-dark: #080808;   /* Very deep obsidian */
    --bg-card: rgba(18, 18, 18, 0.65);
    --border-color: rgba(255, 255, 255, 0.06);
    
    --primary: #0071e3; /* Apple Blue */
    --primary-glow: rgba(0, 113, 227, 0.35);
    --secondary: #06b6d4; /* Cyan */
    --accent: #8b5cf6; /* Purple */
    
    --text-primary: #f5f5f7; /* Apple Off-White */
    --text-secondary: #86868b; /* Apple Gray */
    --text-muted: #424245;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    
    --shadow-premium: 0 30px 60px rgba(0, 0, 0, 0.8);
    --shadow-glow: 0 0 30px rgba(0, 113, 227, 0.25);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-darker);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Ambient Radial Glows (Faint, high-end look) */
.glow-bg {
    position: absolute;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    filter: blur(160px);
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: screen;
}

.glow-1 {
    top: -10vw;
    left: -10vw;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
}

.glow-2 {
    top: 40vh;
    right: -10vw;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

.glow-3 {
    bottom: 10vh;
    left: 10vw;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.03em;
}

/* ==========================================================================
   Global Section Headers (Center Aligned)
   ========================================================================== */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 56px auto;
}

.section-header h2 {
    font-size: 38px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-header p {
    color: var(--text-secondary);
    font-size: 16.5px;
    line-height: 1.6;
}




/* ==========================================================================
   Navigation Bar (Glassmorphic)
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-img {
    height: 32px;
    width: 32px;
    object-fit: contain;
    border-radius: 8px;
}

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

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

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

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

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
}

.nav-cta {
    background: #ffffff;
    color: #000000;
}

.nav-cta:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.02);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    padding: 180px 24px 80px 24px;
    text-align: center;
    z-index: 1;
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
    animation: pulse 1.8s infinite;
}

.hero h1 {
    font-size: 64px;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 800;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #a1a1a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 72px;
}

.primary-cta {
    background: var(--primary);
    color: #fff;
    padding: 14px 32px;
    font-size: 15px;
    border-radius: 30px;
}

.primary-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 113, 227, 0.4);
}

.secondary-cta {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 14px 32px;
    font-size: 15px;
    border-radius: 30px;
}

.secondary-cta:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 24px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   Product Showcase Mockup Section
   ========================================================================== */
.showcase-section {
    padding: 80px 24px;
    position: relative;
    z-index: 1;
    background: #000;
}

.showcase-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 48px;
}

/* iPad Premium Mockup Bezel */
.ipad-device-mockup {
    width: 860px;
    max-width: 100%;
    background: #111111;
    border-radius: 44px;
    padding: 24px;
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.95),
                0 0 0 1.5px rgba(255, 255, 255, 0.08) inset,
                0 0 100px rgba(0, 113, 227, 0.15);
    position: relative;
}

.ipad-notch {
    position: absolute;
    top: 50%;
    left: 4px;
    transform: translateY(-50%);
    width: 4px;
    height: 60px;
    background: #000;
    border-radius: 0 4px 4px 0;
}

.ipad-camera {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #090d16;
    border-radius: 50%;
    border: 2px solid #222;
}

.ipad-screen-mockup {
    width: 100%;
    height: 100%;
    background-color: #000;
    border-radius: 26px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0,0,0,0.8);
    display: flex;
}

.app-screenshot-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   Patient Gaze Features Section
   ========================================================================== */
.features-section {
    padding: 120px 24px;
    position: relative;
    z-index: 1;
}

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

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 32px;
    transition: var(--transition-smooth);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(24, 24, 24, 0.8);
    box-shadow: var(--shadow-premium);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

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

/* ==========================================================================
   Caregiver Portal Section
   ========================================================================== */
.caregiver-section {
    padding: 120px 24px;
    background: #040404;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.caregiver-split {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.badge-indigo {
    background: rgba(139, 92, 246, 0.08);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.15);
}

.caregiver-info h2 {
    font-size: 38px;
    margin: 16px 0 20px 0;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 17px;
    margin-bottom: 36px;
    line-height: 1.5;
}

.caregiver-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.list-item {
    display: flex;
    gap: 18px;
}

.item-icon {
    font-size: 24px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.list-item h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.list-item p {
    color: var(--text-secondary);
    font-size: 13.5px;
}

/* Medical ID Card Mockup */
.med-id-card {
    background: #0c0c0e;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
    position: relative;
    overflow: hidden;
}

.med-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 18px;
    margin-bottom: 18px;
}

.med-header h3 {
    font-size: 18px;
    color: var(--text-primary);
}

.med-badge {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
}

.med-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.med-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.med-field label {
    font-size: 9.5px;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.05em;
}

.med-field span {
    font-size: 13.5px;
    color: var(--text-primary);
}

.med-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.text-danger {
    color: #ef4444 !important;
    font-weight: 600;
}

.share-btn {
    width: 100%;
    margin-top: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 13.5px;
    padding: 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.share-btn:hover {
    background: #ffffff;
    color: #000000;
}

.copy-alert {
    position: absolute;
    bottom: 28px;
    left: 28px;
    right: 28px;
    background: var(--primary);
    color: #fff;
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    font-size: 12.5px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition-smooth);
    pointer-events: none;
}

.copy-alert.show {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Security & Privacy Section
   ========================================================================== */
.security-section {
    padding: 120px 24px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.security-container {
    max-width: 1000px;
    margin: 0 auto;
}

.security-icon-box {
    font-size: 48px;
    margin-bottom: 24px;
}

.security-section h2 {
    font-size: 38px;
    margin-bottom: 16px;
}

.security-section > p {
    color: var(--text-secondary);
    font-size: 17px;
    max-width: 600px;
    margin: 0 auto 64px auto;
}

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

.sec-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 28px;
    text-align: left;
}

.sec-card h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.sec-card p {
    color: var(--text-secondary);
    font-size: 13.5px;
    line-height: 1.6;
}

/* ==========================================================================
   Download CTAs
   ========================================================================== */
.download-section {
    padding: 120px 24px;
    background: linear-gradient(0deg, var(--bg-darker) 0%, rgba(255, 255, 255, 0.02) 100%);
    text-align: center;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.download-container {
    max-width: 600px;
    margin: 0 auto;
}

.download-container h2 {
    font-size: 38px;
    margin-bottom: 16px;
}

.download-container p {
    color: var(--text-secondary);
    font-size: 17px;
    margin-bottom: 36px;
}

.cta-group {
    display: flex;
    justify-content: center;
}

/* App Store Badge styling */
.app-store-badge {
    background: #000;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    transition: var(--transition-fast);
}

.app-store-badge:hover {
    border-color: #ffffff;
    background: #111;
    transform: translateY(-2px);
}

.badge-icon {
    font-size: 28px;
}

.badge-text-wrapper {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.badge-sub {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.badge-main {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
    padding: 48px 24px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    position: relative;
    z-index: 1;
}

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

.footer-link-btn {
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    text-decoration: underline;
    transition: var(--transition-fast);
    padding: 0;
    margin-left: 6px;
}

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

/* ==========================================================================
   Dedicated Privacy Policy Page
   ========================================================================== */
.policy-page {
    position: relative;
    z-index: 1;
    padding: 160px 24px 60px 24px;
}

.policy-hero {
    max-width: 720px;
    margin: 0 auto 48px auto;
    text-align: center;
}

.policy-hero h1 {
    font-size: 48px;
    margin: 20px 0 12px 0;
}

.policy-updated {
    color: var(--text-muted);
    font-size: 13px;
}

.policy-content {
    max-width: 680px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 56px 64px;
    text-align: left;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

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

.policy-content h2 {
    font-size: 21px;
    color: var(--text-primary);
    margin: 0 0 16px 0;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.policy-content h2:first-of-type {
    border-top: none;
    padding-top: 0;
}

.policy-content p {
    color: var(--text-secondary);
    font-size: 15.5px;
    line-height: 1.75;
    margin-bottom: 18px;
}

.policy-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.policy-content li {
    position: relative;
    padding-left: 22px;
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 10px;
    line-height: 1.7;
}

.policy-content li::before {
    content: "•";
    color: var(--primary);
    font-size: 18px;
    position: absolute;
    left: 6px;
    top: -2px;
}

.policy-highlight {
    background: rgba(255, 255, 255, 0.015);
    border-left: 3px solid var(--primary);
    padding: 18px 22px;
    border-radius: 0 14px 14px 0;
    margin: 24px 0;
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.policy-link {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.policy-link:hover {
    color: #fff;
    text-decoration: underline;
}

.policy-back-wrap {
    max-width: 680px;
    margin: 32px auto 0 auto;
    text-align: left;
}

.policy-back-link {
    color: var(--text-secondary);
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition-fast);
}

.policy-back-link:hover {
    color: var(--text-primary);
}


/* ==========================================================================
   Animations & Media Queries
   ========================================================================== */
@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(0.95);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Responsive Rules */
@media (max-width: 1024px) {
    .ipad-device-mockup {
        padding: 16px;
    }
    
    .features-grid, .security-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .caregiver-split {
        grid-template-columns: 1fr;
        gap: 56px;
    }
}

@media (max-width: 768px) {
    .navbar {
        height: 64px;
    }
    
    .nav-links {
        display: none; /* Hide links on mobile */
    }
    
    .hero h1 {
        font-size: 44px;
    }
    
    .hero-subtitle {
        font-size: 17px;
    }
    
    .ipad-device-mockup {
        padding: 8px;
        border-radius: 20px;
    }
    
    .features-grid, .security-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .policy-page {
        padding: 120px 16px 60px 16px;
    }

    .policy-hero h1 {
        font-size: 34px;
    }

    .policy-content {
        padding: 32px 24px;
        border-radius: 20px;
    }
}
