:root {
    --primary: #00E676;
    --primary-glow: rgba(0, 230, 118, 0.4);
    --bg-dark: #0A0F16;
    --bg-darker: #05080b;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --text-light: #F5F7FA;
    --text-muted: #A0AEC0;
    --stroke: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Gradients */
body::before {
    content: '';
    position: fixed;
    top: -20%;
    left: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    filter: blur(100px);
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    bottom: -20%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(0, 191, 165, 0.15) 0%, transparent 70%);
    filter: blur(120px);
    z-index: -1;
}

a {
    text-decoration: none;
    color: inherit;
}

.highlight {
    color: var(--primary);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(10, 15, 22, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--stroke);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-light);
}

.btn-primary-small {
    background: var(--primary);
    color: var(--bg-darker) !important;
    padding: 8px 20px;
    border-radius: 100px;
    font-weight: 700 !important;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--primary-glow);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 24px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
    width: 100%;
}

.hero-text {
    flex: 1;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--stroke);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-light);
}

.hero-text h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-darker);
    padding: 16px 32px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    border: 1px solid var(--stroke);
    padding: 16px 32px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hero-trust {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stars {
    color: #FFD700;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.hero-trust span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Stats Banner */
.stats-banner {
    background: var(--bg-darker);
    padding: 60px 24px;
    border-top: 1px solid var(--stroke);
    border-bottom: 1px solid var(--stroke);
}

.stats-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: var(--stroke);
}

/* Badge Small */
.badge-small {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(0, 230, 118, 0.1);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

/* Phone Mockup */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: var(--bg-darker);
    border: 8px solid #1A202C;
    border-radius: 40px;
    position: relative;
    box-shadow: -20px 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: rotateY(-15deg) rotateX(5deg);
    overflow: hidden;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Fake App UI */
.mockup-screen {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mockup-header {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.mockup-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid var(--stroke);
}

.mockup-ring {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 6px solid var(--primary);
    border-bottom-color: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
}

.mockup-info {
    font-weight: 700;
    font-size: 1.1rem;
}

.mockup-scan-btn {
    background: var(--primary);
    color: var(--bg-darker);
    padding: 16px;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    margin: 10px 0;
}

.mockup-food-item {
    background: var(--bg-card);
    padding: 16px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid var(--stroke);
}

/* Showcase Section - Stitch Integration */
.showcase {
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.showcase-container {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-top: 60px;
}

@media (max-width: 968px) {
    .showcase-container {
        flex-direction: column;
    }
}

.showcase-left {
    flex: 1;
    display: flex;
    justify-content: center;
}

.showcase-right {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* iPhone Refined */
.iphone-content {
    position: relative;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1546069901-ba9599a7e63c?q=80&w=1760&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
}

.scan-area {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
}

.scanner-corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border-color: var(--primary);
    border-width: 2px;
    z-index: 10;
}

.top-left {
    top: 40px;
    left: 40px;
    border-top-style: solid;
    border-left-style: solid;
}

.top-right {
    top: 40px;
    right: 40px;
    border-top-style: solid;
    border-right-style: solid;
}

.bottom-left {
    bottom: 40px;
    left: 40px;
    border-bottom-style: solid;
    border-left-style: solid;
}

.bottom-right {
    bottom: 40px;
    right: 40px;
    border-bottom-style: solid;
    border-right-style: solid;
}

.scan-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary);
    z-index: 11;
    animation: scanAnimation 4s ease-in-out infinite;
}

@keyframes scanAnimation {

    0%,
    100% {
        top: 40px;
    }

    50% {
        top: calc(100% - 40px);
    }
}

.food-tag {
    position: absolute;
    background: rgba(15, 35, 25, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 230, 118, 0.3);
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    z-index: 12;
}

.tag-pulse {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: tagPulse 1.5s infinite;
}

@keyframes tagPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.tag-1 {
    top: 25%;
    left: 15%;
}

.tag-2 {
    top: 45%;
    right: 10%;
}

.tag-3 {
    bottom: 35%;
    left: 20%;
}

.iphone-ui-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    z-index: 15;
}

.ui-kcal {
    font-size: 1.8rem;
    font-weight: 800;
}

.ui-kcal small {
    font-size: 0.9rem;
    color: var(--primary);
}

.ui-macros {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
}

.macro-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.macro-circle svg {
    width: 40px;
    height: 40px;
    transform: rotate(-90deg);
}

.macro-circle span {
    font-size: 0.8rem;
    font-weight: 700;
}

.macro-circle::after {
    content: attr(data-label);
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Dashboard Cards */
.dashboard-card {
    padding: 32px;
    border-radius: 32px;
}

.db-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.db-header h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
}

.db-date {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.prog-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.prog-bar-container {
    height: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 32px;
}

.prog-bar-fill {
    height: 100%;
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
    border-radius: 100px;
}

.macros-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.mini-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--stroke);
    padding: 20px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mini-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.mini-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
}

.history-card {
    padding: 24px;
    border-radius: 24px;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
}

.hist-img {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--stroke);
}

.hist-title {
    display: block;
    font-weight: 700;
    font-size: 1rem;
}

.hist-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.primary-text {
    color: var(--primary);
}

.font-800 {
    font-weight: 800;
}

/* Features */
.features {
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 10px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--stroke);
    padding: 32px;
    border-radius: 24px;
    transition: transform 0.3s, background 0.3s, border-color 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    border-color: rgba(0, 230, 118, 0.3);
}

.icon-wrapper {
    width: 50px;
    height: 50px;
    background: rgba(0, 230, 118, 0.1);
    color: var(--primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Pricing Section */
.pricing {
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-container {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 60px;
}

.price-card {
    background: var(--bg-card);
    border: 1px solid var(--stroke);
    border-radius: 32px;
    padding: 48px;
    flex: 1;
    max-width: 400px;
    position: relative;
    transition: transform 0.3s;
}

.price-card.popular {
    background: linear-gradient(145deg, rgba(0, 230, 118, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-color: var(--primary);
    transform: scale(1.05);
}

.popular-tag {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--bg-darker);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
}

.price-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 32px;
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.price-card ul {
    list-style: none;
    margin-bottom: 40px;
}

.price-card li {
    margin-bottom: 16px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-pricing-primary {
    display: block;
    text-align: center;
    background: var(--primary);
    color: var(--bg-darker);
    padding: 16px;
    border-radius: 16px;
    font-weight: 700;
}

.btn-pricing-secondary {
    display: block;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 16px;
    border-radius: 16px;
    font-weight: 600;
    color: var(--text-muted);
}

/* Privacy Container */
.privacy-container {
    max-width: 800px;
    margin: 120px auto 60px;
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--stroke);
    border-radius: 24px;
}

.privacy-container h1,
.privacy-container h2 {
    color: var(--text-light);
    margin-bottom: 16px;
    margin-top: 32px;
}

.privacy-container h1 {
    margin-top: 0;
}

.privacy-container p,
.privacy-container li {
    color: var(--text-muted);
    margin-bottom: 12px;
}

.privacy-container ul {
    padding-left: 20px;
    margin-bottom: 24px;
}

/* Footer */
footer {
    border-top: 1px solid var(--stroke);
    padding: 60px 24px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 8px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--text-light);
}

.footer-copyright {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--stroke);
    padding-top: 24px;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
    }

    .nav-links {
        display: none;
        /* In a real app add a hamburger menu */
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
    }

    .privacy-container {
        padding: 24px;
        margin: 100px 20px 40px;
    }
}