:root {
  --bg: #141414;
  --ink: #ececec;
  --muted: #9c9c9e;
  --line: rgba(192, 193, 194, 0.22);
  --accent: #22c55e;
  --green: #22c55e;
  --green-ink: #062b16;
  --silver: #c0c1c2;
  --panel: #1f1f1f;
  --paper: #f4f4f2;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", Helvetica, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 80;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.topbar { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; padding: 26px 0 8px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 7px 15px 7px 8px;
  border-radius: 100px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  color: var(--silver);
}
.badge img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }

.hero { text-align: center; padding: 64px 0 8px; }
.hero h1 {
  font-weight: 700;
  font-size: 78px;
  line-height: 0.98;
  letter-spacing: -3.6px;
}
.hero h1 .grad {
  color: var(--accent);
}
.hero p {
  max-width: 600px;
  margin: 26px auto 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: -0.2px;
}

.stage { position: relative; height: 520px; margin: 40px 0 10px; }
.fan { position: absolute; left: 50%; top: 40px; width: 0; height: 0; }
.card {
  position: absolute;
  left: 50%;
  top: 34px;
  width: 172px;
  --sf: 1;
  --x: 0px;
  --yt: 0px;
  --rot: 0deg;
  --rise: 46px;
  --scv: 0.8;
  transform-origin: center center;
  transform:
    translateX(calc(-50% + var(--x) * var(--sf)))
    translateY(calc(var(--yt) * var(--sf) + var(--rise)))
    rotate(var(--rot))
    scale(var(--scv));
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.2, 0.75, 0.2, 1), box-shadow 0.35s ease, opacity 0.55s ease;
  will-change: transform, opacity;
}
.card.in { --rise: 0px; --scv: 1; opacity: 1; }
.card[data-i="0"] { --x: -430px; --yt: 60px; --rot: -26deg; z-index: 6; }
.card[data-i="1"] { --x: -258px; --yt: 20px; --rot: -15.5deg; z-index: 5; }
.card[data-i="2"] { --x: -86px; --yt: 0px; --rot: -5.5deg; z-index: 4; }
.card[data-i="3"] { --x: 86px; --yt: 2px; --rot: 5.5deg; z-index: 3; }
.card[data-i="4"] { --x: 258px; --yt: 22px; --rot: 15.5deg; z-index: 2; }
.card[data-i="5"] { --x: 430px; --yt: 64px; --rot: 26deg; z-index: 1; }
.card:hover { --rise: -16px; --scv: 1.07; --rot: 0deg; z-index: 60; }
.card:hover .polaroid {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08), 0 34px 62px rgba(20, 20, 30, 0.3);
}

.polaroid {
  background: var(--paper);
  border-radius: 14px;
  padding: 9px 9px 0;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.2);
}
.polaroid .ph {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  overflow: hidden;
  background: #e9e9e6;
  position: relative;
}
.polaroid .ph img,
.polaroid .ph video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.polaroid .cap {
  text-align: center;
  font-family: "DM Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.5px;
  padding: 9px 0 11px;
  text-transform: uppercase;
}
.scan {
  position: absolute;
  left: 8px;
  bottom: 8px;
  background: rgba(17, 17, 17, 0.82);
  color: var(--paper);
  font-family: "DM Mono", monospace;
  font-size: 9px;
  letter-spacing: 1px;
  padding: 4px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

.c-gray,
.c-violet,
.c-blue,
.c-teal { color: #6b6b70; }
.c-green { color: var(--accent); }
.cap .sub {
  display: block;
  margin-top: 3px;
  opacity: 0.55;
  font-size: 9px;
  letter-spacing: 1px;
}

.fan.trio { top: 30px; }
.fan.trio .card { width: 220px; }
.fan.trio .card[data-i="0"] { --x: -248px; --yt: 30px; --rot: -8deg; z-index: 3; }
.fan.trio .card[data-i="1"] { --x: 0px; --yt: 0px; --rot: 0deg; z-index: 4; }
.fan.trio .card[data-i="2"] { --x: 248px; --yt: 30px; --rot: 8deg; z-index: 2; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--silver);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 100px;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav-link:hover { border-color: var(--silver); color: var(--ink); }

.section-kicker {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-bottom: 6px;
}
.related { padding: 18px 0 56px; text-align: center; }
.related h2 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -1.2px;
}
.related p {
  max-width: 560px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 10px 10px 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.chip .app {
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--green-ink);
  background: var(--accent);
  padding: 4px 9px;
  border-radius: 100px;
}

.panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding: 20px 0 70px;
}
.panel {
  border-radius: 24px;
  padding: 34px;
  position: relative;
  overflow: hidden;
}
.panel.dark { background: var(--panel); color: var(--ink); border: 1px solid var(--line); }
.panel.dark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(460px 260px at 80% 4%, rgba(192, 193, 194, 0.08), transparent 62%);
  pointer-events: none;
}
.panel.dark h2 { color: var(--ink); }
.panel.green {
  background: linear-gradient(160deg, #123f39 0%, #0d302b 100%);
  color: #eafff5;
}
.panel.green h2 { padding-right: 70px; }
.panel h2 {
  font-size: 31px;
  font-weight: 700;
  letter-spacing: -1px;
  position: relative;
}
.panel .kicker {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 10px;
}

.guide-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  position: relative;
  z-index: 1;
}
.guide-icon {
  width: 112px;
  height: 112px;
  border-radius: 26px;
  margin-top: 12px;
  background: #161616;
  border: 1px solid rgba(192, 193, 194, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px -8px rgba(0, 0, 0, 0.45);
  color: var(--silver);
}
.guide-icon svg { width: 44px; height: 44px; }
.guide-icon .fn {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  margin-top: 6px;
  letter-spacing: 0.5px;
}
.guide-cap {
  font-family: "DM Mono", monospace;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--muted);
  text-transform: lowercase;
}
.dl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: var(--paper);
  color: #111;
  border-radius: 15px;
  padding: 16px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.dl:hover { transform: translateY(-2px); }
.dl .sz {
  font-family: "DM Mono", monospace;
  font-weight: 400;
  font-size: 12px;
  color: #8a8a90;
}

.panel.green p {
  font-size: 16px;
  line-height: 1.62;
  margin-top: 4px;
  color: #cdeede;
  position: relative;
  z-index: 1;
}
.panel.green p b { color: #fff; font-weight: 700; }
.panel.green .kicker,
.panel.green h2,
.panel.green .tags,
.panel.green .cta-row { position: relative; z-index: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 22px; }
.tags span {
  font-size: 13px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 13px;
  border-radius: 100px;
  color: #dff7ea;
}
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-green {
  background: var(--green);
  color: var(--green-ink);
  font-weight: 700;
  font-size: 16px;
  padding: 15px 22px;
  border-radius: 15px;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.btn-green:hover { transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #eafff5;
  font-weight: 600;
  font-size: 16px;
  padding: 15px 22px;
  border-radius: 15px;
  text-decoration: none;
}
.brand-logo {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  z-index: 1;
}
.brand-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 820px) {
  .hero { padding: 40px 0 0; }
  .hero h1 { font-size: 46px; letter-spacing: -2px; }
  .hero p { font-size: 17px; }
  .stage { height: 400px; margin: 24px 0 0; }
  .card { width: 132px; }
  .fan.trio .card { width: 150px; }
  .fan.trio .card[data-i="0"] { --x: -140px; --yt: 22px; }
  .fan.trio .card[data-i="2"] { --x: 140px; --yt: 22px; }
  .panels { grid-template-columns: 1fr; padding: 16px 0 60px; }
  .panel { padding: 26px; }
  .panel h2 { font-size: 26px; }
  .related h2 { font-size: 27px; }
}
@media (max-width: 420px) {
  .hero h1 { font-size: 38px; }
  .stage { height: 340px; }
  .card { width: 112px; }
  .fan.trio .card { width: 118px; }
  .fan.trio .card[data-i="0"] { --x: -104px; --yt: 16px; }
  .fan.trio .card[data-i="2"] { --x: 104px; --yt: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card {
    opacity: 1;
    --rise: 0px;
    --scv: 1;
    transition: none;
  }
  .dl:hover,
  .btn-green:hover { transform: none; }
}
