:root {
  --primary-color: #2b5d7d;
  --secondary-color: #e9f1f6;
  --accent-color: #1f3f55;
  --accent-soft: #dbe8f0;
  --text-color: #2b2b2b;
  --muted-text: #5f6b73;
  --background-color: #ffffff;
  --card-background: #ffffff;
  --success-color: #1e7f4f;
  --warning-color: #9a5b00;
  --danger-color: #b03a2e;
  --border-color: rgba(31, 63, 85, 0.12);
  --border-radius: 18px;
  --shadow-soft: 0 10px 30px rgba(20, 37, 52, 0.08);
  --shadow-hover: 0 16px 40px rgba(20, 37, 52, 0.14);
  --transition-smooth: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --content-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-color);
  background:
    radial-gradient(circle at top left, rgba(43, 93, 125, 0.08), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1,
h2,
h3,
h4 {
  line-height: 1.25;
  color: var(--accent-color);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  margin-bottom: 1.25rem;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 0.9rem;
}

h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 64px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary-color), transparent);
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

h4 {
  font-size: 1rem;
  margin: 1.4rem 0 0.55rem;
  color: var(--primary-color);
}

p,
li,
label,
input,
select,
button,
textarea {
  font-size: 1rem;
}

p {
  margin-bottom: 1.2rem;
  max-width: 76ch;
}

ul {
  padding-left: 1.35rem;
  margin-bottom: 1.35rem;
}

li {
  margin-bottom: 0.55rem;
}

li::marker {
  color: var(--primary-color);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--accent-color);
}

a:focus,
button:focus,
input:focus,
select:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(20, 37, 52, 0.08);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
}

nav {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-color);
}

.brand-subtitle {
  font-size: 0.84rem;
  color: var(--muted-text);
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem 1.4rem;
  padding-left: 0;
  margin-bottom: 0;
}

nav li {
  margin-bottom: 0;
}

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 0.95rem;
  font-weight: 600;
}

nav li:nth-last-child(2) a,
nav li:last-child a {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: var(--accent-soft);
}

main {
  overflow-x: hidden;
}

section {
  padding: 5.5rem 0;
}

section:nth-of-type(even) {
  background: linear-gradient(180deg, rgba(233, 241, 246, 0.75), rgba(255, 255, 255, 0.92));
}

section > *,
.hero-content {
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

#hero {
  min-height: calc(100vh - 82px);
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 12% 12%, rgba(43, 93, 125, 0.14), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #eef5f9 100%);
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 4rem;
  width: 100%;
}

.hero-photo {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 50px rgba(31, 63, 85, 0.18);
  flex-shrink: 0;
}

.hero-text {
  flex: 1;
  max-width: 680px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

#hero h1 {
  background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#hero p:not(.eyebrow) {
  color: var(--muted-text);
  font-size: 1.08rem;
}

.hero-buttons,
.button-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.button-link,
button,
.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--primary-color);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(43, 93, 125, 0.22);
  transition: var(--transition-smooth);
}

.button-link:hover,
button:hover,
.action-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(43, 93, 125, 0.28);
  color: #ffffff;
}

.button-link.secondary,
.secondary-button {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: none;
}

.button-link.secondary:hover,
.secondary-button:hover {
  background: var(--primary-color);
  color: #ffffff;
}

#servicos article,
#services article,
.panel,
.feature-card,
.form-card,
.result-card,
.task-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
}

#servicos article,
#services article {
  padding: 2.6rem;
  margin-bottom: 2rem;
}

.panel {
  padding: 2.5rem;
}

.feature-grid,
.two-column-grid,
.task-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 2rem;
}

.feature-card,
.task-card,
.result-card {
  padding: 1.5rem;
}

.section-cta {
  margin-top: 1.8rem;
  margin-bottom: 0;
}

#contato,
#contact {
  background: linear-gradient(180deg, rgba(233, 241, 246, 0.7), #ffffff 70%);
}

footer {
  padding: 2rem 1.5rem;
  text-align: center;
  background: var(--accent-color);
  color: rgba(255, 255, 255, 0.84);
}

.page-shell {
  min-height: 100vh;
  padding: 4.5rem 1.5rem;
}

.page-wrap {
  max-width: var(--content-width);
  margin: 0 auto;
}

.page-header {
  margin-bottom: 2rem;
}

.page-header p {
  color: var(--muted-text);
}

.two-column-grid {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: start;
}

.form-card,
.result-card {
  padding: 2rem;
}

.stack > * + * {
  margin-top: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.field label {
  font-weight: 700;
  color: var(--accent-color);
}

.field small,
.muted,
.helper-text {
  color: var(--muted-text);
}

.field input,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(31, 63, 85, 0.18);
  border-radius: 14px;
  background: #ffffff;
  color: var(--text-color);
}

.checkbox-field label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-weight: 600;
}

.checkbox-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
}

.inline-note,
.status-box {
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: #f4f8fb;
  border: 1px solid rgba(43, 93, 125, 0.14);
}

.status-box.success {
  color: var(--success-color);
  background: rgba(30, 127, 79, 0.08);
  border-color: rgba(30, 127, 79, 0.2);
}

.status-box.warning {
  color: var(--warning-color);
  background: rgba(154, 91, 0, 0.08);
  border-color: rgba(154, 91, 0, 0.2);
}

.status-box.error {
  color: var(--danger-color);
  background: rgba(176, 58, 46, 0.08);
  border-color: rgba(176, 58, 46, 0.2);
}

.stroop-frame .status-box {
  margin-bottom: 1rem;
}

.status-box p:last-child,
.inline-note p:last-child,
.feature-card p:last-child,
.task-card p:last-child,
.result-card p:last-child {
  margin-bottom: 0;
}

.credential-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.credential-list li {
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(31, 63, 85, 0.1);
}

.credential-list li:last-child {
  border-bottom: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-color);
  font-size: 0.85rem;
  font-weight: 700;
}

.data-list {
  list-style: none;
  padding-left: 0;
}

.data-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(31, 63, 85, 0.1);
}

.data-list li:last-child {
  border-bottom: 0;
}

.data-list strong {
  color: var(--accent-color);
}

.back-link {
  display: inline-flex;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.experiment-shell {
  min-height: 100vh;
  padding: 2rem 1rem 4rem;
  background:
    radial-gradient(circle at top left, rgba(43, 93, 125, 0.08), transparent 32%),
    #f8fbfd;
}

.experiment-topbar {
  max-width: 1120px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.experiment-host {
  max-width: 1120px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  min-height: 78vh;
  overflow: hidden;
}

.jspsych-content {
  max-width: 980px;
}

.stroop-layout {
  min-height: 68vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.stroop-frame {
  width: min(860px, 100%);
  padding: 2rem;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff, #f7fafc);
  border: 1px solid rgba(31, 63, 85, 0.1);
}

.stroop-keymap {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.stroop-key {
  padding: 0.8rem;
  border-radius: 16px;
  text-align: center;
  font-weight: 700;
  color: #ffffff;
}

.stroop-key small {
  display: block;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
}

.stroop-stimulus {
  min-height: 250px;
  display: grid;
  place-items: center;
}

.stroop-word {
  font-size: clamp(2.8rem, 8vw, 5rem);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.stroop-circle {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.65), 0 18px 36px rgba(20, 37, 52, 0.12);
}

.stroop-caption {
  margin-top: 1rem;
  text-align: center;
  color: var(--muted-text);
}

@media (max-width: 960px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-content {
    flex-direction: column;
    gap: 2.5rem;
    text-align: center;
  }

  .feature-grid,
  .two-column-grid,
  .task-grid {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    width: 220px;
    height: 220px;
  }
}

@media (max-width: 720px) {
  section {
    padding: 4rem 0;
  }

  #hero {
    min-height: auto;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .hero-buttons,
  .button-row {
    flex-direction: column;
  }

  .button-link,
  button,
  .action-button {
    width: 100%;
  }

  .panel,
  .form-card,
  .result-card,
  #servicos article,
  #services article,
  .task-card {
    padding: 1.5rem;
  }

  .stroop-keymap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stroop-frame {
    padding: 1.2rem;
  }

  .stroop-circle {
    width: 120px;
    height: 120px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
