:root {
    --bg-body: #ffffff;
    --bg-surface: #f8f9fa;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --primary: #5d0096;
    /* Purple from Mounjaro */
    --primary-light: #8a2be2;
    --accent: #ed1d24;
    /* Red accent */
    --text-main: #1a1a1a;
    --text-muted: #666666;
    --text-on-primary: #ffffff;
    --border-light: #e0e0e0;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 50px rgba(93, 0, 150, 0.15);
    /* Purple tinted shadow */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Poppins', sans-serif;
    --gradient-hero: linear-gradient(135deg, #fdfbfd 0%, #f4f0ff 100%);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

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

html {
    scroll-behavior: smooth;
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

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

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

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

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

.mobile-menu-btn {
    display: none;
    cursor: pointer;
    color: var(--text-main);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--text-on-primary);
    box-shadow: 0 4px 12px rgba(93, 0, 150, 0.25);
    /* Softer shadow */
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(93, 0, 150, 0.35);
    /* Softer hover shadow */
}

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

.btn-secondary:hover {
    background: var(--bg-surface);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.badge-new {
    background: var(--accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-right: 0.5rem;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin: 1.5rem 0;
    color: var(--text-main);
}

.hero-title span {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

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

.hero-card-img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    background: white;
    padding: 1rem;
    transform: rotate(3deg);
    transition: transform 0.5s ease;
}

.hero-card-img:hover {
    transform: rotate(0deg) scale(1.02);
}

/* Feature Grid (Para que serve) */
.features-section {
    padding: 6rem 0;
    background: white;
}

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

.feature-card {
    background: var(--bg-surface);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    text-align: center;
}

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

.feature-icon {
    width: 64px;
    height: 64px;
    background: rgba(93, 0, 150, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary);
}

/* How It Works (Mechanisms) */
.mechanisms-section {
    padding: 6rem 0;
    background: #fffbef;
    /* Light cream inspired by screenshot bg */
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.mechanism-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.mech-content .item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.mech-icon {
    min-width: 50px;
    height: 50px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    font-size: 1.5rem;
}

.mech-text h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.mech-text p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Timeline (Dosages) */
.dosage-section {
    padding: 6rem 0;
    background: white;
}

.timeline-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    position: relative;
    margin-top: 4rem;
    padding: 0 2rem;
    overflow-x: auto;
    padding-bottom: 2rem;
}

.timeline-line {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    z-index: 0;
}

/* Custom Staircase Line SVG or CSS Logic is hard, simplistic straight line for now
   or we can use flex items with borders to simulate the steps */
.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    min-width: 120px;
    flex: 1;
}

.step-card {
    background: var(--primary);
    color: white;
    padding: 0.75rem 0.5rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 30px;
    /* Space for connecting line */
    width: 100%;
    max-width: 140px;
    font-size: 0.9rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s;
}

.step-card:hover {
    transform: scale(1.05);
}

.step-card.start {
    background: #444;
}

.step-card.step-2 {
    background: #5d0096;
}

.step-card.step-3 {
    background: #00897b;
}

.step-card.step-4 {
    background: #e91e63;
}

.step-card.step-5 {
    background: #039be5;
}

.step-card.max {
    background: #e53935;
}

.step-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.step-marker {
    width: 16px;
    height: 16px;
    background: white;
    border: 4px solid var(--primary);
    border-radius: 50%;
    position: relative;
    z-index: 2;
    background-color: var(--bg-body);
}

.step-label {
    margin-top: 1rem;
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* Products Section */
.products-section {
    padding: 6rem 0;
    background: var(--bg-surface);
}

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

.product-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--border-light);
    transform: translateY(-5px);
}

.discount-tag {
    background: #ffebee;
    color: #c62828;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    align-self: flex-start;
    margin-bottom: 1rem;
}

.product-img {
    height: 200px;
    background: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 1rem;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.product-price {
    margin-top: auto;
    padding-top: 1rem;
}

.price-old {
    font-size: 0.85rem;
    text-decoration: line-through;
    color: var(--text-muted);
}

.price-new {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

/* Footer */
footer {
    background: #1a1a1a;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: #888;
}

/* How to Use Section */
.how-to-use-section {
    padding: 6rem 0;
    background: white;
}

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

.instruction-step {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: start;
}

.step-number-line {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.step-number-circle {
    width: 60px;
    height: 60px;
    background: white;
    border: 3px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    z-index: 2;
    position: relative;
}

.step-connector {
    width: 3px;
    height: 100%;
    background: var(--primary);
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
}

.instruction-step:last-child .step-connector {
    display: none;
}

.step-content-box {
    display: flex;
    gap: 1.5rem;
    align-items: start;
    background: var(--bg-surface);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.step-illustration {
    min-width: 100px;
    width: 100px;
    height: 100px;
    background: white;
    border: 2px solid var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-illustration img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.step-text h4 {
    color: var(--text-main);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.step-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.step-text ul {
    margin-top: 0.75rem;
    padding-left: 1.25rem;
}

.step-text li {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.important-note {
    background: #fff8e1;
    border-left: 4px solid #ffa726;
    padding: 1.25rem;
    border-radius: 8px;
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    align-items: start;
}

.important-note i {
    color: #ffa726;
    flex-shrink: 0;
}

.important-note p {
    margin: 0;
    font-size: 0.9rem;
    color: #5d4037;
}

.important-note strong {
    color: #3e2723;
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }

    .hero {
        padding: 140px 0 80px;
    }

    .section {
        padding: 4rem 0;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }

    .logo-img {
        height: 40px;
    }

    .hero {
        padding: 120px 0 60px;
        min-height: auto;
    }

    .hero-container {
        flex-direction: column !important;
        text-align: center;
        gap: 2rem !important;
    }

    .hero-content {
        max-width: 100%;
    }

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

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

    .hero-card-img {
        max-width: 100%;
    }

    .timeline-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .step-item {
        width: 100%;
        flex-direction: row;
        gap: 1rem;
        align-items: center;
        margin-bottom: 0;
    }

    .step-card {
        margin-bottom: 0;
        max-width: 120px;
        font-size: 0.85rem;
        padding: 0.6rem 0.4rem;
    }

    .step-card h4 {
        font-size: 1.1rem;
    }

    .step-label {
        font-size: 0.8rem;
        margin-top: 0;
        margin-left: auto;
    }

    .timeline-line {
        display: none;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

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

    .mech-image {
        order: -1;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    /* How to Use responsive */
    .instruction-step {
        grid-template-columns: 60px 1fr;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .step-number-circle {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .step-connector {
        top: 50px;
    }

    .step-content-box {
        flex-direction: column;
        padding: 1rem;
    }

    .step-illustration {
        width: 80px;
        height: 80px;
        min-width: 80px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 100px 0 40px;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

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

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .btn.large {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .badge-new {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }

    .section-title h2 {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .section-title p {
        font-size: 0.9rem;
    }

    .features-section,
    .mechanisms-section,
    .dosage-section,
    .how-to-use-section,
    .products-section {
        padding: 3rem 0;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
    }

    .mech-content .item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .mech-icon {
        min-width: 40px;
        height: 40px;
    }

    .step-card {
        max-width: 100px;
        font-size: 0.75rem;
        padding: 0.5rem 0.3rem;
    }

    .step-card h4 {
        font-size: 1rem;
    }

    .step-label {
        font-size: 0.7rem;
    }

    .product-card {
        padding: 1.25rem;
    }

    .product-img {
        height: 180px;
    }

    .product-title {
        font-size: 0.95rem;
    }

    .price-new {
        font-size: 1.3rem;
    }

    .instruction-step {
        grid-template-columns: 50px 1fr;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .step-number-circle {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .step-connector {
        top: 45px;
    }

    .step-content-box {
        padding: 0.875rem;
    }

    .step-illustration {
        width: 70px;
        height: 70px;
        min-width: 70px;
    }

    .step-text h4 {
        font-size: 1rem;
    }

    .step-text p {
        font-size: 0.875rem;
    }

    .important-note {
        padding: 1rem;
        font-size: 0.85rem;
    }

    footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-content {
        gap: 1.5rem;
    }

    .footer-content h3 {
        font-size: 1.1rem;
    }

    .footer-content p {
        font-size: 0.85rem;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    .step-card {
        max-width: 90px;
        font-size: 0.7rem;
        padding: 0.4rem 0.25rem;
    }

    .step-card h4 {
        font-size: 0.9rem;
    }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 100px 0 50px;
        min-height: auto;
    }

    .hero-container {
        gap: 1.5rem !important;
    }

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

/* Tablet specific */
@media (min-width: 769px) and (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        /* iOS touch target */
        padding: 0.875rem 1.75rem;
    }

    .nav-links a {
        padding: 0.5rem;
    }

    .product-card {
        padding: 1.5rem;
    }

    /* Larger tap targets for mobile */
    .mobile-menu-btn {
        padding: 0.5rem;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}