/* Paleta oficial da Solen (mesma de frontend/src/theme/brand-theme.css). */
:root {
  --primary: #015488;
  --primary-dark: #013556;
  --accent: #66761c;
  --bg: #ffffff;
  --bg-alt: #f5f8fc;
  --surface: #ffffff;
  --border: #e3eaf2;
  --text: #14222b;
  --muted: #566772;
  --on-primary: #ffffff;
  --accent-hover: #4f5c14;
  --on-accent: #ffffff;
  --shadow: 0 1px 2px rgba(1, 53, 86, 0.04), 0 8px 24px rgba(1, 53, 86, 0.06);
  /* Topo: no tema claro, fundo azul da marca com a foto colorida (mesmo esquema do tema escuro). */
  --header-bg: linear-gradient(135deg, #015488, #013556);
  --header-fade: linear-gradient(transparent, transparent);
  --header-veil: rgba(1, 53, 86, 0.88);
  --header-veil-end: rgba(1, 53, 86, 0.35);
  --header-text: #ffffff;
  --header-muted: rgba(255, 255, 255, 0.82);
  --header-primary: #94d3f9;
  --header-border: rgba(255, 255, 255, 0.35);
  --header-bg-alt: rgba(255, 255, 255, 0.12);
  --header-accent: #b5c65a;
  --header-accent-hover: #c6d47a;
  --header-on-accent: #0b1114;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #55b9f6;
    --primary-dark: #94d3f9;
    --accent: #a8b94a;
    --bg: #0b1114;
    --bg-alt: #111a1e;
    --surface: #141e23;
    --border: #22303752;
    --text: #e8eef1;
    --muted: #9fb0b9;
    --on-primary: #0b1114;
    --accent-hover: #bccb63;
    --on-accent: #0b1114;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    --header-bg: var(--bg);
    --header-fade: linear-gradient(
      to bottom,
      transparent 0%,
      transparent 45%,
      color-mix(in srgb, var(--bg) 40%, transparent) 70%,
      color-mix(in srgb, var(--bg) 85%, transparent) 90%,
      var(--bg) 100%
    );
    --header-veil: rgba(11, 17, 20, 0.88);
    --header-veil-end: rgba(11, 17, 20, 0.5);
    --header-text: var(--text);
    --header-muted: var(--muted);
    --header-primary: var(--primary);
    --header-border: var(--border);
    --header-bg-alt: var(--bg-alt);
    --header-accent: var(--accent);
    --header-accent-hover: var(--accent-hover);
    --header-on-accent: var(--on-accent);
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(1080px, 100% - 40px);
  margin-inline: auto;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.topbar nav a:not(.btn) {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.topbar nav a:not(.btn):hover {
  color: var(--primary);
}

/* Tipografia */
h1,
h2,
h3 {
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.08;
  margin: 16px 0 24px;
  max-width: 16ch;
}

h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  line-height: 1.15;
  margin: 12px 0 0;
  max-width: 24ch;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.highlight {
  color: var(--primary);
}

.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 56ch;
  margin: 0 0 36px;
}

.header {
  --text: var(--header-text);
  --muted: var(--header-muted);
  --primary: var(--header-primary);
  --border: var(--header-border);
  --bg-alt: var(--header-bg-alt);
  --accent: var(--header-accent);
  --accent-hover: var(--header-accent-hover);
  --on-accent: var(--header-on-accent);
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: center;
  min-height: clamp(520px, 78vh, 760px);
  padding: 120px 0 104px;
  color: var(--text);
  background: var(--header-bg);
}

.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("/lavoura.png") center 40% / cover no-repeat;
}

/* Véu lateral (legibilidade do texto) e degradê inferior (só no tema escuro). */
.header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    var(--header-fade),
    linear-gradient(90deg, var(--header-veil) 0%, var(--header-veil) 35%, var(--header-veil-end) 100%);
}

/* Seções */
.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  margin-bottom: 48px;
}

/* Cards de soluções */
.cards {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  padding: 32px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s, border-color 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
}

.card p,
.benefits p {
  margin: 0;
  color: var(--muted);
}

/* Plataforma */
.section-lead {
  max-width: 56ch;
  margin: 16px 0 0;
  font-size: 1.1rem;
  color: var(--muted);
}

.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 32px 40px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.features li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.features p {
  margin: 0;
  color: var(--muted);
}

.feature-check {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--on-primary);
  background: var(--primary);
}

/* Benefícios */
.benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 40px 32px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.benefits li {
  padding-top: 20px;
  border-top: 2px solid var(--primary);
}

.benefit-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 14px;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  transition: background 0.2s, color 0.2s;
}

.benefits li:hover .benefit-icon {
  background: var(--primary);
  color: var(--on-primary);
}

.statement {
  text-align: center;
}

.statement-text {
  margin: 12px auto 20px;
  max-width: 22ch;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.statement-sub {
  margin: 0 auto;
  max-width: 54ch;
  font-size: 1.1rem;
  color: var(--muted);
}

/* CTA */
.cta {
  padding: clamp(40px, 7vw, 72px);
  border-radius: 28px;
  color: #ffffff;
  background: linear-gradient(135deg, #015488, #013556);
}

.cta h2 {
  max-width: 20ch;
}

.cta p {
  max-width: 52ch;
  margin: 16px 0 32px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
}

/* Botões */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--primary);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.btn:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.btn-accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* Sobre o bloco azul de contato: verde-oliva claro. */
.btn-accent-bright {
  background: #b5c65a;
  border-color: #b5c65a;
  color: #0b1114;
}

.btn-accent-bright:hover {
  background: #c6d47a;
  border-color: #c6d47a;
}

.btn-small {
  padding: 8px 20px;
  font-size: 0.9rem;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--bg-alt);
  border-color: var(--primary);
}

.btn-light {
  background: #ffffff;
  color: #013556;
  border-color: #ffffff;
}

.btn-light:hover {
  background: #e8f4fd;
  border-color: #e8f4fd;
}

.btn-ghost-light {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

/* Rodapé */
.footer {
  padding: 32px 0;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 560px) {
  .topbar nav a:not(.btn) {
    display: none;
  }

  .header {
    padding: 72px 0;
  }

  .section {
    padding: 64px 0;
  }
}
