/* NudgeBot Styles - Complete CSS */

:root {
    --primary: #E8657A;
    --primary-dark: #d45263;
    --primary-light: #f8e8eb;
    --secondary: #6c757d;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --light: #f8f9fa;
    --dark: #343a40;
    --white: #ffffff;
    --border: #dee2e6;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
    --radius: 8px;
    --radius-lg: 16px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* Header */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-content { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.nav { display: flex; gap: 1.5rem; align-items: center; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: 2px solid transparent;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    text-align: center;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); text-decoration: none; }
.btn-secondary { background: var(--secondary); color: var(--white); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: var(--white); text-decoration: none; }
.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-block { display: block; width: 100%; }

/* Hero */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, #fdf2f3 0%, #fff 100%);
    padding: 4rem 0;
}
.hero-content { text-align: center; max-width: 800px; margin: 0 auto; }
.hero-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--dark);
}
.gradient-text { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-subtitle { font-size: 1.25rem; color: var(--secondary); margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-note { font-size: 0.875rem; color: var(--secondary); margin-top: 1rem; }

/* Section Titles */
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 3rem; color: var(--dark); }

/* How It Works */
.how-it-works { padding: 5rem 0; background: var(--white); }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 3rem; }
.step-card { text-align: center; position: relative; }
.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}
.step-icon { font-size: 4rem; margin-bottom: 1rem; }
.step-card h3 { margin-bottom: 0.5rem; color: var(--dark); }
.step-card p { color: var(--secondary); }

/* Features */
.features { padding: 5rem 0; background: var(--light); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.feature-card { background: var(--white); padding: 2rem; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.feature-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.feature-card h3 { margin-bottom: 0.5rem; color: var(--dark); }
.feature-card p { color: var(--secondary); font-size: 0.95rem; }

/* Use Cases */
.use-cases { padding: 5rem 0; background: var(--white); }
.use-cases-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.use-case-card { background: linear-gradient(135deg, var(--primary-light) 0%, #fff 100%); padding: 2rem; border-radius: var(--radius-lg); border: 1px solid var(--primary-light); }
.use-case-icon { font-size: 2rem; margin-bottom: 0.75rem; display: block; }
.use-case-card h3 { margin-bottom: 0.5rem; color: var(--dark); font-size: 1.1rem; }
.use-case-card p { color: var(--secondary); font-size: 0.9rem; }

/* CTA */
.cta { padding: 5rem 0; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); }
.cta-box { text-align: center; color: white; }
.cta-box h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.cta-box p { font-size: 1.25rem; margin-bottom: 2rem; opacity: 0.9; }
.cta .btn-primary { background: white; color: var(--primary); }
.cta .btn-primary:hover { background: var(--light); }

/* Footer */
.footer { background: var(--dark); color: rgba(255,255,255,0.7); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 3rem; margin-bottom: 3rem; }
.footer-brand h3 { color: white; font-size: 1.5rem; margin-bottom: 0.5rem; }
.footer-links h4 { color: white; margin-bottom: 1rem; }
.footer-links a { display: block; color: rgba(255,255,255,0.7); margin-bottom: 0.5rem; }
.footer-links a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; text-align: center; font-size: 0.875rem; }

/* Auth Forms */
.auth-container { min-height: calc(100vh - 200px); display: flex; align-items: center; justify-content: center; padding: 3rem 1rem; }
.auth-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 2.5rem; width: 100%; max-width: 420px; }
.auth-card h1 { color: var(--primary); text-align: center; margin-bottom: 0.25rem; font-size: 1.75rem; }
.auth-card .tagline { text-align: center; color: var(--secondary); margin-bottom: 2rem; font-size: 0.95rem; }
.auth-card h2 { margin-bottom: 1.5rem; font-size: 1.25rem; }

/* Forms */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: var(--dark); }
input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="datetime-local"], input[type="number"], textarea, select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color 0.2s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--primary); }
input.error, textarea.error { border-color: var(--danger); }
textarea { min-height: 120px; resize: vertical; }
.form-help { font-size: 0.875rem; color: var(--secondary); margin-top: 0.25rem; }

/* Alerts */
.alert { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.5rem; font-size: 0.95rem; }
.alert-error { background: #fef2f2; color: var(--danger); border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: var(--success); border: 1px solid #bbf7d0; }
.alert-info { background: #eff6ff; color: #3b82f6; border: 1px solid #bfdbfe; }

/* Dashboard */
.dashboard { padding: 2rem 0; }
.dashboard-header { margin-bottom: 2rem; }
.dashboard-header h1 { margin-bottom: 0.5rem; }

/* Stats Grid */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.stat-card { background: var(--white); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.stat-value { font-size: 2.5rem; font-weight: 700; color: var(--primary); line-height: 1; }
.stat-label { color: var(--secondary); font-size: 0.875rem; margin-top: 0.5rem; }
.stat-card.primary { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); }
.stat-card.primary .stat-value { color: white; }
.stat-card.primary .stat-label { color: rgba(255,255,255,0.8); }

/* Cards */
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; margin-bottom: 1.5rem; }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.card-title { font-size: 1.25rem; font-weight: 600; }

/* Table */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.table th { background: var(--light); font-weight: 600; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--secondary); }
.table tr:hover { background: #fafafa; }
.table-actions { display: flex; gap: 0.5rem; }

/* Badges */
.badge { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 50px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-sent { background: #d1fae5; color: #065f46; }
.badge-failed { background: #fee2e2; color: #991b1b; }
.badge-cancelled { background: var(--light); color: var(--secondary); }
.badge-free { background: var(--light); color: var(--dark); }
.badge-pro { background: var(--primary-light); color: var(--primary); }
.badge-business { background: #1e293b; color: white; }

/* Tabs */
.tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 2rem; }
.tab { padding: 1rem 1.5rem; cursor: pointer; border: none; background: none; font-size: 1rem; color: var(--secondary); border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.2s; }
.tab:hover { color: var(--primary); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* Modal */
.modal { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); align-items: center; justify-content: center; z-index: 1000; }
.modal.active { display: flex; }
.modal-content { background: var(--white); border-radius: var(--radius-lg); padding: 2rem; max-width: 500px; width: 90%; max-height: 90vh; overflow-y: auto; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.modal-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--secondary); }

/* Pricing */
.pricing { padding: 5rem 0; background: var(--light); }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; max-width: 900px; margin: 0 auto; }
.pricing-card { background: var(--white); border-radius: var(--radius-lg); padding: 2rem; text-align: center; box-shadow: var(--shadow); border: 2px solid transparent; }
.pricing-card.featured { border-color: var(--primary); transform: scale(1.05); position: relative; }
.pricing-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary); color: white; padding: 0.25rem 1rem; border-radius: 50px; font-size: 0.75rem; font-weight: 600; }
.pricing-card h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.pricing-price { font-size: 3rem; font-weight: 700; color: var(--primary); margin-bottom: 1.5rem; }
.pricing-price span { font-size: 1rem; font-weight: normal; color: var(--secondary); }
.pricing-features { list-style: none; margin-bottom: 2rem; text-align: left; }
.pricing-features li { padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
.pricing-features li:last-child { border-bottom: none; }

/* About/Contact */
.page-content { padding: 3rem 0; }
.page-content h1 { font-size: 2.5rem; margin-bottom: 2rem; color: var(--dark); }
.page-content h2 { font-size: 1.75rem; margin: 2rem 0 1rem; color: var(--dark); }
.page-content p { margin-bottom: 1rem; color: var(--secondary); }
.page-content ul { margin: 1rem 0 1.5rem 1.5rem; }
.page-content li { margin-bottom: 0.5rem; color: var(--secondary); }

/* Flexbox utilities */
.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

/* Spacing */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* Text */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--secondary); }
.text-primary { color: var(--primary); }
.text-sm { font-size: 0.875rem; }

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.25rem; }
    .section-title { font-size: 2rem; }
    .pricing-card.featured { transform: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .nav { gap: 1rem; }
    .steps-grid, .features-grid, .use-cases-grid { grid-template-columns: 1fr; }
}