:root {
  --iq-orange: #ff6200;
  --iq-orange-dark: #d94f00;
  --iq-black: #111111;
  --iq-graphite: #1c1c1c;
  --iq-dark-gray: #2a2a2a;
  --iq-white: #ffffff;
  --iq-off-white: #f7f7f5;
  --iq-light-gray: #f1f1f1;
  --iq-border: #d9d9d9;
  --iq-mid-gray: #8a8a8a;

  --ink: var(--iq-black);
  --ink-2: var(--iq-graphite);
  --paper: var(--iq-off-white);
  --paper-2: var(--iq-light-gray);
  --cream: var(--iq-white);
  --copper: var(--iq-orange);
  --copper-d: var(--iq-orange-dark);
  --gold: var(--iq-orange);
  --muted: var(--iq-mid-gray);
  --line: var(--iq-border);
  --white: var(--iq-white);

  --logic: #3a6a8c;
  --chance: #b26a2a;
  --lang: #2f6f66;
  --neural: #8b3d5a;

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-interface: Inter, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-interface);
  color: var(--iq-black);
  background:
    url("assets/brand/noise-light.svg") repeat,
    var(--iq-off-white);
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
a { color: inherit; }

.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.kicker {
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--iq-orange);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--iq-orange);
  flex: 0 0 auto;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 0.95;
}
.serif {
  font-family: var(--font-mono);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}
.muted { color: var(--iq-mid-gray); }

/* NAV — barra preta da plataforma */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: var(--iq-black);
  color: var(--iq-white);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-inner {
  display: flex; align-items: center; gap: 18px;
  min-height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img {
  height: 36px; width: 36px;
  object-fit: contain; object-position: center;
  border-radius: var(--radius-sm);
  background: var(--iq-white);
}
.brand span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
  opacity: 0.72;
}
.brand strong {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--iq-white);
  opacity: 1;
}
.brand strong::after {
  content: "";
  width: 8px; height: 8px;
  background: var(--iq-orange);
}
.nav-toggle {
  display: none; margin-left: auto;
  width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.2);
  background: transparent; color: var(--iq-white); border-radius: var(--radius-sm); cursor: pointer;
}
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-links a {
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 10px;
  opacity: 0.86;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.nav-links a:not(:first-child)::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--iq-orange);
  transform: rotate(45deg);
  opacity: 1;
}
.nav-links a:hover { opacity: 1; }
.nav-cta {
  background: var(--iq-orange) !important;
  color: var(--iq-black) !important;
  opacity: 1 !important;
  border-radius: var(--radius-sm);
  font-family: var(--font-interface) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
}
.nav-cta::before { display: none !important; }

/* HERO — branco editorial como iqonify.com.br */
.hero {
  position: relative;
  color: var(--iq-black);
  background:
    url("assets/brand/dots-orange.svg") repeat,
    var(--iq-off-white);
  padding: 56px 0 72px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  margin: 16px 0 18px;
  font-weight: 900;
  max-width: 14ch;
  text-transform: uppercase;
}
.hero h1 em {
  font-style: normal;
  color: var(--iq-orange);
}
.hero p.lead {
  max-width: 42rem;
  font-size: 1.05rem;
  color: var(--iq-mid-gray);
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-visual {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--iq-border);
  box-shadow: var(--shadow);
}
.hero-visual img {
  width: 100%;
  height: min(520px, 70vh);
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
}

.btn {
  border: 0; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 180ms ease-out, transform 180ms ease-out;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--iq-orange); color: var(--iq-black); }
.btn-primary:hover { background: var(--iq-orange-dark); color: var(--iq-white); }
.btn-ghost {
  background: var(--iq-black);
  color: var(--iq-white);
  border: 1px solid var(--iq-black);
}
.progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.12);
}
.progress > i { display: block; height: 100%; width: 0; background: var(--iq-orange); }

/* SECTIONS */
section { padding: 88px 0; }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin: 10px 0 12px;
  font-weight: 800;
}
.dark {
  background:
    url("assets/brand/noise-dark.svg") repeat,
    var(--iq-black);
  color: var(--iq-white);
}
.dark .muted { color: rgba(255,255,255,.62); }
.dark .kicker { color: var(--iq-orange); }

.grid-4, .grid-3, .grid-2 {
  display: grid; gap: 18px;
}
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.river {
  background: var(--iq-white);
  border-radius: var(--radius-sm);
  padding: 22px;
  min-height: 220px;
  cursor: pointer;
  border: 1px solid var(--iq-border);
  transition: transform 180ms ease-out, border-color 180ms ease-out;
}
.river:hover { transform: translateY(-3px); border-color: var(--iq-orange); }
.river b {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--iq-orange);
}
.river h3 { margin: 0 0 8px; font-size: 1.55rem; font-weight: 800; }
.r-logic { border-top: 4px solid var(--logic); }
.r-chance { border-top: 4px solid var(--chance); }
.r-lang { border-top: 4px solid var(--lang); }
.r-neural { border-top: 4px solid var(--neural); }

.map-frame {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: 28px;
  border: 1px solid var(--iq-border);
}
.map-frame img { width: 100%; height: 340px; object-fit: cover; filter: grayscale(.35) contrast(1.05); }

/* TIMELINE */
.timeline {
  display: flex; gap: 14px; overflow-x: auto; padding: 8px 2px 18px;
  scroll-snap-type: x mandatory;
}
.year-card {
  flex: 0 0 230px; scroll-snap-align: start;
  background: var(--iq-graphite);
  color: var(--iq-white);
  border-radius: var(--radius-sm);
  padding: 18px;
  border: 1px solid rgba(255,255,255,.08);
}
.year-card .y { font-family: var(--font-mono); color: var(--iq-orange); font-size: 0.92rem; }
.year-card h3 { margin: 8px 0 6px; font-size: 1.25rem; font-weight: 800; }
.year-card p { margin: 0; font-size: 0.92rem; color: rgba(255,255,255,.7); text-transform: none; letter-spacing: 0; font-family: var(--font-interface); }
.chip {
  display: inline-block; margin-top: 10px; font-size: 0.68rem;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.18);
}

/* GALLERY */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filters button {
  background: transparent;
  border: 1px solid var(--iq-border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  cursor: pointer;
  color: var(--iq-black);
  font-weight: 600;
}
.filters button.on, .filters button:hover {
  background: var(--iq-black);
  color: var(--iq-white);
  border-color: var(--iq-black);
}
.people {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.person {
  background: var(--iq-white);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--iq-border);
  display: flex;
  flex-direction: column;
  transition: transform 180ms ease-out, border-color 180ms ease-out;
}
.person:hover { transform: translateY(-3px); border-color: var(--iq-orange); }
.person .ph {
  height: 210px;
  background: #2a2a2a center/cover no-repeat;
  display: grid;
  place-items: end start;
}
.person-ada .ph { background-position: center 12%; }
.mono {
  width: 100%; height: 210px; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 900;
  color: var(--iq-white);
  background: var(--iq-black);
}
.person .meta {
  padding: 12px 12px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.person h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
}
.person small { color: var(--iq-mid-gray); font-family: var(--font-mono); font-size: 0.68rem; }
.person .contrib {
  margin: auto 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--iq-border);
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--iq-dark-gray);
  font-family: var(--font-interface);
  text-transform: none;
  letter-spacing: 0;
}

/* MODAL */
.modal {
  position: fixed; inset: 0; background: rgba(17,17,17,.72);
  display: none; place-items: center; z-index: 80; padding: 20px;
}
.modal.open { display: grid; }
.modal-card {
  width: min(760px, 100%); max-height: 88vh; overflow: auto;
  background: var(--iq-white); border-radius: var(--radius-sm);
  display: grid;
  grid-template-columns: 240px 1fr;
  border: 1px solid var(--iq-border);
}
.modal-card img, .modal-card .mono { height: 100%; min-height: 280px; object-fit: cover; }
.modal-card img.ada-face { object-position: center 12%; }
.modal-body { padding: 24px; }
.modal-body h2 { margin: 0 0 6px; }
.close {
  float: right; border: 0; background: transparent; font-size: 1.4rem; cursor: pointer;
}

/* SPOTLIGHTS */
.spot {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 28px; align-items: center;
}
.spot img {
  width: 100%; height: 420px; object-fit: cover; border-radius: var(--radius-sm);
  filter: grayscale(.25) contrast(1.08);
}
.spot img.ada-face { object-position: center 8%; object-fit: cover; }
.quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.05;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}
.tag {
  display: inline-block;
  font-size: 0.68rem;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: var(--iq-light-gray);
  margin-right: 6px;
  color: var(--iq-black);
}
.dark .quote { color: var(--iq-white); }
.dark p { color: rgba(255,255,255,.82); }

/* BENFORD */
.bars { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 28px 1fr 72px; gap: 10px; align-items: center; }
.bar-row b { font-family: var(--font-mono); }
.track { background: var(--iq-light-gray); height: 10px; border-radius: 0; overflow: hidden; }
.dark .track { background: var(--iq-dark-gray); }
.track i { display: block; height: 100%; width: 0; background: var(--iq-orange); transition: width 1.1s ease; }
.warn {
  background: #fff4ec;
  border-left: 4px solid var(--iq-orange);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
}

/* SHANNON GAME */
.game {
  background: var(--iq-graphite);
  color: var(--iq-white);
  border-radius: var(--radius-sm);
  padding: 24px;
  border: 1px solid rgba(255,255,255,.08);
}
.how-to {
  font-size: 0.92rem;
  color: rgba(255,255,255,.78);
  line-height: 1.55;
}
.letters { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.letters span {
  min-width: 36px; height: 44px; display: grid; place-items: center;
  border-radius: var(--radius-sm); background: var(--iq-dark-gray);
  font-family: var(--font-mono);
}
.letters span.ok { background: var(--iq-orange); color: var(--iq-black); }
.letters span.wait { outline: 2px solid var(--iq-orange); }
.keys { display: flex; flex-wrap: wrap; gap: 6px; }
.keys button {
  width: 34px; height: 34px; border-radius: var(--radius-sm); border: 0; cursor: pointer;
  background: var(--iq-white); color: var(--iq-black); font-weight: 700;
}
.keys button.miss {
  background: var(--iq-orange);
  color: var(--iq-black);
}

/* LINEAGE */
.steps { display: grid; gap: 10px; }
.step {
  display: grid; grid-template-columns: 90px 1fr; gap: 14px;
  padding: 14px; border-radius: var(--radius-sm);
  background: var(--iq-white); cursor: pointer;
  border: 1px solid var(--iq-border); color: var(--iq-black);
}
.dark .step { background: var(--iq-graphite); color: var(--iq-white); border-color: rgba(255,255,255,.08); }
.step.on { border-color: var(--iq-orange); box-shadow: inset 3px 0 0 var(--iq-orange); }
.step .yr { font-family: var(--font-mono); color: var(--iq-orange); }
.step strong {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
}

.lineage-panel {
  margin-top: 22px;
  padding: 20px 22px;
  min-height: 132px;
  border: 1px solid rgba(255,255,255,.14);
  border-left: 4px solid var(--iq-orange);
  background: var(--iq-graphite);
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--iq-white);
  transition: background 180ms ease-out, border-color 180ms ease-out;
}
.lineage-panel.flash {
  animation: lineageFlash 720ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes lineageFlash {
  0% {
    background: #3a1d0a;
    box-shadow: 0 0 0 0 rgba(255, 98, 0, 0.45);
  }
  100% {
    background: var(--iq-graphite);
    box-shadow: 0 0 0 14px rgba(255, 98, 0, 0);
  }
}

/* DISCOVERIES */
.disc { display: grid; gap: 8px; }
.disc details {
  background: var(--iq-white);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  border: 1px solid var(--iq-border);
}
.disc summary {
  cursor: pointer;
  font-weight: 800;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: 1.15rem;
}
.disc-body {
  padding: 12px 2px 6px;
  color: var(--iq-dark-gray);
  font-size: 0.95rem;
}
.disc-body p { margin: 0 0 10px; }
.disc-body p:last-child { margin-bottom: 0; }

/* FORM */
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
form {
  display: grid; gap: 12px;
  background: var(--iq-white);
  padding: 22px;
  border-radius: var(--radius-sm);
  color: var(--iq-black);
  border: 1px solid var(--iq-border);
}
.cta-grid ul { padding-left: 1.1rem; color: rgba(255,255,255,.78); }
.cta-grid li { margin: 6px 0; }
label {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--iq-mid-gray);
}
input, select, textarea {
  width: 100%; padding: 12px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--iq-border);
  background: #fff;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--iq-orange);
  outline-offset: 1px;
  border-color: var(--iq-orange);
}
.form-status { min-height: 1.4em; font-size: 0.92rem; }
.ok { color: #19b36b; }
.err { color: #e5484d; }
.share { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

footer {
  background:
    url("assets/brand/grid-dark.svg") repeat,
    var(--iq-black);
  color: rgba(255,255,255,.7);
  padding: 48px 0 28px;
  font-size: 0.92rem;
}
footer a { color: var(--iq-orange); }
.footer-brand img {
  height: 56px; width: auto; background: #fff; border-radius: var(--radius-sm); padding: 6px 10px;
  margin-bottom: 12px;
}
.cta-grid p a { color: var(--iq-orange); }

@media (max-width: 900px) {
  .grid-4, .grid-3, .grid-2, .spot, .cta-grid, .modal-card, .hero-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 72px;
    background: var(--iq-black); padding: 12px 20px 18px; flex-direction: column;
    align-items: flex-start;
  }
  .nav-links a:not(:first-child)::before { display: none; }
  .nav.open .nav-links { display: flex; }
  .hero h1 { max-width: none; }
  .person .ph, .mono { height: 180px; }
  .spot img { height: 280px; }
  .hero-visual img { height: 280px; }
}
