@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;500;600&family=JetBrains+Mono:wght@400&display=swap');

:root {
    --bg-main: #141414;
    --bg-surface: #1e1e1e;
    --bg-panel: #141414;
    --text-primary: #ebebeb;
    --text-secondary: #a0a0a0;
    --accent: #ffffff;
    --border-light: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] {
    --bg-main: #faf9f6;
    --bg-surface: #ffffff;
    --bg-panel: #faf9f6;
    --text-primary: #2c2c2c;
    --text-secondary: #707070;
    --accent: #000000;
    --border-light: rgba(0, 0, 0, 0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 150px;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6; font-size: 1.125rem;
    -webkit-font-smoothing: antialiased;
    font-weight: 400;
}

/* Hide old effects */
#particleNetwork, .bg-glow, .noise-overlay {
    display: none !important;
}

/* Premium Ambient Background */
.ambient-gradient-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: radial-gradient(circle at 15% 50%, rgba(16, 185, 129, 0.03), transparent 25%),
                radial-gradient(circle at 85% 30%, rgba(6, 182, 212, 0.03), transparent 25%);
    filter: blur(60px);
    pointer-events: none;
    animation: breathing-mesh 15s ease-in-out infinite alternate;
}

[data-theme="light"] .ambient-gradient-mesh {
    background: radial-gradient(circle at 15% 50%, rgba(16, 185, 129, 0.05), transparent 30%),
                radial-gradient(circle at 85% 30%, rgba(6, 182, 212, 0.05), transparent 30%);
}

@keyframes breathing-mesh {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.1); opacity: 1; }
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: 4.5rem; margin-bottom: 24px; font-weight: 400; }
h2 { font-size: 2.5rem; margin-bottom: 20px; font-weight: 400; }
h3 { font-size: 1.4rem; margin-bottom: 12px; font-weight: 500; }

code, .font-mono {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em;
}

/* Panels */
.glass-panel {
    background: var(--bg-panel);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    transition: all 0.4s ease;
}

.glass-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    padding: 10px 0;
}

[data-theme="light"] .glass-nav {
    background: rgba(250, 249, 246, 0.8);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.nav-top-row {
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

.nav-bottom-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 0.05em;
}

#splashScreen { display: none; }

.nav-links { display: flex; gap: 24px; }
.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: color 0.3s ease;
}
.nav-links a:hover { color: var(--text-primary); }

.nav-actions { display: flex; gap: 20px; align-items: center; }
.theme-btn { background: transparent; border: none; color: var(--text-secondary); cursor: pointer; font-size: 1.2rem; transition: color 0.3s ease; }
.theme-btn:hover { color: var(--text-primary); }

/* Badges */
.badge {
    display: inline-block;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    border-radius: 20px;
    margin-bottom: 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    font-weight: 400;
    font-size: 1.1rem;
    text-decoration: none;
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    white-space: nowrap;
}
.btn-primary, .btn-emerald {
    background: var(--text-primary);
    color: var(--bg-main);
    border-color: var(--text-primary);
}
.btn-primary:hover, .btn-emerald:hover {
    background: transparent;
    color: var(--text-primary);
}
.btn-secondary {
    background: transparent;
    color: var(--text-primary);
}
.btn-secondary:hover {
    background: var(--bg-surface);
}

/* Sections */
.features-section {
    padding: 50px 40px;
    max-width: 1200px;
    margin: 0 auto;
}
.section-title { margin-bottom: 24px; max-width: 100%; text-align: left; }
.section-title p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1.8;
}

/* Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}
.card {
    padding: 40px;
    border-radius: 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.bento-card {
    padding: 50px;
    border-radius: 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    transition: transform 0.4s ease;
}
.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}
.bento-card.span-2 { grid-column: span 2; }

/* Icons */
.card i, .bento-card i {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    display: block;
}

/* Process Row */
.process-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
.process-step {
    border-top: 1px solid var(--border-light);
    padding-top: 24px;
}
.process-circle i {
    font-size: 1.8rem;
    color: #10b981;
    margin-bottom: 16px;
    display: block;
}
.process-step h3 { font-size: 1.1rem; }
.process-step p { font-size: 1.1rem; color: var(--text-secondary); }

/* Hero */
.hero {
    max-width: 1200px;
    margin: 160px auto 30px;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-image img {
    border-radius: 16px;
    opacity: 0.9;
    filter: sepia(10%) hue-rotate(340deg) saturate(80%); /* warm tone */
}
.text-gradient, .text-gradient-purple {
    background: none;
    -webkit-text-fill-color: var(--text-primary);
    color: var(--text-primary);
}

/* Stats */
.stat-ticker {
    grid-column: span 2;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 24px;
}
.stat-box {
    padding: 30px;
    border-radius: 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    flex: 1;
    min-width: 250px;
    max-width: 350px;
}
.stat-number {
    font-size: 2.2rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
}
.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

footer {
    padding: 32px 40px;
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid var(--border-light);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-col h4 { font-size: 1.1rem; margin-bottom: 20px; color: var(--text-primary); font-weight: 500; }
.footer-col a { color: var(--text-secondary); text-decoration: none; display: block; margin-bottom: 12px; font-size: 0.9rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--text-primary); }

.icon-floating {
    font-size: 1.8rem !important;
    margin-bottom: 20px !important;
    color: var(--text-secondary);
}

@media (max-width: 1024px) {
    .hero, .bento-grid, .grid-3, .process-row, .stat-ticker { grid-template-columns: 1fr; }
    .bento-card.span-2 { grid-column: span 1; }
    h1 { font-size: 3rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 32px; text-align: center; }
    .nav-bottom-row { justify-content: center; }
    .nav-links { flex-wrap: wrap; justify-content: center; gap: 16px; }
    .nav-actions { width: 100%; justify-content: center; flex-wrap: wrap; }
    .hero { margin-top: 220px; }
}


@font-face {
    font-family: 'TRON';
    src: url('TR2N.ttf') format('truetype');
}
.logo {
    font-family: 'TRON', sans-serif !important;
    font-size: 1.8rem !important;
    font-weight: normal !important;
    letter-spacing: 2px !important;
    color: var(--text-primary);
    text-decoration: none;
    display: inline-block;
}

.hero-buttons { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 32px; }


/* --- Cleanup Updates (Yield Calculator & Ethics) --- */

.yield-calculator-panel {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    text-align: center;
}

.calculator-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.calculator-form label {
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: block;
    font-size: 0.95rem;
}

.calculator-form select {
    width: 100%;
    padding: 12px;
    background: var(--bg-main);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    border-radius: 8px;
    margin-bottom: 24px;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.calculator-form select:focus {
    border-color: #10b981;
}

.calculator-form input[type="range"] {
    width: 100%;
    margin-bottom: 24px;
    accent-color: #10b981;
    cursor: pointer;
}

.yield-result {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid #10b981;
    padding: 24px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
}

.yield-result:hover {
    transform: translateY(-2px);
}

.yield-result span {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.yield-result strong {
    color: #10b981;
    font-size: 2.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
}

.ethics-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.ethics-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
}

.ethics-table th, .ethics-table td {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    font-size: 1.05rem;
}

.ethics-table th {
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
}

.ethics-table th.text-secondary { color: var(--text-secondary); background: var(--bg-main); }
.ethics-table th.text-primary { color: #10b981; background: rgba(16, 185, 129, 0.05); }

.ethics-table td.text-secondary { color: var(--text-secondary); }
.ethics-table td.text-primary { color: var(--text-primary); }

.badge-emerald {
    color: #10b981;
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.badge-purple {
    color: #a855f7;
    border-color: #a855f7;
    background: rgba(168, 85, 247, 0.1);
}
