/* =====================================================
   NutriGLP Landing Page — Design System & Styles
   Aesthetic: Dark health-tech, matching NutriGLPWEBSITE
   ===================================================== */

/* ---- CSS Custom Properties ---- */
:root {
    --bg: #000000;
    --surface: #09090b;
    --surface-hover: #18181b;
    --border: #27272a;
    --border-light: #3f3f46;
    --green: #22C55E;
    --green-dark: #16A34A;
    --green-glow: rgba(34, 197, 94, 0.3);
    --green-subtle: rgba(34, 197, 94, 0.05);
    --green-border: rgba(34, 197, 94, 0.1);
    --text: #ffffff;
    --text-muted: #a1a1aa;
    --text-dim: #71717a;
    --text-dark: #52525b;
    --radius-sm: 1rem;
    --radius-md: 1.5rem;
    --radius-lg: 2rem;
    --radius-xl: 2.5rem;
    --radius-2xl: 3rem;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-green {
    color: var(--green);
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Reveal Animations ---- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ===================== NAVBAR ===================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(24, 24, 27, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--green-glow);
}

.nav-wordmark {
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    transition: color var(--transition);
}

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

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    color: #000;
    padding: 0.6rem 1.5rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    transition: all var(--transition);
}

.nav-cta:hover {
    background: #e4e4e7;
    transform: scale(1.04);
}

.nav-cta:active {
    transform: scale(0.96);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 110;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===================== HERO ===================== */
.hero {
    position: relative;
    padding: 10rem 0 6rem;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-bg-orbs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    animation: orbPulse 8s ease-in-out infinite;
}

.orb-green {
    top: -20%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: rgba(22, 163, 74, 0.15);
}

.orb-dark {
    bottom: -20%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: rgba(39, 39, 42, 0.4);
    animation-delay: 4s;
}

@keyframes orbPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    background: rgba(24, 24, 27, 0.8);
    border: 1px solid var(--border);
    color: var(--green);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.hero-title {
    font-size: clamp(2.8rem, 7vw, 6rem);
    font-weight: 900;
    line-height: 0.92;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 30%, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title .text-green {
    -webkit-text-fill-color: var(--green);
}

.hero-subtitle {
    max-width: 700px;
    margin: 0 auto 2.5rem;
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-dim);
    font-weight: 500;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3.5rem;
}

.hero-brands {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: center;
    opacity: 0.25;
}

.hero-brands span {
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-style: italic;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--green);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 900;
    font-size: 1rem;
    transition: all var(--transition);
    box-shadow: 0 10px 40px var(--green-glow);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 15px 50px var(--green-glow);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-lg {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    border-radius: var(--radius-lg);
}

/* ===================== SECTION SHARED ===================== */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-badge {
    display: inline-flex;
    padding: 0.4rem 1.1rem;
    border-radius: 999px;
    background: rgba(24, 24, 27, 0.8);
    border: 1px solid var(--border);
    color: var(--green);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    color: var(--text-dim);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    max-width: 600px;
    margin: 0 auto;
}

/* ===================== APP SHOWCASE ===================== */
.showcase {
    padding: 5rem 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.showcase-phones {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 2rem;
    perspective: 1200px;
}

.phone-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.phone-frame {
    width: 240px;
    border-radius: 2rem;
    overflow: hidden;
    border: 3px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6),
                0 0 40px var(--green-subtle);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    background: var(--surface);
}

.phone-frame img {
    width: 100%;
    height: auto;
    display: block;
}

.phone-center .phone-frame {
    width: 280px;
    border-color: var(--green);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.7),
                0 0 60px rgba(34, 197, 94, 0.15);
}

.phone-side {
    opacity: 0.75;
    transform: scale(0.9);
}

.phone-side:hover {
    opacity: 1;
    transform: scale(0.95);
}

.phone-center:hover .phone-frame {
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7),
                0 0 80px rgba(34, 197, 94, 0.25);
}

.phone-label {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-dim);
}

/* ===================== FEATURES ===================== */
.features {
    padding: 5rem 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.feature-card {
    padding: 2rem;
    background: var(--surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover {
    border-color: rgba(34, 197, 94, 0.3);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green-subtle);
    border: 1px solid var(--green-border);
    color: var(--green);
    margin-bottom: 1.5rem;
    transition: background var(--transition);
}

.feature-card:hover .feature-icon {
    background: rgba(34, 197, 94, 0.1);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.82rem;
    color: var(--text-dim);
    font-weight: 500;
    line-height: 1.5;
}

.feature-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
    margin-top: 0.45rem;
}

/* ===================== HOW IT WORKS ===================== */
.how-it-works {
    padding: 5rem 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.step-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    padding: 2rem;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-card:hover {
    border-color: rgba(34, 197, 94, 0.3);
}

.step-number {
    font-size: 3rem;
    font-weight: 900;
    color: rgba(39, 39, 42, 0.6);
    line-height: 1;
    margin-bottom: 1rem;
}

.step-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.15);
    color: var(--green);
    margin-bottom: 1.2rem;
    transition: background var(--transition);
}

.step-card:hover .step-icon-wrap {
    background: rgba(34, 197, 94, 0.15);
}

.step-title {
    font-size: 1.25rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 0.6rem;
}

.step-desc {
    font-size: 0.82rem;
    color: var(--text-dim);
    font-weight: 500;
    line-height: 1.6;
}

/* ===================== SCREENSHOTS GALLERY ===================== */
.gallery {
    padding: 5rem 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.gallery-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 1rem;
}

.gallery-scroll::-webkit-scrollbar {
    display: none;
}

.gallery-track {
    display: flex;
    gap: 1.5rem;
    padding: 0 1.5rem;
    min-width: max-content;
}

.gallery-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.gallery-phone {
    width: 200px;
    border-radius: 1.5rem;
    overflow: hidden;
    border: 2px solid var(--border);
    background: var(--bg);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.gallery-phone:hover {
    border-color: rgba(34, 197, 94, 0.4);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 30px rgba(34, 197, 94, 0.1);
}

.gallery-phone img {
    width: 100%;
    height: auto;
}

.gallery-caption {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dark);
}

/* ===================== SOCIAL PROOF STRIP ===================== */
.proof-strip {
    padding: 4rem 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.proof-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.proof-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    text-align: center;
}

.proof-value {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.proof-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dark);
}

.proof-divider {
    width: 1px;
    height: 48px;
    background: var(--border);
}

/* ===================== FAQ ===================== */
.faq {
    padding: 5rem 0;
    background: var(--surface);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color var(--transition);
}

.faq-item:hover {
    border-color: rgba(34, 197, 94, 0.3);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    color: var(--text);
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    cursor: pointer;
    text-align: left;
    gap: 1rem;
}

.faq-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(24, 24, 27, 0.8);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition);
}

.faq-icon {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dim);
    transition: color var(--transition);
    line-height: 1;
}

.faq-item.open .faq-icon {
    color: var(--green);
}

.faq-answer {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    opacity: 1;
}

.faq-answer p {
    padding: 0 1.5rem 1.25rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.7;
    font-size: 0.9rem;
}

/* ===================== FINAL CTA ===================== */
.final-cta {
    padding: 5rem 0;
    background: var(--bg);
}

.cta-card {
    position: relative;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--surface);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--border);
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.cta-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    margin-bottom: 0.75rem;
    position: relative;
}

.cta-subtitle {
    color: var(--text-dim);
    font-weight: 500;
    max-width: 500px;
    margin: 0 auto 2rem;
    font-size: 1rem;
    position: relative;
}

.cta-note {
    margin-top: 1.2rem;
    font-size: 0.68rem;
    color: var(--text-dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    position: relative;
}

/* ===================== FOOTER ===================== */
.footer {
    background: var(--bg);
    padding: 4rem 0 3rem;
    border-top: 1px solid var(--border);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.2rem;
}

.footer-desc {
    color: var(--text-dim);
    font-size: 0.9rem;
    font-weight: 500;
    max-width: 360px;
    line-height: 1.7;
}

.footer-heading {
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
}

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

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-dim);
    font-weight: 600;
    transition: color var(--transition);
}

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

.footer-disclaimer {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    margin-bottom: 2.5rem;
    font-size: 0.72rem;
    color: var(--text-dark);
    line-height: 1.7;
}

.footer-disclaimer strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.62rem;
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    font-size: 0.6rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-dark);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
    .features-grid,
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .phone-frame {
        width: 200px;
    }

    .phone-center .phone-frame {
        width: 240px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        z-index: 105;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links .nav-link {
        font-size: 1.2rem;
        color: var(--text);
    }

    .nav-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        padding: 8rem 0 4rem;
        min-height: auto;
    }

    .hero-brands {
        gap: 1.5rem;
    }

    .hero-brands span {
        font-size: 0.75rem;
    }

    .showcase-phones {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .phone-side {
        opacity: 1;
        transform: none;
    }

    .phone-frame,
    .phone-center .phone-frame {
        width: 260px;
    }

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

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

    .proof-grid {
        gap: 2rem;
    }

    .proof-divider {
        display: none;
    }

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

    .cta-card {
        padding: 3rem 1.5rem;
    }

    .gallery-phone {
        width: 170px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.4rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .btn-lg {
        padding: 1rem 1.8rem;
        font-size: 0.95rem;
    }

    .phone-frame,
    .phone-center .phone-frame {
        width: 220px;
    }

    .gallery-phone {
        width: 150px;
    }
}
