/* Backup VPS Portais — site estático independente
   Identidade visual discreta e institucional Agility Tecnologia */

:root {
  --primary: #001a33;
  --primary-soft: #062541;
  --bg: #00111f;
  --accent: #38bdf8;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --dim: #64748b;
  --border: rgba(148, 163, 184, 0.18);
  --warn-bg: rgba(245, 158, 11, 0.07);
  --warn-border: rgba(245, 158, 11, 0.4);
  --warn-icon: #fbbf24;
  --maxw: 70rem;
  --narrow: 52rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1rem;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
}

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

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: var(--primary);
  padding: 0.75rem 1.25rem;
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-decoration: none;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.narrow {
  max-width: var(--narrow);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(0, 17, 31, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  border: 2px solid var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 900;
  font-size: 1.1rem;
  line-height: 1;
}

.brand-name {
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.main-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--accent);
  text-decoration: none;
}

/* Hero */
.hero {
  position: relative;
  border-bottom: 1px solid var(--border);
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

.hero .container {
  padding-block: 5rem;
}

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.4em;
}

.hero h1 {
  margin: 1.25rem 0 1.5rem;
  font-size: clamp(2.4rem, 6vw, 4.25rem);
  line-height: 1.02;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.hero p.lead {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 55ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.25rem;
}

.btn {
  display: inline-block;
  padding: 0.95rem 2rem;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

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

.btn-primary:hover {
  background: #7dd3fc;
}

.btn-outline {
  border-color: rgba(226, 232, 240, 0.3);
  color: var(--text);
}

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

/* Sections */
.section {
  border-bottom: 1px solid var(--border);
  padding-block: 4.5rem;
}

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

.section h2 {
  margin: 0 0 1.75rem;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.prose p {
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose strong {
  color: var(--text);
}

/* Cards */
.card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.card-grid li {
  background: var(--bg);
  padding: 2rem;
}

.card-grid h3 {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text);
}

.card-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.card-grid a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card-grid a:hover h3 {
  color: var(--accent);
}

.card-grid a:hover {
  text-decoration: none;
}

/* Alert */
.alert {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  border: 1px solid var(--warn-border);
  background: var(--warn-bg);
  padding: 1.75rem;
}

.alert-icon {
  color: var(--warn-icon);
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
}

.alert h2 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

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

/* Legal / article pages */
.page-head {
  border-bottom: 1px solid var(--border);
  padding-block: 3.5rem;
}

.page-head h1 {
  margin: 1.25rem 0 1.25rem;
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.05;
}

.page-head p {
  color: var(--muted);
  margin: 0;
  max-width: 65ch;
}

.page-head .updated {
  margin-top: 1.25rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--dim);
}

.article {
  padding-block: 3.5rem;
  max-width: var(--narrow);
}

.article h2 {
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  font-weight: 900;
  text-transform: uppercase;
  margin: 3rem 0 1rem;
  scroll-margin-top: 6rem;
  line-height: 1.3;
}

.article section:first-of-type h2 {
  margin-top: 0;
}

.article p {
  color: var(--muted);
  margin: 0 0 1rem;
}

.contact-box {
  border: 1px solid var(--border);
  padding: 1.75rem;
  margin-top: 3rem;
}

.contact-box h2 {
  margin-top: 0;
}

.contact-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--muted);
  display: grid;
  gap: 0.9rem;
}

.contact-box li::before {
  content: "•";
  color: var(--accent);
  margin-right: 0.65rem;
}

.page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.page-nav a {
  border: 1px solid rgba(226, 232, 240, 0.3);
  color: var(--text);
  padding: 0.75rem 1.4rem;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  text-decoration: none;
}

.page-nav a:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: var(--primary);
  padding-block: 2.5rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.75rem;
  align-items: flex-start;
}

.site-footer p {
  margin: 0 0 0.4rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.site-footer .footer-title {
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

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

.footer-nav ul {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-nav a {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.copyright {
  font-size: 0.7rem !important;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--dim) !important;
}

@media (max-width: 640px) {
  .hero .container {
    padding-block: 3.5rem;
  }

  .section {
    padding-block: 3rem;
  }

  .main-nav ul {
    gap: 1rem;
  }

  .card-grid li {
    padding: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
