:root {
    /* Brand Colors */
    --primary-color: #B5A2FF;
    /* Purple */
    --primary-hover: #A18DFF;
    --secondary-color: #FD7ED5;
    /* Pink */
    --lavender: #C9C1F4;
    --yellow: #FFD84D;
    --lime: #C9EA00;
    --blue: #39B4F7;

    /* Backgrounds */
    --bg-main: #FFFFFF;
    --bg-section: #F5F6FF;
    --bg-disabled: #E6E6EB;

    /* Text */
    --text-dark: #1F1F23;
    --text-light: #F8FAFC;
    --text-muted: #64748B;

    /* Spacing & Layout */
    --border-radius-pill: 999px;
    --border-radius-card: 24px;
    --border-radius-large: 32px;

    /* Shadows */
    --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.04);

    /* Fonts */
    --font-main: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Blog Hero Image */
.blog-hero-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-md);
    aspect-ratio: 16/9;
    object-fit: cover;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    padding: 0 32px;
    border-radius: var(--border-radius-pill);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(181, 162, 255, 0.3);
}

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

.card {
    background: white;
    border-radius: var(--border-radius-card);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    border: none;
}

/* Navigation */
.navbar {
    padding: 20px 0;
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

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

.logo {
    font-weight: 700;
    font-size: 24px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    /* Space between icon and text */
}

.logo-icon {
    height: 48px;
    /* Increased size to fill vertical space */
    width: auto;
    max-width: 100%;
    /* Ensure it doesn't overflow */
    object-fit: contain;
    margin-right: 4px;
}

.logo-accent {
    color: var(--secondary-color);
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.2s;
}

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

.btn.sm {
    height: 44px;
    padding: 0 24px;
    font-size: 14px;
}

/* App Mockup */
.app-mockup-placeholder {
    width: 300px;
    /* Slightly smaller for better fit */
    height: 600px;
    background: white;
    border-radius: 48px;
    /* Phone-like radius */
    box-shadow: 0 30px 60px rgba(181, 162, 255, 0.25);
    /* Colored shadow */
    margin: 0 auto;
    border: 8px solid white;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--bg-section) 0%, #FFFFFF 100%);
}

.mockup-screen {
    width: 100%;
    height: 100%;
    border-radius: 40px;
    overflow: hidden;
    position: relative;
    /* Temporary visual for preview */
    display: flex;
    align-items: center;
    justify-content: center;
}

.cycle-widget-preview {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 6px solid var(--secondary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
}

.cycle-day {
    font-size: 36px;
    font-weight: 700;
}

.cycle-status {
    font-size: 14px;
    font-weight: 600;
}

/* Hero Section */
.hero {
    padding: 120px 0 100px;
    background: linear-gradient(135deg, #FDF4FF 0%, #F5F6FF 100%);
    overflow: hidden;
    position: relative;
}

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

.badge-pill {
    background-color: var(--yellow);
    color: var(--text-dark);
    padding: 8px 16px;
    border-radius: var(--border-radius-pill);
    font-weight: 700;
    font-size: 14px;
    display: inline-block;
    margin-bottom: 24px;
}

h1 {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.hero-text p {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 16px;
}

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

.hero-image img {
    max-width: 100%;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

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

    .hero-text p {
        margin: 0 auto 40px;
    }

    .hero-btns {
        justify-content: center;
    }

    .nav-links {
        display: none;
        /* simple mobile hide for now */
    }
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background: #FFFFFF;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

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

.section-header p {
    font-size: 18px;
    color: var(--text-muted);
}

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

.feature-card {
    background: var(--bg-section);
    border-radius: var(--border-radius-large);
    padding: 40px;
    transition: transform 0.3s ease;
    border: none;
}

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

.large-card {
    grid-column: span 12;
    background: #FFF0F5;
    /* Light pink tint */
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
}

.feature-content h3 {
    font-size: 32px;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.feature-content p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.feature-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    background: rgba(255, 255, 255, 0.6);
    padding: 8px 16px;
    border-radius: var(--border-radius-pill);
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary-color);
}

.cycle-visual-placeholder {
    height: 300px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(253, 126, 213, 0.15);
    /* Simple visual prep */
    display: flex;
    align-items: center;
    justify-content: center;
}

.cycle-visual-placeholder::before {
    content: "Cycle Graph UI";
    color: var(--secondary-color);
    font-weight: 700;
}

.injection-card {
    grid-column: span 6;
    background: #F3F0FF;
    /* Light purple tint */
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.effect-card {
    grid-column: span 6;
    background: #FDF4FF;
    /* Very light pink */
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.icon-container {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 24px;
}

.icon-container.purple {
    color: var(--primary-color);
    box-shadow: 0 8px 16px rgba(181, 162, 255, 0.2);
}

.icon-container.pink {
    color: var(--secondary-color);
    box-shadow: 0 8px 16px rgba(253, 126, 213, 0.2);
}

/* Tracking Section */
.tracking-section {
    padding: 100px 0;
    background: var(--bg-section);
}

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

.tracker-card {
    background: white;
    border-radius: var(--border-radius-card);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.tracker-icon {
    font-size: 32px;
    margin-bottom: 16px;
    background: var(--bg-section);
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.tracker-card h4 {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 8px;
}

.tracker-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.progress-bar {
    height: 8px;
    background: #F1F5F9;
    border-radius: 999px;
    overflow: hidden;
}

.fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

/* Footer */
footer {
    padding: 80px 0 40px;
    background: white;
    border-top: 1px solid #F1F5F9;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.2s;
}

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

.copyright {
    color: #94A3B8;
    font-size: 14px;
}

/* Mobile Responsive Updates */
@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .large-card,
    .injection-card,
    .effect-card {
        grid-column: span 1;
    }

    .large-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .feature-tags {
        justify-content: center;
    }

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

@media (max-width: 600px) {
    .trackers-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 40px;
    }
}

/* Resources Section */
.resources-section {
    padding: 100px 0;
    background: #FFFFFF;
}

/* Resource Card Image */
.resource-card-image {
    width: 100%;
    height: 200px;
    /* Fixed height for consistency */
    object-fit: cover;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.resource-card {
    background: var(--bg-section);
    border-radius: var(--border-radius-card);
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.resource-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(181, 162, 255, 0.15);
}

.resource-image-placeholder {
    height: 200px;
    background-color: var(--lavender);
    position: relative;
    overflow: hidden;
}

/* Simulated images with gradients */
.guide-img {
    background: linear-gradient(135deg, #E0C3FC 0%, #8EC5FC 100%);
}

.weight-img {
    background: linear-gradient(135deg, #fad0c4 0%, #ffd1ff 100%);
}

.cycle-img {
    background: linear-gradient(135deg, #d4fc79 0%, #96e6a1 100%);
}

.gut-img {
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
}

.skin-img {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
}

.hrt-img {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
}

.menopause-img {
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
}

.aging-img {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
}

.safety-img {
    background: linear-gradient(135deg, #FF6B6B 0%, #fae2e2 100%);
}

.tesamorelin-img {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.benefits-img {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.cognitive-img {
    background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%);
}

.immune-img {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.libido-img {
    background: linear-gradient(135deg, #ff9a9e 0%, #feafa2 100%);
}

.resource-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.resource-tag {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.resource-card h3 {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.4;
}

.resource-card p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 24px;
    flex: 1;
}

.read-more {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 900px) {
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .resources-grid {
        grid-template-columns: 1fr;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 24px;
}

.modal-content h3 {
    margin-bottom: 12px;
    color: var(--text-dark);
}

.modal-content p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Blog Content Global Styles */
.blog-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 24px;
}

.blog-content h1 {
    font-size: 48px;
    margin-bottom: 24px;
    line-height: 1.1;
}

.blog-content h2 {
    font-size: 32px;
    margin-top: 48px;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.blog-content h3 {
    font-size: 24px;
    margin-top: 32px;
    margin-bottom: 12px;
}

.blog-content p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.blog-content ul {
    margin-bottom: 24px;
    padding-left: 24px;
}

.blog-content li {
    margin-bottom: 12px;
    font-size: 18px;
    line-height: 1.8;
}

/* Blog Navigation */
.blog-navigation {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #E6E6EB;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.nav-prev,
.nav-next {
    text-decoration: none;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s;
}

.nav-prev:hover {
    transform: translateX(-5px);
}

.nav-next:hover {
    transform: translateX(5px);
}