/* Edu Couto — dark premium theme */
:root {
  --bg: #0a0a0a;
  --bg-2: #121212;
  --surface: #1a1a1a;
  --line: rgba(201, 169, 110, 0.22);
  --line-soft: rgba(255, 255, 255, 0.08);
  --gold: #c9a96e;
  --gold-bright: #d4af37;
  --gold-soft: #e6d3a8;
  --text: #f4f1ea;
  --muted: #a8a399;
  --dim: #6f6b64;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --radius: 2px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  /* subtle grain + warm glow */
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: -1;
  background:
    radial-gradient(60rem 40rem at 85% -10%, rgba(201,169,110,0.10), transparent 60%),
    radial-gradient(40rem 30rem at -10% 40%, rgba(201,169,110,0.05), transparent 60%);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--gold); color: var(--bg); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
@media (min-width: 768px) { .wrap { width: min(100% - 5rem, var(--wrap)); } }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 0.85rem; }
.logo__mark {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border: 1px solid var(--gold);
  font-family: var(--serif); font-weight: 600; font-size: 1.15rem;
  color: var(--gold); letter-spacing: 0.04em;
}
.logo__name { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; letter-spacing: 0.02em; }
.nav__links { display: flex; gap: 2.4rem; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  position: relative;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); transition: color .3s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--text); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__toggle {
  display: none; background: none; border: 1px solid var(--line); color: var(--gold);
  width: 44px; height: 44px; cursor: pointer; padding: 0;
}
.nav__toggle span { display: block; width: 18px; height: 1px; background: currentColor; margin: 5px auto; transition: transform .3s var(--ease), opacity .3s; }
.nav--open .nav__toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav--open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav--open .nav__toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .logo__name { font-size: 1.2rem; }
  .nav__links {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .45s var(--ease);
  }
  .nav--open .nav__links { max-height: 360px; }
  .nav__links li { border-top: 1px solid var(--line-soft); }
  .nav__links a { display: block; padding: 1.15rem 1.25rem; font-size: 0.85rem; }
  .nav__links a::after { display: none; }
  .nav__links a[aria-current="page"] { color: var(--gold); }
}

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.9rem;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 1.75rem;
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--gold); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.05; margin: 0; letter-spacing: -0.01em; }
.display { font-size: clamp(3rem, 9vw, 6.6rem); }
.display em, .h2 em { font-style: italic; color: var(--gold); font-weight: 400; }
.h2 { font-size: clamp(2.2rem, 5.4vw, 3.8rem); }
.h3 { font-size: clamp(1.6rem, 3vw, 2rem); }
.gold { color: var(--gold); }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 38rem; line-height: 1.75; }
.muted { color: var(--muted); }
.small { font-size: 0.8rem; color: var(--dim); line-height: 1.6; }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.75rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.7rem;
  min-height: 56px; padding: 0 2rem;
  font-family: var(--sans); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  border: 1px solid var(--gold); border-radius: var(--radius);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
  cursor: pointer;
}
.btn svg { width: 16px; height: 16px; flex: none; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--gold { background: linear-gradient(135deg, var(--gold-bright), var(--gold) 55%, #b8955a); color: #0a0a0a; border-color: transparent; }
.btn--gold:hover { box-shadow: 0 14px 40px -14px rgba(212,175,55,0.55); transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--text); border-color: rgba(201,169,110,0.5); }
.btn--outline:hover { border-color: var(--gold); color: var(--gold); }
@media (max-width: 520px) { .actions .btn { width: 100%; } }

/* ---------- Sections ---------- */
.section { padding: clamp(5rem, 11vw, 9rem) 0; position: relative; }
.section--line { border-top: 1px solid var(--line-soft); }
.section--alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.section__head { max-width: 46rem; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.section__head .lead { margin-top: 1.5rem; }

/* Hero */
.hero { padding: clamp(4rem, 10vw, 8rem) 0 clamp(5rem, 10vw, 8rem); }
.hero__grid { display: grid; gap: clamp(3rem, 6vw, 5rem); align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1.15fr 0.85fr; } }
.hero .lead { margin-top: 2rem; }
.page-hero { padding: clamp(4.5rem, 11vw, 8.5rem) 0 clamp(3.5rem, 8vw, 6rem); }
.page-hero .lead { margin-top: 2rem; }
.page-hero .display { max-width: 15ch; }

/* Portrait */
.portrait { position: relative; margin: 0; max-width: 460px; justify-self: center; width: 100%; }
.portrait__frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.portrait__frame img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.92) contrast(1.04); transition: transform 1.2s var(--ease); }
.portrait:hover .portrait__frame img { transform: scale(1.03); }
.portrait__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10,10,10,0.75)); }
.portrait::before {
  content: ""; position: absolute; inset: 0;
  border: 1px solid var(--gold); transform: translate(18px, 18px); z-index: -1;
}
.portrait figcaption {
  position: absolute; left: 1.5rem; bottom: 1.4rem; z-index: 2;
  font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-soft);
}

/* Metrics */
.metrics { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 768px) { .metrics { grid-template-columns: repeat(3, 1fr); } }
.metric { background: var(--bg); padding: clamp(2.25rem, 4vw, 3.25rem) clamp(1.75rem, 3vw, 2.5rem); transition: background .4s var(--ease); }
.metric:hover { background: #0f0e0c; }
.metric__value { font-family: var(--serif); font-size: clamp(3.4rem, 7vw, 4.8rem); line-height: 1; color: var(--gold); font-weight: 500; }
.metric__value small { font-size: 0.45em; margin-left: 0.15em; color: var(--gold-soft); }
.metric__label { margin-top: 1rem; color: var(--muted); font-size: 0.98rem; max-width: 16rem; }
.footnote { margin-top: 1.75rem; max-width: 46rem; }

/* Feature (EC Play / Ultra Classic) */
.features { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
.feature {
  position: relative; padding: clamp(2.5rem, 5vw, 3.75rem);
  background: linear-gradient(160deg, #161513, #0d0d0d 70%);
  border: 1px solid var(--line-soft); overflow: hidden;
  display: flex; flex-direction: column; min-height: 420px;
  transition: border-color .4s var(--ease);
}
.feature:hover { border-color: var(--line); }
.feature__index { font-size: 0.72rem; letter-spacing: 0.26em; color: var(--dim); text-transform: uppercase; }
.feature__title { font-size: clamp(2.6rem, 5.5vw, 3.6rem); color: var(--gold); margin: 1.5rem 0 1.25rem; }
.feature p { color: var(--muted); max-width: 32rem; margin: 0; }
.feature .actions { margin-top: auto; padding-top: 2.5rem; }
.feature__glyph {
  position: absolute; right: -1.5rem; top: -2.5rem;
  font-family: var(--serif); font-size: 12rem; line-height: 1; color: rgba(201,169,110,0.05);
  pointer-events: none; user-select: none;
}

/* Prose (Sobre) */
.split { display: grid; gap: clamp(2.5rem, 6vw, 5rem); }
@media (min-width: 960px) { .split { grid-template-columns: 0.9fr 1.1fr; } }
.split__aside { position: relative; }
@media (min-width: 960px) { .split__aside .h2 { position: sticky; top: 120px; } }
.prose p { color: var(--muted); font-size: 1.08rem; margin: 0 0 1.6rem; }
.prose p:first-child { color: var(--text); font-family: var(--serif); font-size: clamp(1.45rem, 2.4vw, 1.75rem); line-height: 1.45; }
.location {
  display: inline-flex; align-items: center; gap: 0.7rem; margin-top: 2.25rem;
  font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-soft);
}
.location svg { width: 16px; height: 16px; color: var(--gold); }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 0.75rem; list-style: none; padding: 0; margin: 0; }
.tags li {
  padding: 0.75rem 1.4rem; border: 1px solid var(--line);
  font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s;
}
.tags li:hover { background: var(--gold); color: var(--bg); border-color: var(--gold); }

/* Cards (Anuncie / Downloads) */
.cards { display: grid; gap: 1.5rem; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, 1fr); } }
.card {
  position: relative; padding: clamp(2rem, 4vw, 2.75rem);
  border: 1px solid var(--line); background: rgba(26,26,26,0.45);
  display: flex; flex-direction: column;
  transition: border-color .4s var(--ease), transform .4s var(--ease), background .4s var(--ease);
}
.card:hover { border-color: var(--gold); transform: translateY(-4px); background: rgba(26,26,26,0.8); }
.card::before {
  content: ""; position: absolute; top: -1px; left: -1px; width: 28px; height: 28px;
  border-top: 2px solid var(--gold); border-left: 2px solid var(--gold);
}
.card__num { font-family: var(--serif); font-size: 1.1rem; color: var(--gold); letter-spacing: 0.08em; }
.card__title { font-size: clamp(1.6rem, 3vw, 2rem); margin: 1.1rem 0 0.9rem; }
.card p { color: var(--muted); margin: 0; }
.card .actions { margin-top: auto; padding-top: 2rem; }
.card__icon {
  width: 56px; height: 56px; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--gold); margin-bottom: 1.75rem;
}
.card__icon svg { width: 22px; height: 22px; }
.card__top { display: flex; justify-content: space-between; align-items: flex-start; }

/* CTA band */
.cta-band {
  position: relative; text-align: center; padding: clamp(3.5rem, 8vw, 6rem) clamp(1.5rem, 5vw, 4rem);
  border: 1px solid var(--line);
  background: radial-gradient(40rem 20rem at 50% 0%, rgba(201,169,110,0.12), transparent 70%), #0d0d0c;
}
.cta-band .eyebrow { justify-content: center; }
.cta-band .eyebrow::after { content: ""; width: 36px; height: 1px; background: var(--gold); }
.cta-band .h2 { max-width: 20ch; margin-inline: auto; }
.cta-band .lead { margin: 1.5rem auto 0; }
.cta-band .actions { justify-content: center; }

/* Footer */
.footer { border-top: 1px solid var(--line-soft); padding: clamp(4rem, 8vw, 6rem) 0 2.5rem; background: #070707; }
.footer__grid { display: grid; gap: 3rem; }
@media (min-width: 860px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer__brand p { color: var(--muted); max-width: 22rem; margin: 1.5rem 0 0; }
.footer h4 {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 1.4rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }
.footer li a { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--text); transition: color .3s; word-break: break-word; }
.footer li a:hover { color: var(--gold); }
.footer li svg { width: 17px; height: 17px; color: var(--gold); flex: none; }
.footer__bottom {
  margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: 0.78rem; color: var(--dim); letter-spacing: 0.06em;
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}
