/* tanso.markets — Luxury-premium pastoral carbon marketplace */

:root {
    --dark: #1c2b1a;
    --light: #f5f0e8;
    --moss: #4a6741;
    --sage: #c8d4c0;
    --amber: #8b6914;
    --border: #d4cfc6;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

/* Leaf vein SVG overlay */
.leaf-vein-svg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

.vein-path {
    stroke-dasharray: 800;
    stroke-dashoffset: 800;
    animation: drawPath 1.2s ease-in-out forwards;
}

.vein-2 { animation-delay: 0.2s; }
.vein-3 { animation-delay: 0.4s; }
.vein-4 { animation-delay: 0.6s; }
.vein-5 { animation-delay: 0.8s; }

@keyframes drawPath {
    to { stroke-dashoffset: 0; }
}

/* Root network SVG */
.root-network-svg {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40vh;
    pointer-events: none;
    z-index: 0;
    opacity: 0.25;
}

.root-path {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: drawPath 1.2s ease-in-out forwards;
    animation-delay: 1s;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 24px 48px;
    background: rgba(245, 240, 232, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

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

.logo {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-style: italic;
    font-size: 1.4rem;
    color: var(--dark);
}

.logo-dot {
    color: var(--amber);
}

.nav a {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 0.85rem;
    text-decoration: none;
    color: var(--moss);
    margin-left: 32px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.3s;
}

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

/* Main content */
main {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 140px 48px 80px;
}

/* Block system */
.block {
    background: rgba(245, 240, 232, 0.85);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 56px 48px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.block.visible {
    opacity: 1;
    transform: translateY(0);
}

.block-full {
    width: 100%;
}

.block-row {
    display: flex;
    gap: 32px;
    margin-bottom: 32px;
}

.block-half {
    flex: 1;
}

/* Typography */
.overline {
    display: block;
    font-family: 'Cutive Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--moss);
    margin-bottom: 16px;
}

h1, h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-style: italic;
    color: var(--dark);
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
}

h2 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

p {
    max-width: 600px;
    color: var(--dark);
    opacity: 0.85;
}

/* Hero */
.hero-block {
    padding: 100px 48px;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-sub {
    font-size: 1.1rem;
    max-width: 480px;
}

/* Blobs */
.blob {
    position: absolute;
    pointer-events: none;
}

.blob-1 {
    width: 300px;
    height: 300px;
    right: -40px;
    top: 20%;
    background: linear-gradient(135deg, var(--sage), var(--moss));
    clip-path: polygon(30% 0%, 70% 5%, 95% 30%, 90% 70%, 65% 95%, 30% 90%, 5% 65%, 10% 30%);
    opacity: 0.3;
}

.blob-2 {
    width: 250px;
    height: 250px;
    left: -60px;
    bottom: -40px;
    background: linear-gradient(225deg, var(--dark), var(--moss));
    clip-path: polygon(25% 5%, 75% 0%, 100% 35%, 90% 75%, 60% 100%, 20% 85%, 0% 50%, 10% 20%);
    opacity: 0.2;
}

/* Markets grid */
.markets-grid {
    margin-top: 32px;
    margin-bottom: 0;
}

.market-card {
    flex: 1;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.market-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.data-label {
    font-family: 'Cutive Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--moss);
}

.market-value {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--amber);
}

.market-detail {
    font-size: 0.85rem;
    color: var(--dark);
    opacity: 0.7;
}

/* Methodology */
.methodology-text {
    margin-bottom: 40px;
}

.methodology-steps {
    display: flex;
    gap: 24px;
}

.step {
    flex: 1;
    padding: 24px 20px;
    border-left: 2px solid var(--amber);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.step-title {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
}

/* Contact */
.contact-link {
    display: inline-block;
    margin-top: 24px;
    font-family: 'Cutive Mono', monospace;
    font-size: 1rem;
    color: var(--amber);
    text-decoration: none;
    border-bottom: 1px solid var(--amber);
    padding-bottom: 2px;
    transition: color 0.3s, border-color 0.3s;
}

.contact-link:hover {
    color: var(--moss);
    border-color: var(--moss);
}

/* Footer */
.site-footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 48px;
    border-top: 1px solid var(--border);
}

.footer-text {
    font-family: 'Cutive Mono', monospace;
    font-size: 0.75rem;
    color: var(--moss);
    letter-spacing: 0.05em;
}

/* Responsive */
@media (max-width: 768px) {
    .block-row {
        flex-direction: column;
    }

    .methodology-steps {
        flex-direction: column;
    }

    h1 {
        font-size: 2.4rem;
    }

    main {
        padding: 120px 24px 60px;
    }

    .block {
        padding: 40px 28px;
    }

    .site-header {
        padding: 16px 24px;
    }

    .nav a {
        margin-left: 16px;
        font-size: 0.75rem;
    }
}
