:root {
--green: #1a7a4a;
--green-lt: #2da865;
--green-bg: #f0faf5;
--ink: #0f1f17;
--ink-mid: #3a5244;
--ink-soft: #6b8c7a;
--sand: #f5f2ec;
--white: #ffffff;
--border: #d4e8db;
--warn: #b45309;
--warn-bg: #fffbeb;
}

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

html { scroll-behavior: smooth; }

body {
font-family: 'DM Sans', sans-serif;
font-size: 17px;
line-height: 1.65;
color: var(--ink);
background: var(--white);
-webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
position: sticky; top: 0; z-index: 100;
background: rgba(255,255,255,0.92);
backdrop-filter: blur(12px);
border-bottom: 1px solid var(--border);
padding: 0 2rem;
display: flex; align-items: center; justify-content: space-between;
height: 58px;
}
.nav-brand {
font-family: 'DM Mono', monospace;
font-size: 0.82rem;
color: var(--green);
text-decoration: none;
letter-spacing: 0.03em;
}
.nav-links { display: flex; gap: 1.8rem; list-style: none; }
.nav-links a {
font-size: 0.88rem;
color: var(--ink-mid);
text-decoration: none;
letter-spacing: 0.01em;
transition: color 0.15s;
}
.nav-links a:hover { color: var(--green); }
.nav-cta {
background: var(--green);
color: #fff !important;
padding: 0.38rem 1rem;
border-radius: 4px;
font-weight: 500;
transition: background 0.15s !important;
}
.nav-cta:hover { background: var(--green-lt) !important; color: #fff !important; }

/* ── HERO ── */
.hero {
background: var(--ink);
color: var(--white);
padding: 5rem 2rem 4.5rem;
position: relative;
overflow: hidden;
}
.hero::before {
content: '';
position: absolute; inset: 0;
background: radial-gradient(ellipse 80% 60% at 70% 40%, rgba(26,122,74,0.28) 0%, transparent 70%);
pointer-events: none;
}
/* subtle circuit-like grid */
.hero::after {
content: '';
position: absolute; inset: 0;
background-image:
linear-gradient(rgba(45,168,101,0.07) 1px, transparent 1px),
linear-gradient(90deg, rgba(45,168,101,0.07) 1px, transparent 1px);
background-size: 40px 40px;
pointer-events: none;
}
.hero-inner {
max-width: 860px; margin: 0 auto;
position: relative; z-index: 1;
/*
display: flex;
flex-direction: row;
align-items: center;
gap: 3rem;
}
.hero-inner .hero-text {
flex: 1 1 0;
*/
}
.hero-inner .hero-image {
/*
flex: 0 0 auto;
*/
width: 280px;
max-width: 35%;
}
.hero-inner .hero-image img {
width: 100%;
height: auto;
border-radius: 8px;
display: block;
}
.hero-tag {
display: inline-block;
font-family: 'DM Mono', monospace;
font-size: 0.75rem;
letter-spacing: 0.12em;
text-transform: uppercase;
color: var(--green-lt);
border: 1px solid rgba(45,168,101,0.4);
padding: 0.28rem 0.75rem;
border-radius: 3px;
margin-bottom: 1.4rem;
}
.hero h1 {
font-family: 'DM Serif Display', serif;
font-size: clamp(2.4rem, 5vw, 3.8rem);
line-height: 1.12;
font-weight: 400;
margin-bottom: 1.4rem;
letter-spacing: -0.01em;
}
.hero h1 em {
font-style: italic;
color: var(--green-lt);
}
.hero-sub {
font-size: 1.15rem;
color: rgba(255,255,255,0.72);
max-width: 580px;
line-height: 1.6;
margin-bottom: 2.4rem;
font-weight: 300;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.btn-primary {
display: inline-flex; align-items: center; gap: 0.5rem;
background: var(--green-lt);
color: #fff;
padding: 0.75rem 1.7rem;
border-radius: 5px;
text-decoration: none;
font-weight: 500;
font-size: 1rem;
transition: background 0.15s, transform 0.1s;
letter-spacing: 0.01em;
}
.btn-primary:hover { background: #36c075; transform: translateY(-1px); }
.btn-ghost {
display: inline-flex; align-items: center; gap: 0.5rem;
border: 1px solid rgba(255,255,255,0.3);
color: rgba(255,255,255,0.85);
padding: 0.75rem 1.5rem;
border-radius: 5px;
text-decoration: none;
font-size: 0.95rem;
transition: border-color 0.15s, color 0.15s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.7); color: #fff; }
.hero-meta {
margin-top: 2.8rem;
display: flex; gap: 2.5rem; flex-wrap: wrap;
border-top: 1px solid rgba(255,255,255,0.1);
padding-top: 1.8rem;
}
.hero-stat { }
.hero-stat .val {
font-family: 'DM Serif Display', serif;
font-size: 1.9rem;
color: var(--green-lt);
display: block;
line-height: 1.1;
}
.hero-stat .lbl {
font-size: 0.8rem;
color: rgba(255,255,255,0.5);
text-transform: uppercase;
letter-spacing: 0.08em;
}

/* ── SECTION WRAPPER ── */
section { padding: 4.5rem 2rem; }
.inner { max-width: 860px; margin: 0 auto; }
.section-label {
font-family: 'DM Mono', monospace;
font-size: 0.72rem;
letter-spacing: 0.14em;
text-transform: uppercase;
color: var(--green);
margin-bottom: 0.7rem;
}
h2 {
font-family: 'DM Serif Display', serif;
font-size: clamp(1.7rem, 3.5vw, 2.4rem);
font-weight: 400;
line-height: 1.2;
color: var(--ink);
margin-bottom: 1rem;
}
.lead {
font-size: 1.08rem;
color: var(--ink-mid);
max-width: 640px;
margin-bottom: 2.5rem;
font-weight: 300;
}

/* ── WHAT IT DOES ── */
#what { background: var(--green-bg); }
.what-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1.5rem;
margin-top: 2rem;
}
.what-card {
background: var(--white);
border: 1px solid var(--border);
border-radius: 8px;
padding: 1.6rem 1.8rem;
}
.what-card .icon {
font-size: 1.6rem;
margin-bottom: 0.7rem;
display: block;
}
.what-card h3 {
font-family: 'DM Serif Display', serif;
font-size: 1.1rem;
font-weight: 400;
margin-bottom: 0.4rem;
color: var(--ink);
}
.what-card p {
font-size: 0.92rem;
color: var(--ink-mid);
line-height: 1.6;
}

/* ── COMPATIBILITY ── */
#compat { background: var(--white); }
.compat-box {
background: var(--sand);
border: 1px solid var(--border);
border-radius: 8px;
padding: 2rem 2.2rem;
margin-bottom: 1.5rem;
}
.compat-box h3 {
font-family: 'DM Serif Display', serif;
font-size: 1.15rem;
font-weight: 400;
margin-bottom: 1rem;
color: var(--ink);
}
.compat-row {
display: flex; gap: 1rem; flex-wrap: wrap;
margin-bottom: 0.9rem;
}
.compat-badge {
background: var(--white);
border: 1px solid var(--border);
border-radius: 4px;
padding: 0.35rem 0.85rem;
font-family: 'DM Mono', monospace;
font-size: 0.82rem;
color: var(--ink);
}
.compat-badge.green {
background: #e6f5ee;
border-color: #a8d9bc;
color: var(--green);
}
.compat-badge.red {
background: #f5e6e6;
border-color: #d9a8a8;
color: #7a1a1a;
}
.compat-note {
font-size: 0.88rem;
color: var(--ink-soft);
line-height: 1.6;
}
code {
font-family: 'DM Mono', monospace;
font-size: 0.85em;
background: #e8f0eb;
padding: 0.1em 0.4em;
border-radius: 3px;
color: var(--green);
}
.warn-box {
background: var(--warn-bg);
border: 1px solid #f5d06a;
border-radius: 8px;
padding: 1.1rem 1.5rem;
font-size: 0.92rem;
color: var(--warn);
display: flex;
gap: 0.7rem;
align-items: flex-start;
margin-top: 1.2rem;
}
.warn-box .wi { flex-shrink: 0; margin-top: 0.05rem; }

/* ── INSTALL ── */
#install { background: var(--green-bg); }
.steps {
counter-reset: step;
display: flex;
flex-direction: column;
gap: 0;
margin-top: 2rem;
border: 1px solid var(--border);
border-radius: 8px;
overflow: hidden;
background: var(--white);
}
.step {
display: flex;
gap: 1.5rem;
padding: 1.4rem 1.8rem;
border-bottom: 1px solid var(--border);
align-items: flex-start;
counter-increment: step;
}
.step:last-child { border-bottom: none; }
.step-num {
flex-shrink: 0;
width: 2rem; height: 2rem;
background: var(--green);
color: white;
border-radius: 50%;
display: flex; align-items: center; justify-content: center;
font-family: 'DM Mono', monospace;
font-size: 0.8rem;
font-weight: 500;
margin-top: 0.1rem;
}
.step-body h3 {
font-weight: 500;
margin-bottom: 0.2rem;
font-size: 0.98rem;
color: var(--ink);
}
.step-body p {
font-size: 0.9rem;
color: var(--ink-mid);
line-height: 1.55;
}
.ikea-callout {
margin-top: 2rem;
background: var(--white);
border: 1px solid var(--border);
border-left: 4px solid var(--green-lt);
border-radius: 0 8px 8px 0;
padding: 1.2rem 1.6rem;
font-size: 1rem;
color: var(--ink-mid);
font-style: italic;
}

/* ── BUY ── */
#buy { background: var(--ink); color: var(--white); }
#buy h2 { color: var(--white); }
#buy .lead { color: rgba(255,255,255,0.65); }
.buy-primary {
background: var(--green-lt);
border-radius: 10px;
padding: 2.2rem 2.4rem;
margin-bottom: 1.5rem;
display: flex;
align-items: center;
justify-content: space-between;
gap: 2rem;
flex-wrap: wrap;
}
.buy-primary h3 {
font-family: 'DM Serif Display', serif;
font-size: 1.5rem;
font-weight: 400;
color: #fff;
margin-bottom: 0.4rem;
}
.buy-primary p {
color: rgba(255,255,255,0.8);
font-size: 0.95rem;
max-width: 400px;
}
.buy-ebay {
display: inline-flex; align-items: center; gap: 0.5rem;
background: #fff;
color: var(--green);
font-weight: 600;
padding: 0.85rem 2rem;
border-radius: 6px;
text-decoration: none;
font-size: 1rem;
white-space: nowrap;
transition: background 0.15s;
}
.buy-ebay:hover { background: #e6f5ee; }
.alts-title {
font-family: 'DM Mono', monospace;
font-size: 0.72rem;
letter-spacing: 0.14em;
text-transform: uppercase;
color: rgba(255,255,255,0.4);
margin-bottom: 1rem;
}
.alt-cards {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1rem;
}
.alt-card {
background: rgba(255,255,255,0.06);
border: 1px solid rgba(255,255,255,0.12);
border-radius: 8px;
padding: 1.4rem;
text-decoration: none;
color: inherit;
transition: background 0.15s, border-color 0.15s;
display: block;
}
.alt-card:hover {
background: rgba(255,255,255,0.1);
border-color: rgba(45,168,101,0.4);
}
.alt-card .alt-icon { font-size: 1.4rem; margin-bottom: 0.6rem; display: block; }
img.alt-icon{
	max-height: 37px;
}
.alt-card h3 {
font-weight: 500;
font-size: 0.95rem;
color: #fff;
margin-bottom: 0.3rem;
}
.alt-card p {
font-size: 0.83rem;
color: rgba(255,255,255,0.5);
line-height: 1.5;
}
.alt-card .alt-link {
display: inline-block;
margin-top: 0.8rem;
font-size: 0.8rem;
color: var(--green-lt);
font-family: 'DM Mono', monospace;
letter-spacing: 0.03em;
}

/* ── BACKSTORY ── */
#backstory { background: var(--sand); }
.timeline {
margin-top: 2rem;
position: relative;
padding-left: 2.2rem;
}
.timeline::before {
content: '';
position: absolute;
left: 0.55rem; top: 0.5rem; bottom: 0.5rem;
width: 2px;
background: var(--border);
}
.tl-item {
position: relative;
margin-bottom: 2rem;
}
.tl-item::before {
content: '';
position: absolute;
left: -1.88rem;
top: 0.45rem;
width: 10px; height: 10px;
border-radius: 50%;
background: var(--green);
border: 2px solid var(--sand);
}
.tl-item h3 {
font-weight: 500;
margin-bottom: 0.25rem;
font-size: 0.97rem;
color: var(--ink);
}
.tl-item h3 a {
color: var(--green);
text-decoration: none;
}
.tl-item h3 a:hover { text-decoration: underline; }
.tl-item p {
font-size: 0.9rem;
color: var(--ink-mid);
line-height: 1.6;
}

/* ── OPEN SOURCE ── */
#opensource { background: var(--white); }
.os-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1.2rem;
margin-top: 2rem;
}
.os-card {
border: 1px solid var(--border);
border-radius: 8px;
padding: 1.4rem 1.6rem;
display: flex;
gap: 1rem;
align-items: flex-start;
text-decoration: none;
color: inherit;
transition: border-color 0.15s, background 0.15s;
}
.os-card:hover { border-color: var(--green-lt); background: var(--green-bg); }
.os-card .os-icon {
font-size: 1.5rem;
flex-shrink: 0;
margin-top: 0.1rem;
}
.os-card h3 {
font-weight: 500;
font-size: 0.97rem;
margin-bottom: 0.2rem;
color: var(--ink);
}
.os-card p {
font-size: 0.85rem;
color: var(--ink-soft);
line-height: 1.5;
}

/* ── FOOTER ── */
footer {
background: var(--ink);
color: rgba(255,255,255,0.45);
padding: 2.5rem 2rem;
text-align: center;
font-size: 0.85rem;
}
footer a { color: rgba(255,255,255,0.6); text-decoration: none; }
footer a:hover { color: var(--green-lt); }
footer .footer-inner {
max-width: 860px;
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 1rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
.hero-inner .hero-image { max-width: 320px; margin: 0 auto; }
.what-grid, .alt-cards, .os-grid { grid-template-columns: 1fr; }
.nav-links { display: none; }
.buy-primary { flex-direction: column; }
.hero-meta { gap: 1.5rem; }
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
from { opacity: 0; transform: translateY(18px); }
to { opacity: 1; transform: translateY(0); }
}
.hero-inner > * {
animation: fadeUp 0.55s ease both;
}
.hero-tag { animation-delay: 0.05s; }
.hero h1 { animation-delay: 0.15s; }
.hero-sub { animation-delay: 0.25s; }
.hero-actions { animation-delay: 0.32s; }
.hero-meta { animation-delay: 0.4s; }
