/* ========================================================================
   NXT01 — components.css
   Buttons · Badges · Cards · iPhone frame · Marquee · Index numbers
   ======================================================================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: background var(--duration) var(--ease-out), color var(--duration) var(--ease-out), transform 200ms var(--ease-out);
  cursor: pointer;
}
.btn:hover { background: var(--ink); color: var(--paper); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--coral { background: var(--coral); border-color: var(--coral); color: var(--paper); }
.btn--coral:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.btn--ghost { border-color: var(--paper-warm); color: var(--paper); }
.btn--ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.btn .arrow {
  display: inline-block;
  width: 14px;
  height: 14px;
  position: relative;
}
.btn .arrow::after {
  content: "→";
  font-family: var(--font-body);
  font-size: 18px;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--duration) var(--ease-out);
}
.btn:hover .arrow::after { transform: translateX(3px); }

/* Section header — eyebrow + title combo */
.sec-head {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 80px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--ink);
}
.sec-head__num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ash);
  letter-spacing: 0.1em;
}
.sec-head__title h2 {
  font-family: var(--font-display);
  font-style: italic;
  margin-bottom: 16px;
  max-width: 14ch;
}
.sec-head__title p {
  max-width: 56ch;
  color: var(--ash);
  font-size: var(--fs-lg);
  line-height: 1.5;
}

/* Badge / tag */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--stone-2);
  color: var(--ash);
}
.tag--live    { border-color: var(--signal); color: var(--signal); }
.tag--beta    { border-color: var(--cobalt); color: var(--cobalt); }
.tag--dev     { border-color: var(--amber); color: #B07815; }
.tag--coral   { border-color: var(--coral); color: var(--coral); }

.tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Portfolio card */
.card {
  position: relative;
  background: var(--paper-warm);
  border: 1px solid var(--ink);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
  overflow: hidden;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 8px 8px 0 var(--ink);
}
.card__num {
  position: absolute;
  top: 16px;
  right: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ash);
  letter-spacing: 0.1em;
}

.card__title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 56px;
  line-height: 1;
  margin-top: 24px;
}
.card__sub {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ash);
}
.card__desc {
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 50ch;
}
.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--stone-2);
}
.card__features {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--ink-soft);
}
.card__features li {
  padding-left: 18px;
  position: relative;
}
.card__features li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--coral);
  font-family: var(--font-body);
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  align-self: flex-start;
  transition: color var(--duration) var(--ease-out), border-color var(--duration) var(--ease-out);
}
.card__link:hover { color: var(--coral); border-color: var(--coral); }

/* Phone frame visual mock */
.phone {
  position: relative;
  width: 240px;
  height: 480px;
  border-radius: 40px;
  background: var(--ink);
  padding: 14px;
  box-shadow: 0 30px 60px -20px rgba(10,10,10,0.4), 0 0 0 1px rgba(0,0,0,0.1);
}
.phone__screen {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
}
.phone__notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 22px;
  background: var(--ink);
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.phone__inner {
  padding: 36px 18px 18px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Marquee — running slogan strip */
.marquee {
  background: var(--coral);
  color: var(--paper);
  overflow: hidden;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 14px 0;
}
.marquee__track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(28px, 4vw, 48px);
  animation: scroll 30s linear infinite;
}
.marquee__track span {
  display: inline-flex;
  align-items: center;
  gap: 48px;
}
.marquee__track .star {
  display: inline-block;
  width: 24px;
  height: 24px;
  background: var(--paper);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 0l3 9h9l-7 6 3 9-8-6-8 6 3-9-7-6h9z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 0l3 9h9l-7 6 3 9-8-6-8 6 3-9-7-6h9z'/></svg>") center/contain no-repeat;
}
@keyframes scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Index list — services, stack */
.idx {
  border-top: 1px solid var(--ink);
}
.idx li {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--ink);
  align-items: baseline;
  transition: padding var(--duration) var(--ease-out);
  position: relative;
}
.idx li:hover { padding-left: 16px; }
.idx li::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--coral);
  border-radius: 50%;
  opacity: 0;
  transition: opacity var(--duration) var(--ease-out);
}
.idx li:hover::before { opacity: 1; }
.idx__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ash);
  letter-spacing: 0.1em;
}
.idx__title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.1;
}
.idx__desc {
  font-size: 15px;
  color: var(--ash);
  margin-top: 8px;
  max-width: 60ch;
}
.idx__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ash);
  text-align: right;
  white-space: nowrap;
}

/* Numbers / stat block */
.stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 0;
}
.stat__big {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(56px, 7vw, 96px);
  line-height: 0.9;
  letter-spacing: -0.02em;
}
.stat__lab {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ash);
}

/* Inline link */
.link-line {
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color var(--duration) var(--ease-out);
}
.link-line:hover { color: var(--coral); }

/* "Brackets" decorative for headings */
.brackets::before { content: "[ "; color: var(--coral); }
.brackets::after  { content: " ]"; color: var(--coral); }
