/* ============================================
   FinTube Daily - Landing Page Styles
   Mobile-first, responsive design
   ============================================ */

/* CSS Variables */
:root {
    --primary-dark: #1e3a5f;
    --primary-mid: #2d5a87;
    --primary-light: #3d7ab5;
    --accent-gold: #ffc107;
    --accent-pink: #ff4081;
    --bg-light: #f5f7fa;
    --bg-white: #ffffff;
    --text-dark: #1e3a5f;
    --text-mid: #4a5568;
    --text-light: #718096;
    --success-green: #10b981;
    --error-red: #ef4444;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HEADER
   ============================================ */

.header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-icon {
    font-size: 28px;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-dark);
}

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

.nav a {
    text-decoration: none;
    color: var(--text-mid);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
}

.nav a:hover {
    color: var(--primary-light);
}

.nav-cta {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-mid) 100%);
    color: white !important;
    padding: 10px 20px;
    border-radius: var(--radius-lg);
    font-weight: 600;
}

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

/* Mobile Nav */
@media (max-width: 600px) {
    .nav a:not(.nav-cta) {
        display: none;
    }
    
    .nav-cta {
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
    padding: 60px 0 80px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: center;
}

@media (min-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
}

.hero-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.2;
    margin-bottom: 20px;
}

@media (min-width: 600px) {
    .hero-title {
        font-size: 48px;
    }
}

@media (min-width: 900px) {
    .hero-title {
        font-size: 54px;
    }
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-mid);
    margin-bottom: 30px;
    max-width: 500px;
}

@media (min-width: 600px) {
    .hero-subtitle {
        font-size: 20px;
    }
}

.hero-benefits {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hero-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: var(--text-dark);
}

.benefit-icon {
    font-size: 22px;
}

/* ============================================
   SIGNUP FORM CARD
   ============================================ */

.hero-form {
    width: 100%;
}

.form-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 30px;
    border: 1px solid rgba(0,0,0,0.05);
}

.form-header {
    text-align: center;
    margin-bottom: 25px;
}

.form-header h2 {
    font-size: 24px;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.form-header p {
    color: var(--text-light);
    font-size: 15px;
}

/* Override Brevo default styles */
.sib-form {
    background: transparent !important;
}

#sib-container {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    max-width: none !important;
}

.form-field {
    margin-bottom: 15px;
}

.form-input {
    width: 100%;
    padding: 16px 18px;
    font-size: 16px;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-sm);
    outline: none;
    transition: var(--transition);
    font-family: inherit;
}

.form-input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(61, 122, 181, 0.15);
}

.form-input::placeholder {
    color: #a0aec0;
}

.submit-button {
    width: 100%;
    padding: 16px 24px;
    font-size: 18px;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-mid) 100%);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

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

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

.button-loader {
    width: 20px;
    height: 20px;
    fill: white;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.form-disclaimer {
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
    margin-top: 15px;
}

/* Native form styles */
.native-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Form messages */
#form-messages {
    margin-bottom: 15px;
}

.form-message {
    padding: 15px 18px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    text-align: center;
}

.form-message--error {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.form-message--success {
    background-color: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* Button loading state */
.button-loading {
    font-weight: 600;
}

.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   SECTION STYLES (shared)
   ============================================ */

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-dark);
    text-align: center;
    margin-bottom: 12px;
}

@media (min-width: 600px) {
    .section-title {
        font-size: 36px;
    }
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-mid);
    text-align: center;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 600px) {
    .section-subtitle {
        font-size: 18px;
    }
}

/* ============================================
   PREVIEW SECTION
   ============================================ */

.preview-section {
    padding: 80px 0;
    background: var(--bg-white);
}

.preview-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

@media (min-width: 700px) {
    .preview-features {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

.preview-card {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
}

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

.preview-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.preview-card h3 {
    font-size: 20px;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.preview-card p {
    font-size: 15px;
    color: var(--text-mid);
    line-height: 1.6;
}

/* ============================================
   CREATORS SECTION
   ============================================ */

.creators-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
}

.creators-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (min-width: 600px) {
    .creators-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

@media (min-width: 900px) {
    .creators-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

.creator-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--bg-white);
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 20px 15px;
    text-decoration: none;
    transition: var(--transition);
}

.creator-card:hover {
    border-color: var(--primary-light);
    background: linear-gradient(135deg, rgba(61,122,181,0.05) 0%, rgba(45,90,135,0.05) 100%);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.creator-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e2e8f0;
    transition: var(--transition);
}

.creator-card:hover .creator-avatar {
    border-color: var(--primary-light);
    transform: scale(1.05);
}

.creator-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    line-height: 1.3;
}

@media (min-width: 600px) {
    .creator-avatar {
        width: 70px;
        height: 70px;
    }
    
    .creator-name {
        font-size: 14px;
    }
}

@media (min-width: 900px) {
    .creator-avatar {
        width: 80px;
        height: 80px;
    }
    
    .creator-name {
        font-size: 15px;
    }
}

.creators-more {
    text-align: center;
    margin-top: 30px;
    font-size: 16px;
    color: var(--text-light);
    font-style: italic;
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */

.how-section {
    padding: 80px 0;
    background: var(--bg-white);
}

.how-steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

@media (min-width: 800px) {
    .how-steps {
        flex-direction: row;
        justify-content: center;
        gap: 30px;
    }
}

.how-step {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 30px;
    text-align: center;
    position: relative;
    flex: 1;
    max-width: 280px;
}

.step-number {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    background: var(--primary-light);
    color: white;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon {
    font-size: 42px;
    margin-bottom: 15px;
}

.how-step h3 {
    font-size: 18px;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.how-step p {
    font-size: 14px;
    color: var(--text-mid);
    line-height: 1.5;
}

.how-arrow {
    font-size: 30px;
    color: var(--primary-light);
    display: none;
}

@media (min-width: 800px) {
    .how-arrow {
        display: block;
    }
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-mid) 50%, var(--primary-light) 100%);
}

.cta-box {
    text-align: center;
    color: white;
}

.cta-box h2 {
    font-size: 28px;
    margin-bottom: 12px;
}

@media (min-width: 600px) {
    .cta-box h2 {
        font-size: 36px;
    }
}

.cta-box p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 25px;
}

@media (min-width: 600px) {
    .cta-box p {
        font-size: 18px;
    }
}

.cta-button {
    display: inline-block;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-dark);
    background: white;
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: var(--transition);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--primary-dark);
    color: white;
    padding: 50px 0 30px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

@media (min-width: 600px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

.footer-brand .logo-text {
    color: white;
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    margin-top: 10px;
    max-width: 300px;
}

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

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 15px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
}

.footer-disclaimer {
    font-size: 12px !important;
    max-width: 500px;
    margin: 0 auto;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.input--hidden {
    position: absolute;
    left: -5000px;
}

/* Hide Brevo default elements we don't need */
.sib-form-block:has(> p:contains("Newsletter")),
.sib-text-form-block:has(> p:contains("Subscribe to our newsletter")) {
    display: none !important;
}
