/* ===========================
   CSS Variables & Reset
   =========================== */
:root {
    /* Color Palette - Soft, calming colors */
    --primary-green: #7AC7A8;
    --primary-green-dark: #5FAA8E;
    --primary-blue: #89B9D8;
    --primary-blue-dark: #6BA3C8;
    --accent-mint: #B8E6D5;
    --accent-sage: #D4E8E3;

    --background-white: #FFFFFF;
    --background-light: #F8FAFB;
    --background-cream: #FAFDF9;

    --text-primary: #2C3E50;
    --text-secondary: #5A6C7D;
    --text-light: #8B9AA8;

    --border-light: #E8EEF2;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);

    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;

    /* Spacing */
    --section-padding: 80px;
    --container-max: 1200px;

    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

html {
    scroll-behavior: smooth;
}

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

/* ===========================
   Typography
   =========================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

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

a:hover {
    color: var(--primary-green-dark);
}

/* ===========================
   Layout Components
   =========================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding) 0;
}

.section:nth-child(even) {
    background-color: var(--background-light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    color: var(--text-primary);
    margin-bottom: 15px;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-blue));
    margin: 0 auto;
    border-radius: 2px;
}

/* ===========================
   Navigation
   =========================== */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 15px 0;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo {
    font-size: 2rem;
}

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

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition-smooth);
}

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

.nav-cta {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-blue));
    color: white !important;
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    padding: 100px 0 80px;
    background: linear-gradient(135deg, var(--background-cream) 0%, var(--accent-sage) 100%);
    overflow: hidden;
}

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

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    color: var(--text-primary);
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-green-dark), var(--primary-blue-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.app-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.badge-placeholder {
    transition: var(--transition-smooth);
    cursor: pointer;
}

.badge-placeholder:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 0.8s ease-out 0.2s backwards;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-blue));
    border-radius: 40px;
    padding: 15px;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: float 3s ease-in-out infinite;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

.phone-screen::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 25px;
    background: #2C3E50;
    border-radius: 0 0 20px 20px;
}

/* ===========================
   About IBS Section
   =========================== */
.about-ibs {
    background: var(--background-white);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.content-card {
    background: var(--background-white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border: 2px solid var(--border-light);
}

.content-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-green);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.content-card h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
}

.content-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===========================
   FODMAP Section
   =========================== */
.fodmap-section {
    background: linear-gradient(135deg, var(--background-light) 0%, var(--accent-sage) 100%);
}

.fodmap-intro {
    background: var(--background-white);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 50px;
    box-shadow: var(--shadow-sm);
    border-left: 5px solid var(--primary-green);
}

.lead-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.fodmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.fodmap-card {
    background: var(--background-white);
    padding: 35px 25px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    position: relative;
    transition: var(--transition-smooth);
}

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

.card-number {
    position: absolute;
    top: -15px;
    left: 25px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-blue));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

.fodmap-card h3 {
    margin-top: 20px;
    color: var(--text-primary);
}

.fodmap-benefits {
    background: var(--background-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.fodmap-benefits h3 {
    color: var(--primary-green-dark);
    margin-bottom: 20px;
}

.fodmap-benefits p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ===========================
   Features Section
   =========================== */
.features-section {
    background: var(--background-white);
}

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

.feature-card {
    background: var(--background-light);
    padding: 40px 30px;
    border-radius: 20px;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.feature-card:hover {
    background: var(--background-white);
    border-color: var(--primary-green);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
    transition: var(--transition-bounce);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
}

.feature-card p {
    line-height: 1.7;
}

/* ===========================
   CTA Section
   =========================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-blue));
    color: white;
    text-align: center;
}

.cta-content h2 {
    color: white;
    margin-bottom: 20px;
}

.cta-content>p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 40px;
}

.cta-section .app-badges {
    justify-content: center;
    margin-bottom: 20px;
}

.cta-note {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

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

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-section h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

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

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-smooth);
}

.footer-section a:hover {
    color: white;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    font-size: 1.5rem;
}

.social-links a {
    transition: var(--transition-smooth);
}

.social-links a:hover {
    transform: translateY(-3px);
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.disclaimer {
    font-size: 0.85rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.6);
}

/* ===========================
   Animations
   =========================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 768px) {
    :root {
        --section-padding: 50px;
    }

    .nav-links {
        display: none;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        order: -1;
    }

    .phone-mockup {
        width: 240px;
        height: 480px;
    }

    .app-badges {
        justify-content: center;
    }

    .content-grid,
    .fodmap-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

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

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .phone-mockup {
        width: 200px;
        height: 400px;
    }

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

/* ===========================
   Accessibility
   =========================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

:focus-visible {
    outline: 3px solid var(--primary-green);
    outline-offset: 2px;
}

/* ===========================
   Print Styles
   =========================== */
@media print {

    .navbar,
    .app-badges,
    .cta-section,
    .footer {
        display: none;
    }

    body {
        color: black;
    }

    .section {
        page-break-inside: avoid;
    }
}