/* Helthio CRED-Inspired Design System */
:root {
    --primary-teal: #17A28F;
    --primary-teal-glow: rgba(23, 162, 143, 0.4);
    --bg-dark: #0A0D16; /* Extremely dark blue/black */
    --bg-card: #151A2C;
    --text-main: #FFFFFF;
    --text-muted: #94A3B8;
    --border-color: rgba(255, 255, 255, 0.1);
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-dark);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
}

h2 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

p {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--text-muted);
    font-weight: 400;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 2rem;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 13, 22, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: var(--text-main);
    color: var(--bg-dark);
    border-radius: 50%;
    font-family: serif;
    font-style: italic;
    font-size: 2.2rem;
    line-height: 1;
    padding-bottom: 4px;
}

.logo-icon.small {
    width: 36px;
    height: 36px;
    font-size: 1.8rem;
    padding-bottom: 2px;
}

.btn-download-nav {
    background: var(--text-main);
    color: var(--bg-dark);
    padding: 0.75rem 1.5rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-download-nav:hover {
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
    position: relative;
    background: radial-gradient(circle at 50% 50%, rgba(23, 162, 143, 0.15) 0%, transparent 60%);
}

.hero-content {
    max-width: 1000px;
    margin-top: -5vh;
}

.app-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 3rem;
}

.app-store-btn {
    display: flex;
    align-items: center;
    background-color: var(--text-main);
    color: var(--bg-dark);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    transition: var(--transition);
}

.app-store-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255,255,255,0.1);
}

.app-store-btn i {
    font-size: 2.2rem;
    margin-right: 1rem;
}

.app-store-btn .btn-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.app-store-btn .btn-text small {
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 600;
}

.app-store-btn .btn-text span {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
    margin-top: 2px;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -10px); }
    60% { transform: translate(-50%, -5px); }
}

/* Sticky Scroll Feature Section */
.scroll-container {
    height: 400vh; /* 4 screens worth of scrolling */
    position: relative;
    background: var(--bg-dark);
}

.sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    overflow: hidden;
}

.feature-content {
    flex: 1;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.feature-text {
    position: absolute;
    width: 100%;
    max-width: 600px;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.feature-text.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.phone-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.phone-mockup {
    width: 320px;
    height: 650px;
    background: #000;
    border: 12px solid #2A303C;
    border-radius: 40px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 40px var(--primary-teal-glow);
    overflow: hidden;
}

.notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #2A303C;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 100;
}

.phone-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.phone-screen.active {
    opacity: 1;
    z-index: 10;
}

/* Mockup Internal UI */
.mockup-ui {
    padding: 3rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mockup-header {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.5rem;
}

.mockup-card {
    background: rgba(255,255,255,0.05);
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.mockup-btn {
    background: var(--primary-teal);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    margin-top: auto;
}

.status-bar {
    padding: 1rem;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    border-left: 4px solid transparent;
}

.status-bar.active {
    border-left-color: var(--primary-teal);
    background: rgba(23, 162, 143, 0.1);
}

.chat-bubble {
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    max-width: 80%;
}

.chat-bubble.left {
    background: rgba(255,255,255,0.1);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.chat-bubble.right {
    background: var(--primary-teal);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.log-item {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    position: relative;
    padding-left: 2rem;
}

.log-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: var(--primary-teal);
    border-radius: 50%;
}

/* Manifesto Section */
.manifesto {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-teal);
    text-align: center;
    padding: 4rem 2rem;
}

.manifesto-content {
    max-width: 1000px;
}

.manifesto h2 {
    color: var(--bg-dark);
}

.manifesto p {
    color: rgba(10, 13, 22, 0.8);
}

/* CTA Section */
.cta-section {
    padding: 10rem 2rem;
    text-align: center;
    display: flex;
    justify-content: center;
}

/* Footer */
footer {
    padding: 4rem 2rem 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.25rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

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

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

.copyright {
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 992px) {
    .sticky-wrapper {
        flex-direction: column;
        justify-content: center;
        padding-top: 4rem;
    }
    
    .feature-content {
        height: 40%;
        text-align: center;
        display: flex;
        justify-content: center;
    }
    
    .phone-container {
        height: 60%;
        align-items: flex-start;
    }
    
    .phone-mockup {
        width: 280px;
        height: 570px;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 2rem;
    }
}
