@charset "UTF-8";

/* Tema: cores semânticas e fontes compartilhadas. */
:root {
  color-scheme: dark;
  --color-background: #101314;
  --color-surface: #1c2224;
  --color-surface-subtle: #171b1d;
  --color-border: #2a3336;
  --color-text: #f0f2f3;
  --color-text-muted: #a2adaf;
  --color-accent: #69e0ca;
  --font-body: 'Segoe UI', Arial, sans-serif;
  --font-code: 'Cascadia Code', Consolas, monospace;
}

/* Base: normalização, tipografia e elementos compartilhados. */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: default;
}
svg {
  flex-shrink: 0;
}
.icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
.icon-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.container {
  width: min(1180px, calc(100% - 96px));
  margin-inline: auto;
}
p,
h1,
h2,
h3 {
  margin: 0;
}
p {
  color: var(--color-text-muted);
}
h1,
h2,
h3 {
  line-height: 1.14;
}
h1 {
  font-size: clamp(42px, 4.4vw, 62px);
  font-weight: 700;
  letter-spacing: -2.4px;
}
h2 {
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 650;
  letter-spacing: -1.25px;
}
h3 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.4px;
}
.accent {
  color: var(--color-accent);
}
.eyebrow {
  font-family: var(--font-code);
  font-size: 12px;
  letter-spacing: 1.1px;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-weight: 500;
}
.status-dot {
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* Acessibilidade: foco visível e atalho para o conteúdo. */
a,
button,
input,
textarea {
  outline-offset: 5px;
}
:focus-visible {
  outline: 2px solid var(--color-accent);
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  padding: 10px 20px;
  background: var(--color-accent);
  color: var(--color-background);
  z-index: 50;
}
.skip-link:focus {
  top: 10px;
}

/* Cabeçalho e navegação. O estado .open é controlado por script.js. */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
  background: #101314f5;
  border-bottom: 1px solid #23292b;
  backdrop-filter: blur(15px);
}
.nav-wrap {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.3px;
}
.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 33px;
  height: 36px;
  border-radius: 7px;
  background: var(--color-accent);
  color: #102725;
  flex-shrink: 0;
}
.brand-sub {
  display: block;
  font-family: var(--font-code);
  font-size: 9px;
  letter-spacing: 1.8px;
  margin-top: 5px;
  color: var(--color-text-muted);
  font-weight: 400;
}
.header nav {
  display: flex;
  align-items: center;
  gap: 27px;
}
.nav-link {
  color: var(--color-text-muted);
  font-size: 14px;
  transition: color 0.2s;
}
.nav-link:hover,
.nav-link.active {
  color: var(--color-accent);
}

/* Botões reutilizáveis e suas variações. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  transition:
    background 0.2s,
    transform 0.2s,
    border-color 0.2s;
}
.button:hover {
  transform: translateY(-2px);
}
.button-primary {
  background: var(--color-accent);
  color: #102725;
}
.button-primary:hover {
  background: #8cebd9;
}
.button-secondary {
  background: transparent;
  border-color: var(--color-border);
}
.button-secondary:hover {
  border-color: #60736f;
  background: #18201f;
}
.button-secondary .icon {
  color: var(--color-accent);
  width: 16px;
}
.button-small {
  min-height: 37px;
  padding: 8px 14px;
  background: #192b28;
  color: var(--color-accent);
  border-color: #29413b;
  font-size: 13px;
}
.menu-toggle {
  display: none;
}

/* Abertura da página. */
.hero {
  padding-top: 175px;
  padding-bottom: 105px;
  min-height: 680px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 65px;
  align-items: center;
}
.hero-copy .eyebrow {
  font-size: 11px;
  letter-spacing: 0.8px;
}
.hero h1 span {
  color: var(--color-accent);
}
.hero-description {
  max-width: 490px;
  font-size: 17px;
  line-height: 1.8;
  margin-top: 25px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 29px;
}
.hero-notes {
  display: flex;
  gap: 23px;
  margin-top: 24px;
  color: var(--color-text-muted);
  font-size: 12px;
}
.hero-notes span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.hero-notes .icon {
  width: 14px;
  height: 14px;
  color: var(--color-accent);
}
.hero-visual {
  padding-top: 15px;
}

/* Exemplo visual de pseudocódigo. white-space preserva sua indentação. */
.editor {
  background: var(--color-surface);
  border: 1px solid #303a3c;
  border-bottom-color: #438d80;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 55px #0003;
}
.editor-top {
  height: 45px;
  background: #191e20;
  border-bottom: 1px solid #283033;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  color: #91a1a4;
  font-family: var(--font-code);
  font-size: 11px;
}
.editor-top > .icon {
  width: 15px;
}
.window-dots {
  display: flex;
  gap: 6px;
}
.window-dots i {
  width: 7px;
  height: 7px;
  background: #425254;
  border-radius: 50%;
}
.window-dots i:last-child {
  background: var(--color-accent);
}
.editor-code {
  padding: 25px 16px 28px;
  font-family: var(--font-code);
  font-size: 12px;
  line-height: 2.15;
  color: #d0d8d9;
}
.editor-code > div {
  display: flex;
  white-space: pre;
}
.line-number {
  display: inline-block;
  flex: 0 0 28px;
  text-align: right;
  margin-right: 18px;
  color: #748386;
  font-size: 11px;
  user-select: none;
}
.comment {
  color: #8a9b9e;
  font-size: 11px;
}
.syntax {
  color: var(--color-accent);
}
.code-value {
  color: #b9c8eb;
}
.editor-bottom {
  border-top: 1px solid #2b3435;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 15px;
  color: #96a7a8;
  font: 10px var(--font-code);
}
.editor-bottom > span:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}
.editor-bottom .status-dot {
  width: 4px;
  height: 4px;
}
.cursor {
  display: inline-block;
  background: var(--color-accent);
  height: 14px;
  width: 6px;
  vertical-align: middle;
  margin-left: 6px;
  animation: blink 1.6s steps(2, start) infinite;
}
.visual-caption {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 23px 13px 0;
  font: 10px var(--font-code);
  letter-spacing: 0.5px;
  color: #8a9a9b;
}
.caption-line {
  flex: 1;
  height: 1px;
  background: #313e40;
}

/* Seções e cards de palestras. */
.section {
  padding-block: 80px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 35px;
}
.section-heading .eyebrow {
  margin-bottom: 14px;
}
.section-heading > p {
  max-width: 365px;
  font-size: 14px;
  padding-bottom: 3px;
  line-height: 1.8;
}
.muted-small {
  font-size: 12px;
  color: #8d9a9d;
}
.talk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--color-surface);
  border: 1px solid #2b3335;
  border-radius: 12px;
  box-shadow: 0 8px 20px #00000012;
}
.talk-card {
  padding: 26px 25px;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.talk-card:hover {
  border-color: #45645e;
  transform: translateY(-3px);
}
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  margin-bottom: 26px;
  font: 10px var(--font-code);
  color: var(--color-accent);
}
.card-meta > span:first-child {
  display: flex;
  align-items: center;
  gap: 7px;
}
.card-meta .icon {
  width: 15px;
  height: 15px;
}
.tag {
  font: 9px var(--font-body);
  color: #c0cbcd;
  padding: 3px 6px;
  border-radius: 4px;
  background: #2a3336;
  white-space: nowrap;
}
.talk-card > p {
  font-size: 14px;
  line-height: 1.75;
  margin-top: 15px;
}
.talk-bottom {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.topic-label {
  font-size: 12px;
  color: #a4b4b5;
}
.topic-label::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--color-accent);
  vertical-align: middle;
  margin-right: 7px;
}
.text-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--color-accent);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 30px;
}
.text-link:hover {
  text-decoration: underline;
}
.text-link .icon {
  width: 15px;
}

/* Trilha de conteúdos: três cards superiores e dois cards compactos. */
.content-section {
  padding-top: 74px;
  padding-bottom: 94px;
}
.learning-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.learning-card {
  grid-column: span 2;
  text-align: left;
  padding: 27px 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.2s;
}
.learning-card:hover {
  background: #222b2d;
  border-color: #4a7168;
  transform: translateY(-3px);
}
.learning-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 24px;
}
.icon-box {
  display: inline-flex;
  width: 43px;
  height: 43px;
  align-items: center;
  justify-content: center;
  border: 1px solid #31554c;
  background: #16322e;
  border-radius: 8px;
  color: var(--color-accent);
  flex-shrink: 0;
}
.step {
  font: 10px var(--font-code);
  letter-spacing: 1px;
  color: var(--color-accent);
}
.learning-card h3 {
  font-size: 19px;
}
.learning-card p {
  font-size: 14px;
  line-height: 1.8;
  margin-top: 13px;
}
.lesson-link {
  margin-top: auto;
  padding-top: 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  color: #b4c4c5;
  font-size: 12px;
}
.lesson-link .icon {
  width: 16px;
  color: var(--color-accent);
}
.compact-card {
  grid-column: span 3;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  padding: 24px 26px;
}
.compact-card h3 {
  margin-top: 7px;
}
.compact-card p {
  margin-top: 8px;
}
.card-arrow {
  color: var(--color-accent);
  margin-left: auto;
  width: 16px;
}

/* Apresentação do projeto. */
.about-section {
  background: var(--color-surface-subtle);
  border-block: 1px solid #202728;
  padding-block: 88px;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 110px;
  align-items: center;
}
.about-copy > p:not(.eyebrow) {
  margin-top: 25px;
  max-width: 410px;
  font-size: 15px;
  line-height: 1.8;
}
.tiny-arrow {
  font-size: 17px;
}
.about-note {
  margin-top: 23px;
  padding: 14px 18px;
  border: 1px solid #36504a;
  border-radius: 7px;
  max-width: 410px;
  color: #a7b7b7;
  font: 12px var(--font-code);
  display: flex;
  align-items: center;
  gap: 12px;
  background: #1c2424;
}
.value {
  display: flex;
  gap: 30px;
  padding: 30px 0;
  border-bottom: 1px solid #2b3335;
}
.value:first-child {
  padding-top: 0;
}
.value:last-child {
  border: 0;
  padding-bottom: 0;
}
.value-number {
  font: 12px var(--font-code);
  color: var(--color-accent);
  margin-top: 5px;
}
.value h3 {
  font-size: 20px;
}
.value p {
  font-size: 14px;
  line-height: 1.8;
  margin-top: 10px;
}

/* Contato e formulário demonstrativo. */
.contact-section {
  padding-block: 88px;
}
.contact-panel {
  border: 1px solid #35524c;
  background: var(--color-surface);
  border-radius: 13px;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 60px;
  padding: 44px;
}
.contact-copy .eyebrow {
  font-size: 11px;
  margin-bottom: 18px;
}
.contact-copy .eyebrow .icon {
  width: 15px;
}
.contact-copy h2 {
  font-size: 34px;
}
.contact-copy > p:not(.eyebrow) {
  font-size: 14px;
  margin-top: 20px;
  line-height: 1.85;
}
.contact-signoff {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 33px;
  max-width: 300px;
  font-size: 12px;
  line-height: 1.8;
  color: #a1b4b2;
}
.contact-signoff .status-dot {
  margin-top: 8px;
  width: 4px;
  height: 4px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field {
  margin-bottom: 17px;
}
label {
  display: block;
  font-size: 13px;
  margin-bottom: 7px;
  color: #d3dddd;
}
input,
textarea {
  width: 100%;
  background: #151a1c;
  border: 1px solid #364043;
  border-radius: 6px;
  padding: 11px 12px;
  font-size: 13px;
  color: var(--color-text);
}
input {
  height: 44px;
}
input::placeholder,
textarea::placeholder {
  color: #859597;
}
input:focus,
textarea:focus {
  border-color: var(--color-accent);
}
textarea {
  resize: vertical;
  min-height: 96px;
}
.form-bottom {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.form-bottom > span {
  font-size: 11px;
  color: #96a6a7;
  line-height: 1.6;
}
.form-bottom .button {
  font-size: 12px;
  padding: 11px 13px;
  white-space: nowrap;
  min-height: 42px;
}
.form-status {
  padding: 12px 0 0;
  color: var(--color-accent);
  font-size: 13px;
}

/* Rodapé e redes sociais. */
.footer {
  background: var(--color-surface-subtle);
  border-top: 1px solid #242c2d;
  padding-top: 42px;
}
.footer-main {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 35px;
}
.brand-mark-small {
  height: 25px;
  width: 25px;
  border-radius: 5px;
}
.brand-mark-small .icon {
  width: 16px;
}
.footer .brand {
  font-size: 15px;
}
.footer-brand > p {
  font-size: 12px;
  line-height: 1.8;
  margin-top: 14px;
}
.footer-links nav {
  display: flex;
  gap: 23px;
  font-size: 12px;
  color: #a6b1b3;
}
.footer-links a:hover {
  color: var(--color-accent);
}
.social-links {
  margin-top: 23px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  color: #a4b3b4;
}
.social-links > span {
  font: 9px var(--font-code);
  letter-spacing: 1px;
  color: #839393;
}
.social-links button {
  background: transparent;
  border: 0;
  padding: 5px 0;
  font-size: 12px;
}
.social-links button:hover {
  color: var(--color-accent);
}
.footer-bottom {
  border-top: 1px solid #2a3234;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  font-size: 10px;
  color: #8c9b9d;
}
.footer-motto {
  color: var(--color-accent);
  font-family: var(--font-code);
  letter-spacing: 0.3px;
}

/* Modal compartilhado pelos detalhes e pela prévia de mensagem. */
dialog {
  color: var(--color-text);
  background: #1c2426;
  border: 1px solid #4b6c64;
  border-radius: 14px;
  padding: 38px;
  width: min(540px, calc(100% - 32px));
  max-height: 85dvh;
  box-shadow: 0 30px 100px #0008;
}
dialog::backdrop {
  background: #060b0dcc;
  backdrop-filter: blur(5px);
}
dialog h2 {
  font-size: 29px;
  margin-bottom: 22px;
  padding-right: 12px;
}
dialog p,
dialog li {
  font-size: 15px;
  color: #b6c3c4;
  line-height: 1.8;
}
dialog p + p {
  margin-top: 15px;
}
dialog ul {
  padding-left: 20px;
}
dialog li {
  padding-bottom: 7px;
}
dialog .eyebrow {
  color: var(--color-accent);
  font-size: 11px;
  margin-bottom: 15px;
}
dialog .button {
  margin-top: 25px;
}
.dialog-close {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 27px;
  background: none;
  border: 0;
  line-height: 1;
  width: 34px;
  height: 34px;
  color: #bccacb;
}
#dialog-body {
  white-space: normal;
}
#dialog-body .message-preview {
  padding: 16px;
  background: #131b1c;
  border-radius: 7px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin-top: 15px;
}

/* Animação do cursor do pseudocódigo. */
@keyframes blink {
  to {
    opacity: 0;
  }
}

/* Telas amplas. As regras responsivas ficam ao final para preservar a cascata. */
@media (min-width: 1500px) {
  .hero {
    min-height: 730px;
    padding-top: 200px;
    padding-bottom: 120px;
  }
}

/* Desktop compacto. */
@media (max-width: 1100px) {
  .container {
    width: calc(100% - 64px);
  }
  .header nav {
    gap: 19px;
  }
  .hero {
    gap: 32px;
  }
  .hero-copy .eyebrow {
    font-size: 9px;
  }
  .editor-code {
    font-size: 10px;
    padding-inline: 10px;
  }
  .comment {
    font-size: 9px;
  }
  .line-number {
    margin-right: 12px;
    flex-basis: 20px;
  }
  .card-meta {
    flex-wrap: wrap;
    gap: 10px;
  }
  .tag {
    font-size: 8px;
  }
  .talk-card {
    padding: 23px;
  }
  .about-grid {
    gap: 65px;
  }
  .contact-panel {
    gap: 30px;
    padding: 32px;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .contact-copy {
    align-self: center;
  }
  .form-bottom {
    flex-wrap: wrap;
  }
  .hero-notes {
    gap: 15px;
    font-size: 11px;
  }
}

/* Tablets e menu móvel. Manter em sincronia com DESKTOP_MEDIA_QUERY em script.js. */
@media (max-width: 820px) {
  .nav-wrap {
    height: 72px;
  }
  .brand {
    font-size: 16px;
  }
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 42px;
    height: 42px;
    padding: 9px;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 6px;
  }
  .menu-toggle span {
    width: 22px;
    height: 1px;
    background: var(--color-text);
    transition: transform 0.2s;
  }
  .menu-toggle[aria-expanded='true'] span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }
  .menu-toggle[aria-expanded='true'] span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }
  .header nav {
    display: none;
    position: absolute;
    left: 0;
    top: 72px;
    right: 0;
    background: #151b1d;
    border-bottom: 1px solid #354541;
    padding: 20px 32px;
    align-items: stretch;
    gap: 0;
  }
  .header nav.open {
    display: flex;
    flex-direction: column;
  }
  .nav-link {
    padding: 10px 0;
  }
  .nav-cta {
    margin-top: 12px;
    align-self: flex-start;
  }
  .hero {
    padding-top: 130px;
    padding-bottom: 65px;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    min-height: 580px;
  }
  h1 {
    font-size: 39px;
    letter-spacing: -1.5px;
  }
  .hero-copy .eyebrow {
    max-width: 260px;
    line-height: 1.9;
    font-size: 9px;
  }
  .hero-description {
    font-size: 15px;
  }
  .actions {
    gap: 9px;
  }
  .actions .button {
    font-size: 12px;
    padding: 11px 13px;
  }
  .hero-notes {
    flex-direction: column;
    gap: 4px;
  }
  .editor-code {
    font-size: 9px;
    padding-inline: 4px;
  }
  .comment {
    font-size: 8px;
  }
  .editor-top {
    padding: 0 12px;
    font-size: 9px;
  }
  .editor-bottom {
    font-size: 8px;
    padding-inline: 10px;
  }
  .visual-caption {
    gap: 6px;
    font-size: 8px;
    margin-inline: 3px;
  }
  .line-number {
    font-size: 9px;
    margin-right: 8px;
    flex-basis: 15px;
  }
  .section {
    padding-block: 60px;
  }
  .section-heading {
    gap: 25px;
  }
  .section-heading > p {
    max-width: 260px;
    font-size: 13px;
  }
  h2 {
    font-size: 30px;
  }
  .talk-grid {
    gap: 13px;
  }
  .talk-card {
    padding: 19px;
  }
  .talk-card h3 {
    font-size: 18px;
  }
  .talk-card > p {
    font-size: 13px;
  }
  .card-meta {
    font-size: 9px;
  }
  .learning-grid {
    gap: 14px;
  }
  .learning-card {
    padding: 21px;
  }
  .learning-card h3 {
    font-size: 17px;
  }
  .learning-card p {
    font-size: 13px;
  }
  .compact-card {
    gap: 15px;
  }
  .compact-card .icon-box {
    width: 34px;
    height: 36px;
  }
  .about-grid {
    gap: 40px;
  }
  .about-copy > p:not(.eyebrow) {
    font-size: 14px;
  }
  .value {
    gap: 19px;
  }
  .value h3 {
    font-size: 18px;
  }
  .contact-panel {
    padding: 28px;
    gap: 25px;
  }
  .contact-copy h2 {
    font-size: 29px;
  }
  .footer-main {
    gap: 25px;
  }
  .footer-links nav {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .footer-bottom {
    font-size: 9px;
  }
  .footer-motto {
    white-space: nowrap;
  }
}

/* Celulares: layout em uma coluna e controles adaptados ao toque. */
@media (max-width: 620px) {
  .container {
    width: calc(100% - 40px);
  }
  html {
    scroll-padding-top: 85px;
  }
  .brand-sub {
    font-size: 8px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 124px;
    padding-bottom: 55px;
    gap: 34px;
    min-height: 0;
  }
  .hero-copy .eyebrow {
    font-size: 9px;
    max-width: none;
    margin-bottom: 20px;
  }
  h1 {
    font-size: clamp(38px, 9.3vw, 54px);
    letter-spacing: -1.8px;
  }
  .hero-description {
    font-size: 16px;
    max-width: 460px;
    margin-top: 22px;
  }
  .actions .button {
    font-size: 13px;
    min-height: 46px;
    padding: 12px 15px;
  }
  .hero-notes {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 11px;
    margin-top: 20px;
  }
  .hero-visual {
    width: 100%;
    padding-top: 0;
    max-width: 480px;
    justify-self: center;
  }
  .editor-code {
    font-size: 11px;
    padding: 21px 10px;
    line-height: 2;
  }
  .comment {
    font-size: 10px;
  }
  .line-number {
    flex-basis: 22px;
    margin-right: 14px;
    font-size: 10px;
  }
  .editor-top {
    font-size: 10px;
    padding: 0 15px;
  }
  .editor-bottom {
    font-size: 9px;
    padding: 12px;
  }
  .visual-caption {
    font-size: 9px;
    gap: 10px;
    margin: 18px 8px 0;
  }
  .section {
    padding-block: 48px;
  }
  .section-heading {
    display: block;
    margin-bottom: 27px;
  }
  .section-heading > p {
    margin-top: 18px;
    max-width: none;
    font-size: 14px;
  }
  .section-heading .eyebrow {
    font-size: 11px;
  }
  h2 {
    font-size: 31px;
    letter-spacing: -1px;
  }
  .talk-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .talk-card {
    padding: 25px;
    min-height: 0;
  }
  .card-meta {
    font-size: 10px;
    flex-wrap: nowrap;
    margin-bottom: 21px;
  }
  .tag {
    font-size: 9px;
  }
  .talk-card h3 {
    font-size: 23px;
  }
  .talk-card h3 br {
    display: none;
  }
  .talk-card > p {
    font-size: 15px;
  }
  .talk-bottom {
    padding-top: 23px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .topic-label {
    font-size: 11px;
  }
  .text-link {
    font-size: 13px;
  }
  .learning-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .learning-card,
  .compact-card {
    grid-column: span 1;
    padding: 25px;
  }
  .learning-card h3 {
    font-size: 21px;
  }
  .learning-card p {
    font-size: 15px;
  }
  .learning-top {
    margin-bottom: 22px;
  }
  .step {
    font-size: 11px;
  }
  .lesson-link {
    font-size: 13px;
  }
  .compact-card h3 {
    font-size: 19px;
  }
  .compact-card p {
    font-size: 14px;
  }
  .compact-card .icon-box {
    width: 38px;
    height: 40px;
  }
  .compact-card {
    gap: 14px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .about-copy h2 br:nth-of-type(2) {
    display: none;
  }
  .about-copy > p:not(.eyebrow) {
    font-size: 15px;
    max-width: none;
  }
  .about-note {
    max-width: none;
    font-size: 11px;
  }
  .value {
    gap: 25px;
    padding-block: 24px;
  }
  .value h3 {
    font-size: 20px;
  }
  .value p {
    font-size: 15px;
  }
  .contact-panel {
    grid-template-columns: 1fr;
    padding: 25px;
    gap: 32px;
    border-radius: 10px;
  }
  .contact-copy h2 {
    font-size: 30px;
  }
  .contact-copy > p:not(.eyebrow) {
    font-size: 15px;
  }
  .contact-copy > p br {
    display: none;
  }
  .contact-signoff {
    margin-top: 23px;
    max-width: none;
    font-size: 12px;
  }
  .field-row {
    gap: 0;
  }
  .field label {
    font-size: 14px;
  }
  input,
  textarea {
    font-size: 16px;
  }
  .form-bottom {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 12px;
  }
  .form-bottom .button {
    min-height: 46px;
    font-size: 14px;
  }
  .form-bottom > span {
    font-size: 11px;
  }
  .form-bottom > span br {
    display: none;
  }
  .footer-main {
    flex-direction: column;
    gap: 25px;
    padding-bottom: 28px;
  }
  .footer-links nav {
    justify-content: flex-start;
    gap: 22px;
    font-size: 12px;
  }
  .social-links {
    justify-content: flex-start;
    gap: 20px;
    margin-top: 18px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    font-size: 10px;
    padding-block: 22px;
  }
  .footer-motto {
    font-size: 10px;
  }
  dialog {
    padding: 30px 25px;
  }
  dialog h2 {
    font-size: 27px;
  }
}

/* Respeita a preferência do sistema por movimento reduzido. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
