:root{
  --bg:#0F172A;
  --surface:#1E293B;
  --accent:#38BDF8;
  --text:#F8FAFC;
  --muted:#94A3B8;
  --line:#334155;
  --radius:10px;
  --max:1080px;
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  color-scheme:dark;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:72px}
body{margin:0;background:var(--bg);color:var(--text);line-height:1.6;font-size:1.0625rem}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:4px}
.wrap{max-width:var(--max);margin:0 auto;padding:0 1.5rem}

/* Header */
header{position:sticky;top:0;z-index:10;background:rgba(15,23,42,.85);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
header .wrap{display:flex;align-items:center;justify-content:space-between;height:64px}
.brand{font-weight:700;letter-spacing:.04em;color:var(--text)}
.brand:hover{text-decoration:none}
.brand span{color:var(--accent)}
nav{display:flex;gap:1.5rem}
nav a{color:var(--muted);font-size:.95rem}
nav a:hover{color:var(--text);text-decoration:none}

/* Hero */
.hero{padding:6rem 0 5rem;overflow:hidden}
.hero .wrap{display:grid;grid-template-columns:1.1fr .9fr;gap:3rem;align-items:center}
.hero h1{font-size:clamp(2.6rem,7vw,4.5rem);line-height:1.02;letter-spacing:.02em;margin:0 0 .5rem}
.hero .sub{font-size:1.35rem;color:var(--accent);margin:0 0 1.5rem;font-weight:600}
.hero p{color:var(--muted);max-width:46ch;margin:0 0 2rem}
.btn{display:inline-block;background:var(--accent);color:var(--bg);font-weight:700;padding:.85rem 1.6rem;border-radius:var(--radius);border:0;font-size:1rem;cursor:pointer;font-family:inherit}
.btn:hover{text-decoration:none;filter:brightness(1.1)}

/* Layer stack: the one animated moment */
.layers{display:flex;flex-direction:column-reverse;gap:5px;max-width:340px;margin-left:auto;width:100%}
.layers i{display:block;height:9px;border-radius:2px;background:var(--accent);transform-origin:left;animation:print .5s ease-out both;animation-delay:calc(var(--n) * 70ms)}
@keyframes print{from{transform:scaleX(0);opacity:0}to{transform:scaleX(1);opacity:var(--o,1)}}

/* Sections */
section{padding:4.5rem 0;border-top:1px solid var(--line)}
section h2{font-size:1.9rem;margin:0 0 .75rem;letter-spacing:-.01em}
section .lead{color:var(--muted);max-width:60ch;margin:0 0 2.5rem}

.materials{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}
.mat{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:1.5rem}
.mat h3{margin:0 0 .25rem;font-size:1.3rem}
.mat .tag{color:var(--accent);font-size:.9rem;margin:0 0 .75rem}
.mat p{margin:0;color:var(--muted);font-size:.97rem}

/* Form */
form{display:grid;gap:1.1rem;max-width:640px}
.row{display:grid;grid-template-columns:1fr 1fr;gap:1.1rem}
label{display:grid;gap:.4rem;font-size:.95rem;font-weight:600}
input,select,textarea{background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:8px;padding:.75rem .9rem;font:inherit;font-weight:400;width:100%}
input:focus,select:focus,textarea:focus{border-color:var(--accent);outline:none}
input[type=file]{padding:.6rem}
textarea{min-height:130px;resize:vertical}
.hint{font-weight:400;color:var(--muted);font-size:.85rem}
.check{display:flex;gap:.6rem;align-items:flex-start;font-weight:400;font-size:.9rem;color:var(--muted)}
.check input{width:auto;margin-top:.3rem}

footer{border-top:1px solid var(--line);padding:2rem 0;color:var(--muted);font-size:.9rem}
footer .wrap{display:flex;flex-wrap:wrap;gap:1rem;justify-content:space-between}
footer nav a{font-size:.9rem}

@media (max-width:760px){
  .hero{padding:3.5rem 0}
  .hero .wrap{grid-template-columns:1fr}
  .layers{margin:0;max-width:240px}
  .materials,.row{grid-template-columns:1fr}
  header nav{gap:1rem}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .layers i{animation:none}
}
