/* ====================================
   Supplyze Page Styles
   Theme: Teal/Green (#00BFA5)
   ==================================== */

@import url('./design-tokens.css');

:root {
    --sz-primary: #00BFA5;
    --sz-primary-dark: #009688;
    --sz-primary-darker: #00796B;
    --sz-primary-light: #E0F7F0;
    --sz-primary-lighter: #F0FDF9;
    --sz-accent: #00E676;
    --sz-accent-blue: #0091EA;
    --sz-bg: #FAFAFA;
    --sz-bg-dark: #1A1A2E;
    --sz-card-bg: #FFFFFF;
    --sz-text: #1A1A2E;
    --sz-text-secondary: #546E7A;
    --sz-text-muted: #90A4AE;
    --sz-border: #E0E0E0;
    --sz-radius: 16px;
    --sz-radius-sm: 10px;
    --sz-radius-lg: 24px;
    --sz-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --sz-shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --sz-font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
    font-family: var(--sz-font);
    background: var(--sz-bg);
    color: var(--sz-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.sz-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

em {
    font-style: normal;
    color: var(--sz-primary);
    font-weight: 600;
}

/* ====================================
   Header
   ==================================== */
.sz-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(250, 250, 250, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0 24px;
}

.sz-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.sz-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--sz-text);
}

.sz-logo-icon {
    position: relative;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.sz-capsule {
    width: 20px;
    height: 40px;
    border-radius: 10px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    overflow: hidden;
}

.sz-capsule-top {
    width: 100%;
    height: 50%;
    background: rgba(224, 247, 250, 0.85);
}

.sz-capsule-bottom {
    width: 100%;
    height: 50%;
    background: linear-gradient(135deg, #00E676, #00BFA5);
}

.sz-wave-svg {
    position: absolute;
    top: 50%;
    left: -2px;
    transform: translateY(-50%);
    z-index: 2;
}

.sz-logo-wordmark {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.sz-ze {
    color: var(--sz-primary);
    font-weight: 800;
}

.sz-nav {
    display: flex;
    gap: 32px;
}

.sz-nav-item {
    text-decoration: none;
    color: var(--sz-text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.sz-nav-item:hover {
    color: var(--sz-text);
}

.sz-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Buttons */
.sz-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--sz-primary), var(--sz-accent-blue));
    color: #fff;
    border: none;
    border-radius: var(--sz-radius-sm);
    font-family: var(--sz-font);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 191, 165, 0.3);
    text-decoration: none;
}

.sz-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(0, 191, 165, 0.4);
}

.sz-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    color: var(--sz-text);
    border: 1px solid var(--sz-border);
    border-radius: var(--sz-radius-sm);
    font-family: var(--sz-font);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.sz-btn-secondary:hover {
    border-color: var(--sz-primary);
    color: var(--sz-primary);
}

.sz-btn-start {
    padding: 8px 20px;
    background: var(--sz-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: var(--sz-font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
}

.sz-btn-start:hover {
    background: var(--sz-primary-dark);
}

/* ====================================
   Hero Section
   ==================================== */
.sz-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    overflow: hidden;
    background: linear-gradient(180deg, #FAFAFA 0%, #F0F7F5 100%);
}

.sz-hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.sz-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
}

.sz-orb-1 {
    width: 600px;
    height: 600px;
    background: var(--sz-primary);
    top: -200px;
    right: -200px;
    animation: sz-float 20s ease-in-out infinite;
}

.sz-orb-2 {
    width: 400px;
    height: 400px;
    background: var(--sz-accent);
    bottom: -100px;
    left: -100px;
    animation: sz-float 15s ease-in-out infinite reverse;
}

.sz-orb-3 {
    width: 300px;
    height: 300px;
    background: var(--sz-accent-blue);
    top: 40%;
    left: 50%;
    animation: sz-float 18s ease-in-out infinite 2s;
}

@keyframes sz-float {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -30px); }
    66% { transform: translate(-20px, 20px); }
}

.sz-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.sz-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--sz-primary-light);
    border: 1px solid rgba(0, 191, 165, 0.2);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--sz-primary-dark);
    margin-bottom: 32px;
}

.sz-hero-badge-icon {
    display: flex;
    color: var(--sz-primary);
}

.sz-hero-title {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -2px;
    margin-bottom: 24px;
}

.sz-title-line {
    display: block;
}

.sz-title-accent {
    background: linear-gradient(135deg, var(--sz-primary), var(--sz-accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sz-hero-subtitle {
    font-size: 18px;
    color: var(--sz-text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
}

.sz-hero-cta {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
}

.sz-hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.sz-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.sz-stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--sz-text);
}

.sz-stat-label {
    font-size: 13px;
    color: var(--sz-text-muted);
    font-weight: 400;
}

.sz-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--sz-border);
}

/* ====================================
   Problem Section
   ==================================== */
.sz-problem {
    padding: 100px 0;
    background: #fff;
}

.sz-section-header {
    text-align: center;
    margin-bottom: 64px;
}

.sz-section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--sz-primary);
    margin-bottom: 16px;
}

.sz-section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.2;
    margin-bottom: 16px;
}

.sz-section-subtitle {
    font-size: 16px;
    color: var(--sz-text-secondary);
    line-height: 1.7;
}

.sz-problem-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.sz-problem-card {
    padding: 36px;
    border-radius: var(--sz-radius);
    background: var(--sz-bg);
    border: 1px solid var(--sz-border);
    transition: all 0.3s ease;
}

.sz-problem-card:hover {
    border-color: var(--sz-primary);
    box-shadow: var(--sz-shadow);
    transform: translateY(-2px);
}

.sz-problem-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sz-primary-light);
    border-radius: 12px;
    margin-bottom: 20px;
    color: var(--sz-primary);
}

.sz-problem-icon svg {
    width: 24px;
    height: 24px;
}

.sz-problem-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.sz-problem-card p {
    font-size: 14px;
    color: var(--sz-text-secondary);
    line-height: 1.7;
}

/* ====================================
   How It Works Section
   ==================================== */
.sz-how-it-works {
    padding: 100px 0;
    background: var(--sz-bg);
}

.sz-steps {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.sz-steps::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 32px;
    bottom: 32px;
    width: 2px;
    background: linear-gradient(to bottom, var(--sz-primary), var(--sz-accent-blue));
    opacity: 0.2;
}

.sz-step {
    display: flex;
    gap: 32px;
    padding: 32px 0;
    position: relative;
}

.sz-step-number {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--sz-primary), var(--sz-accent-blue));
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

.sz-step-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.sz-step-content p {
    font-size: 15px;
    color: var(--sz-text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.sz-step-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sz-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--sz-primary-light);
    color: var(--sz-primary-dark);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
}

/* ====================================
   Features Section
   ==================================== */
.sz-features {
    padding: 100px 0;
    background: #fff;
}

.sz-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.sz-feature-card {
    padding: 36px;
    border-radius: var(--sz-radius);
    background: var(--sz-bg);
    border: 1px solid var(--sz-border);
    transition: all 0.3s ease;
}

.sz-feature-card:hover {
    border-color: var(--sz-primary);
    box-shadow: var(--sz-shadow);
}

.sz-feature-large {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 48px;
}

.sz-feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sz-primary-light);
    border-radius: 12px;
    margin-bottom: 20px;
    color: var(--sz-primary);
}

.sz-feature-icon svg {
    width: 24px;
    height: 24px;
}

.sz-feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.sz-feature-card p {
    font-size: 14px;
    color: var(--sz-text-secondary);
    line-height: 1.7;
}

/* Analysis Demo Visual */
.sz-analysis-demo {
    background: var(--sz-card-bg);
    border-radius: var(--sz-radius);
    padding: 24px;
    border: 1px solid var(--sz-border);
    box-shadow: var(--sz-shadow);
}

.sz-demo-header {
    font-size: 14px;
    font-weight: 600;
    color: var(--sz-text);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--sz-border);
}

.sz-demo-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.sz-demo-label {
    flex: 1;
    font-size: 14px;
    color: var(--sz-text);
}

.sz-demo-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--sz-text);
    margin-right: 12px;
}

.sz-demo-status {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sz-status-warning {
    background: #FEF3C7;
    color: #D97706;
}

.sz-status-danger {
    background: #FEE2E2;
    color: #DC2626;
}

.sz-demo-arrow {
    display: flex;
    justify-content: center;
    padding: 12px 0;
    color: var(--sz-primary);
}

.sz-demo-arrow svg {
    width: 24px;
    height: 24px;
}

.sz-demo-rec {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sz-rec-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(0, 191, 165, 0.1), rgba(0, 145, 234, 0.1));
    color: var(--sz-primary-dark);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(0, 191, 165, 0.2);
}

.sz-feature-content h3 {
    font-size: 22px;
    margin-bottom: 16px;
}

.sz-feature-content p {
    font-size: 15px;
    line-height: 1.8;
}

/* ====================================
   CTA Section
   ==================================== */
.sz-cta {
    padding: 100px 0;
    background: var(--sz-bg);
}

.sz-cta-card {
    position: relative;
    padding: 80px 48px;
    background: var(--sz-bg-dark);
    border-radius: var(--sz-radius-lg);
    text-align: center;
    overflow: hidden;
}

.sz-cta-content {
    position: relative;
    z-index: 1;
}

.sz-cta-content h2 {
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 16px;
}

.sz-cta-content h2 em {
    color: var(--sz-primary);
}

.sz-cta-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 32px;
}

.sz-btn-cta {
    font-size: 16px;
    padding: 14px 32px;
}

.sz-cta-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.sz-cta-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.sz-cta-orb-1 {
    width: 300px;
    height: 300px;
    background: var(--sz-primary);
    opacity: 0.15;
    top: -100px;
    right: -50px;
}

.sz-cta-orb-2 {
    width: 200px;
    height: 200px;
    background: var(--sz-accent-blue);
    opacity: 0.1;
    bottom: -50px;
    left: -50px;
}

/* ====================================
   Footer
   ==================================== */
.sz-footer {
    padding: 40px 0;
    background: var(--sz-bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.sz-footer-inner {
    text-align: center;
}

.sz-footer-wordmark {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
}

.sz-footer-tagline {
    display: block;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 4px;
    margin-bottom: 20px;
}

.sz-footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
}

.sz-footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.sz-footer-links a:hover {
    color: var(--sz-primary);
}

.sz-footer-copy {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.25);
}

/* ====================================
   Responsive
   ==================================== */
@media (max-width: 768px) {
    .sz-nav {
        display: none;
    }

    .sz-hero {
        min-height: auto;
        padding: 80px 0 40px;
    }

    .sz-hero-title {
        font-size: 32px;
        letter-spacing: -1px;
    }

    .sz-hero-subtitle {
        font-size: 15px;
    }

    .sz-hero-subtitle br {
        display: none;
    }

    .sz-hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .sz-hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .sz-stat-divider {
        width: 40px;
        height: 1px;
    }

    .sz-problem-cards {
        grid-template-columns: 1fr;
    }

    .sz-features-grid {
        grid-template-columns: 1fr;
    }

    .sz-feature-large {
        grid-template-columns: 1fr;
    }

    .sz-section-subtitle br {
        display: none;
    }

    .sz-cta-content h2 br {
        display: none;
    }
}

/* Hero CTA button style */
.sz-btn-hero-start {
    font-size: 16px;
    padding: 14px 32px;
}

.sz-btn-hero-survey {
    font-size: 16px;
    padding: 14px 32px;
    border-color: var(--sz-primary);
    color: var(--sz-primary);
}

.sz-btn-hero-survey:hover {
    background: var(--sz-primary-light);
    border-color: var(--sz-primary-dark);
    color: var(--sz-primary-dark);
}

.sz-btn-hero-survey svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ====================================
   Scroll-triggered animations
   ==================================== */
.sz-animate {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.sz-animate.sz-visible {
    opacity: 1;
    transform: translateY(0);
}
.sz-problem-card.sz-animate:nth-child(2) { transition-delay: 0.1s; }
.sz-problem-card.sz-animate:nth-child(3) { transition-delay: 0.2s; }
.sz-step.sz-animate:nth-child(2) { transition-delay: 0.1s; }
.sz-step.sz-animate:nth-child(3) { transition-delay: 0.2s; }
.sz-step.sz-animate:nth-child(4) { transition-delay: 0.3s; }
.sz-feature-card.sz-animate:nth-child(2) { transition-delay: 0.1s; }
.sz-feature-card.sz-animate:nth-child(3) { transition-delay: 0.15s; }
.sz-feature-card.sz-animate:nth-child(4) { transition-delay: 0.2s; }
