/* CSS Variables based on constants/Colors.ts and Neo-Brutalism theme */
:root {
    --bg-color: #FAFAFA;
    --text-primary: #121212;
    --text-secondary: #555555;
    --red-accent: #E53935;
    --gray-bg: #EAEAEA;
    --white: #FFFFFF;
    --black: #000000;
    
    --border-width: 2.5px;
    --shadow-offset: 4px;
    --border-radius: 20px;
    --border-radius-lg: 28px;
    
    --font-heading: 'Urbanist', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --ease-bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --transition-bounce: all 0.3s var(--ease-bounce);
    --transition-fast: all 0.15s ease-out;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    background-image: radial-gradient(#D5D5D5 1.5px, transparent 0);
    background-size: 24px 24px;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
}

.text-red { color: var(--red-accent); }
.bg-red { background-color: var(--red-accent); color: var(--white); }
.bg-gray { background-color: var(--gray-bg); }

/* Neo-Brutalism Base Styles */
.neo-brutal {
    border: var(--border-width) solid var(--black);
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0px var(--black);
    border-radius: var(--border-radius);
    transition: var(--transition-fast);
}

/* Button Neo-Brutalism Feedback (Eat the shadow) */
button, .btn {
    cursor: pointer;
}

.btn.neo-brutal:hover,
.feature-card.neo-brutal:hover,
.step.neo-brutal:hover,
.cta-box.neo-brutal:hover {
    transform: translate(2px, 2px);
    box-shadow: calc(var(--shadow-offset) - 2px) calc(var(--shadow-offset) - 2px) 0px var(--black);
}

.btn.neo-brutal:active,
.feature-card.neo-brutal:active,
.step.neo-brutal:active,
.cta-box.neo-brutal:active {
    transform: translate(var(--shadow-offset), var(--shadow-offset));
    box-shadow: 0px 0px 0px var(--black);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    font-family: var(--font-heading);
    border-radius: 999px; /* pill shape */
}

.btn-primary {
    background-color: var(--red-accent);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--text-primary);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 5%;
    background-color: var(--bg-color);
    border-bottom: var(--border-width) solid var(--black);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -1px;
}

nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--red-accent);
}

.nav-cta {
    background-color: var(--black);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 999px;
    border: 2px solid var(--black);
}
.nav-cta:hover {
    color: var(--black);
    background-color: var(--white);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 5%;
    min-height: calc(100vh - 84px);
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.cta-group {
    display: flex;
    gap: 20px;
}

/* App Mockup */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.mockup {
    width: 320px;
    height: 640px;
    background-color: var(--white);
    border-radius: 40px;
    padding: 12px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.mockup-header {
    height: 30px;
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.camera-island {
    width: 100px;
    height: 24px;
    background-color: var(--black);
    border-radius: 12px;
}

.mockup-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.mockup-ui-title {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

.mockup-ui-bpm {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    text-align: center;
}

.mockup-ui-bpm span {
    display: block;
    font-size: 1.5rem;
    color: var(--red-accent);
}

.mockup-ui-button {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--red-accent);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 20px 0;
}

.mockup-ui-stats {
    display: flex;
    gap: 40px;
    text-align: center;
}

.mockup-ui-stats div {
    font-size: 1.8rem;
    font-weight: 800;
}

.mockup-ui-stats span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Sections Common */
section {
    padding: 100px 5%;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
}

/* Features */
.features {
    background-color: var(--white);
    border-top: var(--border-width) solid var(--black);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--white);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-radius: var(--border-radius-lg);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    border: 2.5px solid var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 3px 3px 0 var(--black);
}

.feature-card h3 {
    font-size: 1.5rem;
}

.feature-card p {
    color: var(--text-secondary);
}

/* How it works */
.how-it-works {
    background-color: #F0F0F0;
    border-top: var(--border-width) solid var(--black);
}

.steps-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.step {
    background-color: var(--white);
    padding: 28px 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    border-radius: var(--border-radius-lg);
}

.step-num {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    color: var(--red-accent);
    text-shadow: 2px 2px 0 var(--black);
}

.step-content h3 {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.step-content p {
    color: var(--text-secondary);
}

/* Bottom CTA */
.bottom-cta {
    background-color: var(--red-accent);
    border-top: var(--border-width) solid var(--black);
    display: flex;
    justify-content: center;
}

.cta-box {
    background-color: var(--white);
    padding: 60px;
    text-align: center;
    max-width: 800px;
    width: 100%;
}

.cta-box h2 {
    font-size: 3rem;
    margin-bottom: 16px;
}

.cta-box p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* Footer */
footer {
    background-color: var(--black);
    color: var(--white);
    padding: 60px 5% 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand h3 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.footer-brand p {
    color: #999;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--red-accent);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    color: #666;
    padding-top: 20px;
    border-top: 1px solid #333;
}

/* Animations */
.animated {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s var(--ease-bounce) forwards;
}

.stagger-1 { animation-delay: 100ms; }
.stagger-2 { animation-delay: 250ms; }
.stagger-3 { animation-delay: 400ms; }

.animated-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease-bounce), transform 0.6s var(--ease-bounce);
}

.animated-scroll.visible {
    opacity: 1;
    transform: translateY(0);
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}

.delay-1 { transition-delay: 150ms; }
.delay-2 { transition-delay: 300ms; }
.delay-3 { transition-delay: 450ms; }

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

/* Responsive */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
    }
    
    .hero-content h1 { font-size: 3.5rem; }
    
    .cta-group { justify-content: center; }
    
    .navbar { flex-wrap: wrap; gap: 20px; justify-content: center; }
    .logo { width: 100%; text-align: center; }
    
    .mockup {
        transform: scale(0.9);
    }
}

@media (max-width: 600px) {
    .hero-content h1 { font-size: 2.5rem; }
    .cta-group { flex-direction: column; }
    .section-title { font-size: 2.2rem; }
    .cta-box { padding: 40px 20px; }
    .cta-box h2 { font-size: 2rem; }
    .footer-links { flex-direction: column; gap: 16px; text-align: center; }
    .footer-content { justify-content: center; text-align: center; }
}
