/* === Base === */
:root {
    --bg-dark: #0a0e17;
    --bg-card: #111827;
    --bg-section: #060a12;
    --accent: #d4a853;
    --accent-dim: #a37e2e;
    --accent-glow: rgba(212, 168, 83, 0.15);
    --text: #e8e8ec;
    --text-dim: #8b8fa3;
    --text-bright: #ffffff;
    --green: #22c55e;
    --green-dim: rgba(34, 197, 94, 0.15);
    --blue: #3b82f6;
    --red: #ef4444;
    --border: rgba(255,255,255,0.06);
    --radius: 12px;
}

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

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* === Nav === */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 32px;
    position: relative;
    z-index: 10;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-mark {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 8px;
}

.nav-title {
    font-weight: 600;
    font-size: 18px;
    color: var(--text-bright);
}

.nav-cta {
    padding: 10px 24px;
    background: var(--accent);
    color: var(--bg-dark);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}

.nav-cta:hover { background: var(--accent-dim); }

/* === Hero === */
.hero {
    position: relative;
    padding: 80px 32px 100px;
    overflow: hidden;
    text-align: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(212,168,83,0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 80%, rgba(59,130,246,0.05) 0%, transparent 40%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.partnership-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--accent-glow);
    border: 1px solid rgba(212,168,83,0.3);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 32px;
}

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

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

.hero h1 {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-bright);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-sub {
    font-size: 18px;
    color: var(--text-dim);
    max-width: 540px;
    margin: 0 auto 48px;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent);
}

.stat-label {
    font-size: 13px;
    color: var(--text-dim);
    margin-top: 4px;
}

/* === Sections === */
.section {
    padding: 80px 0;
}

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

.section-accent {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0d1420 100%);
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: var(--text-bright);
}

.section-intro {
    text-align: center;
    color: var(--text-dim);
    max-width: 640px;
    margin: 0 auto 48px;
    font-size: 16px;
    line-height: 1.7;
}

.section-intro strong {
    color: var(--accent);
}

/* === Problem Grid === */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.problem-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
}

.problem-icon {
    font-size: 28px;
    margin-bottom: 16px;
}

.problem-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-bright);
}

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

/* === Pipeline === */
.pipeline {
    max-width: 700px;
    margin: 0 auto;
}

.pipeline-step {
    display: flex;
    gap: 24px;
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.pipeline-step:hover {
    border-color: rgba(212,168,83,0.3);
    box-shadow: 0 0 30px rgba(212,168,83,0.05);
}

.step-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
    min-width: 48px;
}

.step-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-bright);
}

.step-content p {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 12px;
}

.step-contract {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 12px;
    color: var(--accent-dim);
    background: rgba(212,168,83,0.08);
    padding: 6px 12px;
    border-radius: 6px;
    display: inline-block;
}

code {
    font-family: 'SF Mono', 'Fira Code', monospace;
    background: rgba(212,168,83,0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    color: var(--accent);
}

.pipeline-connector {
    width: 2px;
    height: 32px;
    background: linear-gradient(180deg, var(--accent-dim), transparent);
    margin: 0 0 0 50px;
}

/* === Asset Grid === */
.asset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.asset-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: transform 0.2s, border-color 0.3s;
}

.asset-card:hover {
    transform: translateY(-2px);
    border-color: rgba(212,168,83,0.2);
}

.asset-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 16px;
}

.asset-icon.gold {
    background: linear-gradient(135deg, #d4a853, #b8860b);
    color: var(--bg-dark);
}

.asset-icon.cattle {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    font-size: 28px;
}

.asset-icon.realestate {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    font-size: 28px;
}

.asset-icon.mineral {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.asset-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-bright);
}

.asset-card p {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 12px;
}

.asset-tag {
    font-size: 12px;
    color: var(--accent);
    background: var(--accent-glow);
    padding: 4px 10px;
    border-radius: 100px;
    display: inline-block;
}

/* === Tech Grid === */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.tech-item {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.tech-item h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 8px;
}

.tech-item p {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.6;
}

/* === Demo === */
.demo-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
}

.demo-input {
    margin-bottom: 16px;
}

.demo-input label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dim);
    margin-bottom: 6px;
}

.demo-input select,
.demo-input input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-bright);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.demo-input select:focus,
.demo-input input:focus {
    border-color: var(--accent);
}

.demo-btn {
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: var(--bg-dark);
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: background 0.2s;
    margin-bottom: 24px;
}

.demo-btn:hover { background: var(--accent-dim); }
.demo-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.demo-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.demo-step-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-dark);
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: border-color 0.3s;
}

.demo-step-row.active {
    border-color: var(--accent);
}

.demo-step-row.done {
    border-color: var(--green);
}

.demo-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    flex-shrink: 0;
    transition: background 0.3s;
}

.demo-step-row.active .demo-indicator {
    background: var(--accent);
    animation: pulse 1s infinite;
}

.demo-step-row.done .demo-indicator {
    background: var(--green);
}

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

.demo-status {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-dim);
    transition: color 0.3s;
}

.demo-step-row.active .demo-status {
    color: var(--accent);
}

.demo-step-row.done .demo-status {
    color: var(--green);
}

.demo-summary {
    margin-top: 20px;
    padding: 20px;
    background: var(--green-dim);
    border: 1px solid rgba(34,197,94,0.2);
    border-radius: 8px;
    display: none;
    font-size: 14px;
    line-height: 1.7;
}

.demo-summary.visible {
    display: block;
}

.demo-summary strong {
    color: var(--green);
}

/* === CTA === */
.cta-container {
    text-align: center;
}

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

.btn {
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-dark);
}

.btn-primary:hover { background: var(--accent-dim); }

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.btn-outline:hover {
    background: var(--accent-glow);
}

.cta-footer p {
    color: var(--text-dim);
    font-size: 14px;
}

.cta-sub {
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-dim);
    opacity: 0.6;
}

/* === Footer === */
.footer {
    padding: 24px;
    text-align: center;
    font-size: 13px;
    color: var(--text-dim);
    border-top: 1px solid var(--border);
}

/* === Mobile === */
@media (max-width: 640px) {
    .hero { padding: 48px 20px 64px; }
    .hero-stats { gap: 24px; }
    .stat-value { font-size: 24px; }
    .nav { padding: 16px 20px; }
    .section { padding: 56px 0; }
    .pipeline-step { flex-direction: column; gap: 12px; }
    .pipeline-connector { margin-left: 24px; }
    .section-title { font-size: 26px; }
    .demo-container { padding: 20px; }
}
