/* ============================================================
   Digital Arts — a rua das estrelas acesas
   Estrela não decora: estrela ilumina. Cor = luz de vitrine com
   endereço. Um acento por produto, só dentro do quarteirão dele.
   Ouro-âmbar é da casa (CTA, seleção, marca, Lyra).
   ============================================================ */

:root {
  /* noite de rua — estritamente azul, nunca roxo */
  --bg: #070b18;
  --panel: #0c1220;
  --line: #1d2940;
  --line-soft: rgba(148, 163, 204, 0.16);

  --tx: #eae5d8;        /* marfim */
  --tx-dim: #9aa3b8;
  --tx-faint: #75819e;

  /* luz da casa — CTA, seleção, marca */
  --amber: #f2b23e;
  --amber-hi: #ffc966;
  --amber-ink: #241a05;

  /* acentos-lâmpada por produto (token local em .prod-*) */
  --a: #f2b23e;
  --a-glow: rgba(242, 178, 62, 0.12);
  --a-ink: #241a05;

  --font-display: "Archivo Expanded", "Archivo", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, -apple-system, sans-serif;
  --font-mono: "Spline Sans Mono", ui-monospace, "SFMono-Regular", monospace;

  --maxw: 1180px;
}

/* tokens de produto: a luz acende dentro do quarteirão de cada um */
.prod-lyra {
  --a: #f2b23e;
  --a-glow: rgba(242, 178, 62, 0.12);
  --a-ink: #241a05;
}
.prod-vega {
  --a: #a9e4f2;
  --a-glow: rgba(169, 228, 242, 0.13);
  --a-ink: #0b2430;
}
.prod-saiph {
  --a: #6e9bff;
  --a-glow: rgba(110, 155, 255, 0.13);
  --a-ink: #0a1020;
}
.prod-polaris {
  --a: #ffd985;
  --a-glow: rgba(255, 217, 133, 0.12);
  --a-ink: #241a05;
}

/* ---------- reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--tx);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1100px 520px at 80% -6%, rgba(242, 178, 62, 0.05), transparent 60%),
    radial-gradient(900px 620px at 4% 108%, rgba(134, 167, 216, 0.05), transparent 60%);
  z-index: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
img,
svg {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
p,
ol,
ul {
  margin: 0;
}
ol,
ul {
  padding: 0;
  list-style: none;
}
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
::selection {
  background: var(--amber);
  color: var(--amber-ink);
}

.wrap {
  width: min(100% - 48px, var(--maxw));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--amber);
  color: var(--amber-ink);
  padding: 10px 16px;
  font-weight: 600;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
}

/* ---------- marca e cabeçalho ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px clamp(24px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
}
.brand-name {
  font-size: 17px;
  text-transform: uppercase;
}
.brand-name em {
  font-style: normal;
  color: var(--amber);
}
.spark {
  color: var(--amber);
  width: 17px;
  height: 17px;
  filter: drop-shadow(0 0 6px rgba(242, 178, 62, 0.45));
}
.logo {
  width: 27px;
  height: 27px;
  flex: none;
  color: var(--tx);
  filter: drop-shadow(0 0 9px rgba(242, 178, 62, 0.2));
}
.logo .logo-g {
  color: var(--amber);
}
.site-nav {
  display: flex;
  gap: 4px;
  margin-inline: auto;
}
.site-nav a {
  padding: 8px 14px;
  font-size: 14.5px;
  color: var(--tx-dim);
  transition: color 0.2s ease;
  border-radius: 3px;
}
.site-nav a:hover {
  color: var(--tx);
}
.header-domain {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--tx-faint);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.header-domain:hover {
  color: var(--amber);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 10vw, 128px) 0 clamp(40px, 6vw, 72px);
}
.sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.sky-dot {
  position: absolute;
  border-radius: 50%;
  background: #d6dcea;
  opacity: var(--o, 0.5);
  animation: twinkle var(--tw, 6s) ease-in-out infinite;
  animation-delay: var(--td, 0s);
}
.sky-dot.is-blue {
  background: #8fb0dd;
}
.sky-dot.is-gold {
  background: var(--amber);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.14fr 0.86fr;
  gap: clamp(30px, 4.5vw, 64px);
  align-items: center;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tx-dim);
  margin-bottom: 24px;
}
.kicker .spark-sm {
  width: 12px;
  height: 12px;
}

h1 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.h1-l1,
.h1-l2 {
  display: block;
  font-size: clamp(31px, 4.9vw, 58px);
}
.h1-l2 {
  color: var(--amber);
}

.hero-sub {
  margin-top: 26px;
  max-width: 56ch;
  font-size: 17.5px;
  line-height: 1.62;
  color: var(--tx-dim);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15.5px;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}
.btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 1.6;
}
.btn-gold {
  background: var(--amber);
  color: var(--amber-ink);
}
.btn-gold:hover {
  background: var(--amber-hi);
  transform: translateY(-1px);
}
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--tx);
}
.btn-ghost:hover {
  border-color: var(--amber);
  color: var(--amber);
}

/* carta celeste — a rua acesa */
.sky-chart {
  margin: 0;
  position: relative;
}
.sky-chart svg {
  width: 100%;
  height: auto;
}
.thread {
  fill: none;
  stroke: #22324f;
  stroke-width: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.3s ease forwards 0.4s;
}
.thread-bright {
  stroke-width: 1.8;
  stroke: #2b3e63;
  animation-delay: 0.55s;
}
.thread-faint {
  stroke: #1a2943;
  stroke-width: 1;
  stroke-dasharray: 2 7;
  stroke-dashoffset: 0;
  animation: draw-dots 1.4s ease forwards 0.7s;
}
.node {
  opacity: 0;
  animation: fade-in 0.9s ease forwards 1s;
}
.node .core {
  fill: #fff4da;
  transform-box: fill-box;
  transform-origin: center;
  animation: star-in 0.55s ease forwards 1.25s;
}
.node .core-big {
  fill: #eef6ff;
}
.node-casa .core {
  fill: var(--amber);
  filter: drop-shadow(0 0 8px rgba(242, 178, 62, 0.65));
}
.hub-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  fill: var(--amber);
  opacity: 0;
  animation: fade-in 0.8s ease forwards 1.7s;
}
.node-name {
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.2em;
  fill: var(--tx);
  opacity: 0;
  animation: fade-in 0.7s ease forwards 1.5s;
}
.node-astro {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  fill: var(--tx-faint);
  opacity: 0;
  animation: fade-in 0.7s ease forwards 1.75s;
}
.chart-caption {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--tx-faint);
  text-align: center;
  letter-spacing: 0.02em;
}

/* faixa sob o hero */
.hero-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 18px;
  margin-top: clamp(44px, 7vw, 84px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--tx-faint);
}
.strip-dot {
  color: var(--amber);
  font-size: 9px;
}

/* ---------- catálogo ---------- */
.catalogue {
  padding: clamp(70px, 9vw, 120px) 0;
  border-top: 1px solid var(--line);
  background: linear-gradient(var(--panel), var(--bg));
}
.section-head {
  margin-bottom: clamp(34px, 5vw, 60px);
  max-width: 820px;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "✦";
  font-size: 10px;
}
.section-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(30px, 3.9vw, 48px);
  line-height: 1.06;
  letter-spacing: -0.01em;
}
.catalogue .section-title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(32px, 4.4vw, 58px);
  letter-spacing: 0.005em;
}
.kw-amber {
  color: var(--amber);
}

.catalogue-list {
  border-top: 1px solid var(--line);
}

/* o quarteirão de cada produto: a cor nasce aqui, só aqui */
.catalogue-row {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: clamp(16px, 3vw, 42px);
  align-items: center;
  padding: clamp(32px, 4vw, 56px) clamp(0px, 2vw, 26px);
  border-bottom: 1px solid var(--line);
  transition: background 0.4s ease;
}
.catalogue-row::before {
  /* banho de luz do acento do produto — nunca vira bloco de cor */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(640px 260px at 88% 12%, color-mix(in srgb, var(--a) 7%, transparent), transparent 72%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.catalogue-row:hover::before {
  opacity: 1;
}
.catalogue-row:hover {
  background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 92%, var(--a) 8%), transparent 55%);
}

/* vitrine do ícone */
.row-stage {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--a);
  background: color-mix(in srgb, var(--a) 4%, transparent);
  box-shadow: inset 0 0 0 6px color-mix(in srgb, var(--a) 3%, transparent);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.row-ico {
  width: 34px;
  height: 34px;
}
.catalogue-row:hover .row-stage {
  border-color: color-mix(in srgb, var(--a) 60%, transparent);
  box-shadow:
    inset 0 0 0 6px color-mix(in srgb, var(--a) 5%, transparent),
    0 0 26px var(--a-glow);
}
.row-ico {
  filter: drop-shadow(0 0 0 transparent);
  transition: transform 0.35s ease;
}
.catalogue-row:hover .row-ico {
  transform: rotate(6deg) scale(1.07);
}

/* corpo */
.row-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tx-faint);
  margin-bottom: 12px;
}
.row-meta .row-n {
  color: var(--a);
}
.row-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 5.4vw, 66px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.005em;
}
.row-tagline {
  margin-top: 14px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(17px, 1.9vw, 20px);
  line-height: 1.35;
}
.kw {
  color: var(--a);
}
.row-pitch {
  margin-top: 12px;
  max-width: 60ch;
  color: var(--tx-dim);
  font-size: 15.5px;
  line-height: 1.62;
}
.row-features {
  display: grid;
  gap: 6px;
  margin-top: 18px;
}
.row-features li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  color: var(--tx);
}
.row-features li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 8px;
  color: var(--a);
}

/* ação */
.row-action {
  display: grid;
  gap: 10px;
  justify-items: end;
  text-align: right;
  align-self: center;
}
.row-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 16.5px;
  color: var(--a);
  padding-bottom: 3px;
  background-image: linear-gradient(var(--a), var(--a));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1.5px;
  transition: background-size 0.3s ease;
}
.row-link svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 1.7;
  transition: transform 0.3s ease;
}
.row-link:hover {
  background-size: 100% 1.5px;
}
.row-link:hover svg {
  transform: translateX(3px);
}
.row-domain {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--tx-faint);
}

/* ---------- estúdio ---------- */
.studio {
  padding: clamp(70px, 9vw, 120px) 0;
  border-top: 1px solid var(--line);
}
.studio-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(36px, 6vw, 90px);
  align-items: start;
}
.studio-intro {
  margin: 20px 0 30px;
  font-size: 17px;
  color: var(--tx-dim);
  max-width: 50ch;
  line-height: 1.62;
}
.principles {
  border-top: 1px solid var(--line);
}
.principle {
  display: grid;
  grid-template-columns: 54px 1fr;
  column-gap: 22px;
  padding: clamp(22px, 3vw, 34px) 0;
  border-bottom: 1px solid var(--line);
}
.principle-n {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--tx-faint);
}
.principle h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.3;
}
.principle p {
  grid-column: 2;
  margin-top: 10px;
  color: var(--tx-dim);
  font-size: 15.5px;
  max-width: 56ch;
}

/* ---------- contato ---------- */
.contact {
  padding: clamp(80px, 11vw, 150px) 0;
  border-top: 1px solid var(--line);
  text-align: center;
  background:
    radial-gradient(720px 300px at 50% 120%, rgba(242, 178, 62, 0.06), transparent 70%),
    var(--bg);
}
.contact .eyebrow {
  justify-content: center;
}
.contact .section-title {
  font-family: var(--font-body);
  font-weight: 700;
}
.contact-mail {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: clamp(28px, 4vw, 44px);
  font-family: var(--font-mono);
  font-size: clamp(17px, 2.6vw, 27px);
  color: var(--amber);
  padding-bottom: 6px;
  background-image: linear-gradient(var(--amber), var(--amber));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1.5px;
  transition: background-size 0.3s ease;
}
.contact-mail svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 1.6;
  transition: transform 0.3s ease;
}
.contact-mail:hover {
  background-size: 100% 1.5px;
}
.contact-mail:hover svg {
  transform: translate(3px, -3px);
}
.contact-note {
  margin: 22px auto 0;
  max-width: 50ch;
  color: var(--tx-faint);
  font-size: 14.5px;
}

/* ---------- rodapé ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
}
.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-nav {
  display: flex;
  gap: 22px;
}
.footer-nav a {
  font-size: 14px;
  color: var(--tx-dim);
  transition: color 0.2s ease;
}
.footer-nav a:hover {
  color: var(--amber);
}
.footer-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--tx-faint);
}

/* ---------- entrada em scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- animações ---------- */
@keyframes twinkle {
  0%,
  100% {
    opacity: var(--o, 0.5);
  }
  50% {
    opacity: calc(var(--o, 0.5) * 0.35);
  }
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes draw-dots {
  to {
    stroke-dashoffset: -1000;
  }
}
@keyframes fade-in {
  to {
    opacity: 1;
  }
}
@keyframes star-in {
  from {
    opacity: 0;
    transform: scale(0.3);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ---------- responsivo ---------- */
@media (max-width: 980px) {
  .hero-inner,
  .studio-grid {
    grid-template-columns: 1fr;
  }
  .sky-chart {
    order: -1;
    max-width: 620px;
    margin-inline: auto;
  }
  .section-head {
    max-width: none;
  }
}
@media (max-width: 820px) {
  .catalogue-row {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px 18px;
  }
  .row-stage {
    width: 56px;
    height: 56px;
  }
  .row-ico {
    width: 27px;
    height: 27px;
  }
  .row-action {
    grid-column: 1 / -1;
    justify-items: start;
    text-align: left;
    align-self: end;
    margin-top: 4px;
  }
}
@media (max-width: 620px) {
  .site-header {
    flex-wrap: wrap;
    row-gap: 6px;
  }
  .site-nav {
    order: 3;
    width: 100%;
    margin-inline: 0;
    justify-content: flex-start;
  }
  .header-domain {
    margin-left: auto;
  }
  .site-nav a {
    padding: 6px 12px 6px 0;
  }
  .catalogue-row {
    grid-template-columns: 1fr;
  }
  .row-stage {
    display: none;
  }
  .row-action {
    grid-column: auto;
  }
  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 430px) {
  .wrap {
    width: min(100% - 30px, var(--maxw));
  }
}

/* ---------- movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .sky-dot,
  .thread,
  .thread-faint,
  .node,
  .node .core,
  .hub-tag,
  .node-name,
  .node-astro {
    animation: none !important;
    opacity: 1 !important;
  }
  .thread,
  .thread-faint {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn,
  .row-link,
  .contact-mail,
  .row-ico {
    transition: none;
  }
}
