/* ============================================
   Marketing Pages - Base Styles
   Bold, distinctive Nordic-inspired design
   ============================================ */

/* Import fonts */
@import url('https://api.fontshare.com/v2/css?f[]=satoshi@700,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1c1917;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle texture overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.015;
    pointer-events: none;
    z-index: 9999;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #1c1917;
}

h1 { font-size: 3.5rem; font-weight: 900; }
h2 { font-size: 2.5rem; font-weight: 900; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

@media (max-width: 768px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.375rem; }
}

p {
    color: #57534e;
    line-height: 1.7;
}

a {
    color: #0d4f4f;
    text-decoration: none;
    transition: color 150ms ease;
}

a:hover {
    color: #083a3a;
}

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

/* Selection */
::selection {
    background: #0d4f4f;
    color: white;
}

/* ============================================
   Navigation
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e7e5e0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Satoshi', sans-serif;
    font-size: 1.375rem;
    font-weight: 900;
    color: #1c1917;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-logo img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-link {
    color: #57534e;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 8px 0;
    position: relative;
    transition: color 150ms ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #0d4f4f;
    transition: width 200ms ease;
}

.nav-link:hover,
.nav-link.active {
    color: #0d4f4f;
    text-decoration: none;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 12px;
}

.nav-mobile-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #57534e;
}

.nav-mobile {
    display: none;
    flex-direction: column;
    padding: 16px 24px 24px;
    border-top: 1px solid #e7e5e0;
    background: white;
}

.nav-mobile.open {
    display: flex;
}

.nav-mobile .nav-link {
    padding: 14px 0;
    border-bottom: 1px solid #f5f3f0;
}

.nav-mobile hr {
    border: none;
    border-top: 1px solid #e7e5e0;
    margin: 16px 0;
}

.nav-mobile .btn-secondary,
.nav-mobile .btn-primary {
    text-align: center;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .nav-links,
    .nav-actions {
        display: none;
    }

    .nav-mobile-toggle {
        display: block;
    }
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 150ms ease;
}

.btn-primary {
    background: linear-gradient(180deg, #0d4f4f 0%, #083a3a 100%);
    color: white;
    box-shadow:
        0 1px 0 rgba(255,255,255,0.1) inset,
        0 -1px 0 rgba(0,0,0,0.1) inset,
        0 4px 12px rgba(13, 79, 79, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 1px 0 rgba(255,255,255,0.1) inset,
        0 -1px 0 rgba(0,0,0,0.1) inset,
        0 8px 20px rgba(13, 79, 79, 0.3);
    text-decoration: none;
    color: white;
}

.btn-secondary {
    background: white;
    color: #1c1917;
    border: 2px solid #e7e5e0;
    box-shadow: 0 2px 4px rgba(28, 25, 23, 0.04);
}

.btn-secondary:hover {
    background: #fafaf9;
    border-color: #d6d3cd;
    transform: translateY(-1px);
    text-decoration: none;
}

.btn-accent {
    background: linear-gradient(180deg, #e85d4c 0%, #d14a39 100%);
    color: white;
    box-shadow:
        0 1px 0 rgba(255,255,255,0.15) inset,
        0 4px 12px rgba(232, 93, 76, 0.3);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow:
        0 1px 0 rgba(255,255,255,0.15) inset,
        0 8px 20px rgba(232, 93, 76, 0.35);
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1.05rem;
    border-radius: 10px;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    padding: 100px 24px 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #fafaf9 0%, #ffffff 50%, #f5f3f0 100%);
}

/* Animated background pattern */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 30%, rgba(13, 79, 79, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(232, 93, 76, 0.04) 0%, transparent 40%);
    animation: heroFloat 20s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-2%, 2%) rotate(1deg); }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 24px;
    line-height: 1.05;
}

.hero .text-muted {
    color: #78716c;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.375rem;
    color: #57534e;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-subtitle strong {
    color: #1c1917;
    background: linear-gradient(180deg, transparent 60%, rgba(232, 93, 76, 0.15) 60%);
    padding: 0 4px;
}

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

.hero-note {
    font-size: 0.875rem;
    color: #a8a29e;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 24px 80px;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

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

    .hero-cta .btn-lg {
        width: 100%;
        max-width: 320px;
    }
}

/* ============================================
   Social Proof
   ============================================ */
.social-proof {
    padding: 48px 24px;
    text-align: center;
    background: #fafaf9;
    border-top: 1px solid #e7e5e0;
    border-bottom: 1px solid #e7e5e0;
}

.social-proof p {
    font-size: 0.875rem;
    color: #a8a29e;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 20px;
}

.logo-grid {
    display: flex;
    gap: 48px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.placeholder-logo {
    padding: 10px 20px;
    background: #e7e5e0;
    border-radius: 6px;
    font-size: 0.875rem;
    color: #78716c;
    font-weight: 500;
}

/* ============================================
   Problem/Solution Section
   ============================================ */
.problem-solution {
    padding: 100px 24px;
    background: white;
}

.problem-solution h2 {
    text-align: center;
    margin-bottom: 60px;
}

.comparison {
    display: flex;
    gap: 40px;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
}

.comparison-before,
.comparison-after {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    padding: 40px;
    border-radius: 16px;
    position: relative;
}

.comparison-before {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fecaca;
}

.comparison-after {
    background: linear-gradient(135deg, #e8f5ec 0%, #d1fae5 100%);
    border: 1px solid #a7f3d0;
}

.comparison-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.comparison-header h3 {
    font-size: 1.25rem;
}

.icon-x {
    width: 28px;
    height: 28px;
    background: #c53030;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
}

.icon-check {
    width: 28px;
    height: 28px;
    background: #2d5a3d;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
}

.comparison-before ol,
.comparison-after ol {
    list-style: none;
    counter-reset: step;
}

.comparison-before li,
.comparison-after li {
    position: relative;
    padding-left: 36px;
    margin-bottom: 16px;
    font-size: 1rem;
    line-height: 1.5;
}

.comparison-before li::before,
.comparison-after li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.comparison-before li::before {
    background: #fecaca;
    color: #991b1b;
}

.comparison-after li::before {
    background: #a7f3d0;
    color: #166534;
}

.comparison-arrow {
    display: flex;
    align-items: center;
    color: #a8a29e;
}

@media (max-width: 768px) {
    .comparison {
        flex-direction: column;
        align-items: center;
    }

    .comparison-arrow {
        transform: rotate(90deg);
        margin: 8px 0;
    }

    .comparison-before,
    .comparison-after {
        max-width: 100%;
    }
}

/* ============================================
   Features Section
   ============================================ */
.features {
    padding: 100px 24px;
    background: #fafaf9;
}

.features h2 {
    text-align: center;
    margin-bottom: 60px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid #e7e5e0;
    box-shadow: 0 4px 6px -1px rgba(28, 25, 23, 0.04);
    transition: all 200ms ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -4px rgba(28, 25, 23, 0.08);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #e6f2f2 0%, #d1e7e7 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: #0d4f4f;
}

.feature-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.feature-card p {
    font-size: 1rem;
    color: #78716c;
    line-height: 1.6;
}

/* ============================================
   Pricing Teaser
   ============================================ */
.pricing-teaser {
    padding: 80px 24px;
    background: white;
}

.pricing-box {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, #fafaf9 0%, #f5f3f0 100%);
    border: 1px solid #e7e5e0;
    border-radius: 20px;
    padding: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 32px;
    box-shadow: 0 4px 6px -1px rgba(28, 25, 23, 0.04);
}

.pricing-info h2 {
    margin-bottom: 8px;
    font-size: 1.75rem;
}

.pricing-info p {
    font-size: 1.125rem;
}

.pricing-info strong {
    color: #0d4f4f;
    font-size: 2rem;
    font-family: 'Satoshi', sans-serif;
    font-weight: 900;
}

@media (max-width: 600px) {
    .pricing-box {
        flex-direction: column;
        text-align: center;
        padding: 32px;
    }

    .pricing-box .btn-secondary {
        width: 100%;
    }
}

/* ============================================
   Final CTA
   ============================================ */
.final-cta {
    padding: 100px 24px;
    text-align: center;
    background: linear-gradient(135deg, #0d4f4f 0%, #083a3a 50%, #0a4242 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(232, 93, 76, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
}

.final-cta .container {
    position: relative;
}

.final-cta h2 {
    color: white;
    margin-bottom: 16px;
    font-size: 2.5rem;
}

.final-cta p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    font-size: 1.25rem;
}

.final-cta .btn-primary {
    background: white;
    color: #0d4f4f;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.final-cta .btn-primary:hover {
    background: #fafaf9;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: #1c1917;
    color: #a8a29e;
    padding: 80px 24px 32px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid #292524;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    font-family: 'Satoshi', sans-serif;
    font-weight: 900;
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.95rem;
    color: #78716c;
    line-height: 1.6;
}

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

.footer-column h4 {
    color: white;
    font-family: 'Satoshi', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}

.footer-column a {
    display: block;
    color: #a8a29e;
    font-size: 0.95rem;
    margin-bottom: 12px;
    text-decoration: none;
    transition: color 150ms ease;
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 32px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: #78716c;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 40px;
    }
}

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

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

.animate-in:nth-child(2) { animation-delay: 0.1s; }
.animate-in:nth-child(3) { animation-delay: 0.2s; }
.animate-in:nth-child(4) { animation-delay: 0.3s; }
