:root {
  --bg: #070f1c;
  --bg-elevated: #0f172a;
  --panel: rgba(30, 41, 59, 0.55);
  --border: #1e293b;
  --text: #f8fafc;
  --muted: #94a3b8;
  --sky: #0ea5e9;
  --sky-dark: #0284c7;
  --navy: #002748;
  --accent: #dc6d0c;
  --danger: #f43f5e;
  --radius: 1rem;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --font: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(14, 165, 233, 0.18), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(220, 109, 12, 0.12), transparent 50%),
    linear-gradient(180deg, #07111f 0%, var(--bg) 40%, #050b14 100%);
  min-height: 100vh;
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { color: var(--sky); text-decoration: none; }
a:hover { color: #38bdf8; }
.container { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.narrow { width: min(760px, calc(100% - 2rem)); }
.muted { color: var(--muted); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(7, 15, 28, 0.78);
  border-bottom: 1px solid rgba(30, 41, 59, 0.9);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 74px;
}
.brand img { height: 42px; width: auto; }
.nav { display: flex; gap: 1rem; margin-left: auto; flex-wrap: wrap; }
.nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}
.nav a[aria-current="page"], .nav a:hover { color: var(--text); }
.header-cta { margin-left: 0.5rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.85rem;
  padding: 0.75rem 1.15rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--sky) 0%, var(--sky-dark) 100%);
  color: white;
  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.28);
}
.btn-primary:hover { color: white; }
.btn-ghost {
  background: rgba(15, 23, 42, 0.55);
  border-color: #334155;
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--sky); color: var(--text); }

.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
}
.hero-media, .hero-overlay {
  position: absolute;
  inset: 0;
}
.hero-media {
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  animation: heroDrift 18s ease-in-out infinite alternate;
}
.hero-overlay {
  background:
    linear-gradient(90deg, rgba(5, 11, 20, 0.92) 0%, rgba(5, 11, 20, 0.72) 42%, rgba(5, 11, 20, 0.35) 100%),
    linear-gradient(180deg, rgba(5, 11, 20, 0.25) 0%, rgba(5, 11, 20, 0.85) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 5.5rem 0 4.5rem;
  max-width: 720px;
  margin-left: max(1rem, calc((100% - 1120px) / 2));
  animation: riseIn 700ms ease both;
}
.eyebrow {
  display: inline-block;
  margin: 0 0 0.85rem;
  color: #7dd3fc;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.hero h1 {
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 14ch;
}
.lead {
  color: #cbd5e1;
  font-size: 1.1rem;
  max-width: 42ch;
}
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }

.section { padding: 4.5rem 0; }
.section-intro {
  max-width: 640px;
  margin-bottom: 2.5rem;
  animation: riseIn 800ms ease both;
}
.section-intro h2, .legal h1, .cta-band h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
}

.features { display: grid; gap: 2rem; }
.feature {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.feature-reverse { grid-template-columns: 1fr 1.05fr; }
.feature-reverse .feature-copy { order: 2; }
.feature-media {
  overflow: hidden;
  border-radius: 1.1rem;
  min-height: 260px;
}
.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 260px;
  transition: transform 500ms ease;
}
.feature:hover .feature-media img { transform: scale(1.03); }
.feature-copy { padding: 1rem; }
.feature-copy h2 { margin-top: 0; }

.cta-band {
  padding-top: 0;
}
.cta-band-inner {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
  padding: 1.75rem;
  border-radius: 1.4rem;
  border: 1px solid #1e293b;
  background: linear-gradient(120deg, rgba(2, 132, 199, 0.18), rgba(220, 109, 12, 0.12));
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
  background: rgba(2, 8, 18, 0.7);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
}
.footer-grid h3 {
  margin: 0 0 0.8rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #cbd5e1;
}
.footer-grid a { display: block; color: var(--muted); margin: 0.35rem 0; }
.footer-logo { height: 40px; width: auto; margin-bottom: 0.75rem; }
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal { padding-top: 3rem; }
.prose p { color: #cbd5e1; margin: 0 0 1rem; }

.contact-form, .editor-form {
  display: grid;
  gap: 0.9rem;
  margin: 1.5rem 0;
}
.contact-form label, .editor-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
input, textarea, button {
  font: inherit;
}
input, textarea {
  width: 100%;
  border-radius: 0.85rem;
  border: 1px solid #334155;
  background: #0f172a;
  color: var(--text);
  padding: 0.8rem 0.95rem;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 500;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}
.contact-aside {
  margin-top: 1.5rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.55);
}
.flash {
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  margin: 1rem 0;
}
.flash.success { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; }
.flash.error { background: rgba(244, 63, 94, 0.15); color: #fda4af; }

.painel-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}
.painel-body.wide { place-items: start center; }
.painel-card, .painel-shell {
  width: min(560px, 100%);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.painel-shell { width: min(920px, 100%); }
.painel-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1rem;
}
fieldset {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem;
  margin: 0 0 1rem;
}
legend {
  padding: 0 0.4rem;
  color: #7dd3fc;
  font-weight: 700;
}
.feature-edit + .feature-edit { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.contacts-box { margin-top: 2rem; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; padding: 0.55rem 0.4rem; border-bottom: 1px solid var(--border); color: #cbd5e1; }
th { color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }

@keyframes heroDrift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.06) translate3d(-1.5%, -1%, 0); }
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .feature, .feature-reverse { grid-template-columns: 1fr; }
  .feature-reverse .feature-copy { order: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band-inner { flex-direction: column; align-items: start; }
  .hero-content { margin-left: 1rem; padding-right: 1rem; }
}

.biz-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.biz-card {
  padding: 1.25rem 1.35rem;
  border-radius: 1.15rem;
  border: 1px solid var(--border);
  background: var(--panel);
}
.biz-card h2 {
  margin: 0 0 0.55rem;
  font-size: 1.15rem;
}
.biz-card p {
  margin: 0;
  color: #cbd5e1;
}
.section .eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  color: #7dd3fc;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.section h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
@media (max-width: 860px) {
  .biz-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
