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

:root {
    --primary: #14B8A6;
    --primary-dark: #0d9488;
    --secondary: #14B8A6;
    --text: #1e293b;
    --text-light: #64748b;
    --bg: #FFFFFF;
    --bg-gray: #f8fafc;
    --bg-light: #f1f5f9;
    --border: #e2e8f0;
    --shadow: rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 56px !important;
    height: 56px !important;
    max-width: 56px !important;
    max-height: 56px !important;
    border-radius: 14px;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

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

.tagline-small {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
}

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

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

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(20, 184, 166, 0.3);
}

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

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

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

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

/* Phone Mockup */
.phone-mockup {
    position: relative;
    width: 300px;
    height: 600px;
    background: linear-gradient(135deg, #14B8A6 0%, #0d9488 100%);
    border-radius: 40px;
    padding: 15px;
    box-shadow: 0 20px 60px rgba(20, 184, 166, 0.3);
    margin: 0 auto;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-preview {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f0fdfa 0%, #f8fafc 100%);
}

.glucose-graph {
    position: relative;
    width: 100%;
    height: 300px;
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.graph-line {
    position: absolute;
    top: 50%;
    left: 20px;
    right: 20px;
    height: 2px;
    background: linear-gradient(90deg, #10B981 0%, #2563EB 50%, #F59E0B 100%);
}

.graph-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

.graph-dot.active {
    width: 16px;
    height: 16px;
    background: var(--secondary);
    animation: pulse 2s infinite;
}

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

.current-reading {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.reading-value {
    display: block;
    font-size: 4rem;
    font-weight: 800;
    color: var(--secondary);
}

.reading-unit {
    display: block;
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: 600;
}

/* Hero Carousel */
.hero-carousel-container {
    width: 240px;
    margin: 0 auto;
}

.hero-carousel-track-wrapper {
    overflow: hidden;
    border-radius: 20px;
    background: white;
    box-shadow: 0 10px 40px rgba(20, 184, 166, 0.2);
}

.hero-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.hero-carousel-slide {
    min-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.hero-carousel-slide img {
    display: block;
    height: 480px;
    width: auto;
    border-radius: 12px;
}

.hero-slide-caption {
    text-align: center;
    margin-top: 12px;
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
}

.hero-slide-badge {
    display: inline-block;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 10px;
    margin-left: 6px;
}

.hero-slide-badge.standard {
    background: var(--bg-light);
    color: var(--text-light);
}

.hero-slide-badge.pro {
    background: var(--primary);
    color: white;
}

.hero-carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.hero-carousel-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: white;
    color: var(--primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.hero-carousel-dots {
    display: flex;
    gap: 6px;
}

.hero-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.hero-carousel-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

.hero-carousel-dot.standard {
    background: var(--border);
}

.hero-carousel-dot.standard.active {
    background: var(--text-light);
}

.hero-carousel-dot.pro {
    border: 2px solid var(--primary);
}

.hero-carousel-dot.pro.active {
    background: var(--primary);
}

/* Problem Section */
.problem-section {
    padding: 80px 0;
    background: var(--bg);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.section-subtitle {
    font-size: 1.25rem;
    text-align: center;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

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

.problem-card {
    background: var(--bg-gray);
    padding: 2.5rem;
    border-radius: 20px;
    border: 2px solid var(--border);
}

.problem-card.highlight {
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
    border-color: var(--primary);
}

.problem-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

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

.problem-card ul {
    list-style: none;
}

.problem-card ul li {
    padding: 0.5rem 0;
    color: var(--text-light);
    position: relative;
    padding-left: 1.5rem;
}

.problem-card ul li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: var(--bg-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border);
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works-section {
    padding: 80px 0;
    background: white;
}

.steps-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    margin-top: 3rem;
}

.step {
    text-align: center;
}

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

.step-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.step-content p {
    color: var(--text-light);
    line-height: 1.6;
}

.step-arrow {
    font-size: 2rem;
    color: var(--primary);
    font-weight: bold;
}

/* Differentiation Section */
.differentiation-section {
    padding: 80px 0;
    background: var(--bg-gray);
}

.comparison-table {
    max-width: 800px;
    margin: 3rem auto 0;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow);
}

.comparison-header,
.comparison-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    border-bottom: 1px solid var(--border);
}

.comparison-header {
    background: var(--bg-gray);
    font-weight: 700;
}

.comparison-cell {
    padding: 1.5rem;
    text-align: center;
}

.comparison-cell.feature-name {
    text-align: left;
    font-weight: 600;
}

.comparison-cell.highlight-col {
    background: #f0fdfa;
    color: var(--primary);
    font-weight: 600;
}

/* Benefits Section */
.benefits-section {
    padding: 80px 0;
    background: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-card {
    background: var(--bg-gray);
    padding: 2rem;
    border-radius: 16px;
    border-left: 4px solid var(--primary);
}

.benefit-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.benefit-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Social Proof Section */
.social-proof-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #14B8A6 0%, #0d9488 100%);
    color: white;
}

.social-proof-section .section-title {
    color: white;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin: 3rem 0;
    text-align: center;
}

.proof-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.proof-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

.testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

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

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    font-style: italic;
}

.testimonial-author {
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.8;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: var(--bg-gray);
    text-align: center;
}

.cta-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text);
}

.cta-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.download-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: black;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.download-btn.google {
    background: linear-gradient(135deg, #4285F4 0%, #34A853 100%);
}

.download-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.download-label {
    font-size: 0.75rem;
    opacity: 0.8;
}

.download-store {
    font-size: 1.25rem;
    font-weight: 700;
}

.cta-note {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Footer */
.footer {
    padding: 60px 0 30px;
    background: var(--text);
    color: white;
}

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

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: white;
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .hero-carousel-container {
        width: 200px;
    }

    .hero-carousel-slide {
        padding: 6px;
    }

    .hero-carousel-slide img {
        height: 380px;
    }

    .hero-carousel-btn {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    .hero-carousel-dot {
        width: 6px;
        height: 6px;
    }

    .phone-mockup {
        width: 250px;
        height: 500px;
    }

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

    .steps-container {
        grid-template-columns: 1fr;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

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

    .stats-container {
        grid-template-columns: 1fr;
    }

    .comparison-table {
        font-size: 0.9rem;
    }

    .app-download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .nav-links {
        display: none;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .features-grid,
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

