:root {
  --paper: #fbfbf8;
  --card: #ffffff;
  --grid: rgba(31, 35, 48, 0.055);
  --ink: #16181f;
  --muted: #5b606d;
  --line: #e3e3dc;
  --accent: #6c4cf1;
  --accent-dark: #5636d6;
  --accent-soft: #efeaff;
  --highlight: #fff07a;
  --night: #1b1c22;
  --radius: 10px;
  --head: "Inter Tight", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* faint grid paper */
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); line-height: 1.1; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h3 { font-size: 1.12rem; letter-spacing: -0.01em; }
.mono { font-family: var(--mono); font-size: 0.88em; }

mark {
  background: linear-gradient(transparent 55%, var(--highlight) 55%, var(--highlight) 92%, transparent 92%);
  color: inherit; padding: 0 0.08em;
}

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.narrow { max-width: 680px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
section { padding: 72px 0; }
.label { font-family: var(--mono); font-size: 0.85rem; color: var(--accent); margin: 0 0 14px; }
.label--dark { color: #a996ff; }
.section-title { font-size: clamp(1.7rem, 4vw, 2.5rem); max-width: 22ch; }

/* buttons */
.btn {
  display: inline-block; padding: 13px 22px; border-radius: 8px;
  background: var(--ink); color: #fff; font-weight: 600; text-decoration: none;
  border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--accent);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--accent); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--accent); }
.btn--ghost { background: var(--card); color: var(--ink); box-shadow: 4px 4px 0 var(--line); }
.btn--ghost:hover { box-shadow: 6px 6px 0 var(--ink); }
.btn--small { padding: 8px 16px; font-size: 0.9rem; box-shadow: 3px 3px 0 var(--accent); }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; box-shadow: 4px 4px 0 var(--highlight); }
.btn--light:hover { box-shadow: 6px 6px 0 var(--highlight); }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(251, 251, 248, 0.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.nav__logo { font-family: var(--mono); font-weight: 500; font-size: 1.05rem; text-decoration: none; }
.nav__logo span { color: var(--accent); }
.nav__links { display: flex; gap: 22px; margin-left: auto; font-family: var(--mono); font-size: 0.88rem; }
.nav__links a { text-decoration: none; color: var(--muted); }
.nav__links a:hover { color: var(--accent); }

/* hero */
.hero {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: center;
  padding-top: 72px;
}
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.4rem); font-weight: 800; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 36ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 18px; }
.hero__note { font-size: 0.92rem; color: var(--muted); }

.hero__photo { margin: 0; justify-self: center; width: min(340px, 100%); }
.hero__photo img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 60% 30%;
  border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: 8px 8px 0 var(--accent);
}
.hero__photo figcaption { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); margin-top: 16px; }

/* notes (cards styled like files) */
.notes { display: grid; gap: 20px; }
.notes--3 { grid-template-columns: repeat(3, 1fr); }
.note {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 1px 0 var(--line);
}
.note__head {
  display: flex; align-items: center; gap: 8px; padding: 10px 16px;
  border-bottom: 1px solid var(--line); background: #f6f6f1;
  font-family: var(--mono); font-size: 0.78rem; color: var(--muted);
}
.note__head::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); opacity: .7;
}
.who .note p { margin: 0; padding: 22px 20px 26px; font-family: var(--head); font-size: 1.2rem; font-weight: 600; line-height: 1.35; }
.who__after, .show__after { margin-top: 28px; font-size: 1.1rem; color: var(--muted); }

/* essay */
.essay { background: var(--night); color: #e9e9ee; }
.essay h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: #fff; }
.essay p { font-size: 1.15rem; color: #b9bac4; }
.essay mark { color: #fff; background: linear-gradient(transparent 60%, var(--accent) 60%, var(--accent) 92%, transparent 92%); }

/* skills */
.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.skill {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 18px;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.skill:hover { border-color: var(--ink); box-shadow: 5px 5px 0 var(--accent-soft); transform: translate(-1px, -1px); }
.skill__id { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.skill h3 { margin-top: 10px; }
.skill p { margin: 0 0 16px; color: var(--muted); font-size: 0.97rem; flex: 1; }
.tag {
  align-self: flex-start; font-family: var(--mono); font-size: 0.78rem; color: var(--accent);
  background: var(--accent-soft); padding: 3px 8px; border-radius: 5px;
}

/* how */
.how { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.steps li { padding: 0 28px; border-left: 2px dashed var(--line); }
.steps li:first-child { padding-left: 0; border-left: 0; }
.steps__n { display: inline-block; font-family: var(--mono); font-size: 0.8rem; color: #fff; background: var(--ink); padding: 3px 9px; border-radius: 5px; margin-bottom: 14px; }
.steps p { color: var(--muted); margin: 0; }

/* demos */
.show .notes { margin-top: 36px; }
.demo h3, .demo p { padding: 0 20px; }
.demo h3 { margin-top: 18px; }
.demo p { color: var(--muted); margin: 0 0 22px; font-size: 0.97rem; }
.demo__media {
  aspect-ratio: 16 / 10; display: grid; place-items: center;
  background: repeating-linear-gradient(-45deg, #f4f4ee, #f4f4ee 10px, #ecece4 10px, #ecece4 20px);
  border-bottom: 1px solid var(--line);
}
.demo__media::after { content: attr(data-placeholder); font-family: var(--mono); font-size: 0.78rem; color: var(--muted); background: var(--card); padding: 5px 10px; border-radius: 5px; border: 1px solid var(--line); }

/* pricing */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; align-items: stretch; }
.price {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
}
.price--featured { border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--accent); }
.price__tag {
  position: absolute; top: -12px; left: 24px; font-family: var(--mono); font-size: 0.75rem;
  background: var(--highlight); color: var(--ink); padding: 3px 10px; border-radius: 5px; border: 1px solid var(--ink);
}
.price__name { font-family: var(--mono); font-size: 0.85rem; color: var(--accent); margin: 0; }
.price__amount { font-family: var(--head); font-size: 2.8rem; font-weight: 800; margin: 6px 0 0; line-height: 1; letter-spacing: -0.03em; }
.price__sub { color: var(--muted); margin: 8px 0 18px; }
.price ul { list-style: none; padding: 0; margin: 0 0 26px; flex: 1; }
.price li { position: relative; padding-left: 22px; margin-bottom: 8px; color: var(--muted); }
.price li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-family: var(--mono); }
.price .btn { text-align: center; }
.pricing__teams { margin-top: 30px; color: var(--muted); }

/* about */
.about__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; }
.about__text p { font-size: 1.1rem; }

/* faq */
.faq details { border-bottom: 1px dashed #cfcfc6; padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--accent); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* cta */
.cta { background: var(--night); color: #fff; text-align: center; }
.cta h2 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); }
.cta p { font-size: 1.15rem; color: #b9bac4; }
.cta .btn { margin-top: 14px; }
.cta__small { font-size: 0.95rem !important; margin-top: 20px; }

/* footer */
.footer { padding: 28px 0; font-size: 0.9rem; color: var(--muted); background: var(--paper); border-top: 1px solid var(--line); }
.footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* reveal: one-shot fade up */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* mobile */
@media (max-width: 860px) {
  section { padding: 56px 0; }
  .nav__links { display: none; }
  .nav__inner { justify-content: space-between; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 40px; }
  .hero__photo { width: min(300px, 80%); }
  .notes--3, .skills, .prices, .about__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .steps li, .steps li:first-child { padding: 0 0 0 18px; border-left: 2px dashed var(--line); }
  .about__grid { gap: 8px; }
}
