/* Still — dark mode. Scale card is indigo, not the reference teal. */
:root {
  --canvas: #0e0f12;
  --ink: #f4f5f7;
  --muted: #a3a8b2;
  --card: #121214;
  --teal: #1f6d62;
  --green: #3dce6a;
  --orange: #e89a5b;
  --radius: 28px;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 50;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip:focus {
  transform: none;
}

.column {
  width: min(100%, 440px);
  margin: 0 auto;
  padding: 28px 20px 56px;
}

.hero {
  text-align: center;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 0;
  padding: 6px 13px 6px 7px;
  border-radius: 999px;
  background: #1c1e24;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 650;
  font-weight: 600;
  letter-spacing: -0.02em;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.brand-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #161618;
  box-shadow: inset 0 0 0 5px #161618, inset 0 0 0 7px #0e0f12;
}

.hero h1 {
  margin: 22px 0 0;
  color: var(--ink);
  font-size: 2.22rem;
  font-weight: 800;
  letter-spacing: -0.052em;
  line-height: 1.04;
}

.line {
  display: block;
}

.line-mid {
  letter-spacing: -0.055em;
}

.grad {
  background-image: linear-gradient(90deg, #1aa392 0%, #6b5cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 16px auto 0;
  max-width: 34em;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.45;
}

.frames {
  display: flex;
  gap: 10px;
  margin: 26px -20px 0 0;
  padding: 2px 20px 6px 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.frames::-webkit-scrollbar {
  display: none;
}

.frame {
  position: relative;
  flex: 0 0 158px;
  height: 210px;
  border-radius: 22px;
  overflow: hidden;
  background: #d8d5d0;
  scroll-snap-align: start;
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.06);
}

.frame img,
.frame svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 26%, rgba(0, 0, 0, 0.1));
}

.brackets {
  position: absolute;
  inset: 12px;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(#fff, #fff) left top / 16px 2px no-repeat,
    linear-gradient(#fff, #fff) left top / 2px 16px no-repeat,
    linear-gradient(#fff, #fff) right top / 16px 2px no-repeat,
    linear-gradient(#fff, #fff) right top / 2px 16px no-repeat,
    linear-gradient(#fff, #fff) left bottom / 16px 2px no-repeat,
    linear-gradient(#fff, #fff) left bottom / 2px 16px no-repeat,
    linear-gradient(#fff, #fff) right bottom / 16px 2px no-repeat,
    linear-gradient(#fff, #fff) right bottom / 2px 16px no-repeat;
}

.chip {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 5px 9px 4px;
  border-radius: 999px;
  background: #2a2c31;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

.skill {
  position: relative;
  margin-top: 28px;
  padding: 22px 18px 18px;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(90% 78% at 100% 0%, rgba(62, 104, 220, 0.55) 0%, rgba(48, 78, 190, 0.16) 36%, rgba(18, 18, 20, 0) 62%),
    #121214;
  color: #fff;
}

.skill h2,
.scale h2,
.how h2,
.modal-panel h2 {
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.skill h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 1.7rem;
  text-align: left;
}

.folder {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  margin: 26px auto 14px;
  border-radius: 26px;
  background: var(--orange);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.folder-glyph {
  position: relative;
  display: grid;
  place-items: center;
  width: 62px;
  height: 42px;
  margin-top: 8px;
  border-radius: 3px 8px 7px 7px;
  background: #d07c42;
  color: #2a1c12;
}

.folder-glyph::before {
  content: "";
  position: absolute;
  left: 0;
  top: -9px;
  width: 26px;
  height: 11px;
  border-radius: 5px 6px 0 0;
  background: #d8884c;
}

.folder-label {
  position: relative;
  z-index: 1;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1;
}

.skill-note {
  position: relative;
  z-index: 1;
  margin: 0 0 16px;
  color: #8d919a;
  font-size: 0.98rem;
  text-align: center;
}

.skill-btn {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.skill-btn:hover {
  background: #f3f4f6;
}

.skill-btn-meta {
  color: #9aa0a8;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0;
}

.scale {
  position: relative;
  margin-top: 14px;
  padding: 22px 20px 18px;
  border-radius: var(--radius);
  background: #3b2a86;
  color: #fff;
}

.eyebrow {
  margin: 2px 56px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.7rem;
  font-weight: 650;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mark {
  position: absolute;
  top: 18px;
  right: 18px;
  display: block;
  width: 46px;
  height: 46px;
}

.mark img {
  display: block;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  object-fit: cover;
}

.scale h2 {
  margin: 14px 8px 0 0;
  max-width: 9.2em;
  font-size: 2.05rem;
  color: #fff;
}

.scale p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.48;
}

.scale strong {
  font-weight: 700;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.pills li {
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.scale-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.btn-go,
.btn-how,
.btn-go-dark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  cursor: pointer;
}

.btn-go {
  border: 0;
  background: #3dce6a;
  color: #102017;
}

.btn-go:hover {
  background: #49d674;
}

.btn-how {
  border: 1.5px solid rgba(255, 255, 255, 0.72);
  background: transparent;
  color: #fff;
}

.btn-how:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-go-dark {
  border: 0;
  background: #111;
  color: #fff;
}

.btn-go-dark:hover {
  background: #2a2a2a;
}

.how {
  margin-top: 32px;
  scroll-margin-top: 20px;
}

.how h2 {
  margin: 0;
  font-size: 1.45rem;
  color: var(--ink);
}

.steps {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.steps li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
}

.steps .n {
  padding-top: 2px;
  color: #9b8cff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.steps h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.steps p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.skill-btn:focus-visible,
.btn-go:focus-visible,
.btn-how:focus-visible,
.modal-close:focus-visible,
.frames:focus-visible,
input:focus-visible {
  outline: 2px solid #f4f5f7;
  outline-offset: 3px;
}

.btn-how:focus-visible,
.skill-btn:focus-visible {
  outline-color: #fff;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 400px);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 22px 18px 18px;
  border-radius: 24px;
  background: #17181d;
  color: var(--ink);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.modal-panel h2 {
  margin: 0 48px 8px 0;
  font-size: 1.45rem;
}

.modal-lead,
.confirm-line {
  margin: 0 0 14px;
  color: #a3a8b2;
  font-size: 0.95rem;
}

.confirm-line {
  margin-top: 8px;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.confirm-line:focus {
  outline: 2px solid #f4f5f7;
  outline-offset: 3px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 8px;
  border: 0;
  background: transparent;
  color: #a3a8b2;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.modal-close:hover {
  color: #fff;
}

form {
  display: grid;
  gap: 4px;
}

label {
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 650;
  font-weight: 600;
}

input {
  width: 100%;
  min-height: 48px;
  margin-bottom: 4px;
  padding: 10px 12px;
  border: 1px solid #2c2e36;
  border-radius: 12px;
  background: #101116;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

input::placeholder {
  color: #a0a5ad;
}

form .btn-go {
  margin-top: 12px;
}

@media (max-width: 360px) {
  .column {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero h1 {
    font-size: 1.92rem;
  }

  .frame {
    flex-basis: 142px;
    height: 190px;
  }

  .frames {
    margin-right: -16px;
    padding-right: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
