:root {
  --bg: #f6efe0;
  --text: #16253b;
  --muted: #556171;
  --line: rgba(22, 37, 59, 0.16);
  --line-strong: #16253b;
  --surface: #fff9ee;
  --surface-strong: #f0ddae;
  --button: #16253b;
  --button-text: #f8f3e8;
  --gold: #c9a24b;
  --gold-deep: #b38422;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: radial-gradient(circle at top, #fff7e8 0%, var(--bg) 58%);
  color: var(--text);
  line-height: 1.65;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--text);
  color: #fff;
  padding: 0.75rem 1rem;
  text-decoration: none;
  z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.container { width: min(1160px, calc(100% - 3rem)); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246, 239, 224, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0; gap: 1.25rem;
}
.brand-lockup { display: flex; align-items: center; gap: 0.9rem; }
.brand-mark { width: 60px; height: 60px; object-fit: contain; flex: 0 0 auto; }
.brand {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem; font-weight: 700; letter-spacing: 0.01em; line-height: 1;
}
.brand-subtitle {
  font-size: 0.77rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-top: 0.2rem;
}
.nav-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); }

.hero { padding: 6.2rem 0 4.8rem; border-bottom: 1px solid var(--line); }
.hero-single { max-width: 880px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.72fr);
  gap: 2.5rem; align-items: center;
}
.hero-kicker,
.section-label,
.footer-title {
  font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-deep);
}

h1, h2, h3 { margin: 0; color: var(--text); }
h1, h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700; letter-spacing: -0.02em; line-height: 0.98;
}
h1 { font-size: clamp(3.2rem, 8vw, 6rem); margin: 1rem 0 1.4rem; }
h2 { font-size: clamp(2.15rem, 4vw, 3.4rem); margin-bottom: 1rem; }
h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.45rem; }

.hero-lead, p { color: var(--muted); font-size: 1.02rem; }
.hero-lead { max-width: 700px; font-size: 1.14rem; }

.hero-actions {
  display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap;
}
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.9rem 1.25rem;
  border: 1px solid var(--line-strong); text-decoration: none;
  font-size: 0.95rem; cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--button); color: var(--button-text); }
.button-secondary { background: transparent; color: var(--text); }

.hero-emblem-card {
  background: linear-gradient(180deg, var(--surface), #f4e5bc);
  border: 1px solid rgba(22, 37, 59, 0.14);
  border-radius: 28px; padding: 1.4rem;
  box-shadow: 0 18px 50px rgba(22, 37, 59, 0.08);
  display: flex; align-items: center; justify-content: center;
}
.hero-emblem-card svg { width: min(100%, 280px); height: auto; }

.section { padding: 4.5rem 0; }

.signal-strip {
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 249, 238, 0.56);
}
.signal-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.signal-label {
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 0.45rem;
}
.signal-grid p { margin: 0; font-size: 0.95rem; }

.intro-grid, .thesis-grid, .footer-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
}

.bordered-section {
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 249, 238, 0.7);
}

.capability-list { margin-top: 2rem; }
.capability-row {
  display: grid; grid-template-columns: 90px 1fr; gap: 1.5rem;
  padding: 1.5rem 0; border-top: 1px solid var(--line);
}
.capability-row:last-child { border-bottom: 1px solid var(--line); }
.capability-number {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.2rem; color: var(--gold-deep);
}

.areas-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  margin-top: 2rem;
}
.area-card {
  padding: 1.5rem; border: 1px solid var(--line);
  border-radius: 18px; background: var(--surface);
  display: flex; flex-direction: column; gap: 0.75rem;
}
.area-card .capability-number { font-size: 1.6rem; margin-bottom: 0.25rem; }

.thesis-section {
  background: linear-gradient(180deg, rgba(240, 221, 174, 0.55), rgba(255, 249, 238, 0.8));
}

.plataforma-wrap {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}
.plataforma-wrap .section-label { display: block; margin-bottom: 0.75rem; }
.plataforma-wrap h2 { margin-bottom: 1.5rem; }
.plataforma-lead {
  font-size: 1.08rem;
  margin: 0 auto 2rem;
  max-width: 720px;
}
.plataforma-cta { margin-top: 1rem; }

.demo-simple-section {
  background: #0d1b2a;
  color: #f6efe0;
  padding: 5.5rem 0;
  border-top: 1px solid #16253b;
  border-bottom: 1px solid #16253b;
}
.demo-simple-wrap { text-align: center; }
.demo-simple-section h2 { color: #f6efe0; }
.demo-simple-title {
  margin-bottom: 2.2rem;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}
.demo-simple-form {
  display: flex;
  gap: 0.75rem;
  max-width: 820px;
  margin: 0 auto;
  align-items: stretch;
}
.demo-simple-form input[type="text"] {
  flex: 1;
  background: transparent;
  border: 2px solid #3b82f6;
  border-radius: 14px;
  padding: 0 1.2rem;
  height: 56px;
  font: inherit;
  font-size: 1rem;
  color: #f6efe0;
  outline: none;
  min-width: 0;
}
.demo-simple-form input[type="text"]::placeholder {
  color: rgba(246, 239, 224, 0.42);
}
.demo-simple-form input[type="text"]:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.22);
}
.demo-simple-upload,
.demo-simple-send {
  font: inherit;
  border: 2px solid #3b82f6;
  cursor: pointer;
  border-radius: 14px;
  height: 56px;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.demo-simple-upload {
  background: transparent;
  color: #f6efe0;
  padding: 0 1.25rem;
  font-size: 0.95rem;
  white-space: nowrap;
}
.demo-simple-upload:hover {
  background: rgba(59, 130, 246, 0.15);
  transform: translateY(-1px);
}
.demo-simple-send {
  background: #3b82f6;
  color: #fff;
  width: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.demo-simple-send:hover {
  background: #2563eb;
  border-color: #2563eb;
  transform: translateY(-1px);
}
.demo-simple-hint {
  text-align: center;
  margin-top: 1.5rem;
  color: rgba(246, 239, 224, 0.62);
  font-size: 0.92rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.demo-simple-hint a { color: #60a5fa; }
.demo-simple-hint a:hover { color: #93c5fd; }

@media (max-width: 640px) {
  .demo-simple-form { flex-wrap: wrap; gap: 0.5rem; }
  .demo-simple-form input[type="text"] { width: 100%; flex: 1 0 100%; }
  .demo-simple-upload { flex: 1; }
  .demo-simple-send { flex: 0 0 64px; }
}

.team-section { background: rgba(255, 249, 238, 0.5); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem; margin-top: 2rem;
}
.team-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px; padding: 1.25rem;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.team-photo {
  width: 100%; aspect-ratio: 1 / 1;
  object-fit: cover; border-radius: 12px;
  background: var(--surface-strong);
  margin-bottom: 0.75rem;
}
.team-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.4rem; font-weight: 700;
  color: var(--text); margin: 0;
}
.team-role {
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold-deep); margin: 0;
}
.team-bio { font-size: 0.92rem; margin: 0.4rem 0 0; line-height: 1.5; }

.contact-section {
  background: linear-gradient(180deg, rgba(240, 221, 174, 0.4), rgba(255, 249, 238, 0.8));
  border-top: 1px solid var(--line);
}
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem;
  margin-top: 1.5rem; align-items: start;
}
.contact-form {
  display: flex; flex-direction: column; gap: 1rem;
  background: var(--surface); padding: 1.5rem;
  border: 1px solid var(--line); border-radius: 18px;
}
.contact-form label {
  display: block; font-size: 0.85rem;
  color: var(--muted); margin-bottom: 0.35rem;
  letter-spacing: 0.04em;
}
.contact-form input,
.contact-form textarea {
  width: 100%; font: inherit; font-size: 0.95rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fffdf7; color: var(--text);
  outline: none;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.18);
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form button {
  align-self: flex-start;
  font: inherit; font-size: 0.95rem;
  padding: 0.85rem 1.4rem;
  background: var(--button); color: var(--button-text);
  border: 1px solid var(--line-strong);
  border-radius: 10px; cursor: pointer;
}
.contact-aside p { margin: 0.4rem 0; }
.contact-aside a { color: var(--text); }

.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line-strong);
  background: #f3ead5;
}
.footer-grid {
  grid-template-columns: 1.25fr 0.7fr 1fr;
  align-items: start;
}
.footer-brand { font-size: 2.1rem; margin-bottom: 0.3rem; }
.footer-lockup { align-items: flex-start; }
.footer-bottom {
  margin-top: 1.5rem; padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem; color: var(--muted);
  text-align: center;
}

@media (max-width: 980px) {
  .hero-grid, .intro-grid, .thesis-grid, .footer-grid,
  .signal-grid, .areas-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
  .capability-row { grid-template-columns: 60px 1fr; }
  .nav { flex-direction: column; align-items: flex-start; }
  .nav-links { width: 100%; }
}

@media (max-width: 640px) {
  .container { width: min(1160px, calc(100% - 1.5rem)); }
  .hero { padding-top: 4.8rem; }
  .button { width: 100%; }
  .brand-mark { width: 52px; height: 52px; }
}
