@font-face {
  font-family: "HyliaSerif";
  src: url("../assets/fonts/HyliaSerifBeta-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0d120e;
  --ink-2: #141b15;
  --line: rgba(214, 178, 94, 0.22);
  --gold: #d6b25e;
  --gold-hi: #f2d992;
  --green: #5a8f4f;
  --green-hi: #8fce7f;
  --parch: #ece5d0;
  --parch-dim: #a9a58e;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --display: "HyliaSerif", "Cinzel", Georgia, serif;
  --sans: "Inter", -apple-system, sans-serif;
  --side-w: 18rem;
  --header-offset: 110px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--ink);
  color: var(--parch);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(
    ellipse 90% 55% at 50% -10%,
    rgba(90, 143, 79, 0.14),
    transparent 60%
  );
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

.triforce {
  display: block;
  flex-shrink: 0;
  background-color: var(--gold);
  -webkit-mask: url("../assets/icons/triforce.svg") center / contain no-repeat;
  mask: url("../assets/icons/triforce.svg") center / contain no-repeat;
}

header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 4vw;
  background: linear-gradient(var(--ink) 55%, transparent);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand .triforce {
  width: 24px;
  height: 22px;
  filter: drop-shadow(0 0 8px rgba(214, 178, 94, 0.5));
}

.brand span {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold);
}

.brand small {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--parch-dim);
}

nav {
  display: flex;
  gap: 28px;
}

nav a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--parch-dim);
  text-decoration: none;
  transition: color 0.15s;
}

nav a:hover {
  color: var(--gold-hi);
}

@media (max-width: 760px) {
  nav {
    display: none;
  }
}

.hero {
  min-height: 94vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 130px 4vw 90px;
  position: relative;
}

.triforce-hero {
  width: 80px;
  height: 70px;
  margin-bottom: 38px;
  filter: drop-shadow(0 0 22px rgba(214, 178, 94, 0.55));
  animation: glow 4s ease-in-out infinite;
}

@keyframes glow {
  0%,
  100% {
    filter: drop-shadow(0 0 14px rgba(214, 178, 94, 0.4));
  }
  50% {
    filter: drop-shadow(0 0 30px rgba(214, 178, 94, 0.75));
  }
}

.hero .kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--green-hi);
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero .kicker::before,
.hero .kicker::after {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--line);
}

.hero h1 {
  font-family: var(--display);
  font-weight: 500; /* Hylia só tem peso 400 — 500 usa o traço real sem faux bold */
  font-size: clamp(40px, 6.4vw, 88px);
  line-height: 1.08;
  letter-spacing: 0.01em;
  max-width: 16ch;
  color: var(--parch);
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .sub {
  margin-top: 30px;
  max-width: 56ch;
  color: var(--parch-dim);
  font-size: 16px;
}

.hero .sub strong {
  color: var(--parch);
}

.hero .hostline {
  margin-top: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  flex-wrap: wrap;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(13, 18, 14, 0.8), 0 0 40px rgba(214, 178, 94, 0.12);
}

.hero .hostline code {
  font-family: var(--mono);
  font-size: clamp(14px, 2.2vw, 19px);
  font-weight: 600;
  padding: 16px 28px;
  background: rgba(214, 178, 94, 0.09);
  color: var(--gold-hi);
}

.hero .hostline .port {
  font-family: var(--mono);
  font-size: clamp(14px, 2.2vw, 19px);
  padding: 16px 24px;
  color: var(--parch);
  border-left: 1px solid var(--line);
}

.flag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--parch-dim);
}

.rupee {
  display: inline-block;
  width: 11px;
  height: 11px;
  background: var(--green);
  transform: rotate(45deg);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(90, 143, 79, 0.7);
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 4vw;
}

.ornament::before,
.ornament::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.ornament .triforce {
  width: 22px;
  height: 20px;
  opacity: 0.85;
}

.wrap {
  --gutter: 4vw;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}

.wrap::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--gutter) + var(--side-w));
  width: 1px;
  background: var(--line);
  pointer-events: none;
}

section.block {
  display: grid;
  grid-template-columns: minmax(0, var(--side-w)) minmax(0, 1fr);
  column-gap: 6ch;
  padding: 96px 0;
}

.side {
  position: static;
  align-self: start;
  min-width: 0;
  max-width: 100%;
  padding-right: 1.5rem;
  background: var(--ink);
}

.side .num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gold);
  opacity: 0.85;
  display: block;
  margin-bottom: 16px;
}

.side h2 {
  font-family: var(--display);
  font-weight: 500; /* Hylia só tem peso 400 — 500 usa o traço real sem faux bold */
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--parch);
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}

.side p {
  margin-top: 18px;
  color: var(--parch-dim);
  font-size: 14px;
  overflow-wrap: break-word;
}

.content {
  max-width: 62ch;
  min-width: 0;
}

.content p {
  color: var(--parch-dim);
  margin-bottom: 18px;
}

.content p strong {
  color: var(--parch);
  font-weight: 600;
}

.content a {
  color: var(--gold-hi);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(214, 178, 94, 0.4);
}

.content a:hover {
  text-decoration-color: var(--gold-hi);
}

ol.steps {
  list-style: none;
  counter-reset: step;
  margin-top: 8px;
}

ol.steps li {
  counter-increment: step;
  position: relative;
  padding: 22px 0 22px 64px;
  border-top: 1px dashed var(--line);
}

ol.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 24px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
}

ol.steps li h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--parch);
}

ol.steps li p {
  margin: 0;
  font-size: 14px;
}

code.inline {
  font-family: var(--mono);
  font-size: 0.88em;
  font-weight: 600;
  background: rgba(214, 178, 94, 0.1);
  color: var(--gold-hi);
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

table.fields {
  width: 100%;
  border-collapse: collapse;
  margin: 26px 0 8px;
  font-size: 14px;
}

table.fields th {
  text-align: left;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
  padding: 0 16px 12px 0;
  border-bottom: 1px solid var(--line);
}

table.fields td {
  padding: 14px 16px 14px 0;
  border-bottom: 1px dashed var(--line);
  vertical-align: top;
  color: var(--parch-dim);
}

table.fields td:first-child {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--gold-hi);
  white-space: nowrap;
}

table.fields td code {
  font-family: var(--mono);
  font-size: 0.9em;
  color: var(--parch);
  background: rgba(214, 178, 94, 0.08);
  padding: 1px 7px;
  border-radius: 4px;
}

figure.shot {
  margin: 38px 0 6px;
}

figure.shot .frame {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(160deg, rgba(214, 178, 94, 0.12), rgba(214, 178, 94, 0.03));
  box-shadow: 0 0 50px rgba(214, 178, 94, 0.1);
}

figure.shot img {
  width: 100%;
  display: block;
  border-radius: 3px;
}

figure.shot figcaption {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--parch-dim);
  display: flex;
  gap: 10px;
  align-items: baseline;
}

figure.shot figcaption::before {
  content: "◆";
  color: var(--gold);
  font-size: 9px;
}

.note {
  margin: 30px 0;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: linear-gradient(160deg, rgba(90, 143, 79, 0.1), rgba(90, 143, 79, 0.03));
  font-size: 14px;
  color: var(--parch-dim);
  position: relative;
}

.note::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 22px;
  width: 44px;
  height: 2px;
  background: var(--gold);
}

.note strong {
  color: var(--green-hi);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.server {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 10px;
  background: var(--ink-2);
}

.server .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 20px 26px;
  border-bottom: 1px dashed var(--line);
  flex-wrap: wrap;
}

.server .row:last-child {
  border-bottom: none;
}

.server .k {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
}

.server .v {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--parch);
}

.server .v.small {
  font-size: 13px;
  font-weight: 400;
  color: var(--parch-dim);
}

details {
  border-top: 1px dashed var(--line);
  padding: 20px 0;
}

details:last-of-type {
  border-bottom: 1px dashed var(--line);
}

summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--parch);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "◆";
  font-size: 10px;
  color: var(--gold);
  transition: transform 0.25s var(--ease-out);
}

details[open] summary::after {
  transform: rotate(90deg);
}

details p {
  margin-top: 12px;
  font-size: 14px;
}

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease-out);
}

details[open] .faq-a {
  grid-template-rows: 1fr;
}

.faq-a-in {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .faq-a {
    transition: none;
  }
}

footer {
  border-top: 1px solid var(--line);
  padding: 64px 4vw;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--parch-dim);
}

footer a {
  color: var(--gold-hi);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

footer .links {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

footer .sigil {
  display: flex;
  align-items: center;
  gap: 12px;
}

footer .sigil .triforce {
  width: 20px;
  height: 18px;
  opacity: 0.8;
}

@media (min-width: 901px) and (min-height: 700px) {
  .side {
    position: sticky;
    top: var(--header-offset);
    z-index: 1;
  }
}

@media (max-width: 900px) {
  .wrap::before {
    display: none;
  }

  section.block {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .side {
    position: static;
    max-width: none;
    padding-right: 0;
    background: transparent;
  }
}

@media (prefers-reduced-motion: reduce) {
  .triforce-hero {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}
