/* your-world landing page: index.html (pt-BR) and en/index.html share this file.
   Every url() is relative to this file, so the site works from any sub-path. */
@import url('fonts/fonts.css');

:root {
  --bg: #0a0c12;
  --bg-2: #101520;
  --surface: #131928;
  --surface-2: #182238;
  --line: #212a40;
  --line-2: #2d3955;
  --ink: #e4eaf7;
  --ink-2: #95a4c4;
  --ink-3: #74829f;
  --paper: #f6efdf;
  --brand: #5580f7;
  --brand-2: #8baaff;
  --brand-deep: #284cb0;
  --ok: #4fd08a;
  --warm: #f2b45a;
  --display: 'Bricolage Grotesque', 'Archivo', system-ui, sans-serif;
  --text: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1200px;
  --gut: clamp(20px, 4vw, 40px);
  --sec: clamp(72px, 10vw, 128px);
  --radius: 16px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font-family: var(--text); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand-2); }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.section { padding: var(--sec) 0 0; }
.section:last-of-type { padding-bottom: var(--sec); }

.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-2);
}
.kicker::before { content: ''; width: 22px; height: 1px; background: currentColor; }
.h2 {
  font-family: var(--display); font-weight: 700; color: var(--paper);
  font-size: clamp(30px, 4.2vw, 48px); line-height: 1.08; letter-spacing: -.01em; margin: 0 0 16px; max-width: 22ch;
}
.sub { font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-2); margin: 0; max-width: 56ch; }
.sec-head { margin-bottom: clamp(32px, 5vw, 56px); }

/* top bar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.topbar .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--paper); text-decoration: none; letter-spacing: .01em; }
.brand .dot { color: var(--brand); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.nav a:hover, .nav a:focus-visible { color: var(--paper); }
.lang {
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  color: var(--ink-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 12px;
}
.lang:hover, .lang:focus-visible { color: var(--paper); border-color: var(--brand-2); }
@media (max-width: 860px) { .nav { display: none; } .topbar .wrap { justify-content: space-between; } }

/* buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  font: inherit; font-size: 15.5px; font-weight: 600; line-height: 1; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; white-space: nowrap;
  color: var(--paper); background: color-mix(in srgb, var(--bg) 40%, transparent); border: 1px solid var(--line-2);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:hover, .btn:focus-visible { border-color: var(--brand-2); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover, .btn.primary:focus-visible { background: #6a90ff; }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn .ico { font-size: 12px; }

/* hero */
.hero { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: min(calc(100svh - 64px), 880px); overflow: hidden; background: #05070c url(media/hero-poster.jpg) center / cover no-repeat; }
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 12, 18, .92) 0%, rgba(10, 12, 18, .62) 45%, rgba(10, 12, 18, .1) 80%),
    linear-gradient(0deg, var(--bg) 0%, rgba(10, 12, 18, 0) 38%); }
.hero-in { padding-top: 120px; padding-bottom: clamp(56px, 9vh, 104px); }
.hero h1 { margin: 0 0 22px; font-family: var(--display); font-weight: 700; color: var(--paper);
  font-size: clamp(42px, 6.6vw, 88px); line-height: 1.0; letter-spacing: -.02em; max-width: 13ch; }
.hero-line { margin: 0 0 34px; font-size: clamp(18px, 1.9vw, 22px); color: var(--ink); max-width: 42ch; }
.hero-foot { position: absolute; right: var(--gut); bottom: 22px; margin: 0; font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
@media (max-width: 760px) {
  .hero { min-height: calc(100svh - 64px); }
  .hero::after { background: linear-gradient(0deg, var(--bg) 6%, rgba(10, 12, 18, .78) 52%, rgba(10, 12, 18, .2) 100%); }
  .hero-foot { display: none; }
}

/* band after the hero */
.game { position: relative; overflow: hidden; border-block: 1px solid var(--line-2);
  background:
    radial-gradient(900px 300px at 85% 50%, color-mix(in srgb, var(--brand) 26%, transparent), transparent 70%),
    linear-gradient(color-mix(in srgb, var(--line) 55%, transparent) 1px, transparent 1px) 0 0 / 100% 28px,
    linear-gradient(90deg, color-mix(in srgb, var(--line) 55%, transparent) 1px, transparent 1px) 0 0 / 28px 100%,
    var(--bg-2); }
.game-in { padding-block: clamp(48px, 7vw, 88px); }
.game-title { margin: 0 0 16px; font-family: var(--display); font-weight: 700; color: var(--paper);
  font-size: clamp(30px, 4.6vw, 60px); line-height: 1.05; letter-spacing: -.015em; max-width: 22ch; }
.game-title em { font-style: normal; background: linear-gradient(90deg, var(--brand-2), var(--warm)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.game-line { margin: 0; font-size: clamp(18px, 1.9vw, 22px); color: var(--ink); max-width: 46ch; }

/* problem */
.problem { list-style: none; margin: 0; padding: 0; }
.problem li { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 4.4vw, 56px); line-height: 1.12; letter-spacing: -.01em;
  color: var(--ink-3); padding: 10px 0; border-bottom: 1px solid var(--line); }
.problem li b { color: var(--paper); font-weight: 700; }
.answer { display: flex; align-items: center; gap: 14px; margin: 32px 0 0; font-size: clamp(18px, 1.9vw, 22px); color: var(--ink); }
.answer::before { content: '→'; color: var(--brand); font-weight: 700; }

/* idea */
.idea { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(40px, 6vw, 88px); align-items: center; }
.idea .h2 { max-width: 16ch; }
.idea .sub + .sub { margin-top: 14px; }
.merge { padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line); border-radius: 24px; background: var(--bg-2); }
.sources { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sources li { padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--line-2); color: var(--ink-2); font-size: 15px; line-height: 1.3; }
.sources li.more { color: var(--ink-3); font-style: italic; }
.merge .down { display: block; text-align: center; color: var(--brand); font-size: 22px; line-height: 1; margin: 14px 0; }
.world { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--brand);
  background: linear-gradient(120deg, color-mix(in srgb, var(--brand) 22%, var(--surface)), var(--surface)); }
.world img { flex: none; width: 44px; height: 44px; }
.world strong { display: block; font-family: var(--display); font-size: 20px; color: var(--paper); line-height: 1.2; }
.world span { font-size: 14.5px; color: var(--ink-2); }
@media (max-width: 900px) { .idea { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .sources { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* prototype cards */
.sec-head.split { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }
.pcard {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s ease, transform .2s ease;
}
.pcard:hover, .pcard:focus-within { border-color: var(--line-2); transform: translateY(-2px); }
.pcard .cover { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-2); }
.pcard .cover img, .pcard .cover video { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.pcard:hover .cover img, .pcard:hover .cover video { transform: scale(1.03); }
.pcard .pid {
  position: absolute; left: 14px; top: 14px; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .06em;
  color: var(--paper); background: rgba(10, 12, 18, .72); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 10px;
}
.pcard .pbody { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px 24px; flex: 1; }
.pcard h3 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 23px; line-height: 1.2; color: var(--paper); }
.pcard .metaphor { margin: 0; font-family: var(--mono); font-size: 13px; color: var(--brand-2); }
.pcard .line { margin: 4px 0 0; color: var(--ink-2); }
.pcard .btns { margin-top: auto; padding-top: 18px; }

/* tests */
.tests { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1080px) { .tests { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tests { grid-template-columns: 1fr; gap: 10px; } }
.test { padding: 22px 22px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.test .mark { display: block; margin-bottom: 12px; font-size: 22px; line-height: 1; color: var(--brand-2); }
.test h3 { margin: 0 0 6px; font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.2; color: var(--paper); }
.test p { margin: 0; font-size: 15px; color: var(--ink-2); }
@media (max-width: 560px) {
  .test { display: grid; grid-template-columns: 30px 1fr; column-gap: 10px; padding: 16px 18px; }
  .test .mark { grid-row: span 2; margin: 1px 0 0; font-size: 19px; }
}

/* tool showcase */
.tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1080px) { .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tools { grid-template-columns: 1fr; gap: 14px; } }
.tool { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); transition: border-color .2s ease; }
.tool:hover, .tool:focus-within { border-color: var(--line-2); }
.tool .shot { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); }
.tool .shot img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tool:hover .shot img { transform: scale(1.03); }
.tool .tbody { padding: 18px 20px 22px; }
.tool .ttag { margin: 0 0 6px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--brand-2); }
.tool h3 { margin: 0 0 6px; font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.2; color: var(--paper); }
.tool .tbody > p:last-child { margin: 0; font-size: 15px; color: var(--ink-2); }

/* data */
.data { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px clamp(32px, 5vw, 72px); align-items: start;
  padding: clamp(28px, 4vw, 48px); border-radius: 24px; border: 1px solid var(--line-2);
  background: repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--line) 45%, transparent) 14px 15px), var(--bg-2); }
.data .h2 { margin: 0 0 12px; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.facts div { padding: 16px 18px; border-radius: 14px; background: rgba(10, 12, 18, .72); border: 1px solid var(--line); }
.facts dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--warm); margin-bottom: 4px; }
.facts dd { margin: 0; color: var(--ink); font-size: 15.5px; }
@media (max-width: 900px) { .data { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; gap: 10px; } }

/* workflow with AI */
.flow { position: relative; display: flex; align-items: stretch; gap: 10px; padding-bottom: 64px; }
.node { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 18px 16px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line-2); }
.node .who { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.node strong { font-family: var(--display); font-size: 18px; line-height: 1.2; color: var(--paper); }
.node small { font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.node.human { flex: .95; background: linear-gradient(160deg, color-mix(in srgb, var(--warm) 16%, var(--surface)), var(--surface));
  border-color: color-mix(in srgb, var(--warm) 45%, var(--line-2)); }
.node.human .who { color: var(--warm); }
.agents { position: relative; flex: 4.4; display: flex; gap: 10px; padding: 34px 12px 12px; border: 1px dashed color-mix(in srgb, var(--brand) 60%, transparent);
  border-radius: 18px; background: color-mix(in srgb, var(--brand) 6%, transparent); }
.agents .band { position: absolute; top: 9px; left: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-2); }
.agents .node .who { color: var(--brand-2); }
.arr { flex: none; align-self: center; color: var(--ink-3); font-size: 18px; }
.lanes { display: grid; gap: 4px; margin-top: 4px; }
.lanes i { display: block; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--brand), transparent); animation: lane 2.4s ease-in-out infinite; }
.lanes i:nth-child(2) { width: 82%; animation-delay: .3s; }
.lanes i:nth-child(3) { width: 64%; animation-delay: .6s; }
@keyframes lane { 50% { opacity: .45; } }
.loop { position: absolute; left: 9%; right: 9%; bottom: 14px; height: 40px; border: 1px dashed var(--line-2); border-top: 0; border-radius: 0 0 18px 18px; }
.loop::before { content: '▲'; position: absolute; left: -6px; top: -12px; font-size: 10px; color: var(--ink-3); }
.loop span { position: absolute; left: 50%; bottom: -11px; transform: translateX(-50%); padding: 0 12px; background: var(--bg);
  font-family: var(--mono); font-size: 12px; color: var(--ink-3); white-space: nowrap; }
@media (max-width: 980px) {
  .flow, .agents { flex-direction: column; }
  .flow { padding-bottom: 0; gap: 4px; }
  .agents { gap: 4px; padding: 32px 10px 10px; }
  .arr { transform: rotate(90deg); font-size: 14px; line-height: 1; padding: 2px 0; }
  .node { display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: 12px; padding: 12px 14px; }
  .node .who { grid-column: 2; grid-row: 1; }
  .node strong { grid-column: 1; grid-row: 1; font-size: 17px; }
  .node small, .lanes { grid-column: 1 / -1; }
  .loop { position: static; height: auto; border: 1px dashed var(--line-2); border-radius: 999px; padding: 10px 16px; text-align: center; margin-top: 4px; }
  .loop::before { content: '↺ '; position: static; font-size: 14px; }
  .loop span { position: static; transform: none; padding: 0; background: none; }
}
.lessons-title { margin: clamp(56px, 7vw, 88px) 0 24px; font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.4vw, 28px); color: var(--paper); }
.rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 16px; }
.rules li { display: flex; gap: 12px; align-items: baseline; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 15.5px; }
.rules .mark { flex: none; color: var(--brand-2); }
@media (max-width: 900px) { .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .rules { grid-template-columns: 1fr; gap: 8px; } }
.credit-strip { margin: 28px 0 0; padding: 16px 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); color: var(--ink-2); font-size: 15px; }
.credit-strip strong { color: var(--paper); font-weight: 600; }

/* phases */
.phases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1080px) { .phases { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .phases { grid-template-columns: 1fr; gap: 12px; } .phase { padding: 20px 20px; } .phase .state { margin-bottom: 10px; } }
.phase { position: relative; padding: 28px 24px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.phase .state {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
}
.phase .state::before { content: ''; width: 10px; height: 10px; border-radius: 50%; border: 2px solid currentColor; }
.phase.now { border-color: var(--brand); background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 14%, var(--bg-2)), var(--bg-2)); }
.phase.now .state { color: var(--brand-2); }
.phase.now .state::before { background: currentColor; box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 25%, transparent); animation: ping 2s ease-in-out infinite; }
.phase.next .state { color: var(--warm); }
.phase.next .state::before { border-style: dashed; }
.phase .label { margin: 0 0 4px; font-family: var(--mono); font-size: 13px; color: var(--ink-3); }
.phase h3 { margin: 0 0 8px; font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.2; color: var(--paper); }
.phase p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
@keyframes ping { 50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--brand) 0%, transparent); } }

/* participate */
.join { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px clamp(32px, 5vw, 72px); align-items: center;
  padding: clamp(28px, 4vw, 52px); border-radius: 28px; border: 1px solid var(--line-2);
  background: radial-gradient(700px 320px at 0% 0%, color-mix(in srgb, var(--brand) 24%, transparent), transparent 70%), var(--surface); }
.join .h2 { margin: 0 0 12px; }
.join ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.join li { display: flex; gap: 12px; color: var(--ink); }
.join li::before { content: '•'; color: var(--brand); font-weight: 700; }
.join .mail { display: inline-block; margin-top: 16px; font-family: var(--mono); font-size: 14px; color: var(--brand-2); word-break: break-all; }
.join .btns { margin-top: 24px; }
@media (max-width: 900px) { .join { grid-template-columns: 1fr; } }

/* author */
.bio { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px clamp(28px, 4vw, 48px); align-items: start;
  padding: clamp(28px, 4vw, 44px); border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.photo { width: clamp(120px, 14vw, 168px); aspect-ratio: 1; border-radius: 50%; object-fit: cover; border: 2px solid var(--brand); }
.bio h3 { margin: 0 0 4px; font-family: var(--display); font-weight: 700; font-size: clamp(24px, 2.6vw, 30px); color: var(--paper); }
.bio .role { margin: 0 0 14px; font-family: var(--mono); font-size: 13px; color: var(--brand-2); }
.bio .lead { margin: 0 0 18px; color: var(--ink); font-size: 17px; max-width: 60ch; }
.bio ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; }
.bio li { position: relative; padding-left: 20px; color: var(--ink-2); font-size: 15px; }
.bio li::before { content: '✓'; position: absolute; left: 0; color: var(--ok); font-size: 13px; }
@media (max-width: 760px) { .bio { grid-template-columns: 1fr; } .bio ul { grid-template-columns: 1fr; } }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--ink-3); font-size: 13.5px; }
.foot p { margin: 0 0 8px; max-width: 90ch; }
.foot .credit { color: var(--ink-2); font-size: 14.5px; }
.foot .credit strong { color: var(--paper); font-weight: 600; }

.note { font-size: 14px; color: var(--ink-3); margin: 20px 0 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .tool:hover .shot img, .pcard:hover .cover img, .pcard:hover .cover video { transform: none; }
}
