:root {
    /* Colors from AppTheme.swift */
    --primary-color: #7E57C2; /* soft purple */
    --primary-dark: #5E35B1; /* darker purple for depth */
    --primary-light: #B39DDB; /* lighter purple for accents */
    --secondary-color: #90CAF9; /* soft blue */
    --accent-color: #4FC3F7; /* light blue accent */
    
    /* Light theme defaults (can be overridden by dark theme) */
    --background-color: #F8F9FC; /* off-white with slight blue tint */
    --surface-color: #FFFFFF;
    --card-bg-color: var(--surface-color);
    --text-primary-color: #202842; /* deep blue-gray */
    --text-secondary-color: #6B7280; /* mid gray */
    --header-bg-color: rgba(255, 255, 255, 0.95);
    --footer-bg-color: #202842;
    --footer-text-color: rgba(255, 255, 255, 0.9);
    --footer-text-secondary-color: rgba(255, 255, 255, 0.7);
    --footer-link-color: rgba(255, 255, 255, 0.8);
    --footer-link-hover-color: var(--secondary-color);
    --footer-bottom-text-color: rgba(255, 255, 255, 0.6);
    --input-bg-color: rgba(0, 0, 0, 0.02);
    --input-border-color: rgba(0, 0, 0, 0.08);
    --input-focus-bg-color: rgba(126, 87, 194, 0.03);
    --input-focus-shadow-color: rgba(126, 87, 194, 0.1);
    --placeholder-color: var(--text-secondary-color);
    --social-icon-bg: rgba(255, 255, 255, 0.1);
    --social-icon-color: white;
    --social-icon-hover-bg: var(--primary-color);
    --social-icon-hover-color: white;
    --legal-container-bg: var(--surface-color);
    --legal-border-color: rgba(0, 0, 0, 0.05);
    --cta-card-bg: var(--primary-gradient);
    --cta-card-text-color: white;
    --cta-card-secondary-text-color: rgba(255, 255, 255, 0.9);
    --cta-button-bg: white;
    --cta-button-text-color: var(--primary-color);
    --shadow-header: var(--shadow-small);
    --shadow-card: var(--shadow-medium);
    --shadow-card-hover: var(--shadow-large);
    --shadow-testimonial: var(--shadow-medium);

    /* Severity colors */
    --severity-low: #A5D6A7; /* soft green */
    --severity-medium: #FFD54F; /* soft amber */
    --severity-high: #EF9A9A; /* soft red */
    
    /* Additional feedback colors */
    --success-color: #81C784; /* soft green */
    --warning-color: #FFB74D; /* soft orange */
    --error-color: #E57373; /* soft red */
    
    /* Gradients */
    --primary-gradient: linear-gradient(135deg, #9C6EEE, #7E57C2);
    --secondary-gradient: linear-gradient(135deg, #90CAF9, #4FC3F7);
    --glass-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));

    /* Dark theme colors - these will override defaults when body has dark-theme class */
    --dark-background-color: #202842;
    --dark-surface-color: #2A3356;
    --dark-card-bg-color: var(--dark-surface-color);
    --dark-text-primary-color: #F8F9FC;
    --dark-text-secondary-color: #B0B7C8;
    --dark-header-bg-color: rgba(32, 40, 66, 0.95); /* Adjusted dark header */
    --dark-footer-bg-color: rgba(32, 40, 66, 0.95); /* Adjusted dark footer */
    --dark-footer-text-color: var(--dark-text-primary-color);
    --dark-footer-text-secondary-color: var(--dark-text-secondary-color);
    --dark-footer-link-color: var(--dark-text-secondary-color);
    --dark-footer-link-hover-color: var(--primary-color);
    --dark-footer-bottom-text-color: rgba(176, 183, 200, 0.7); /* Adjusted dark bottom text */
    --dark-input-bg-color: rgba(255, 255, 255, 0.1);
    --dark-input-border-color: rgba(255, 255, 255, 0.2);
    --dark-input-focus-bg-color: rgba(255, 255, 255, 0.15);
    --dark-input-focus-shadow-color: rgba(126, 87, 194, 0.2);
    --dark-placeholder-color: var(--dark-text-secondary-color);
    --dark-social-icon-bg: rgba(255, 255, 255, 0.1);
    --dark-social-icon-color: var(--dark-text-primary-color);
    --dark-social-icon-hover-bg: var(--primary-color);
    --dark-social-icon-hover-color: white;
    --dark-legal-container-bg: var(--dark-surface-color);
    --dark-legal-border-color: rgba(255, 255, 255, 0.1);
    --dark-cta-card-bg: var(--dark-surface-color);
    --dark-cta-card-text-color: var(--dark-text-primary-color);
    --dark-cta-card-secondary-text-color: var(--dark-text-secondary-color);
    --dark-cta-button-bg: var(--primary-color); /* Button in dark CTA */
    --dark-cta-button-text-color: white;
    --shadow-dark-header: 0 2px 10px rgba(0, 0, 0, 0.2);
    --shadow-dark-card: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-dark-card-hover: 0 8px 24px rgba(0, 0, 0, 0.2);
    --shadow-dark-testimonial: 0 4px 12px rgba(0, 0, 0, 0.15);

    --font-family-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-family-rounded: 'Poppins', 'Nunito', sans-serif;

    --radius-card: 20px;
    --radius-button: 16px;
    --radius-chip: 12px;
    
    --shadow-small: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-large: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-button: 0 4px 10px rgba(126, 87, 194, 0.3);
    
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 48px;
    
    --transition-standard: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@400;500;600;700;800&family=Nunito:wght@400;500;600;700;800&display=swap');

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

html {
    scroll-behavior: smooth;
    height: 100%;
}

/* Apply dark theme styles by default using dark variables */
body {
    font-family: var(--font-family-sans);
    background-color: var(--dark-background-color); /* Default to dark */
    color: var(--dark-text-primary-color); /* Default to dark */
    line-height: 1.6;
    font-size: 16px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
}

main {
    flex: 1 0 auto;
}

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

a:hover {
    color: var(--accent-color); /* Use accent for hover in dark */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-rounded);
    font-weight: 700;
    color: var(--dark-text-primary-color); /* Default to dark */
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
}

h1 { font-size: 3rem; font-weight: 800; }
h2 { font-size: 2.4rem; font-weight: 700; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }

p {
    margin-bottom: var(--spacing-md);
    color: var(--dark-text-secondary-color); /* Default to dark */
}

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

.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
}

/* Header Styles - Updated for dark theme */
.main-header {
    background-color: var(--dark-header-bg-color); /* Use dark var */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: var(--shadow-dark-header); /* Use dark shadow */
    padding: var(--spacing-md) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition-standard);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-family-rounded);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    position: relative;
    padding-left: var(--spacing-md); /* Space for the decorative element */
    display: flex;
    align-items: center;
}

.logo::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px; /* Width of the decorative element */
    height: 24px; /* Height of the decorative element */
    background: var(--primary-gradient);
    border-radius: 4px; /* Rounded corners for the element */
}

/* Logo image placeholder */
.logo-image {
    width: 40px; /* Match height */
    height: 40px;
    margin-right: 10px; /* Space between image and text */
    border-radius: 8px;
    overflow: hidden; /* Ensure image stays within bounds */
    background: var(--primary-gradient); /* Fallback background */
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure logo covers the area */
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: var(--spacing-lg);
}

.main-nav ul li a {
    font-weight: 600;
    color: var(--dark-text-secondary-color); /* Use dark var */
    position: relative;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-chip);
    transition: var(--transition-standard);
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
    transition: var(--transition-standard);
    transform: translateX(-50%);
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: var(--primary-color); /* Highlight color */
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
    width: 50%; /* Underline effect */
}

/* Footer Styles - Adapted for dark theme */
.main-footer {
    background-color: var(--dark-footer-bg-color); /* Use dark var */
    color: var(--dark-footer-text-color); /* Use dark var */
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px; /* Top border highlight */
    background: var(--primary-gradient);
}

/* Card Components - Adapted for dark theme */
.card {
    background: var(--dark-card-bg-color); /* Use dark var */
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-dark-card); /* Use dark shadow */
    padding: var(--spacing-lg);
    transition: var(--transition-standard);
    height: 100%; /* For equal height in grids */
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-dark-card-hover); /* Use dark shadow */
}

.card-title {
    color: var(--dark-text-primary-color); /* Use dark var */
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.card-content {
    color: var(--dark-text-secondary-color); /* Use dark var */
}

/* Jumbotron / Hero Section - Restored and adapted for dark theme */
.jumbotron {
    background-color: var(--dark-background-color); /* Keep dark background */
    color: var(--dark-text-primary-color); /* Use dark text */
    padding: var(--spacing-xxl) 0;
    text-align: center;
    min-height: 75vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Floating shapes for visual interest */
.shape {
    position: absolute;
    border-radius: 50%;
    z-index: 0; /* Behind content */
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, rgba(156, 110, 238, 0.2), rgba(126, 87, 194, 0.1)); /* Subtle dark shapes */
    top: -50px;
    right: -100px;
    animation: float 15s ease-in-out infinite alternate;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, rgba(79, 195, 247, 0.15), rgba(144, 202, 249, 0.1)); /* Subtle dark shapes */
    bottom: -80px;
    left: -50px;
    animation: float 20s ease-in-out infinite alternate-reverse;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)); /* Subtle dark shapes */
    top: 40%;
    left: 15%;
    animation: float 12s ease-in-out infinite alternate;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(20px, 20px) rotate(10deg); }
}

.jumbotron .container {
    position: relative;
    z-index: 5; /* Above shapes */
}

.jumbotron h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    color: var(--dark-text-primary-color); /* Use dark text */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Darker shadow */
}

.jumbotron p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto var(--spacing-xl) auto;
    opacity: 0.95;
    color: var(--dark-text-secondary-color); /* Use dark text */
    line-height: 1.8;
}

/* Waitlist Form - Restored and adapted */
.waitlist-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 10;
}

.waitlist-form input[type="email"] {
    padding: 18px 24px;
    border: 1px solid var(--dark-input-border-color); /* Use dark border */
    background-color: var(--dark-input-bg-color); /* Use dark bg */
    border-radius: var(--radius-button);
    color: var(--dark-text-primary-color); /* Use dark text */
    font-size: 1rem;
    flex-grow: 1;
    min-width: 280px;
    transition: var(--transition-standard);
    outline: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.waitlist-form input[type="email"]::placeholder {
    color: var(--dark-placeholder-color); /* Use dark placeholder */
}

.waitlist-form input[type="email"]:focus {
    border-color: var(--primary-color); /* Highlight focus */
    background-color: var(--dark-input-focus-bg-color); /* Use dark focus bg */
    box-shadow: 0 0 0 3px var(--dark-input-focus-shadow-color), 0 6px 16px rgba(0, 0, 0, 0.15); /* Darker focus shadow */
}

/* Buttons - Restored and adapted */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-family-rounded);
    font-weight: 600;
    padding: 16px 32px;
    border: none;
    border-radius: var(--radius-button);
    cursor: pointer;
    text-align: center;
    transition: var(--transition-standard);
    font-size: 1rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-button); /* Use variable */
}

.btn::before { /* Hover overlay */
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0); /* Transparent initially */
    transition: var(--transition-standard);
}

.btn:hover::before {
    background: rgba(255, 255, 255, 0.1); /* Subtle hover effect */
}

.btn-primary { /* Primary button in Jumbotron */
    background-color: white; /* Contrast on dark jumbotron */
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(126, 87, 194, 0.35); /* Keep shadow */
    color: var(--primary-dark);
    text-decoration: none;
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(126, 87, 194, 0.25); /* Keep shadow */
}

/* Form Messages */
#form-message {
    margin-top: var(--spacing-md);
    text-align: center;
    min-height: 28px;
    width: 100%;
    border-radius: var(--radius-chip);
    transition: var(--transition-standard);
    font-size: 0.95rem;
}

/* Hero Image */
.hero-image {
    margin-top: var(--spacing-xl);
    position: relative;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.device-mockup {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2); /* Shadow for dark */
    transform: perspective(1000px) rotateX(5deg);
    transition: var(--transition-standard);
}

.device-mockup:hover {
    transform: perspective(1000px) rotateX(0deg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3); /* Enhanced shadow */
}

/* Features Section - Restored */
.features {
    padding: var(--spacing-xxl) 0;
    background-color: var(--dark-background-color); /* Keep dark bg */
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid */
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--primary-gradient); /* Keep gradient */
    border-radius: 16px;
    margin-bottom: var(--spacing-md);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); /* Darker shadow */
    color: white; /* Icon color */
    font-size: 1.8rem; /* Adjust icon size */
}

.feature-icon svg,
.feature-icon i { /* Target FontAwesome icons too */
    width: 32px;
    height: 32px;
    color: white; /* Ensure icon color */
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-title h2 {
    color: var(--dark-text-primary-color); /* Dark text */
    margin-bottom: var(--spacing-sm);
}

.section-title p {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
    color: var(--dark-text-secondary-color); /* Dark text */
}

/* Testimonials Section - Restored and Adapted */
.testimonials {
    padding: var(--spacing-xxl) 0;
    background-color: var(--dark-surface-color); /* Slightly different dark bg */
}

.testimonial-card {
    position: relative;
    background: var(--dark-card-bg-color); /* Use dark card bg */
    border-radius: var(--radius-card);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-dark-testimonial); /* Use dark shadow */
    margin-top: var(--spacing-xl);
    max-width: 700px; /* Limit width */
    margin-left: auto;
    margin-right: auto;
}

.testimonial-content {
    position: relative;
    z-index: 2;
    font-style: italic;
    color: var(--dark-text-primary-color); /* Use dark text */
    line-height: 1.8;
}

.testimonial-author {
    margin-top: var(--spacing-lg); /* Increased space */
    display: flex;
    align-items: center;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: var(--spacing-md); /* Increased space */
    background: var(--primary-gradient); /* Keep gradient */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.testimonial-name {
    font-weight: 600;
    color: var(--dark-text-primary-color); /* Use dark text */
}

.testimonial-title {
    font-size: 0.9rem;
    color: var(--dark-text-secondary-color); /* Use dark text */
}

/* CTA Section - Restored and Adapted */
.cta-section {
    padding: var(--spacing-xxl) 0;
    background-color: var(--dark-background-color); /* Use dark background */
}

.cta-card {
    background: var(--dark-cta-card-bg); /* Use dark var */
    border-radius: var(--radius-card);
    padding: var(--spacing-xl);
    text-align: center;
    color: var(--dark-cta-card-text-color); /* Use dark var */
    box-shadow: var(--shadow-large); /* Use variable */
    position: relative;
    overflow: hidden;
}

/* Optional: Add a subtle overlay/texture for dark CTA */
.cta-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(255, 255, 255, 0) 50%);
    z-index: 1;
}

.cta-card h2 {
    color: var(--dark-cta-card-text-color); /* Use dark var */
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 2;
}

.cta-card p {
    color: var(--dark-cta-card-secondary-text-color); /* Use dark var */
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

.cta-card .btn { /* Target general button within CTA */
    background-color: var(--dark-cta-button-bg); /* Use dark var */
    color: var(--dark-cta-button-text-color); /* Use dark var */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* Dark shadow */
    position: relative;
    z-index: 2;
}

.cta-card .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); /* Darker hover shadow */
    filter: brightness(1.1); /* Slight brightness increase */
}

/* Footer Content - Restored and adapted */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-brand .logo {
    color: var(--primary-color); /* Keep logo color consistent */
    margin-bottom: var(--spacing-md);
}

/* Remove logo::before from footer */
.footer-brand .logo::before {
    display: none;
}

.footer-brand p {
    color: var(--dark-footer-text-secondary-color); /* Use dark var */
    margin-bottom: 0;
}

.footer-links h4,
.footer-social h4 {
    color: var(--dark-footer-text-color); /* Use dark var */
    margin-bottom: var(--spacing-md);
    font-size: 1.2rem;
    position: relative;
    padding-bottom: var(--spacing-xs);
}

.footer-links h4::after,
.footer-social h4::after { /* Underline for headings */
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary-color); /* Accent color */
}

.footer-links ul {
    list-style: none; /* Remove default list style */
    padding: 0; /* Remove default padding */
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin: 0;
}

.footer-links ul li a {
    color: var(--dark-footer-link-color); /* Use dark var */
    font-weight: 500;
    transition: var(--transition-standard);
}

.footer-links ul li a:hover {
    color: var(--dark-footer-link-hover-color); /* Use dark var */
    text-decoration: none;
}

.footer-social .social-icons {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-sm);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--dark-social-icon-bg); /* Use dark var */
    border-radius: 50%;
    color: var(--dark-social-icon-color); /* Use dark var */
    transition: var(--transition-standard);
    font-size: 1.1rem;
}

.social-icon:hover {
    background: var(--dark-social-icon-hover-bg); /* Use dark var */
    transform: translateY(-3px);
    color: var(--dark-social-icon-hover-color); /* Use dark var */
    text-decoration: none;
}

.footer-bottom {
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--dark-legal-border-color); /* Use dark border */
}

.footer-bottom p {
    color: var(--dark-footer-bottom-text-color); /* Use dark var */
    text-align: center;
    font-size: 0.9rem;
    margin: 0;
}

/* CTA Group in Hero */
.cta-group {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.waitlist-form .btn-primary i { /* Arrow icon */
    margin-left: var(--spacing-xs);
    transition: transform 0.3s ease;
}

.waitlist-form .btn-primary:hover i {
    transform: translateX(4px);
}

/* Page Header (for other pages like contact, privacy, etc.) - Restored and Adapted */
.page-header {
    background: var(--primary-gradient); /* Keep gradient */
    color: white; /* Text on gradient */
    padding: var(--spacing-xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: var(--spacing-xl); /* Add margin */
}

.page-header::before { /* Subtle overlay */
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.1) 0%, transparent 30%),
        radial-gradient(circle at bottom right, rgba(144, 202, 249, 0.1) 0%, transparent 40%); /* Adjusted gradient */
    opacity: 0.7;
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    color: white;
    margin-bottom: var(--spacing-sm);
    font-size: 2.8rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}


/* Contact Page Styles - Restored and Adapted */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Layout ratio */
    gap: var(--spacing-xl);
    margin: var(--spacing-xl) 0;
}

.contact-info-grid {
    display: grid;
    grid-template-rows: repeat(3, auto); /* Adjust as needed */
    gap: var(--spacing-lg);
}

.contact-card {
    background: var(--dark-card-bg-color); /* Use dark card */
    border-radius: var(--radius-card);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-dark-card); /* Use dark shadow */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: var(--transition-standard);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-dark-card-hover); /* Use dark hover */
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--primary-gradient); /* Keep gradient */
    border-radius: 12px;
    margin-bottom: var(--spacing-sm);
    color: white;
    font-size: 1.2rem;
}

.contact-card h3 {
    margin-bottom: var(--spacing-xs);
    color: var(--primary-color); /* Highlight */
}

.contact-card p {
    margin-bottom: var(--spacing-sm);
    color: var(--dark-text-secondary-color); /* Dark text */
}

.contact-link {
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
}

.contact-link::after { /* Underline hover effect */
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-in-out;
}

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

.form-container {
    background: var(--dark-surface-color); /* Dark background */
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-dark-card); /* Dark shadow */
    padding: var(--spacing-xl);
    position: relative;
}

.form-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.form-header h2 {
    color: var(--primary-color); /* Highlight */
    margin-bottom: var(--spacing-xs);
}

.form-header p {
    color: var(--dark-text-secondary-color); /* Dark text */
}

.contact-form {
    display: grid;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.form-group label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark-text-primary-color); /* Dark text */
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: var(--dark-text-secondary-color); /* Dark icon */
    opacity: 0.7;
    font-size: 0.9rem;
    transition: var(--transition-standard);
    pointer-events: none; /* Don't block input clicks */
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
    width: 100%;
    padding: 12px 16px 12px 45px; /* Space for icon */
    border: 1px solid var(--dark-input-border-color); /* Dark border */
    border-radius: var(--radius-chip);
    background-color: var(--dark-input-bg-color); /* Dark background */
    font-family: var(--font-family-sans);
    font-size: 1rem;
    color: var(--dark-text-primary-color); /* Dark text */
    transition: var(--transition-standard);
    outline: none; /* Remove default outline */
}
/* Adjust padding if no icon needed */
.input-wrapper input:not([type="text"]):not([type="email"]), /* Example adjustment */
.input-wrapper select {
    padding-left: 16px; /* Reset padding if no icon */
}

.input-wrapper input::placeholder,
.input-wrapper select::placeholder, /* Select placeholders might not be standard */
.input-wrapper textarea::placeholder {
    color: var(--dark-placeholder-color); /* Dark placeholder */
    opacity: 0.7;
}

.input-wrapper input:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus {
    border-color: var(--primary-color); /* Highlight focus */
    background-color: var(--dark-input-focus-bg-color); /* Dark focus bg */
    box-shadow: 0 0 0 3px var(--dark-input-focus-shadow-color); /* Dark focus shadow */
}

.input-wrapper input:focus + .input-icon,
.input-wrapper select:focus + .input-icon,
.input-wrapper textarea:focus + .input-icon {
    color: var(--primary-color); /* Highlight icon on focus */
    opacity: 1;
}

.textarea-wrapper {
    align-items: flex-start; /* Align icon to top for textarea */
}

.textarea-wrapper .input-icon {
    top: 14px; /* Position icon vertically */
}

.textarea-wrapper textarea {
    resize: vertical; /* Allow vertical resize */
    min-height: 120px;
}

.form-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: var(--spacing-sm);
}

.form-footer .btn { /* Button in contact form */
    min-width: 180px;
    background-color: var(--primary-color); /* Use primary color */
    color: white; /* Text color */
}

.form-footer .btn:hover {
    filter: brightness(1.1); /* Slight hover effect */
}

.form-footer .btn i {
    margin-left: var(--spacing-xs);
    transition: transform 0.3s ease;
}

.form-footer .btn:hover i {
    transform: translateX(3px);
}

.form-footer #form-message { /* Spacing for message */
    margin-top: var(--spacing-md);
}

/* Button Outline Style - Adapted */
.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 8px 16px;
    border-radius: var(--radius-button);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-standard);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Animation Classes - Restored */
.fade-in {
    animation: fadeIn 1s ease-in-out forwards; /* Use forwards to keep state */
    opacity: 0; /* Start hidden */
}

.slide-up {
    animation: slideUp 0.6s ease-in-out forwards; /* Use forwards */
    opacity: 0; /* Start hidden */
}

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

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


/* Legal Pages Styling - Adapted */
.legal-container {
    margin: var(--spacing-xl) 0;
    background-color: var(--dark-legal-container-bg); /* Use dark var */
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-dark-card); /* Use dark shadow */
    overflow: hidden;
}

.legal-content {
    padding: var(--spacing-xl);
}

.legal-update {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    color: var(--dark-text-secondary-color); /* Dark text */
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--dark-legal-border-color); /* Dark border */
}

.legal-update i {
    color: var(--primary-color); /* Highlight icon */
}

.legal-section {
    margin-bottom: var(--spacing-xl);
    animation: fadeIn 0.5s ease forwards; /* Changed from fadeInUp to fadeIn which exists */
    animation-delay: 0.2s; /* Added a slight delay */
    opacity: 0; /* Start hidden for animation */
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    color: #FFFFFF !important; /* Explicit white color for headings */
    font-size: 1.6rem;
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.legal-section h2 i {
    font-size: 1.2rem;
    opacity: 0.9; /* Increased from 0.8 */
    color: var(--primary-color); /* Added explicit color for icons */
}

.legal-section p,
.legal-section ul,
.legal-section ol {
    margin-bottom: var(--spacing-md);
    color: #E0E0E0; /* Explicit light color for better visibility */
    line-height: 1.8;
}

.legal-section ul,
.legal-section ol {
    padding-left: var(--spacing-lg); /* Indentation */
    color: #E0E0E0; /* Explicit light color */
}

.legal-section li {
    margin-bottom: var(--spacing-sm);
    color: #E0E0E0; /* Explicit light color */
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-section strong {
    color: #FF9800; /* Changed to orange for better visibility */
    font-weight: 600;
}

.company-info {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--dark-legal-border-color); /* Dark border */
    color: var(--dark-text-secondary-color); /* Dark text */
}

.company-info p {
    margin-bottom: var(--spacing-xs);
    line-height: 1.5;
}

/* Staggered animation delays */
.legal-section:nth-child(1) { animation-delay: 0.1s; }
.legal-section:nth-child(2) { animation-delay: 0.2s; }
.legal-section:nth-child(3) { animation-delay: 0.3s; }
.legal-section:nth-child(4) { animation-delay: 0.4s; }
.legal-section:nth-child(5) { animation-delay: 0.5s; }
.legal-section:nth-child(6) { animation-delay: 0.6s; }
.legal-section:nth-child(7) { animation-delay: 0.7s; }
.legal-section:nth-child(8) { animation-delay: 0.8s; }
.legal-section:nth-child(9) { animation-delay: 0.9s; }
.legal-section:nth-child(10) { animation-delay: 1.0s; }


/* General Responsive Adjustments */

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    .footer-brand {
        grid-column: span 2; /* Brand takes full width */
        align-items: center; /* Center align brand on smaller screens */
    }
    .contact-container {
        grid-template-columns: 1fr; /* Stack contact sections */
        gap: var(--spacing-lg);
    }
    .contact-info-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive grid */
        grid-template-rows: auto;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .jumbotron h1 { font-size: 3rem; }
    .jumbotron p { font-size: 1.1rem; }
    .hero-image { margin-top: var(--spacing-lg); }
    .footer-content {
        grid-template-columns: 1fr; /* Stack footer sections */
        text-align: center;
    }
    .footer-brand,
    .footer-links,
    .footer-social {
        align-items: center; /* Center all footer content */
    }
    .footer-links h4::after,
    .footer-social h4::after {
        left: 50%;
        transform: translateX(-50%); /* Center underline */
    }
    .footer-links ul { align-items: center; }
    .shape-1, .shape-2, .shape-3 { opacity: 0.5; /* Reduce shape visibility */ }
    .contact-info-grid {
        grid-template-columns: 1fr; /* Stack contact cards */
    }
    .form-container { padding: var(--spacing-lg); }
    .legal-content { padding: var(--spacing-lg); }
    .legal-section h2 { font-size: 1.4rem; }
}

@media (max-width: 576px) {
    body { font-size: 15px; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.7rem; }
    .jumbotron h1 { font-size: 2.5rem; }
    .jumbotron p { font-size: 1rem; }
    .waitlist-form { flex-direction: column; gap: var(--spacing-sm); }
    .waitlist-form input[type="email"] { min-width: auto; width: 100%; }
    .waitlist-form button { width: 100%; }
    .cta-card { padding: var(--spacing-lg) var(--spacing-md); }
    .page-header h1 { font-size: 2.2rem; }
    .page-header p { font-size: 1rem; }
    .form-container { padding: var(--spacing-md); }
    .legal-content { padding: var(--spacing-md); }
    .legal-section h2 { font-size: 1.3rem; }
    .legal-update {
        margin-bottom: var(--spacing-md);
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Fix missing fadeInUp animation */
@keyframes fadeInUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Content Section Styles */
.content-section {
    padding: var(--spacing-xxl) 0;
    overflow: hidden; /* Contain floats/flex items */
}

.content-section .container {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.content-section.alternate {
    background-color: var(--dark-surface-color); /* Use dark surface for alternating bg */
}

.content-text,
.content-image {
    flex: 1; /* Each takes half the space */
}

.content-text h2 {
    font-size: 2.2rem;
    margin-bottom: var(--spacing-lg);
    color: var(--dark-text-primary-color);
}

.content-text p,
.content-text li {
    color: var(--dark-text-secondary-color);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.content-text ul {
    list-style: none; /* Remove default bullets */
    padding-left: 0;
}

.content-text li {
    position: relative;
    padding-left: var(--spacing-lg); /* Space for custom bullet */
}

.content-text li::before {
    content: '\f00c'; /* Font Awesome check icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 5px; /* Adjust vertical alignment */
    font-size: 0.9em;
}

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

.feature-image {
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-dark-card); /* Use dark shadow */
    max-width: 65%; /* Don't let image get too wide */
    height: auto;
    transition: var(--transition-standard);
}

.feature-image:hover {
     transform: scale(1.03);
     box-shadow: var(--shadow-dark-card-hover);
}

/* Reverse layout order */
.container.reverse {
    flex-direction: row-reverse;
}

/* Responsive Adjustments for Content Sections */
@media (max-width: 992px) {
    .content-section .container {
        gap: var(--spacing-lg);
    }
    .content-text h2 {
        font-size: 2rem;
    }
    .feature-image {
        max-width: 65%;
    }
}

@media (max-width: 768px) {
    .content-section {
        padding: var(--spacing-xl) 0;
    }
    .content-section .container,
    .container.reverse {
        flex-direction: column;
        text-align: center;
    }
    .content-image {
        margin-bottom: var(--spacing-lg);
    }
    .content-text ul {
        padding-left: 0;
        text-align: left; /* Keep list items left-aligned */
    }
     .content-text li {
        padding-left: var(--spacing-xl); /* Adjust padding for centered text */
    }
    .content-text li::before {
        left: var(--spacing-sm); /* Adjust icon position */
    }
    .feature-image {
        max-width: 55%; /* Adjust for stacked layout */
        margin-left: auto;
        margin-right: auto;
    }

}

/* App Store Badge Styles */
.appstore-link {
    display: inline-block; /* Allow transform and prevent text wrapping */
    transition: var(--transition-standard);
}

.appstore-badge {
    height: 50px; /* Adjust height as needed */
    width: auto;
    transition: var(--transition-standard);
    display: block; /* Remove extra space below */
}

.appstore-link:hover {
    transform: scale(1.05); /* Slight scale on hover */
}

.cta-group .appstore-badge {
    margin-top: var(--spacing-md);
    height: 65px; /* Slightly larger in hero */
}

.cta-section .appstore-badge {
    margin-top: var(--spacing-md);
    height: 60px;
}

/* Optional: Adjust CTA card padding if needed for badge */
.cta-card {
    padding-bottom: var(--spacing-xl); /* Ensure space for badge */
} 