/* ===================================
   AffirmStreak - Main Stylesheet
   Brand Colors & Bold Typography
   =================================== */

/* === CSS Variables === */
:root {
    /* Brand Colors */
    --color-cream: #F5F1E8;
    --color-charcoal: #2C2C2C;
    --color-terracotta: #D4A574;
    --color-sage: #A8B5A0;
    --color-warm-gray: #8B8680;
    --color-off-white: #FDFCFA;
    
    /* Spacing (8pt grid) */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 48px;
    --space-2xl: 64px;
    --space-3xl: 96px;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0px 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0px 4px 16px rgba(0, 0, 0, 0.08);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

/* === Reset & Base Styles === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-cream);
    color: var(--color-charcoal);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-charcoal);
}

h1 {
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    line-height: 0.95;
}

h2 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    line-height: 1.0;
}

h3 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

p {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--color-charcoal);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* === Navigation === */
.navbar {
    background-color: var(--color-off-white);
    padding: var(--space-md) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-charcoal);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-charcoal);
    transition: color 0.3s ease;
}

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--color-charcoal);
    transition: all 0.3s ease;
}

/* === Buttons === */
.btn-primary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--color-terracotta);
    color: var(--color-off-white);
}

.btn-primary:hover {
    background-color: #c89465;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-ghost {
    background-color: transparent;
    color: var(--color-charcoal);
    border: 2px solid var(--color-charcoal);
}

.btn-ghost:hover {
    background-color: var(--color-charcoal);
    color: var(--color-off-white);
}

.btn-large {
    padding: 22px var(--space-xl);
    font-size: 1.125rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-nav {
    padding: 12px var(--space-md);
    font-size: 0.9375rem;
}

/* === Hero Section === */
.hero {
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-off-white) 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.hero-text {
    max-width: 600px;
}

.hero-title {
    margin-bottom: var(--space-md);
    line-height: 0.9;
}

.highlight {
    color: var(--color-sage);
    display: block;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.375rem;
    line-height: 1.6;
    color: var(--color-warm-gray);
    margin-bottom: var(--space-xl);
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-bottom: var(--space-md);
}

.hero-note {
    font-size: 0.9375rem;
    color: var(--color-warm-gray);
    font-style: italic;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.extension-mockup {
    background-color: var(--color-off-white);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.mockup-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === Features Section === */
.features {
    padding: var(--space-3xl) 0;
    background-color: var(--color-off-white);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    margin-bottom: var(--space-md);
    line-height: 1.1;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-warm-gray);
    line-height: 1.7;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg);
}

.feature-card {
    background-color: var(--color-cream);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background-color: var(--color-terracotta);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.feature-icon svg {
    color: var(--color-off-white);
}

.feature-title {
    margin-bottom: var(--space-sm);
    color: var(--color-charcoal);
}

.feature-description {
    font-size: 1rem;
    color: var(--color-warm-gray);
    line-height: 1.7;
}

/* === How It Works Section === */
.how-it-works {
    padding: var(--space-3xl) 0;
    background-color: var(--color-cream);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.step-card {
    text-align: center;
    padding: var(--space-lg);
}

.step-number {
    width: 80px;
    height: 80px;
    background-color: var(--color-sage);
    color: var(--color-off-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto var(--space-md);
}

.step-title {
    margin-bottom: var(--space-sm);
}

.step-description {
    color: var(--color-warm-gray);
}

/* === CTA Section === */
.cta-section {
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg, var(--color-terracotta) 0%, #c89465 100%);
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    color: var(--color-off-white);
    margin-bottom: var(--space-md);
}

.cta-subtitle {
    color: var(--color-off-white);
    font-size: 1.25rem;
    margin-bottom: var(--space-lg);
    opacity: 0.95;
}

.cta-section .btn-primary {
    background-color: var(--color-charcoal);
}

.cta-section .btn-primary:hover {
    background-color: #1a1a1a;
}

/* === Footer === */
.footer {
    background-color: var(--color-charcoal);
    color: var(--color-cream);
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-xl);
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    height: 48px;
    width: auto;
    margin-bottom: var(--space-md);
    filter: brightness(0) invert(1);
}

.footer-tagline {
    color: var(--color-warm-gray);
    font-size: 1rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-heading {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-off-white);
    margin-bottom: var(--space-xs);
}

.footer-link {
    font-size: 0.9375rem;
    color: var(--color-warm-gray);
}

.footer-link:hover {
    color: var(--color-terracotta);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-md);
    text-align: center;
}

.footer-bottom p {
    color: var(--color-warm-gray);
    font-size: 0.875rem;
}

/* === Responsive Design === */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .hero-image {
        order: -1;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-off-white);
        flex-direction: column;
        padding: var(--space-md);
        box-shadow: var(--shadow-md);
        display: none;
        gap: var(--space-sm);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .btn-nav {
        width: 100%;
        justify-content: center;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero {
        padding: var(--space-2xl) 0;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn-large {
        width: 100%;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.0625rem;
    }
    
    .extension-mockup {
        padding: var(--space-md);
    }
}
