/* ==========================================
   DonateTracker Landing Page Styles
   ========================================== */

/* CSS Variables */
:root {
    --color-bg: #FDFBF7;
    --color-bg-warm: #F7F3ED;
    --color-text: #1a1a1a;
    --color-text-muted: #5a5a5a;
    --color-primary: #2D5A3D;
    --color-primary-dark: #1E3D29;
    --color-primary-light: #4A7C5C;
    --color-accent: #D4A853;
    --color-accent-light: #F5E6C8;
    --color-white: #ffffff;
    --color-border: #e0ddd5;
    
    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    --transition: 0.2s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Page Wrapper */
.page-wrapper {
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Shapes */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.bg-shape-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, rgba(212, 168, 83, 0.08) 0%, rgba(45, 90, 61, 0.05) 100%);
    top: -200px;
    right: -200px;
}

.bg-shape-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(45, 90, 61, 0.06) 0%, rgba(212, 168, 83, 0.04) 100%);
    top: 50%;
    left: -150px;
}

.bg-shape-3 {
    width: 300px;
    height: 300px;
    background: rgba(212, 168, 83, 0.06);
    bottom: 10%;
    right: 5%;
}

/* Header */
header {
    position: relative;
    z-index: 10;
    padding: 1.5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 1.75rem;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-primary);
}

/* Main Content */
main {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 0 5rem;
    max-width: 720px;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    background: var(--color-accent-light);
    color: var(--color-primary-dark);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

h1 .highlight {
    color: var(--color-primary);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    max-width: 540px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

/* Signup Box */
.signup-box {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem 2.5rem;
    box-shadow: var(--shadow-md);
    max-width: 480px;
    margin: 0 auto;
}

.signup-box h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.signup-box > p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.signup-form {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.signup-form input[type="email"] {
    flex: 1;
    padding: 0.9rem 1rem;
    font-size: 1rem;
    font-family: var(--font-body);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    transition: border-color var(--transition);
}

.signup-form input[type="email"]:focus {
    outline: none;
    border-color: var(--color-primary);
}

.signup-form input[type="email"]::placeholder {
    color: #aaa;
}

.signup-form button {
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--color-white);
    background: var(--color-primary);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
    white-space: nowrap;
}

.signup-form button:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}

.signup-form button:active {
    transform: translateY(0);
}

.signup-form button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-note {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Features Section */
.features {
    padding: 5rem 0;
}

.features h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-text);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    transition: box-shadow var(--transition), transform var(--transition);
}

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

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* Why Section */
.why-section {
    padding: 4rem 0;
    background: var(--color-bg-warm);
    margin: 0 -2rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

.why-section h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--color-text);
}

.why-content {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 700px) {
    .why-content {
        grid-template-columns: 1.5fr 1fr;
        align-items: center;
    }
}

.why-text p {
    margin-bottom: 1rem;
    color: var(--color-text-muted);
}

.why-text p strong {
    color: var(--color-text);
}

.why-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    text-align: center;
}

.cta-section h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.cta-section > p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.signup-form-bottom {
    max-width: 420px;
    margin: 0 auto;
}

/* Footer */
footer {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg);
}

footer p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.footer-note {
    font-size: 0.8rem !important;
    margin-top: 0.5rem;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 600px) {
    header {
        padding: 1rem 1.25rem;
    }
    
    main {
        padding: 0 1.25rem;
    }
    
    .hero {
        padding: 2rem 0 3rem;
    }
    
    .signup-box {
        padding: 1.5rem;
    }
    
    .signup-form {
        flex-direction: column;
    }
    
    .signup-form button {
        width: 100%;
    }
    
    .why-section {
        margin: 0 -1.25rem;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

/* Animation on load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero .badge {
    animation: fadeInUp 0.6s ease forwards;
}

.hero h1 {
    animation: fadeInUp 0.6s ease 0.1s forwards;
    opacity: 0;
}

.hero .subtitle {
    animation: fadeInUp 0.6s ease 0.2s forwards;
    opacity: 0;
}

.hero .signup-box {
    animation: fadeInUp 0.6s ease 0.3s forwards;
    opacity: 0;
}
