:root {
  color-scheme: light;
  --navy: #061936;
  --navy-2: #0b2856;
  --blue: #174d96;
  --orange: #ff7a00;
  --orange-2: #ff9b1d;
  --green: #198754;
  --yellow: #f5ce29;
  --paper: #fffaf1;
  --surface: #ffffff;
  --ink: #071831;
  --muted: #5b6c84;
  --line: rgba(7, 24, 49, 0.13);
  --shadow: 0 22px 70px rgba(6, 25, 54, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

body,
button,
input,
textarea {
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1,
h2,
h3,
p,
li,
a,
button {
  overflow-wrap: anywhere;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 30;
  transform: translateY(-160%);
  padding: 10px 12px;
  color: #ffffff;
  background: var(--navy);
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  padding: 10px clamp(14px, 4vw, 58px);
  color: #ffffff;
  background: rgba(6, 25, 54, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  font-weight: 950;
  text-transform: uppercase;
}

.brand-mark {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--navy);
  background:
    linear-gradient(135deg, var(--green), var(--yellow) 48%, var(--orange));
  border-radius: 8px;
  font-size: 0.92rem;
}

.brand span:last-child {
  display: grid;
  gap: 1px;
  line-height: 1;
}

.brand small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.66rem;
  font-weight: 800;
}

.menu {
  display: none;
  gap: 8px;
  align-items: center;
}

.menu a {
  min-height: 34px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.menu a:hover,
.menu a:focus-visible {
  color: #ffffff;
  border-color: rgba(255, 154, 29, 0.9);
  outline: none;
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 86vh;
  padding: 118px clamp(18px, 5vw, 76px) 42px;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(6, 25, 54, 0.93), rgba(6, 25, 54, 0.68) 42%, rgba(6, 25, 54, 0.06) 78%),
    linear-gradient(180deg, rgba(6, 25, 54, 0.18), rgba(6, 25, 54, 0.84)),
    url("https://www.tomio.net.br/1fundotomio.png") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--green), var(--yellow), var(--orange), var(--blue));
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  width: min(680px, 100%);
}

.eyebrow,
.section-label {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-height: 30px;
  align-items: center;
  padding: 7px 10px;
  border-left: 4px solid var(--orange);
  color: var(--orange);
  background: rgba(255, 122, 0, 0.11);
  font-size: 0.74rem;
  font-weight: 950;
  line-height: 1.15;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 8ch;
  font-size: clamp(4rem, 16vw, 9rem);
  line-height: 0.82;
  text-transform: uppercase;
}

.hero .lead {
  margin: 0;
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 3.8vw, 1.34rem);
  font-weight: 650;
  line-height: 1.56;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 950;
  line-height: 1.15;
  text-align: center;
}

.button.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  border-color: rgba(255, 122, 0, 0.85);
}

.button.secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}

.button.dark {
  color: #ffffff;
  background: var(--navy);
  border-color: var(--navy);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-item {
  display: grid;
  gap: 6px;
  min-height: 128px;
  padding: clamp(18px, 4vw, 30px);
  background: #ffffff;
}

.trust-item strong {
  color: var(--navy);
  font-size: clamp(1.3rem, 5vw, 2.35rem);
  line-height: 0.95;
}

.trust-item span {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.section {
  padding: clamp(46px, 9vw, 96px) clamp(18px, 5vw, 76px);
}

.section.dark {
  color: #ffffff;
  background: var(--navy);
}

.section-head {
  display: grid;
  gap: 12px;
  width: min(900px, 100%);
  margin-bottom: 24px;
}

.section h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.1rem, 8vw, 5rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.section.dark h2,
.section.dark .section-head p {
  color: #ffffff;
}

.section-head p {
  margin: 0;
  max-width: 72ch;
  color: var(--muted);
  font-size: clamp(1rem, 2.8vw, 1.2rem);
  line-height: 1.6;
}

.story-grid,
.responsibility-grid {
  display: grid;
  gap: 12px;
}

.story-card,
.responsibility-card,
.contact-panel,
.form-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.story-card {
  display: grid;
  gap: 12px;
  min-height: 280px;
  padding: clamp(20px, 4vw, 32px);
}

.story-card .number {
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.story-card h3,
.responsibility-card h3,
.contact-panel h3,
.form-panel h3 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.35rem, 5vw, 2.1rem);
  line-height: 1;
}

.story-card p,
.responsibility-card p,
.contact-panel p,
.form-panel p,
.family-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.story-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.story-card li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.38;
}

.story-card li::before {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-top: 7px;
  border-radius: 999px;
  background: var(--orange);
}

.family {
  display: grid;
  gap: 0;
  padding: 0;
  background: #f4eadb;
}

.family-media {
  min-height: 420px;
  background: url("https://www.tomio.net.br/3fund.png") 76% center / cover no-repeat;
}

.family-copy {
  display: grid;
  gap: 16px;
  align-content: center;
  padding: clamp(34px, 7vw, 84px) clamp(18px, 5vw, 76px);
  background:
    linear-gradient(90deg, rgba(244, 234, 219, 0.97), rgba(244, 234, 219, 0.78)),
    #f4eadb;
}

.family-copy h2 {
  margin: 0;
  max-width: 11ch;
  color: var(--navy);
  font-size: clamp(2.4rem, 10vw, 5.4rem);
  line-height: 0.88;
  text-transform: uppercase;
}

.quote-band {
  display: grid;
  gap: 12px;
  padding: clamp(22px, 5vw, 44px);
  color: #ffffff;
  background:
    linear-gradient(135deg, var(--navy), var(--navy-2));
}

.quote-band strong {
  font-size: clamp(1.5rem, 5vw, 3rem);
  line-height: 1;
  text-transform: uppercase;
}

.quote-band span {
  max-width: 76ch;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.62;
}

.responsibility-grid {
  grid-template-columns: minmax(0, 1fr);
}

.responsibility-card {
  display: grid;
  gap: 12px;
  padding: clamp(20px, 4vw, 32px);
  background: rgba(255, 255, 255, 0.97);
}

.responsibility-card strong {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #ffffff;
  background: var(--orange);
  border-radius: 8px;
}

.contact {
  display: grid;
  gap: 14px;
  background:
    linear-gradient(135deg, #061936, #0b2856 72%, #113c72);
}

.contact .section-head {
  margin-bottom: 6px;
}

.contact h2,
.contact .section-head p {
  color: #ffffff;
}

.contact-grid {
  display: grid;
  gap: 14px;
}

.contact-panel,
.form-panel {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 4vw, 34px);
  background: rgba(255, 255, 255, 0.96);
}

.contact-links {
  display: grid;
  gap: 9px;
}

.contact-links a,
.contact-links span {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  color: var(--navy);
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
}

.form-grid {
  display: grid;
  gap: 10px;
}

.form-grid input,
.form-grid textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px;
  border: 1px solid rgba(7, 24, 49, 0.18);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
  font-weight: 700;
}

.form-grid textarea {
  min-height: 118px;
  resize: vertical;
}

.demo-note {
  padding: 12px;
  color: #8b4d00;
  background: #fff0d9;
  border: 1px solid rgba(255, 122, 0, 0.24);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.45;
}

.source-note {
  display: grid;
  gap: 8px;
  padding: 18px clamp(18px, 5vw, 76px);
  color: rgba(255, 255, 255, 0.76);
  background: #020b18;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.source-note b {
  color: #ffffff;
}

@media (max-width: 460px) {
  .hero {
    min-height: 82vh;
    padding-top: 104px;
    background:
      linear-gradient(180deg, rgba(6, 25, 54, 0.2), rgba(6, 25, 54, 0.9) 74%),
      url("https://www.tomio.net.br/1fundotomio.png") center top / cover no-repeat;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 21vw, 5rem);
  }

  .button,
  .hero-actions a,
  .cta-actions a {
    width: 100%;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .family-media {
    min-height: 360px;
  }
}

@media (min-width: 720px) {
  .menu {
    display: flex;
  }

  .trust-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .story-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .responsibility-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    align-items: start;
  }

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

  .form-grid textarea,
  .form-grid .full {
    grid-column: 1 / -1;
  }
}

@media (min-width: 980px) {
  .family {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    min-height: 720px;
  }

  .family-media {
    min-height: 720px;
  }

  .family-copy {
    padding-right: clamp(40px, 6vw, 96px);
  }
}
