/* rsaaon.com — página institucional.
   Cobalto das ilustrações dos projetos como cor de marca; fundo quase branco
   levemente azulado; display Bricolage Grotesque, texto Instrument Sans,
   detalhes técnicos em JetBrains Mono. */
:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --fg: #12162a;
  --muted: #565d78;
  --line: #e1e4ef;
  --brand: #1d3fd6;
  --brand-ink: #ffffff;
  --brand-soft: #e7ecff;
  --live: #1f8a4c;
  --live-soft: #e2f5ea;
  --soon: #a35a00;
  --soon-soft: #fff1dc;
  --contact-bg: #0f1a5c;
  --contact-fg: #eef1ff;
  --contact-muted: #b6bfeb;

  --f-display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --f-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius: 14px;
  --wrap: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0f1d;
    --surface: #141a2e;
    --fg: #eceffa;
    --muted: #9ca4c4;
    --line: #262e4a;
    --brand: #6f8bff;
    --brand-ink: #0c0f1d;
    --brand-soft: #1b2552;
    --live: #5fd492;
    --live-soft: #123323;
    --soon: #f3b45e;
    --soon-soft: #3a2a10;
    --contact-bg: #17225f;
    --contact-fg: #eef1ff;
    --contact-muted: #b6bfeb;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
p { margin: 0; }
.mono { font-family: var(--f-mono); font-size: 0.8em; }
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--brand); color: var(--brand-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { font-family: var(--f-display); font-weight: 800; font-size: 24px; letter-spacing: -0.04em; text-decoration: none; }
.brand span { color: var(--brand); }
.brand-small { font-size: 20px; }
.nav { display: flex; gap: 22px; margin-left: 12px; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--fg); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.lang button {
  font: 600 12px/1 var(--f-mono); letter-spacing: 0.05em;
  background: none; border: 0; color: var(--muted); padding: 6px 9px; border-radius: 999px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand); color: var(--brand-ink);
  font-weight: 600; text-decoration: none;
  padding: 13px 22px; border-radius: 999px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px -10px var(--brand); }
.btn-small { padding: 8px 16px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--fg); }

.eyebrow { font: 600 12px/1.2 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); }

/* Hero */
.hero { padding-block: clamp(56px, 9vw, 112px) clamp(56px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hero h1 { font-size: clamp(42px, 6.6vw, 82px); line-height: 0.98; font-weight: 800; }
.lede { font-size: clamp(18px, 1.6vw, 20px); color: var(--muted); max-width: 36rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

.status {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 22px; display: flex; flex-direction: column; gap: 16px;
  box-shadow: 0 30px 60px -40px rgba(18, 22, 42, .35);
  min-width: 0;
}
.status-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; }
.status-head .mono { color: var(--muted); }
.status-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.status-list li {
  display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 12px;
  padding: 13px 0; border-top: 1px solid var(--line); min-width: 0;
}
.status-name { font-weight: 600; font-size: 16px; overflow-wrap: anywhere; }
.status-next { color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.dot-live { background: var(--live); box-shadow: 0 0 0 4px var(--live-soft); animation: pulse 2.4s ease-in-out infinite; }
.dot-soon { background: var(--soon); }
.dot-next { background: transparent; border: 1.5px dashed var(--muted); }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px var(--live-soft); } }
.status-foot { font-size: 14px; color: var(--muted); }

.pill {
  font: 600 11px/1 var(--f-mono); letter-spacing: 0.04em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); white-space: nowrap;
}
.pill-live { background: var(--live-soft); color: var(--live); }
.pill-soon { background: var(--soon-soft); color: var(--soon); }

/* Sections */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 44rem; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.04; font-weight: 700; }
.section-lede { color: var(--muted); font-size: 18px; }

.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 12px; min-width: 0;
  transition: border-color .2s ease, transform .2s ease;
}
.service:hover { border-color: var(--brand); transform: translateY(-2px); }
.glyph { font-size: 20px; font-weight: 500; color: var(--brand); }
.service h3 { font-size: 22px; font-weight: 700; }
.service p { color: var(--muted); font-size: 16px; flex: 1; }
.tags { color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-size: 11px; }

.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.project {
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  background: var(--bg); display: flex; flex-direction: column; min-width: 0;
}
.project-img { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: var(--brand-soft); }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project:hover .project-img img { transform: scale(1.03); }
.project-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.project-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.project-meta .mono { color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-size: 11px; }
.project h3 { font-size: 28px; font-weight: 700; }
.project p { color: var(--muted); font-size: 16px; }
.facts { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.project-link { margin-top: auto; padding-top: 6px; color: var(--brand); font-size: 14px; text-decoration: none; font-weight: 500; }
a.project-link:hover { text-decoration: underline; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: none; }
.steps li { padding: 0 24px 0 0; display: flex; flex-direction: column; gap: 10px; border-top: 2px solid var(--line); padding-top: 20px; position: relative; }
.steps li::before { content: ""; position: absolute; top: -2px; left: 0; width: 40px; height: 2px; background: var(--brand); }
.step-n { color: var(--brand); font-size: 13px; font-weight: 500; }
.steps h3 { font-size: 22px; font-weight: 700; }
.steps p { color: var(--muted); font-size: 16px; }

/* Contact */
.contact { background: var(--contact-bg); color: var(--contact-fg); padding-block: clamp(64px, 9vw, 112px); }
.contact-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.contact h2 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.04; font-weight: 800; margin-block: 14px 18px; }
.contact p { color: var(--contact-muted); font-size: 18px; max-width: 34rem; }
.eyebrow-inv { color: #9fb2ff; }
.contact-card {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 10px; min-width: 0;
}
.contact-label { color: var(--contact-muted); text-transform: uppercase; letter-spacing: 0.1em; font-size: 11px; }
.contact-mail { font-family: var(--f-display); font-weight: 700; font-size: clamp(22px, 2.6vw, 30px); text-decoration: none; overflow-wrap: anywhere; color: #ffffff; }
.contact-mail:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-facts { list-style: none; margin: 8px 0 0; padding: 14px 0 0; border-top: 1px solid rgba(255, 255, 255, .14); display: flex; flex-direction: column; gap: 4px; color: var(--contact-muted); font-size: 15px; }

.foot { padding-block: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.foot-inner .mono { margin-left: auto; }

/* Responsive */
@media (max-width: 980px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
}
@media (max-width: 820px) {
  .nav { display: none; }
  .hero-grid, .contact-inner { grid-template-columns: 1fr; }
  .projects { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .services, .steps { grid-template-columns: 1fr; }
  .top-actions .btn-small { display: none; }
  .project-body, .service { padding: 20px; }
}
