/**
 * Unboxing 360 - Landing Page Styles
 * Modern enterprise branding with AI-forward aesthetic
 */

/* ===== BRAND COLORS - Green & White Theme ===== */
:root {
    --brand-green: #4CAF50;
    --brand-green-dark: #388E3C;
    --brand-green-light: #8BC34A;
    --brand-green-lime: #9CCC65;
    --brand-green-pale: #DCEDC8;
    --brand-accent: #2E7D32;
    --brand-accent-light: #7CB342;
    --brand-dark: #1B5E20;
    --brand-dark-muted: #2E3A2F;
    --brand-gray: #37474F;

    /* Pipeline Stage Colors - Dark to Light Green Gradient */
    --stage-1: #1B5E20;  /* Dark Green - Foundation */
    --stage-2: #2E7D32;  /* Forest Green - Processing */
    --stage-3: #4CAF50;  /* Green - Semi-structured */
    --stage-4: #7CB342;  /* Light Green - Structured */
    --stage-5: #8BC34A;  /* Lime Green - Production */

    /* Gradients - Updated to match new logo */
    --gradient-hero: linear-gradient(135deg, #1B5E20 0%, #2E7D32 50%, #1B5E20 100%);
    --gradient-green: linear-gradient(135deg, #2E7D32 0%, #8BC34A 100%);
    --gradient-green-dark: linear-gradient(135deg, #1B5E20 0%, #4CAF50 100%);
    --gradient-brand: linear-gradient(135deg, #1B5E20 0%, #4CAF50 50%, #8BC34A 100%);
    --gradient-glow: radial-gradient(ellipse at center, rgba(139, 195, 74, 0.15) 0%, transparent 70%);
}

/* ===== LANDING PAGE BASE ===== */
.landing-page {
    font-family: var(--font-sans);
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
}

/* ===== NAVIGATION ===== */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-default);
    transition: all var(--transition-base);
}

.landing-nav.scrolled {
    box-shadow: var(--shadow-md);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
}

.nav-logo img {
    height: 40px;
}

.nav-logo-text {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    background: var(--gradient-green);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: var(--font-medium);
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--brand-green);
}

.btn-login {
    background: var(--gradient-green);
    color: white;
    padding: var(--space-2) var(--space-5);
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: var(--font-semibold);
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.4);
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    overflow: hidden;
    padding: 120px var(--space-6) var(--space-16);
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(76, 175, 80, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(129, 199, 132, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 40% 80%, rgba(102, 187, 106, 0.12) 0%, transparent 40%);
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.4);
    color: var(--brand-green-light);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    margin-bottom: var(--space-6);
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--brand-green-light);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: var(--font-bold);
    color: white;
    line-height: 1.1;
    margin-bottom: var(--space-6);
}

.hero-title span {
    background: var(--gradient-green);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: var(--space-8);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: var(--gradient-green);
    color: white;
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: var(--font-semibold);
    font-size: var(--text-base);
    transition: all var(--transition-fast);
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.4);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(76, 175, 80, 0.5);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: var(--font-semibold);
    font-size: var(--text-base);
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-12);
    margin-top: var(--space-16);
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--brand-green-light);
    margin-bottom: var(--space-1);
}

.stat-label {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.6);
}

/* ===== PROBLEM SECTION ===== */
.problem-section {
    padding: var(--space-20) var(--space-6);
    background: var(--bg-secondary);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-label {
    display: inline-block;
    color: var(--brand-green);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-4);
}

.section-title {
    font-size: clamp(1.875rem, 4vw, 2.75rem);
    font-weight: var(--font-bold);
    color: var(--brand-dark);
    margin-bottom: var(--space-4);
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
}

.problem-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    border: 1px solid var(--border-default);
    transition: all var(--transition-base);
}

.problem-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-green);
}

.problem-icon {
    width: 56px;
    height: 56px;
    background: var(--brand-green-pale);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
}

.problem-icon svg {
    width: 28px;
    height: 28px;
    color: var(--brand-green);
}

.problem-card h3 {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.problem-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== SOLUTION SECTION ===== */
.solution-section {
    padding: var(--space-20) var(--space-6);
    background: white;
}

.solution-highlight {
    background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-accent) 100%);
    border-radius: var(--radius-2xl);
    padding: var(--space-12);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.solution-highlight::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-glow);
    pointer-events: none;
}

.solution-highlight h3 {
    font-size: var(--text-2xl);
    color: white;
    font-weight: var(--font-bold);
    margin-bottom: var(--space-4);
    position: relative;
}

.solution-highlight p {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--text-lg);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.solution-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-6);
    margin-top: var(--space-12);
}

.solution-stat {
    text-align: center;
    position: relative;
}

.solution-stat-value {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    color: var(--brand-green-light);
}

.solution-stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
    margin-top: var(--space-2);
}

/* ===== PILLARS SECTION ===== */
.pillars-section {
    padding: var(--space-20) var(--space-6);
    background: var(--bg-secondary);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-4);
}

@media (max-width: 1024px) {
    .pillars-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .pillars-grid {
        grid-template-columns: 1fr;
    }
}

.pillar-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    text-align: center;
    border: 2px solid transparent;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--brand-green);
}

.pillar-card:nth-child(1)::before { background: var(--stage-1); }
.pillar-card:nth-child(2)::before { background: var(--stage-2); }
.pillar-card:nth-child(3)::before { background: var(--stage-3); }
.pillar-card:nth-child(4)::before { background: var(--stage-4); }
.pillar-card:nth-child(5)::before { background: var(--stage-5); }

.pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pillar-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-bold);
    font-size: var(--text-lg);
    color: white;
    margin: 0 auto var(--space-4);
}

.pillar-card:nth-child(1) .pillar-number { background: var(--stage-1); }
.pillar-card:nth-child(2) .pillar-number { background: var(--stage-2); }
.pillar-card:nth-child(3) .pillar-number { background: var(--stage-3); }
.pillar-card:nth-child(4) .pillar-number { background: var(--stage-4); }
.pillar-card:nth-child(5) .pillar-number { background: var(--stage-5); }

.pillar-card h3 {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pillar-card p {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: 1.6;
}

/* ===== PIPELINE SECTION ===== */
.pipeline-section {
    padding: var(--space-20) var(--space-6);
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.pipeline-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-glow);
    pointer-events: none;
}

.pipeline-section .section-title {
    color: white;
}

.pipeline-section .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.pipeline-stages {
    display: flex;
    align-items: stretch;
    gap: var(--space-2);
    position: relative;
    margin-top: var(--space-8);
}

@media (max-width: 1024px) {
    .pipeline-stages {
        flex-direction: column;
    }
}

.pipeline-stage {
    flex: 1;
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    position: relative;
    transition: all var(--transition-base);
}

.pipeline-stage:hover {
    transform: translateY(-4px);
}

.pipeline-stage:nth-child(1) { background: rgba(27, 94, 32, 0.2); border: 1px solid rgba(27, 94, 32, 0.4); }
.pipeline-stage:nth-child(2) { background: rgba(46, 125, 50, 0.2); border: 1px solid rgba(46, 125, 50, 0.4); }
.pipeline-stage:nth-child(3) { background: rgba(76, 175, 80, 0.2); border: 1px solid rgba(76, 175, 80, 0.4); }
.pipeline-stage:nth-child(4) { background: rgba(124, 179, 66, 0.2); border: 1px solid rgba(124, 179, 66, 0.4); }
.pipeline-stage:nth-child(5) { background: rgba(139, 195, 74, 0.2); border: 1px solid rgba(139, 195, 74, 0.4); }

.stage-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.stage-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-bold);
    font-size: var(--text-sm);
    color: white;
}

.pipeline-stage:nth-child(1) .stage-number { background: var(--stage-1); }
.pipeline-stage:nth-child(2) .stage-number { background: var(--stage-2); }
.pipeline-stage:nth-child(3) .stage-number { background: var(--stage-3); }
.pipeline-stage:nth-child(4) .stage-number { background: var(--stage-4); }
.pipeline-stage:nth-child(5) .stage-number { background: var(--stage-5); }

.stage-name {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: white;
}

.stage-description {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.pipeline-arrow {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.3);
    font-size: var(--text-xl);
}

@media (max-width: 1024px) {
    .pipeline-arrow {
        display: none;
    }
}

/* ===== MARKET SECTION ===== */
.market-section {
    padding: var(--space-20) var(--space-6);
    background: white;
}

.market-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: center;
}

@media (max-width: 768px) {
    .market-grid {
        grid-template-columns: 1fr;
    }
}

.market-content h3 {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--brand-dark);
    margin-bottom: var(--space-4);
}

.market-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-6);
}

.market-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.metric-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    text-align: center;
}

.metric-value {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--brand-green);
    margin-bottom: var(--space-1);
}

.metric-label {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.market-visual {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    position: relative;
}

.validation-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--brand-green);
}

.validation-card h4 {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.validation-amount {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--brand-green);
    margin-bottom: var(--space-2);
}

.validation-detail {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: var(--space-20) var(--space-6);
    background: var(--gradient-brand);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: clamp(1.875rem, 4vw, 2.5rem);
    font-weight: var(--font-bold);
    color: white;
    margin-bottom: var(--space-4);
}

.cta-section p {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-8);
}

.btn-cta {
    background: white;
    color: var(--brand-green);
    padding: var(--space-4) var(--space-10);
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: var(--font-semibold);
    font-size: var(--text-lg);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    transition: all var(--transition-fast);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* ===== FOOTER ===== */
.landing-footer {
    background: var(--brand-dark);
    padding: var(--space-12) var(--space-6);
    color: rgba(255, 255, 255, 0.6);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.footer-logo img {
    height: 32px;
    filter: brightness(0) invert(1);
}

.footer-logo span {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: white;
}

.footer-text {
    font-size: var(--text-sm);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links {
        gap: var(--space-4);
    }

    .nav-link {
        display: none;
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--space-6);
    }

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

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}
