/* ============================================
   TRADEWEFT LANDING PAGE — DESIGN TOKENS
   Derived from BudgetIQ Design System
   ============================================ */

@font-face {
    font-family: 'Filson Pro';
    src: url('fonts/FilsonProBook.woff2') format('woff2');
    font-weight: 350;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Filson Pro';
    src: url('fonts/FilsonProRegular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Filson Pro';
    src: url('fonts/FilsonProMedium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Filson Pro';
    src: url('fonts/FilsonProBold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Filson Pro';
    src: url('fonts/FilsonProHeavy.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* Fallback if fonts aren't available */
@supports not (font-family: 'Filson Pro') {
    * {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    }
}

/* ============================================
   CSS CUSTOM PROPERTIES (TOKENS)
   ============================================ */

:root {
    /* Primary Brand Colors */
    --green-core: #4BAA73;
    --green-light: #6EBB8E;
    --green-muted: #86C6A1;
    --green-mid-dark: #3D9A63;
    --green-deep: #357951;
    --green-darkest: #217042;
    
    /* Green Tints */
    --green-tint-100: #F0F9F4;
    --green-tint-200: #EAF5EE;
    --green-tint-300: #D7F4E3;
    
    /* Gold/Amber Accents */
    --gold-primary: #FFCC00;
    --gold-amber: #FFB300;
    --gold-dark: #F57F17;
    --gold-warm-bg: #FCFAF7;
    
    /* Text Colors */
    --text-primary: #252117;
    --text-navy: #19486A;
    --text-dark: #1A1A1A;
    --text-charcoal: #212B36;
    
    /* Neutrals */
    --grey-body: #5E5E5E;
    --grey-muted: #9CA3AF;
    --grey-disabled: #C8C8C8;
    --border-standard: #F4F4F4;
    --border-light: #EDEEEF;
    --bg-white: #FFFFFF;
    --bg-offwhite: #F9F9F9;
    --bg-light: #F4F4F4;
    --bg-card: #F6F7F7;
    
    /* Status */
    --status-error: #E22034;
    --status-success: #07BC0C;
    
    /* Spacing Scale (4px base) */
    --space-2: 2px;
    --space-4: 4px;
    --space-8: 8px;
    --space-12: 12px;
    --space-16: 16px;
    --space-24: 24px;
    --space-32: 32px;
    --space-48: 48px;
    --space-64: 64px;
    --space-96: 96px;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Filson Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    background: var(--bg-white);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-24);
}

.hero-accent {
    color: var(--green-core);
    position: relative;
    display: inline-block;
}

.hero-accent::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    height: 8px;
    background: var(--green-tint-200);
    z-index: -1;
    border-radius: var(--radius-sm);
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-16);
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 16px;
    color: var(--grey-body);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   NAVIGATION
   ============================================ */

.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    z-index: 100;
    transition: all 0.25s ease;
}

.landing-nav.scrolled {
    height: 64px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-32);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.brand-icon {
    font-size: 28px;
    color: var(--green-core);
}

.brand-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    gap: var(--space-32);
}

.nav-link {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--grey-body);
    text-decoration: none;
    transition: color 0.15s ease;
    padding: var(--space-8) 0;
    border-bottom: 2px solid transparent;
}

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

.nav-cta {
    padding: var(--space-8) var(--space-16);
    background: var(--green-core);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}

.nav-cta:hover {
    background: var(--green-mid-dark);
}

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

.hero-section {
    min-height: 100vh;
    padding-top: 120px;
    padding-bottom: var(--space-64);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--green-tint-100) 0%, transparent 70%);
    filter: blur(80px);
    opacity: 0.6;
    pointer-events: none;
}

.hero-glow-1 {
    top: -200px;
    right: -200px;
}

.hero-glow-2 {
    bottom: -200px;
    left: -200px;
    background: radial-gradient(circle, var(--gold-warm-bg) 0%, transparent 70%);
}

.hero-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-64);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-8);
    padding: var(--space-4) var(--space-12);
    background: var(--green-tint-100);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--green-darkest);
    margin-bottom: var(--space-24);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--green-core);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

.hero-description {
    font-size: 16px;
    color: var(--grey-body);
    margin-bottom: var(--space-32);
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: var(--space-16);
    margin-bottom: var(--space-48);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-8);
    padding: var(--space-12) var(--space-24);
    background: var(--green-core);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--green-mid-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-secondary {
    padding: var(--space-12) var(--space-24);
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-secondary:hover {
    border-color: var(--green-core);
    color: var(--green-core);
}

.btn-large {
    padding: var(--space-16) var(--space-32);
    font-size: 16px;
    width: 100%;
    justify-content: center;
}

.hero-stats {
    display: flex;
    gap: var(--space-32);
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

.stat-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--grey-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-visual {
    position: relative;
    height: 400px;
}

.visual-card {
    position: absolute;
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.card-1 {
    width: 200px;
    height: 120px;
    top: 40px;
    right: 40px;
    background: linear-gradient(135deg, var(--green-core) 0%, var(--green-muted) 100%);
    opacity: 0.9;
}

.card-2 {
    width: 160px;
    height: 160px;
    bottom: 80px;
    right: 120px;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-amber) 100%);
    opacity: 0.85;
}

.card-3 {
    width: 240px;
    height: 100px;
    bottom: 20px;
    left: 40px;
    background: linear-gradient(135deg, var(--text-navy) 0%, var(--text-charcoal) 100%);
    opacity: 0.8;
}

.visual-accent {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 2px dashed var(--green-tint-300);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.4;
}

/* ============================================
   SECTIONS
   ============================================ */

.services-section,
.insights-section,
.about-section {
    padding: var(--space-96) 0;
}

.services-section {
    background: var(--bg-offwhite);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-48);
}

.section-badge {
    display: inline-block;
    padding: var(--space-4) var(--space-12);
    background: var(--green-tint-100);
    color: var(--green-darkest);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-radius: 20px;
    margin-bottom: var(--space-16);
}

.section-badge.light {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-24);
}

.service-card {
    background: var(--bg-white);
    padding: var(--space-32);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-standard);
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
}

.service-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: transparent;
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--green-tint-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-core);
    margin-bottom: var(--space-24);
}

.service-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: var(--space-12);
}

.service-description {
    font-size: 13.5px;
    color: var(--grey-body);
    margin-bottom: var(--space-20);
}

.service-features {
    list-style: none;
}

.service-features li {
    font-size: 13px;
    color: var(--text-primary);
    padding: var(--space-4) 0;
    padding-left: var(--space-24);
    position: relative;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--green-core);
    font-weight: 700;
}

/* Insights Grid */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-24);
}

.insight-card {
    background: var(--bg-white);
    padding: var(--space-24);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-standard);
    border-left: 4px solid var(--green-core);
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
}

.insight-card:hover {
    box-shadow: var(--shadow-md);
}

.insight-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-12);
}

.insight-category {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--green-core);
}

.insight-date {
    font-size: 12px;
    color: var(--grey-muted);
}

.insight-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: var(--space-12);
    line-height: 1.4;
}

.insight-excerpt {
    font-size: 13px;
    color: var(--grey-body);
    margin-bottom: var(--space-16);
}

.insight-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--green-core);
    text-decoration: none;
    transition: color 0.15s ease;
}

.insight-link:hover {
    color: var(--green-mid-dark);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-64);
    align-items: center;
}

.about-text {
    font-size: 15px;
    color: var(--grey-body);
    margin-bottom: var(--space-32);
    line-height: 1.6;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: var(--space-20);
}

.value-item {
    display: flex;
    gap: var(--space-16);
}

.value-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--green-tint-300);
    line-height: 1;
}

.value-content h5 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: var(--space-4);
}

.value-content p {
    font-size: 13px;
    color: var(--grey-body);
}

.visual-quote {
    background: var(--green-tint-100);
    padding: var(--space-32);
    border-radius: var(--radius-2xl);
    position: relative;
}

.visual-quote svg {
    color: var(--green-core);
    opacity: 0.5;
    margin-bottom: var(--space-16);
}

.quote-text {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--text-dark);
    margin-bottom: var(--space-24);
}

.quote-author {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
}

.author-title {
    font-size: 12px;
    color: var(--grey-body);
}

/* ============================================
   WAITLIST SECTION
   ============================================ */

.waitlist-section {
    padding: var(--space-96) 0;
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--text-charcoal) 100%);
}

.waitlist-card {
    background: var(--bg-white);
    border-radius: var(--radius-2xl);
    padding: var(--space-64);
    position: relative;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}

.waitlist-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--green-tint-100) 0%, transparent 70%);
    filter: blur(60px);
    opacity: 0.5;
    pointer-events: none;
}

.waitlist-glow-1 {
    top: -100px;
    right: -100px;
}

.waitlist-glow-2 {
    bottom: -100px;
    left: -100px;
}

.waitlist-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.waitlist-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: var(--space-16);
    color: var(--text-dark);
}

.waitlist-description {
    font-size: 15px;
    color: var(--grey-body);
    margin-bottom: var(--space-32);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.subscribe-form {
    max-width: 400px;
    margin: 0 auto var(--space-16);
}

.form-group {
    margin-bottom: var(--space-16);
}

.form-input {
    width: 100%;
    padding: var(--space-12) var(--space-16);
    font-size: 14px;
    font-family: inherit;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--bg-white);
    transition: all 0.15s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--green-core);
    box-shadow: 0 0 0 3px rgba(75, 170, 115, 0.12);
}

.form-input::placeholder {
    color: var(--grey-muted);
}

.form-message {
    min-height: 40px;
    margin-bottom: var(--space-12);
    font-size: 13px;
}

.form-message.success {
    color: var(--status-success);
}

.form-message.error {
    color: var(--status-error);
}

.form-disclaimer {
    font-size: 11px;
    color: var(--grey-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.landing-footer {
    background: var(--bg-offwhite);
    padding: var(--space-64) 0 var(--space-32);
    border-top: 1px solid var(--border-light);
}

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

.footer-brand .brand-icon {
    font-size: 24px;
}

.footer-brand .brand-text {
    font-size: 18px;
}

.footer-tagline {
    font-size: 13px;
    color: var(--grey-body);
    margin-top: var(--space-8);
}

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

.footer-column h6 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--grey-body);
    margin-bottom: var(--space-16);
}

.footer-column a {
    display: block;
    font-size: 13px;
    color: var(--text-primary);
    text-decoration: none;
    margin-bottom: var(--space-8);
    transition: color 0.15s ease;
}

.footer-column a:hover {
    color: var(--green-core);
}

.footer-bottom {
    padding-top: var(--space-32);
    border-top: 1px solid var(--border-light);
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: var(--grey-muted);
    margin-bottom: var(--space-4);
}

.footer-disclaimer {
    font-size: 11px;
}

/* ============================================
   ANIMATION UTILITIES
   ============================================ */

.anim-card {
    opacity: 0;
    transform: translateY(30px);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .hero-section .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-visual {
        display: none;
    }
    
    .services-grid,
    .insights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 13px;
    }
    
    .container {
        padding: 0 var(--space-16);
    }
    
    .nav-links {
        display: none;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .services-grid,
    .insights-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: var(--space-16);
    }
    
    .hero-stat {
        align-items: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-32);
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .waitlist-card {
        padding: var(--space-32) var(--space-16);
    }
    
    .waitlist-title {
        font-size: 28px;
    }
}
