/* ============================================================
   Idle Helper — idlehelper.com
   Paleta: carvao #131316 / #1C1C21 · marfim #F2E9D4 · dourado #E3A93C
   Tipos:  Anton (display) · Archivo (corpo)
   ============================================================ */

@font-face {
  font-family: 'Anton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/anton-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/archivo-latin.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  --coal: #131316;
  --coal-deep: #0D0D10;
  --char: #1C1C21;
  --char-edge: #2A2A31;
  --ivory: #F2E9D4;
  --ash: #9B958A;
  --gold: #E3A93C;
  --ember: #B97F24;
  --green: #7DC98F;

  --display: 'Anton', 'Arial Narrow', sans-serif;
  --body: 'Archivo', 'Segoe UI', system-ui, sans-serif;
  --mono: 'Cascadia Code', 'Consolas', ui-monospace, monospace;

  --notch: 16px;
  --measure: 62ch;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--coal);
  color: var(--ivory);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

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

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- utilitarios ---------- */

.wrap {
  width: min(1120px, 100% - 3rem);
  margin-inline: auto;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.section-head h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}

.section-head p {
  color: var(--ash);
  max-width: var(--measure);
}

/* corte chanfrado no canto superior direito — eco dos bevels do logo */
.notched {
  clip-path: polygon(
    0 0,
    calc(100% - var(--notch)) 0,
    100% var(--notch),
    100% 100%,
    0 100%
  );
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--coal-deep) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--char-edge);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  height: 72px;
}

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

.brand img { width: 40px; height: 40px; }

.brand span {
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: 2rem;
  margin-left: auto;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ash);
  transition: color 160ms ease;
}

.site-nav a:hover { color: var(--ivory); }

/* ---------- botoes ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.8rem;
  font-family: var(--body);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-gold {
  background: var(--gold);
  color: var(--coal-deep);
}

.btn-gold:hover { background: #F0BC55; }

.btn-ghost {
  background: transparent;
  color: var(--ivory);
  box-shadow: inset 0 0 0 1px var(--char-edge);
}

.btn-ghost:hover {
  box-shadow: inset 0 0 0 1px var(--gold);
  color: var(--gold);
}

.btn-small {
  padding: 0.55rem 1.2rem;
  font-size: 0.8125rem;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 5.5rem 0 6rem;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(227, 169, 60, 0.10), transparent 70%),
    var(--coal-deep);
  border-bottom: 1px solid var(--char-edge);
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 4rem;
  align-items: center;
}

.hero-copy { display: flex; flex-direction: column; gap: 1.5rem; }

.hero-logo { width: min(420px, 100%); }

.hero-copy h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.2vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}

.hero-copy h1 em {
  font-style: normal;
  color: var(--gold);
}

/* sublinhado em "v" — eco do traco dourado do logo */
.hero-rule {
  width: 130px;
  height: 10px;
  background: var(--gold);
  clip-path: polygon(0 0, 100% 0, 100% 30%, 54% 30%, 46% 100%, 38% 30%, 0 30%);
}

.hero-copy > p {
  color: var(--ash);
  font-size: 1.125rem;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.hero-note {
  font-size: 0.8125rem;
  color: var(--ash);
  letter-spacing: 0.03em;
}

/* ---------- painel de log ---------- */

.log-panel {
  background: var(--coal-deep);
  border: 1px solid var(--char-edge);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.9;
  --notch: 22px;
}

.log-titlebar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.1rem;
  border-bottom: 1px solid var(--char-edge);
  background: var(--char);
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ash);
}

.log-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.log-body {
  padding: 1.1rem 1.25rem 1.4rem;
  min-height: 340px;
  display: flex;
  flex-direction: column;
}

.log-body .time { color: #5C5850; }
.log-body .ok { color: var(--green); }
.log-body .gold-line { color: var(--gold); }
.log-body .line { color: #C9C2B2; }

.log-cursor {
  display: inline-block;
  width: 8px;
  height: 1em;
  background: var(--gold);
  vertical-align: text-bottom;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

/* ---------- faixa de destaque ---------- */

.ticker {
  border-bottom: 1px solid var(--char-edge);
  background: var(--char);
  padding: 1.1rem 0;
  overflow: hidden;
}

/* letreiro continuo: o conteudo e duplicado no HTML e o track anda -50%,
   entao o fim da primeira metade emenda perfeito no comeco da segunda */
.ticker-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  padding-right: 3rem;
  animation: ticker-scroll 36s linear infinite;
}

@keyframes ticker-scroll {
  to { transform: translateX(-50%); }
}

.ticker span {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ash);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.ticker span::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--gold);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

/* ---------- secoes ---------- */

.section { padding: 5.5rem 0; }

.section + .section { border-top: 1px solid var(--char-edge); }

/* ---------- features ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--char);
  border: 1px solid var(--char-edge);
  padding: 1.75rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: border-color 200ms ease, transform 200ms ease;
}

.feature-card:hover {
  border-color: color-mix(in srgb, var(--gold) 55%, var(--char-edge));
  transform: translateY(-3px);
}

.feature-card svg {
  width: 28px;
  height: 28px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: square;
}

.feature-card h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.feature-card p {
  color: var(--ash);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ---------- como funciona ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  counter-reset: step;
}

.step {
  counter-increment: step;
  padding: 1.6rem 1.4rem;
  background: var(--coal-deep);
  border: 1px solid var(--char-edge);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--display);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--gold);
}

.step h3 {
  font-size: 1.0625rem;
  font-weight: 700;
}

.step p {
  color: var(--ash);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ---------- licenca ---------- */

.license-card {
  background:
    radial-gradient(ellipse 60% 90% at 85% 0%, rgba(227, 169, 60, 0.12), transparent 65%),
    var(--char);
  border: 1px solid var(--char-edge);
  padding: 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 3rem;
  align-items: center;
  --notch: 26px;
}

.license-card h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.08;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
  text-wrap: balance;
}

.license-card > div > p {
  color: var(--ash);
  max-width: 48ch;
}

.license-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 2rem;
}

.license-list li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 0.975rem;
}

.license-list li::before {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  background: var(--gold);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  transform: translateY(-1px);
}

.license-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ---------- faq ---------- */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 780px;
}

.faq-list details {
  background: var(--char);
  border: 1px solid var(--char-edge);
  transition: border-color 200ms ease;
}

.faq-list details[open] { border-color: color-mix(in srgb, var(--gold) 45%, var(--char-edge)); }

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 1.4rem;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: '+';
  font-family: var(--display);
  font-size: 1.3rem;
  color: var(--gold);
  transition: transform 200ms ease;
}

.faq-list details[open] summary::after { transform: rotate(45deg); }

.faq-list details p {
  padding: 0 1.4rem 1.25rem;
  color: var(--ash);
  font-size: 0.95rem;
  max-width: var(--measure);
}

/* ---------- cta final ---------- */

.cta-final {
  text-align: center;
  padding: 6rem 0;
  background:
    radial-gradient(ellipse 55% 70% at 50% 100%, rgba(227, 169, 60, 0.10), transparent 70%),
    var(--coal-deep);
  border-top: 1px solid var(--char-edge);
}

.cta-final h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  text-transform: uppercase;
  text-wrap: balance;
  margin-bottom: 1rem;
}

.cta-final p {
  color: var(--ash);
  margin-bottom: 2.2rem;
}

.cta-final .hero-actions { justify-content: center; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--char-edge);
  padding: 2.5rem 0;
  background: var(--coal-deep);
}

.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-footer .brand img { width: 32px; height: 32px; }

.site-footer p {
  color: var(--ash);
  font-size: 0.85rem;
}

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .feature-card { transition: none; }
  .log-cursor { animation: none; }
  .ticker-track { animation: none; }
}

/* ---------- responsivo ---------- */

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 3rem; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .license-card { grid-template-columns: 1fr; padding: 2.25rem; }
  .site-nav { display: none; }
}

@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero { padding: 3.5rem 0 4rem; }
  .section { padding: 4rem 0; }
}
