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

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

:root {
    /* New Palette: Health Tech Premium */
    --primary-color: #0F4C75;
    /* Deep Navy */
    --primary-light: #1B263B;
    --accent-color: #32E0C4;
    /* Vibrant Teal */
    --accent-dark: #0F9D88;
    --text-color: #1B263B;
    --text-light: #415A77;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;

    --success: #2ECC71;
    --danger: #E74C3C;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(15, 76, 117, 0.1);
    --shadow-lg: 0 10px 30px rgba(15, 76, 117, 0.15);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

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

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

h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Header & Navigation */
header {
    background: var(--white);
    /* Solid background as requested */
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

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

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
}

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

/* Language Dropdown */
.lang-dropdown {
    position: relative;
    padding: 1rem 0;
    /* Increase hit area */
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--bg-light);
    color: var(--primary-color) !important;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.lang-toggle:hover {
    background: var(--primary-color);
    color: var(--white) !important;
}

.lang-toggle .arrow {
    font-size: 0.7rem;
    transition: transform 0.3s;
}

.lang-dropdown:hover .lang-toggle .arrow {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    list-style: none;
    /* Override parent list styling */
    flex-direction: column;
    /* Ensure vertical list */
    gap: 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.lang-dropdown:hover .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-menu li {
    width: 100%;
}

.lang-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-color);
    font-size: 0.9rem;
    transition: background 0.2s;
    white-space: nowrap;
}

.lang-menu a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    /* Subtle gradient mesh background */
    background: radial-gradient(at top right, #E0F7FA 0%, transparent 40%),
        radial-gradient(at bottom left, #E8F6F3 0%, transparent 40%);
    padding: 7rem 0 5rem;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    /* Reduced to group with tagline */
    color: var(--text-light);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-tagline {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: var(--primary-color);
    font-weight: 600;
    font-style: italic;
    font-family: 'Garamond', serif;
    /* Contrast font for personal touch? Keeping simple for now */
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.free-trial {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(15, 76, 117, 0.3);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 76, 117, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border-color: rgba(15, 76, 117, 0.2);
}

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

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Social Proof Ticker */
.social-proof {
    background: var(--bg-light);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

.social-proof p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.proof-logos {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.8;
}

/* Science Section (Redesigned) */
.science-section {
    padding: 6rem 0;
}

.science-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.science-intro h3 {
    font-size: 2rem;
    color: var(--primary-color);
}

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

.comparison-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.comparison-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.comparison-card:hover {
    transform: translateY(-5px);
}

.comparison-card.hardware {
    border-top: 4px solid var(--danger);
}

.comparison-card.software {
    border-top: 4px solid var(--accent-color);
    background: linear-gradient(to bottom, #F0FDFA, #FFF);
}

.comparison-card h5 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.status {
    margin-top: 1.5rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    display: inline-block;
}

.status.bad {
    background: #FFF5F5;
    color: var(--danger);
    border: 1px solid #FED7D7;
}

.status.good {
    background: #E6FFFA;
    color: var(--accent-dark);
    border: 1px solid #B2F5EA;
}

/* Features Section */
.features {
    background: var(--bg-light);
    padding: 6rem 0;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    margin-bottom: 1.5rem;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-icon img {
    height: 50px;
    /* Use CSS filter to colorize existing SVGs to Navy */
    filter: invert(24%) sepia(35%) saturate(3081%) hue-rotate(188deg) brightness(91%) contrast(92%);
}

/* Testimonials Section */
.testimonials {
    padding: 6rem 0;
    background: var(--primary-color);
    /* Dark section breakout */
    color: var(--white);
}

.testimonials h2 {
    color: var(--white);
    text-align: center;
    margin-bottom: 3rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial-card p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.testimonial-card .author {
    font-weight: 700;
    color: var(--accent-color);
}

/* My Journey Section */
.my-journey {
    padding: 6rem 0;
    background: #FFF;
}

.my-journey h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.journey-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    border-left: 5px solid var(--accent-color);
}

.journey-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.journey-signature {
    font-family: 'Garamond', serif;
    font-size: 1.5rem;
    margin-top: 2rem;
    color: var(--primary-color);
}

/* Pricing Section */
.pricing {
    padding: 6rem 0;
    background: var(--bg-light);
}

.pricing h2 {
    text-align: center;
    margin-bottom: 4rem;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pricing-card {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    position: relative;
    border: 1px solid transparent;
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: scale(1.05);
    z-index: 1;
}

.badge {
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: var(--shadow-sm);
}

.pricing-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--text-light);
}

.pricing-card .price {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.pricing-card .price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
}

.pricing-features {
    list-style: none;
    margin-bottom: 2.5rem;
    text-align: left;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.pricing-features li:before {
    content: "✓";
    color: var(--success);
    font-weight: 800;
    margin-right: 0.5rem;
}

/* Benefits & How It Works (Simplified cleanup) */
.benefits {
    padding: 6rem 0;
}

.benefits-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.benefit-item {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius-sm);
    flex: 0 1 300px;
}

.benefit-item img {
    vertical-align: middle;
    margin-right: 10px;
    height: 24px;
}

.how-it-works {
    background: var(--primary-color);
    color: var(--white);
    padding: 6rem 0;
}

.how-it-works h2 {
    color: var(--white);
    text-align: center;
    margin-bottom: 3rem;
}

.steps {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.step {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
}

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

.step h3 {
    color: var(--white);
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    text-align: center;
    background: var(--white);
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-large {
    padding: 1rem 3rem;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background: var(--primary-light);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .features-grid,
    .comparison-grid,
    .pricing-cards,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: scale(1);
    }
}