:root {
  --bg: #11100f; --panel: #1b1917; --text: #f3efe8; --muted: #aaa59c;
  --dim: #77736b; --line: rgba(243,239,232,.15); --orange: #ff7448;
  --yellow: #f5c969; --cyan: #92d4c2; --purple: #b6a2e8;
  --mono: "DM Mono", monospace; --sans: "Space Grotesk", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body { position: relative; margin: 0; color: var(--text); background: radial-gradient(ellipse 42rem 30rem at 12% 56%, rgba(182,162,232,.11), transparent 70%), radial-gradient(ellipse 38rem 28rem at 88% 78%, rgba(146,212,194,.1), transparent 70%), var(--bg); font: 16px/1.5 var(--sans); }
body::before { position: absolute; top: 0; right: 0; left: 0; z-index: -1; height: 100%; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 64px 64px; content: ""; animation: grid-drift 24s linear infinite; }
body::after { position: absolute; top: 0; right: 0; z-index: -1; width: min(52rem, 100vw); height: 52rem; border-radius: 50%; background: rgba(255,116,72,.09); filter: blur(80px); content: ""; pointer-events: none; animation: glow-drift 14s ease-in-out infinite alternate; }
a { color: inherit; text-decoration: none; }
.site { position: relative; z-index: 1; width: min(1120px, calc(100% - 48px)); margin: auto; }
header, footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
header { height: 92px; animation: slide-down .8s cubic-bezier(.2,.8,.2,1) both; }
.brand { display: flex; align-items: center; gap: 11px; font-size: 15px; font-weight: 700; }
.brand b { display: grid; width: 30px; height: 30px; place-items: center; color: var(--bg); background: var(--yellow); font: 700 13px var(--mono); clip-path: polygon(0 13%, 100% 0, 87% 100%, 0 84%); }
nav, footer { color: var(--muted); font: 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
nav { display: flex; gap: 26px; }
nav a:hover, footer a:hover { color: var(--text); }
.hero { min-height: 570px; padding: 125px 0 100px; }
.eyebrow { color: var(--yellow); font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { display: inline-block; width: 28px; height: 1px; margin: 0 10px 3px 0; background: var(--orange); content: ""; }
h1 { max-width: 930px; margin: 26px 0 25px; font-size: clamp(3rem, 7vw, 6.7rem); line-height: .94; letter-spacing: -.08em; animation: hero-in .9s .15s cubic-bezier(.2,.8,.2,1) both; }
h1 em { color: var(--orange); font-style: normal; }
.hero .eyebrow { animation: fade-up .7s .25s both; }
.intro { max-width: 460px; margin: 0 0 30px; color: var(--muted); font-size: 17px; animation: fade-up .7s .4s both; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { position: relative; display: inline-block; padding: 13px 17px; color: var(--bg); background: var(--yellow); font: 500 11px var(--mono); letter-spacing: .04em; text-transform: uppercase; overflow: hidden; transition: transform .2s, background .2s, box-shadow .2s; animation: fade-up .7s .55s both; }
.button::after { position: absolute; top: 0; left: -80%; width: 45%; height: 100%; background: rgba(255,255,255,.35); content: ""; transform: skewX(-20deg); transition: left .5s ease; }
.button:hover::after, .button:focus-visible::after { left: 135%; }
.button:hover, .button:focus-visible { background: #ffda7c; transform: translateY(-2px); }
section:not(.hero) { padding: 78px 0; border-top: 1px solid var(--line); }
.section-top { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.section-top p { margin: 0; }
.muted, .project-card p, .detail-copy { color: var(--muted); }
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.project-card { position: relative; display: flex; min-height: 335px; flex-direction: column; padding: 27px; border: 1px solid var(--line); overflow: hidden; transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s, box-shadow .35s; }
.project-card:hover { border-color: rgba(245,201,105,.7); box-shadow: 0 0 0 1px rgba(245,201,105,.12), 0 18px 45px rgba(0,0,0,.3), 0 0 32px rgba(255,116,72,.1); transform: translateY(-7px); }
.project-card:hover h2 { text-shadow: 0 0 18px rgba(245,201,105,.25); }
.project-card.particles { background: linear-gradient(135deg, rgba(182,162,232,.15), transparent 60%), var(--panel); }
.project-card.friends { background: linear-gradient(135deg, rgba(255,116,72,.14), transparent 60%), var(--panel); }
.project-card.upcoming { background: linear-gradient(135deg, rgba(146,212,194,.1), transparent 60%), var(--panel); }
.status { color: var(--muted); font: 10px var(--mono); text-transform: uppercase; letter-spacing: .07em; }
.status::before { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--cyan); content: ""; }
.status.beta::before { background: var(--orange); }
.status.soon::before { background: var(--cyan); }
.status::before { animation: pulse 2s ease-in-out infinite; }
.project-card h2 { margin: 58px 0 10px; font-size: 31px; letter-spacing: -.06em; }
.project-card p { max-width: 360px; margin: 0; font-size: 14px; }
.card-link { z-index: 1; margin-top: auto; color: var(--yellow); font: 11px var(--mono); text-transform: uppercase; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9vw; }
.about-grid h2 { margin: 0; font-size: clamp(2.4rem, 5vw, 4.5rem); line-height: .96; letter-spacing: -.07em; }
.about-grid em { color: var(--orange); font-style: normal; }
.about-copy { max-width: 470px; color: var(--muted); font-size: 16px; }
.about-copy p { margin: 0 0 18px; }
footer { padding: 25px 0 32px; border-bottom: 0; }
.detail-hero { padding: 100px 0 62px; border-bottom: 1px solid var(--line); }
.back { display: inline-block; margin-bottom: 45px; color: var(--muted); font: 11px var(--mono); text-transform: uppercase; }
.back:hover { color: var(--text); }
.detail-hero h1 { margin: 20px 0 18px; font-size: clamp(3rem, 7vw, 6rem); }
.detail-hero .intro { max-width: 650px; }
.detail-content { display: grid; grid-template-columns: 1.15fr .85fr; gap: 9vw; padding: 68px 0 90px; }
.detail-sections { padding: 0 0 90px; }
.detail-sections h2 { margin: 0 0 24px; font-size: 26px; letter-spacing: -.05em; }
.detail-sections h3 { margin: 34px 0 10px; font-size: 17px; }
.detail-sections p, .detail-sections li { color: var(--muted); font-size: 15px; }
.detail-sections ul { padding-left: 20px; }
.detail-sections li { margin: 8px 0; }
.command { margin: 12px 0 20px; padding: 14px 16px; overflow-x: auto; color: var(--yellow); background: var(--panel); border: 1px solid var(--line); font: 13px var(--mono); }
.download-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.download-grid .button { width: 100%; text-align: center; }
.detail-content h2 { margin: 0 0 17px; font-size: 26px; letter-spacing: -.05em; }
.detail-copy { font-size: 15px; }
.detail-copy p { margin: 0 0 18px; }
.feature-list { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.feature-list li { padding-top: 14px; border-top: 1px solid var(--line); }
.feature-list strong { display: block; margin-bottom: 4px; color: var(--text); font-size: 14px; }
.feature-list span { color: var(--muted); font-size: 13px; }
.side-box { padding: 23px; border: 1px solid var(--line); background: var(--panel); }
.side-box h3 { margin: 0 0 14px; font-size: 18px; }
.side-box p { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.side-box .button { margin: 4px 0; }
.button.secondary { color: var(--text); background: transparent; border: 1px solid var(--line); }
.button.secondary:hover { border-color: var(--yellow); }
.friends-page .detail-hero h1 em { color: var(--cyan); }
.particles-page .detail-hero h1 em { color: var(--purple); }
main > section:not(.hero), .detail-content, .detail-sections { animation: fade-up .8s .2s both; }
.project-card:nth-child(1) { animation: fade-up .7s .15s both; }
.project-card:nth-child(2) { animation: fade-up .7s .28s both; }
.project-card:nth-child(3) { animation: fade-up .7s .41s both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hero-in { from { opacity: 0; transform: translateY(28px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes slide-down { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes grid-drift { from { background-position: 0 0, 0 0; } to { background-position: 64px 64px, 64px 64px; } }
@keyframes glow-drift { from { opacity: .8; } to { opacity: 1; } }
@keyframes pulse { 0%, 100% { opacity: .7; box-shadow: 0 0 0 0 rgba(146,212,194,.35); } 50% { opacity: 1; box-shadow: 0 0 0 5px rgba(146,212,194,0); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
@media (max-width: 700px) {
  .site { width: min(100% - 32px, 560px); }
  header { height: 74px; }
  nav { gap: 13px; font-size: 9px; }
  .hero { min-height: auto; padding: 90px 0 80px; }
  h1 { font-size: clamp(3rem, 15vw, 5rem); }
  .projects, .detail-content { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .download-grid { grid-template-columns: 1fr; }
  .detail-hero { padding: 70px 0 50px; }
  .detail-content { gap: 45px; padding: 50px 0 65px; }
  footer { align-items: flex-start; flex-direction: column; }
}
