/* ── CorbStation Design System ── */

:root {
  --bg:     #FAFAF7;
  --ink:    #0A0A08;
  --blue:   #1C3FBD;
  --b-dim:  rgba(28,63,189,0.10);
  --rule:   rgba(10,10,8,0.10);
  --muted:  #6B6B60;
  --paper:  #F2F2EC;
  --white:  #FFFFFF;
  --max:    1440px;
  --pad:    40px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; min-width: 0; }
html { scroll-behavior: smooth; width: 100%; max-width: 100%; overflow-x: clip; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  line-height: 1.5;
}
h1,h2,h3,h4,h5,h6 {
  font-family: 'Roboto', sans-serif;
}
a { color: inherit; }
img, svg, video, canvas { max-width: 100%; height: auto; display: block; }
@supports not (overflow-x: clip) {
  html, body { overflow-x: hidden; }
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(10,10,8,0.25); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(10,10,8,0.40); }

/* ── Animations ── */
@keyframes scrollFeed {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
@keyframes blink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0; }
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cursor::after { content: '|'; animation: blink 1s step-end infinite; color: var(--blue); }
.animate-in    { animation: fadeUp 0.55s ease both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Utilities ── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.rule      { width: 100%; height: 1px; background: var(--ink); opacity: .12; }
.rule-thick{ width: 100%; height: 2px; background: var(--ink); }
.mono      { font-family: 'DM Mono', monospace; }
.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 21px;
  font-weight: 500;
  color: #3074EF;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.tag       {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px;
  border: 1px solid rgba(28,63,189,0.35);
  background: var(--b-dim);
  color: var(--blue);
  font-size: 11px; font-weight: 600;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.8px; text-transform: uppercase;
}
.tag.light {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.75);
}

/* ── Buttons ── */
.btn        { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 17px; border: none; border-radius: 5px; transition: all .15s; text-decoration: none; }
.btn-blue   { padding: 12px 22px; background: var(--blue); color: #fff; }
.btn-blue:hover { background: #1735A8; }
.btn-outline{ padding: 12px 22px; border: 2px solid var(--ink); background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-white  { padding: 12px 22px; background: #fff; color: var(--blue); }
.btn-white:hover { background: #f0f0f0; }
.btn-outline-light { padding: 12px 22px; border: 2px solid #F5F5F5; background: transparent; color: #F5F5F5; }
.btn-outline-light:hover { background: #F5F5F5; color: #0c0c0c; }
.btn-lg     { padding: 14px 28px; font-size: 18px; }
.btn-sm     { padding: 9px 18px; font-size: 14px; }

/* ── Header ── */

/* Container fixo */
#site-header { transition: background-color 0.2s, backdrop-filter 0.2s; }
#site-header.scrolled { background: rgba(12,12,12,0.97) !important; backdrop-filter: blur(8px); }
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 200; background: #0c0c0c; }
.header-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 88px; }

/* Logo */
.header-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; height: 100%; justify-self: start; }
.header-logo-img { height: 90px; width: auto; max-width: 200px; object-fit: contain; display: block; }

/* Navegação desktop */
.header-nav { display: flex; gap: 28px; align-items: center; justify-self: center; }
.nav-link {
  font-family: 'DM Sans', sans-serif; font-size: 20px; font-weight: 500;
  color: #F5F5F5; text-decoration: none; transition: color 0.2s;
}
.nav-link[aria-current="page"], .mobile-nav-link[aria-current="page"] { color: #3074EF !important; }

/* Ações (botões CTA) */
.header-actions { display: flex; gap: 8px; justify-self: end; }

/* Menu mobile */
.mobile-menu { display: none; background: #0c0c0c; border-top: 2px solid rgba(255,255,255,0.08); padding: 16px var(--pad) 24px; }
.mobile-nav-link { display: block; padding: 11px 0; font-family: 'DM Sans', sans-serif; font-size: 18px; font-weight: 500; color: #F5F5F5; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
.mobile-actions { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }

/* Hamburguer */
.hamburger-btn { background: none; border: none; cursor: pointer; padding: 4px; display: flex; flex-direction: column; gap: 4px; }
#mobile-menu-btn .bar { display: block; width: 22px; height: 2px; background: #F5F5F5; transition: all 0.2s; }
#mobile-menu-btn.open .bar:first-child { transform: rotate(45deg) translateY(6px); }
#mobile-menu-btn.open .bar:nth-child(2) { opacity: 0; }
#mobile-menu-btn.open .bar:last-child { transform: rotate(-45deg) translateY(-6px); }

/* ── Footer ── */
.site-footer { background: #0c0c0c; border-top: 2px solid var(--ink); padding: 24px var(--pad); }
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  margin-bottom: 16px; padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo-img {
  height:100px;object-fit:contain;display:block
}
.footer-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; justify-self: start;}
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; justify-self: center; }
.footer-a {
  font-family: 'DM Sans', sans-serif; font-size: 18px;
  color: #F5F5F5; text-decoration: none;
  transition: color 0.15s; white-space: nowrap;
}
.footer-a:hover { text-decoration: underline !important; }
.footer-social { display: flex; gap: 16px; align-items: center; justify-self: end; }
.footer-social a { display: flex; align-items: center; color: #F5F5F5; transition: opacity .15s; }
.footer-social a:hover { opacity: .7; }
.footer-social svg { width: 24px; height: 24px; }
.footer-bottom {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 12px;
}
.footer-copy { font-family: 'DM Mono', monospace; font-size: 11px; color: #F5F5F5; text-align: center; grid-column: 2; }
.footer-legal { display: flex; gap: 16px; grid-column: 3; justify-self: end; }
.footer-legal a {
  font-family: 'DM Mono', monospace; font-size: 11px;
  color: #F5F5F5; text-decoration: none;
}

/* ── Cards ── */
.card       { background: #fff; border: 1px solid var(--rule); padding: 28px 24px; transition: all .2s; }
.card:hover { border-color: rgba(28,63,189,.25); box-shadow: 0 4px 20px rgba(28,63,189,.08); }



/* ── Responsive ── */
@media (min-width: 961px) {
  #mobile-menu { display: none !important; }
}
@media (max-width: 960px) {
  :root { --pad: 20px; }
  .desktop-only { display: none !important; }
  .mobile-show  { display: flex !important; }
  .header-inner { grid-template-columns: auto 1fr !important; }
  .header-logo-img { height: 76px; }
  .site-footer { padding:16px var(--pad) 36px !important; }
  .footer-top { grid-template-columns: 1fr !important; gap: 16px; justify-items: start; }
  .footer-nav { justify-self: center !important; gap: 14px; }
  .footer-a { font-size: 16px; }
  .footer-logo img { height: 46px !important; }
  .footer-social { justify-self: center !important; }
  .footer-social svg { width: 20px; height: 20px; }
  .footer-bottom { grid-template-columns: 1fr !important; justify-items: center !important; gap: 10px; }
  .footer-copy { grid-column: auto !important; text-align: center !important; }
  .footer-legal { grid-column: auto !important; justify-self: center !important; }
  .footer-legal a { font-size: 12px; }
  .footer-copy { font-size: 12px; }
  .grid-3  { grid-template-columns: 1fr !important; }
  .grid-2  { grid-template-columns: 1fr !important; }
  .flex-col-m { flex-direction: column !important; }
}
@media (max-width: 600px) {
  .btn { width: auto; justify-content: center; text-align: center; padding-left: 32px; padding-right: 32px; }
  .btn-lg { padding: 13px 18px; }
  .grid-2-sm { grid-template-columns: 1fr !important; }
  .hide-sm   { display: none !important; }
}
.mobile-show { display: none; }