/* Timber website — dark, warm, glassy. Plain CSS, no build. */
:root {
    --bg: #17100b; --fg: #f7efe4; --fg-2: #d6c8b6; --muted: #a8977f; --accent: #f08a3c; --accent-2: #c2410c; --leaf: #3f8f66;
    --glass: rgba(255, 255, 255, .07); --glass-2: rgba(255, 255, 255, .12); --edge: rgba(255, 255, 255, .18); --edge-hi: rgba(255, 255, 255, .45);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --max: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--fg); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
:focus-visible { outline: 3px solid rgba(240, 138, 60, .6); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: #fff; color: #111; padding: 8px 14px; border-radius: 8px; } .skip:focus { top: 10px; }

/* ---------- moving blobs behind everything ---------- */
.blobs { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: #2b1a0e; }
.blobs::after { content: ""; position: absolute; inset: 0; background: radial-gradient(130% 100% at 50% 0%, rgba(23, 16, 11, .05) 20%, rgba(23, 16, 11, .72) 100%); }
.blobs i { position: absolute; border-radius: 50%; filter: blur(120px) saturate(1.2); opacity: .68; will-change: transform; }
.blobs i:nth-child(1) { width: 56vmax; height: 56vmax; left: -14vmax; top: -16vmax; background: radial-gradient(circle at 35% 35%, #ff7a2f, #c2410c 55%, transparent 72%); animation: b1 26s ease-in-out infinite alternate; }
.blobs i:nth-child(2) { width: 50vmax; height: 50vmax; right: -16vmax; top: 6vmax; background: radial-gradient(circle at 60% 40%, #f5b95c, #d9822b 50%, transparent 72%); animation: b2 31s ease-in-out infinite alternate; }
.blobs i:nth-child(3) { width: 54vmax; height: 54vmax; left: 16vmax; bottom: -26vmax; background: radial-gradient(circle, #3f8f66, #2f6f4e 50%, transparent 72%); animation: b3 35s ease-in-out infinite alternate; }
@keyframes b1 { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(30vmax, 14vmax) scale(1.2); } 100% { transform: translate(10vmax, 38vmax) scale(.95); } }
@keyframes b2 { 0% { transform: translate(0, 0) scale(1.1); } 50% { transform: translate(-32vmax, 22vmax) scale(.9); } 100% { transform: translate(-12vmax, -6vmax) scale(1.25); } }
@keyframes b3 { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-28vmax, -18vmax) scale(1.18); } 100% { transform: translate(26vmax, -8vmax) scale(.92); } }
main, header, footer { position: relative; z-index: 1; }

/* ---------- glass ---------- */
.glass { position: relative; background: linear-gradient(145deg, var(--glass-2), var(--glass)); border: 1px solid var(--edge); border-radius: 24px; -webkit-backdrop-filter: blur(24px) saturate(1.5); backdrop-filter: blur(24px) saturate(1.5);
    box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7), inset 0 1px 0 var(--edge-hi), inset 0 -1px 0 rgba(255, 255, 255, .06); }
.glass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; background: linear-gradient(145deg, rgba(255, 255, 255, .6), rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, 0) 65%, rgba(255, 255, 255, .3));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }

/* ---------- nav ---------- */
.nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; padding: 0 14px; pointer-events: none; }
.nav-in { pointer-events: auto; max-width: 1080px; margin: 0 auto; display: flex; align-items: center; gap: 18px; padding: 9px 10px 9px 18px; border-radius: 999px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 750; font-size: 18px; letter-spacing: -.02em; }
.brand img { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 2px; margin-left: auto; } .nav-links a { text-decoration: none; padding: 7px 14px; border-radius: 999px; color: var(--fg-2); font-weight: 550; font-size: 14.5px; transition: background .15s, color .15s; } .nav-links a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.nav .btn-sm { margin-left: 4px; }
@media (max-width: 860px) { .nav-links a:not(.keep) { display: none; } }

/* ---------- buttons ---------- */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 14px; font: 650 16px var(--font); text-decoration: none; color: #fff; border: 1px solid var(--edge); background: var(--glass-2); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: transform .12s, box-shadow .15s, background .2s; cursor: pointer; }
.btn:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .18); }
.btn.primary { border: 0; background: linear-gradient(180deg, #ee6a2a 0%, #c2410c 55%, #a8340a 100%); text-shadow: 0 1px 1px rgba(0, 0, 0, .3);
    box-shadow: 0 6px 0 #7c2a07, 0 16px 28px -8px rgba(124, 42, 7, .6), inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -2px 0 rgba(0, 0, 0, .12); }
.btn.primary::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-22deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); animation: shine 3.8s ease-in-out infinite; }
@keyframes shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.btn.primary:hover { box-shadow: 0 8px 0 #7c2a07, 0 20px 32px -8px rgba(124, 42, 7, .7), inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -2px 0 rgba(0, 0, 0, .12); }
.btn.primary:active { transform: translateY(5px); box-shadow: 0 1px 0 #7c2a07, 0 4px 8px -2px rgba(124, 42, 7, .5), inset 0 2px 4px rgba(0, 0, 0, .2); }
.btn.lg { padding: 20px 32px; font-size: 19px; border-radius: 16px; } .btn.btn-sm { padding: 9px 18px; font-size: 14.5px; border-radius: 999px; box-shadow: none; }
.btn small { font-weight: 500; opacity: .85; font-size: .78em; }

/* ---------- hero ---------- */
.hero { padding: clamp(130px, 17vw, 200px) 0 40px; text-align: center; }
.badge { display: inline-flex; align-items: center; gap: 9px; padding: 7px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--fg-2); margin-bottom: 26px; }
.badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(240, 138, 60, .25); animation: pulse 2.4s ease-in-out infinite; } @keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(240, 138, 60, 0); } }
h1 { margin: 0 0 .35em; font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: 1.02; letter-spacing: -.045em; font-weight: 780; }
h1 em, h2 em { font-style: normal; background: linear-gradient(100deg, #ff9b4a, #ffd27a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 40rem; margin: 0 auto; font-size: clamp(1.1rem, 1.9vw, 1.35rem); color: var(--fg-2); }
.cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 34px 0 14px; }
.fine { font-size: 14px; color: var(--muted); margin: 0; }
.fine b { color: var(--fg-2); font-weight: 600; }
.hero-shot { margin: clamp(40px, 6vw, 72px) auto 0; max-width: 980px; position: relative; padding-bottom: 36px; }
.frame { border-radius: 20px; overflow: hidden; padding: 0; }
.frame-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--edge); background: rgba(0, 0, 0, .25); }
.frame-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, .25); } .frame-bar i:first-child { background: #f08a3c; }
.frame-bar span { margin-left: 12px; flex: 1; max-width: 320px; padding: 3px 12px; border-radius: 8px; background: rgba(255, 255, 255, .08); color: var(--muted); font: 500 12.5px var(--mono); text-align: left; }
.frame img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.float { position: absolute; width: 36%; border-radius: 14px; overflow: hidden; }
.float.a { right: -3%; bottom: 0; transform: rotate(3deg); animation: bob 7s ease-in-out infinite; } .float.b { left: -3%; bottom: 8px; transform: rotate(-3deg); animation: bob 8s ease-in-out -2s infinite; }
@keyframes bob { 50% { translate: 0 -10px; } }
@media (max-width: 760px) { .float { display: none; } .hero-shot { padding-bottom: 0; } }

/* ---------- sections ---------- */
section { padding: clamp(56px, 9vw, 112px) 0; }
.eyebrow { margin: 0 0 12px; color: var(--accent); font: 700 12.5px var(--font); letter-spacing: .16em; text-transform: uppercase; }
h2 { margin: 0 0 .4em; font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.08; letter-spacing: -.035em; font-weight: 760; }
.sub { color: var(--fg-2); font-size: 1.12rem; max-width: 40rem; margin: 0 0 40px; }
.center { text-align: center; } .center .sub { margin-inline: auto; }
.grid { display: grid; gap: 18px; } .g3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); } .g4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { padding: 28px; } .card h3 { margin: 14px 0 6px; font-size: 1.2rem; letter-spacing: -.01em; } .card p { margin: 0; color: var(--fg-2); font-size: 15.5px; }
.ic { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; font-size: 22px; background: rgba(255, 255, 255, .1); border: 1px solid var(--edge); }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; padding: 26px 24px; }
.steps li::after { counter-increment: none; content: counter(s); position: absolute; top: 18px; right: 22px; font: 800 3.2rem/1 var(--font); letter-spacing: -.05em; color: rgba(255, 255, 255, .08); }
.steps b { display: block; font-size: 1.15rem; margin-bottom: 4px; } .steps span { color: var(--fg-2); font-size: 15px; }
.code { margin-top: 22px; padding: 20px 24px; font: 500 15px/1.7 var(--mono); color: #ffe9cf; overflow-x: auto; text-align: left; } .code .c { color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-top: 22px; } .stats div { padding: 26px 16px; text-align: center; border-right: 1px solid var(--edge); } .stats div:last-child { border-right: 0; }
.stats strong { display: block; font-size: clamp(1.9rem, 3.4vw, 2.7rem); letter-spacing: -.04em; line-height: 1.1; background: linear-gradient(100deg, #fff, #ffc98a); -webkit-background-clip: text; background-clip: text; color: transparent; } .stats span { color: var(--muted); font-size: 14px; }

.themes .shot img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.float img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.themes .shot { padding: 0; overflow: hidden; border-radius: 20px; transition: transform .25s; } .themes .shot:hover { transform: translateY(-5px); }
.themes .shot figcaption { padding: 16px 20px 20px; } .themes figure { margin: 0; } .themes b { display: block; font-size: 1.1rem; } .themes span { color: var(--fg-2); font-size: 14.5px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; } @media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; } .ticks li { padding-left: 30px; position: relative; color: var(--fg-2); } .ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--leaf); color: #fff; font-size: 13px; font-weight: 800; }
.ticks b { color: var(--fg); }
table { width: 100%; border-collapse: collapse; font-size: 15px; } th, td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--edge); } th { color: var(--muted); font-weight: 650; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; } tr:last-child td { border-bottom: 0; } td:first-child { color: var(--fg-2); } .yes { color: #7be0a8; font-weight: 650; }
.tw { overflow-x: auto; padding: 6px; }

/* ---------- demo ---------- */
.demo { padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 56px); align-items: center; } @media (max-width: 900px) { .demo { grid-template-columns: 1fr; } }
.cred { padding: 24px; border-radius: 18px; background: rgba(0, 0, 0, .3); border: 1px solid var(--edge); }
.cred p { margin: 0 0 4px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; }
.cred .row { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; } .cred code { flex: 1; padding: 11px 14px; border-radius: 10px; background: rgba(255, 255, 255, .08); border: 1px solid var(--edge); font: 600 16px var(--mono); color: #ffe9cf; overflow-x: auto; white-space: nowrap; }
.copy { border: 1px solid var(--edge); background: var(--glass-2); color: var(--fg); font: 600 13px var(--font); padding: 10px 14px; border-radius: 10px; cursor: pointer; } .copy:hover { background: rgba(255, 255, 255, .2); }
.roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 8px; } .roles .glass { padding: 22px; } .roles h3 { margin: 0 0 4px; font-size: 1.05rem; } .roles p { margin: 0; color: var(--fg-2); font-size: 15px; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; margin-bottom: 10px; } .pill.admin { background: rgba(240, 138, 60, .25); color: #ffcf9d; } .pill.editor { background: rgba(63, 143, 102, .3); color: #a6f0c8; } .pill.viewer { background: rgba(255, 255, 255, .15); color: #e5e5e5; }

.final { padding: clamp(40px, 7vw, 80px) 24px; text-align: center; } .final h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
footer { padding: 40px 0 60px; color: var(--muted); font-size: 14.5px; } .foot { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; border-top: 1px solid var(--edge); padding-top: 28px; } .foot nav { display: flex; gap: 22px; flex-wrap: wrap; } .foot a { text-decoration: none; color: var(--fg-2); } .foot a:hover { color: #fff; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); } .reveal.in, .no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .blobs i, .btn.primary::after, .float, .badge i { animation: none; } .reveal { opacity: 1; transform: none; } html { scroll-behavior: auto; } }
@media (max-width: 520px) { .nav-links { display: none; } .nav-in { justify-content: space-between; } .btn.lg { width: 100%; padding: 18px 20px; font-size: 18px; } .btn.lg small { display: none; } .cta { flex-direction: column; } }

/* animated arrows: a gentle nudge that speeds up on hover */
.arr { display: inline-block; animation: nudge 1.8s ease-in-out infinite; }
.btn:hover .arr { animation-duration: .7s; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .arr { animation: none; } }
