:root {
  --bg: #0B0D17;
  --bg-deep: #070811;
  --surface: #1A1C2C;
  --elevated: #24273A;
  --text: #F6F4FF;
  --muted: #B9BDD1;
  --pink: #FF3D81;
  --orange: #FF9F1C;
  --violet: #7C4DFF;
  --teal: #00CFA6;
  --blue: #2684FF;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(255, 61, 129, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 0%, rgba(0, 207, 166, 0.12), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  line-height: 1.6;
}

.ink-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  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.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(11, 13, 23, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 61, 129, 0.15);
}

.brand-mark {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.masthead-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.masthead-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.masthead-links a:hover { color: var(--teal); }

main {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.hero-spread {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem 0 4rem;
}

.hero-kicker {
  color: var(--teal);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin: 0 0 0.5rem;
}

.hero-spread h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  background: linear-gradient(135deg, var(--text) 0%, var(--pink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 34ch;
  margin: 0 0 1.5rem;
}

.tab-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tab-pill {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.tab-pill.studio { color: var(--pink); border-color: rgba(255,61,129,0.4); background: rgba(255,61,129,0.1); }
.tab-pill.sketches { color: var(--violet); border-color: rgba(124,77,255,0.4); background: rgba(124,77,255,0.1); }
.tab-pill.prompts { color: var(--orange); border-color: rgba(255,159,28,0.4); background: rgba(255,159,28,0.1); }
.tab-pill.library { color: var(--teal); border-color: rgba(0,207,166,0.4); background: rgba(0,207,166,0.1); }
.tab-pill.progress { color: var(--blue); border-color: rgba(38,132,255,0.4); background: rgba(38,132,255,0.1); }

.hero-frame {
  position: relative;
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 61, 129, 0.25),
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 0 80px rgba(124, 77, 255, 0.15);
  transform: rotate(-1.5deg);
}

.hero-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.stroke-caption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.4rem 0.8rem;
  background: rgba(11, 13, 23, 0.75);
  border-left: 3px solid var(--pink);
  font-size: 0.8rem;
  color: var(--muted);
}

.paper-trail {
  padding: 3rem 0;
}

.trail-intro {
  max-width: 52ch;
  margin-bottom: 2rem;
}

.trail-intro h2,
.polaroid-head h2,
.legal-panel h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 0 0 0.75rem;
}

.trail-intro p,
.polaroid-head p { color: var(--muted); margin: 0; }

.trail-strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.note-sheet {
  position: relative;
  padding: 1.5rem 1.5rem 1.5rem 2rem;
  background: var(--surface);
  border-radius: 4px 18px 18px 4px;
  box-shadow: 8px 10px 30px rgba(0,0,0,0.35);
  transform: rotate(var(--tilt, 0deg));
}

.note-sheet::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 14px;
  width: 42px;
  height: 14px;
  background: rgba(255, 159, 28, 0.35);
  transform: rotate(-4deg);
  border-radius: 2px;
}

.note-a { --tilt: -0.8deg; border-left: 4px solid var(--pink); }
.note-b { --tilt: 0.6deg; border-left: 4px solid var(--violet); margin-left: 1.5rem; }
.note-c { --tilt: -0.4deg; border-left: 4px solid var(--orange); }
.note-d { --tilt: 0.9deg; border-left: 4px solid var(--teal); margin-left: 0.75rem; }
.note-e { --tilt: -0.5deg; border-left: 4px solid var(--blue); margin-left: 2rem; }

.note-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.note-sheet h3 {
  margin: 0 0 0.5rem;
  font-family: "Space Grotesk", sans-serif;
}

.note-sheet p {
  margin: 0;
  color: var(--muted);
}

.polaroid-wall {
  padding: 3rem 0;
}

.polaroid-head { margin-bottom: 2rem; }

.polaroid-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: end;
}

.polaroid {
  margin: 0;
  padding: 0.75rem 0.75rem 2rem;
  background: var(--elevated);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}

.polaroid img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.tilt-left { transform: rotate(-4deg) translateY(12px); }
.tilt-right { transform: rotate(3deg); }
.tilt-center { transform: rotate(-1deg) translateY(-8px); }

.legal-panel {
  margin-top: 3rem;
  padding: 2rem;
  background: rgba(26, 28, 44, 0.85);
  border: 1px solid rgba(0, 207, 166, 0.2);
  border-radius: 20px;
}

.legal-panel h3 {
  font-family: "Space Grotesk", sans-serif;
  margin: 1.5rem 0 0.5rem;
  color: var(--teal);
}

.legal-panel p { color: var(--muted); margin: 0 0 1rem; }

.support-panel .support-mail a {
  color: var(--pink);
  font-weight: 700;
  font-size: 1.1rem;
}

.page-foot {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 1rem 3rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

@media (max-width: 900px) {
  .hero-spread { grid-template-columns: 1fr; }
  .hero-frame { transform: none; order: -1; }
  .note-b, .note-d, .note-e { margin-left: 0; }
  .polaroid-grid { grid-template-columns: 1fr; }
  .tilt-left, .tilt-right, .tilt-center { transform: none; }
}

@media (max-width: 600px) {
  .masthead { flex-direction: column; align-items: flex-start; }
}
