/* ============================================
   UauCloud — Design System
   ============================================ */

:root {
  /* Brand */
  --blue-500: #1DA1DB;
  --blue-600: #1789BD;
  --blue-700: #0F6F9C;
  --blue-50:  #E8F5FC;
  --blue-100: #CFEAF7;

  --navy-900: #0B1220;
  --navy-800: #111A2E;
  --navy-700: #1E2A44;
  --navy-600: #3E5577;
  --navy-500: #5B7299;

  --ink-900: #0F172A;
  --ink-700: #1E293B;
  --ink-500: #475569;
  --ink-400: #64748B;
  --ink-300: #94A3B8;
  --ink-200: #CBD5E1;
  --ink-100: #E2E8F0;
  --ink-50:  #F1F5F9;

  --bg:      #FFFFFF;
  --bg-soft: #F8FAFC;
  --bg-mute: #F1F5F9;

  --green-500: #10B981;
  --green-50:  #ECFDF5;
  --amber-500: #F59E0B;
  --red-500:   #EF4444;
  --violet-500: #8B5CF6;

  /* Type */
  --font-sans: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Spacing scale */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-2xl: 28px;

  /* Shadows */
  --sh-sm: 0 1px 2px rgba(15,23,42,.05);
  --sh-md: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px -12px rgba(15,23,42,.10);
  --sh-lg: 0 4px 8px -2px rgba(15,23,42,.06), 0 24px 48px -16px rgba(15,23,42,.18);
  --sh-blue: 0 8px 24px -8px rgba(29,161,219,.45);

  /* Layout */
  --container: 1240px;
  --gutter: 24px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--ink-900);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

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

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

button { font-family: inherit; cursor: pointer; border: 0; background: none; }

/* Interactive controls use the square visual language site-wide. */
.btn,
.skip-link,
button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
  border-radius: 0 !important;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 12px 16px;
  background: var(--navy-900);
  color: #fff;
  font-weight: 700;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* =========== Type =========== */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--blue-700);
  background: var(--blue-50);
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: 0.01em;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--blue-500);
}

h1, .h1 {
  font-family: var(--font-sans);
  font-size: clamp(40px, 5.5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 0;
  color: var(--ink-900);
}

h2, .h2 {
  font-size: clamp(30px, 3.5vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.022em;
  font-weight: 600;
  margin: 0;
  color: var(--ink-900);
}

h3, .h3 {
  font-size: clamp(20px, 1.6vw, 24px);
  line-height: 1.25;
  letter-spacing: -0.012em;
  font-weight: 600;
  margin: 0;
}

.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--ink-500);
  line-height: 1.5;
  max-width: 60ch;
}

.muted { color: var(--ink-400); }
.mono { font-family: var(--font-mono); }

/* =========== Buttons =========== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 0;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform 120ms ease, box-shadow 200ms ease, background 200ms ease, color 200ms ease;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-sm { padding: 9px 16px; font-size: 14px; }

.btn-primary {
  background: var(--blue-500);
  color: white;
  box-shadow: var(--sh-blue);
}
.btn-primary:hover {
  background: var(--blue-600);
  transform: translateY(-1px);
}

.btn-dark {
  background: var(--navy-900);
  color: white;
}
.btn-dark:hover { background: var(--navy-800); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--ink-700);
  border-color: var(--ink-100);
}
.btn-ghost:hover {
  border-color: var(--ink-300);
  background: var(--bg-soft);
}

.btn-link {
  color: var(--blue-700);
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.btn-link:hover { gap: 8px; }

/* =========== Header =========== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--ink-100);
}

.nav-row {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}
.brand-logo {
  height: 28px;
  width: auto;
  display: block;
  filter: brightness(0);
}
.brand-mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue-500), var(--navy-600));
  position: relative;
  display: grid;
  place-items: center;
}
.brand-mark::after {
  content: "";
  width: 12px; height: 12px;
  background: white;
  border-radius: 3px;
  transform: rotate(12deg);
  box-shadow: -3px 3px 0 rgba(255,255,255,.4);
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-700);
  padding: 6px 0;
  position: relative;
}
.nav-links a:hover { color: var(--blue-700); }
.nav-links a.active { color: var(--blue-700); }

.nav-spacer { flex: 1; }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-mobile-label { display: none; }

/* Nav dropdown (Acessar) */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  min-width: 160px;
  list-style: none;
  padding: 6px;
  z-index: 200;
}
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  color: var(--ink-700);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--r-sm);
  transition: background .15s, color .15s;
}
.nav-dropdown-menu li a:hover { background: var(--ink-50); color: var(--blue-600); }
.nav-dropdown-menu li + li { margin-top: 2px; }
.nav-dropdown-sep { height: 1px; background: var(--ink-100); margin: 6px 0; }
.nav-dropdown-arrow {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: .75;
  transform: translateY(-2px) rotate(45deg);
  transform-origin: 60% 60%;
  transition: transform .2s, opacity .2s;
}
.nav-dropdown-toggle:hover .nav-dropdown-arrow { opacity: 1; }
.nav-dropdown.open .nav-dropdown-arrow { transform: translateY(2px) rotate(225deg); }

/* =========== Sections =========== */

section { padding: 96px 0; position: relative; }
section.tight { padding: 64px 0; }
section.dark {
  background: var(--navy-900);
  color: white;
}
section.dark h1, section.dark h2, section.dark h3 { color: white; }
section.dark .lead, section.dark .muted { color: rgba(255,255,255,.7); }
section.soft { background: var(--bg-soft); }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-head .lead { margin: 16px auto 0; }
.section-head.left { text-align: left; margin: 0 0 56px; }
.section-head.left .lead { margin: 16px 0 0; }

/* =========== Cards =========== */

.card {
  background: white;
  border: 1px solid var(--ink-100);
  border-radius: var(--r-xl);
  padding: 28px;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.card:hover {
  border-color: var(--blue-100);
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
}

/* =========== Footer =========== */

.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,.75);
  padding: 80px 0 32px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.site-footer h4 {
  color: white;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-grid a { color: rgba(255,255,255,.7); font-size: 14px; transition: color 150ms; }
.footer-grid a:hover { color: white; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 13px;
  color: rgba(255,255,255,.5);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-meta-item {
  color: rgba(255,255,255,.72);
  font-size: 13px;
  white-space: nowrap;
}
.footer-meta-item strong {
  color: white;
  font-weight: 600;
}
.footer-meta-item a {
  color: white;
}
.footer-meta-item a:hover {
  color: rgba(255,255,255,.82);
}
.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: white;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.footer-brand-row .brand-mark { width: 32px; height: 32px; }
.footer-brand-row .brand-logo-footer { height: 26px; width: auto; display: block; }
.footer-tag { font-size: 14px; line-height: 1.6; max-width: 32ch; }
.footer-badges { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.fbadge {
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.8);
}

/* =========== Utility =========== */

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.divider { height: 1px; background: var(--ink-100); margin: 0; border: 0; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-mono);
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--ink-50);
  color: var(--ink-700);
  letter-spacing: 0.02em;
}
.tag-blue { background: var(--blue-50); color: var(--blue-700); }
.tag-green { background: var(--green-50); color: var(--green-500); }
.tag-dark { background: var(--navy-900); color: white; }

.dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  display: inline-block;
}
.dot-green { background: var(--green-500); box-shadow: 0 0 0 3px rgba(16,185,129,.15); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 721px) and (max-width: 900px) {
  .nav-row { gap: 16px; }
  .nav-links { gap: 12px; }
  .nav-links a { font-size: 14px; }
  .nav-actions { gap: 8px; }
}
@media (max-width: 1024px) {
  .nav-row { gap: 8px; }
  .nav-links { display: none; }
  .nav-actions .btn-primary { display: none; }
  .nav-desktop-label { display: none; }
  .nav-mobile-label { display: inline; }
}
@media (max-width: 720px) {
  section { padding: 64px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  h1 { font-size: 38px; }
  h2 { font-size: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { align-items: flex-start; }
  .footer-meta {
    justify-content: flex-start;
    gap: 10px 16px;
  }
}
