/* ═══════════════════════════════════════════════════════
   NutriNen Baby — Landing Page Styles
   Brand: #5ec722 green, #1a1a2e navy, #ffd700 gold
   Style: Dark glassmorphism, mobile-first
   ═══════════════════════════════════════════════════════ */

/* ── Reset & Base ─────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand colors */
    --nn-green: #5ec722;
    --nn-green-light: #8bef47;
    --nn-green-dark: #3d9915;
    --nn-gold: #ffd700;
    --nn-gold-dark: #cc8800;
    --nn-bg: #1a1a2e;
    --nn-bg-deep: #0f0f1a;
    --nn-bg-card: rgba(255, 255, 255, 0.04);
    --nn-border: rgba(255, 255, 255, 0.08);
    --nn-text: rgba(255, 255, 255, 0.92);
    --nn-text-dim: rgba(255, 255, 255, 0.55);
    --nn-text-muted: rgba(255, 255, 255, 0.35);

    /* Spacing */
    --section-pad: clamp(48px, 8vw, 96px);
    --container-max: 1080px;
    --container-pad: clamp(20px, 5vw, 40px);

    /* Typography */
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    font-family: var(--font);
    background: var(--nn-bg);
    color: var(--nn-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a { color: var(--nn-green-light); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* ── Container ────────────────────────────────────── */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

/* ── Navbar ───────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--nn-border);
    transition: background 0.3s ease;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.15rem;
    color: white;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.navbar-brand img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.navbar-brand span {
    background: linear-gradient(135deg, var(--nn-green-light), var(--nn-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.navbar-links a {
    color: var(--nn-text-dim);
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.2s;
    text-decoration: none;
}

.navbar-links a:hover {
    color: white;
    text-decoration: none;
}

.navbar-cta {
    background: linear-gradient(135deg, var(--nn-green), var(--nn-green-dark));
    color: white !important;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.navbar-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(94, 199, 34, 0.3);
    text-decoration: none;
}

/* Mobile menu */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
}

@media (max-width: 768px) {
    .navbar-links { display: none; }
    .navbar-toggle { display: block; }

    .navbar-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(26, 26, 46, 0.98);
        backdrop-filter: blur(24px);
        padding: 20px;
        gap: 16px;
        border-bottom: 1px solid var(--nn-border);
    }
}

/* ── Hero Section ─────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(170deg, rgba(26,26,46,0.65) 0%, rgba(15,15,30,0.72) 100%),
        url('/internal/tools/heartbeat-studio/img/fondo5.png') center/cover no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(94, 199, 34, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 520px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(94, 199, 34, 0.12);
    border: 1px solid rgba(94, 199, 34, 0.25);
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--nn-green-light);
    margin-bottom: 24px;
    letter-spacing: 0.3px;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--nn-green-light), var(--nn-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--nn-text-dim);
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

/* ── Buttons ──────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--nn-green), var(--nn-green-dark));
    color: white;
    box-shadow: 0 4px 24px rgba(94, 199, 34, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(94, 199, 34, 0.35);
    text-decoration: none;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--nn-bg-card);
    color: var(--nn-text);
    border: 1px solid var(--nn-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.1rem;
    border-radius: var(--radius-lg);
}

.btn .btn-icon {
    font-size: 1.3em;
}

/* Google Play badge-style button */
.btn-playstore {
    background: linear-gradient(135deg, #1a1a2e 0%, #2a2a4a 100%);
    border: 2px solid var(--nn-green);
    color: white;
    position: relative;
    overflow: hidden;
}

.btn-playstore::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(94, 199, 34, 0.1), transparent);
    pointer-events: none;
}

.btn-playstore:hover {
    border-color: var(--nn-green-light);
    box-shadow: 0 0 30px rgba(94, 199, 34, 0.2);
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-playstore .btn-label-small {
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    display: block;
    line-height: 1;
}

.btn-playstore .btn-label-big {
    font-size: 1.15rem;
    font-weight: 700;
    display: block;
    line-height: 1.2;
}

/* ── Hero Phone Mockup ────────────────────────────── */
.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background: linear-gradient(180deg, #2a2a4a, #1a1a2e);
    border-radius: 36px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(94, 199, 34, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
}

.phone-mockup-screen {
    position: absolute;
    inset: 8px;
    border-radius: 28px;
    overflow: hidden;
    background: var(--nn-bg);
}

.phone-mockup-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phone-mockup-notch {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 28px;
    background: #111;
    border-radius: 0 0 16px 16px;
    z-index: 2;
}

/* Floating elements around phone */
.hero-float {
    position: absolute;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--nn-text);
    animation: float 6s ease-in-out infinite;
    white-space: nowrap;
}

.hero-float:nth-child(2) { animation-delay: -2s; }
.hero-float:nth-child(3) { animation-delay: -4s; }

.hero-float.top-left {
    top: 5%;
    left: -10%;
}

.hero-float.mid-right {
    top: 40%;
    right: -15%;
}

.hero-float.bottom-left {
    bottom: 10%;
    left: -5%;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ── Section Commons ──────────────────────────────── */
.section {
    padding: var(--section-pad) 0;
    position: relative;
}

/* Section backgrounds — onboarding-style images */
#features {
    background:
        linear-gradient(170deg, rgba(26,26,46,0.7) 0%, rgba(15,15,30,0.75) 100%),
        url('/internal/tools/heartbeat-studio/img/fondo4.png') center/cover no-repeat;
}

#faq {
    background:
        linear-gradient(170deg, rgba(15,15,26,0.72) 0%, rgba(26,26,46,0.7) 100%),
        url('/internal/tools/heartbeat-studio/img/fondo1.png') center/cover no-repeat;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--nn-green);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--nn-text-dim);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ── Problem Section ──────────────────────────────── */
.problem {
    background: linear-gradient(180deg, var(--nn-bg) 0%, var(--nn-bg-deep) 100%);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.problem-card {
    background: var(--nn-bg-card);
    border: 1px solid var(--nn-border);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: transform 0.2s, border-color 0.2s;
}

.problem-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
}

.problem-card .card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.problem-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.problem-card p {
    font-size: 0.88rem;
    color: var(--nn-text-dim);
    line-height: 1.6;
}

/* ── Features Grid ────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--nn-bg-card);
    border: 1px solid var(--nn-border);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: transform 0.2s, border-color 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(94, 199, 34, 0.2);
    box-shadow: 0 8px 32px rgba(94, 199, 34, 0.06);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
    background: rgba(94, 199, 34, 0.1);
    border: 1px solid rgba(94, 199, 34, 0.15);
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--nn-text-dim);
    line-height: 1.65;
}

.feature-card .feature-tag {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--nn-green);
    background: rgba(94, 199, 34, 0.08);
    padding: 4px 10px;
    border-radius: 6px;
}

/* ── Stats Bar ────────────────────────────────────── */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px;
    padding: 40px 0;
    text-align: center;
}

.stat-item .stat-number {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--nn-green-light), var(--nn-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-item .stat-label {
    font-size: 0.82rem;
    color: var(--nn-text-dim);
    margin-top: 4px;
}

/* ── Tools / Lead Magnets Section ─────────────────── */
.tools-section {
    background:
        linear-gradient(170deg, rgba(15,15,26,0.72) 0%, rgba(26,26,46,0.68) 100%),
        url('/internal/tools/heartbeat-studio/img/fondo2.png') center/cover no-repeat;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.tool-card {
    background: var(--nn-bg-card);
    border: 1px solid var(--nn-border);
    border-radius: var(--radius-md);
    padding: 28px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: var(--nn-text);
    display: block;
}

.tool-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 12px 40px rgba(255, 215, 0, 0.08);
    text-decoration: none;
}

.tool-card .tool-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.tool-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.tool-card p {
    font-size: 0.82rem;
    color: var(--nn-text-dim);
    line-height: 1.5;
}

.tool-card .tool-badge {
    display: inline-block;
    margin-top: 14px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--nn-gold);
    background: rgba(255, 215, 0, 0.1);
    padding: 4px 12px;
    border-radius: 6px;
}

.tool-card .tool-badge.live {
    color: var(--nn-green);
    background: rgba(94, 199, 34, 0.12);
}

/* ── Comparison Table ─────────────────────────────── */
.comparison-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--nn-border);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.comparison-table th,
.comparison-table td {
    padding: 14px 18px;
    text-align: center;
    border-bottom: 1px solid var(--nn-border);
}

.comparison-table th {
    background: rgba(94, 199, 34, 0.08);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--nn-text-dim);
    white-space: nowrap;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    text-align: left;
    font-weight: 600;
}

.comparison-table th.highlight {
    color: var(--nn-green-light);
    background: rgba(94, 199, 34, 0.15);
}

.comparison-table td.highlight {
    background: rgba(94, 199, 34, 0.04);
}

.comparison-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* ── CTA Section ──────────────────────────────────── */
.cta-section {
    text-align: center;
    background:
        linear-gradient(170deg, rgba(26,26,46,0.68) 0%, rgba(15,15,30,0.72) 100%),
        url('/internal/tools/heartbeat-studio/img/fondo5.png') center/cover no-repeat;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(94, 199, 34, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--nn-text-dim);
    margin-bottom: 36px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Footer ───────────────────────────────────────── */
.footer {
    border-top: 1px solid var(--nn-border);
    padding: 48px 0 32px;
    background: var(--nn-bg-deep);
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.1rem;
    color: white;
    margin-bottom: 12px;
}

.footer-brand img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.footer-desc {
    font-size: 0.85rem;
    color: var(--nn-text-dim);
    line-height: 1.6;
    max-width: 280px;
}

.footer-col h4 {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--nn-text-dim);
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--nn-text-muted);
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: white;
    text-decoration: none;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--nn-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--nn-text-muted);
}

.footer-bottom a {
    color: var(--nn-text-muted);
}

@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .footer-inner {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* ── Responsive ───────────────────────────────────── */

/* Hide floating badges before layout collapses — they overlap the phone mockup */
@media (max-width: 1100px) {
    .hero-float {
        display: none;
    }
}

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-lg {
        width: 100%;
        justify-content: center;
    }

    .phone-mockup {
        width: 220px;
        height: 440px;
    }
}

/* ── Scroll Animations ────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Accessibility ────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}

:focus-visible {
    outline: 2px solid var(--nn-green);
    outline-offset: 2px;
}
