/* =========================================================
   SBW PROJECT — main.css
   Direção: institucional clara, modular e expansível.
   ========================================================= */

:root {
  --bg: #f3f4f6;
  --surface: #ffffff;
  --surface-soft: #eceff2;
  --ink: #101318;
  --muted: #666d76;
  --line: #d8dde2;
  --accent: #18bdf2;
  --accent-deep: #078db7;
  --dark: #11151a;
  --dark-soft: #1b2128;
  --max: 1240px;
  --radius: 24px;
  --shadow: 0 24px 70px rgba(16, 19, 24, .08);
  --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed;
  left: 16px; top: -80px;
  z-index: 999;
  background: var(--dark); color: #fff;
  padding: 12px 16px; border-radius: 10px;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

.container { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.section { padding: 110px 0; }
.eyebrow {
  margin: 0 0 18px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.section h2 {
  margin: 0;
  font-size: clamp(2.4rem, 4.7vw, 5.2rem);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 650;
}
.section-copy {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.03rem;
  max-width: 650px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 750;
  font-size: .92rem;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--dark); color: #fff; }
.button-primary:hover { background: var(--accent-deep); }
.button-secondary { border-color: #bcc3ca; background: transparent; }
.button-secondary:hover { border-color: var(--ink); background: var(--surface); }
.text-link, .card-link { display: inline-flex; gap: 10px; align-items: center; font-weight: 750; }
.text-link:hover, .card-link:hover { color: var(--accent-deep); }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.site-header.is-scrolled {
  background: rgba(243, 244, 246, .92);
  backdrop-filter: blur(18px);
  border-color: rgba(16,19,24,.08);
  box-shadow: 0 10px 30px rgba(16,19,24,.04);
}
.header-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.brand-mark { font-size: 1.62rem; font-weight: 950; letter-spacing: -.08em; }
.brand-sub { margin-top: 5px; font-size: .52rem; font-weight: 800; letter-spacing: .42em; }
.site-nav { display: flex; align-items: center; gap: 34px; font-size: .9rem; font-weight: 650; }
.site-nav a { position: relative; color: #323840; }
.site-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--accent);
  transition: right .2s ease;
}
.site-nav a:hover::after, .site-nav a.is-active::after { right: 0; }
.nav-cta { padding: 12px 18px; background: var(--dark); color: #fff !important; border-radius: 999px; }
.menu-toggle { display: none; border: 0; background: transparent; padding: 10px; }
.menu-toggle span:not(.sr-only) { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s ease; }

/* Hero */
.hero { min-height: 100vh; padding: 160px 0 90px; display: grid; align-items: center; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 72px; align-items: center; }
.hero-copy h1 {
  margin: 0;
  font-size: clamp(3.7rem, 7vw, 7.3rem);
  line-height: .88;
  letter-spacing: -.075em;
  font-weight: 680;
}
.hero-copy h1 span { font-family: var(--font-display); font-weight: 400; letter-spacing: -.055em; }
.hero-lead { margin: 30px 0 0; max-width: 660px; color: var(--muted); font-size: 1.08rem; line-height: 1.72; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 36px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 56px 0 0; padding: 0; }
.hero-stats div { padding-top: 18px; border-top: 1px solid var(--line); }
.hero-stats dt { font-size: 1.5rem; font-weight: 800; }
.hero-stats dd { margin: 5px 0 0; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; }
.hero-system {
  position: relative;
  padding: 58px 40px 38px;
  border-radius: 34px;
  background: linear-gradient(145deg, #fff 0%, #e9edf0 100%);
  border: 1px solid #dfe3e7;
  box-shadow: var(--shadow);
}
.hero-system::before {
  content: "";
  position: absolute;
  width: 240px; height: 240px;
  right: -50px; top: -50px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(24,189,242,.15), transparent 70%);
}
.system-panel { position: relative; z-index: 1; }
.system-root { max-width: 420px; margin-inline: auto; padding: 26px; text-align: center; border: 1px solid #b8c0c8; background: rgba(255,255,255,.75); }
.system-root strong { display: block; font-size: 1.35rem; letter-spacing: .05em; }
.system-root > span:last-child { display: block; margin-top: 8px; color: var(--muted); font-size: .69rem; text-transform: uppercase; letter-spacing: .14em; }
.system-kicker { display: block; margin-bottom: 8px; color: var(--accent-deep); font-size: .62rem; font-weight: 900; letter-spacing: .18em; }
.system-line { width: 1px; height: 52px; background: #99a4ae; margin: 0 auto; position: relative; }
.system-line::after { content:""; position:absolute; width:78%; max-width:520px; min-width:340px; height:1px; background:#99a4ae; bottom:0; left:50%; transform:translateX(-50%); }
.system-nodes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; position: relative; }
.system-node { min-height: 155px; padding: 18px; background: #fff; border: 1px solid #ccd2d7; display: flex; flex-direction: column; justify-content: space-between; }
.system-node span { font-size: .7rem; color: var(--accent-deep); font-weight: 900; letter-spacing: .13em; }
.system-node strong { font-size: .98rem; line-height: 1.2; }
.system-future { background: transparent; border-style: dashed; }

/* Brands */
.brands-section { background: var(--surface); }
.section-heading { display: grid; grid-template-columns: 1fr .7fr; gap: 80px; align-items: end; margin-bottom: 54px; }
.section-heading > p { color: var(--muted); line-height: 1.75; margin: 0 0 6px; }
.brand-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.brand-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.brand-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.brand-media { height: 280px; }
.placeholder-media {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(255,255,255,.8), transparent 55%),
    repeating-linear-gradient(90deg, #e4e8eb 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, #e4e8eb 0 1px, transparent 1px 64px),
    #edf0f2;
}
.placeholder-media::before { content:""; position:absolute; width:55%; aspect-ratio:1; border:1px solid #c4ccd2; transform:rotate(45deg); }
.placeholder-media span { position: relative; z-index: 1; padding: 9px 12px; background: rgba(255,255,255,.8); color: #727a82; font-size: .62rem; font-weight: 800; letter-spacing: .14em; }
.brand-card-body { padding: 26px; }
.brand-meta { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 34px; font-size: .61rem; font-weight: 900; letter-spacing: .13em; color: var(--muted); }
.brand-card h3 { margin: 0; font-size: 2rem; letter-spacing: -.045em; }
.brand-card p { min-height: 76px; color: var(--muted); line-height: 1.6; }
.brand-tags { display: flex; gap: 7px; flex-wrap: wrap; margin: 22px 0 28px; }
.brand-tags span { padding: 7px 9px; border: 1px solid #cdd3d8; border-radius: 999px; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }
.card-link { padding-top: 18px; border-top: 1px solid var(--line); width: 100%; justify-content: space-between; }

/* Ecosystem */
.ecosystem { background: var(--dark); color: #fff; }
.ecosystem .eyebrow { color: #69d7fa; }
.ecosystem .section-copy { color: #aeb7c0; }
.ecosystem-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; align-items: start; }
.ecosystem .button-secondary { border-color: #4c5660; color: #fff; }
.ecosystem .button-secondary:hover { background: #fff; color: var(--ink); }
.principles { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid #343c44; border-left: 1px solid #343c44; }
.principles article { min-height: 230px; padding: 26px; border-right: 1px solid #343c44; border-bottom: 1px solid #343c44; }
.principles span { color: #69d7fa; font-size: .7rem; font-weight: 900; letter-spacing: .15em; }
.principles h3 { margin: 62px 0 12px; font-size: 1.25rem; }
.principles p { margin: 0; color: #9ca6af; line-height: 1.6; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.about-visual { min-height: 540px; position: relative; overflow: hidden; border-radius: var(--radius); background: #e1e5e8; }
.about-block { position: absolute; background: #fff; border: 1px solid #cbd2d8; }
.block-a { width: 48%; height: 72%; left: 7%; top: 10%; transform: rotate(-4deg); }
.block-b { width: 38%; height: 55%; right: 9%; top: 24%; background: #151a20; transform: rotate(6deg); }
.block-c { width: 23%; height: 28%; left: 39%; bottom: 5%; background: var(--accent); opacity: .7; transform: rotate(12deg); }
.about-visual > span { position: absolute; left: 28px; bottom: 24px; z-index: 2; font-size: .66rem; font-weight: 850; letter-spacing: .2em; }

/* Future */
.future-section { padding-top: 20px; }
.future-box {
  display: grid; grid-template-columns: 1.1fr .8fr auto; gap: 56px; align-items: center;
  padding: 48px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.future-box h2 { font-size: clamp(2.2rem, 4vw, 4rem); }
.future-box > p { margin: 0; color: var(--muted); line-height: 1.7; }
.future-plus { width: 86px; aspect-ratio: 1; border: 1px dashed #aeb6bd; display: grid; place-items: center; font-size: 3rem; color: var(--accent-deep); }

/* Contact */
.contact-section { padding-bottom: 120px; }
.contact-grid { display: grid; grid-template-columns: 1fr .75fr; gap: 80px; align-items: end; }
.contact-panel { padding: 34px; border-left: 3px solid var(--accent); background: var(--surface); }
.contact-panel p { margin: 0 0 28px; color: var(--muted); line-height: 1.7; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 34px 0; }
.footer-grid { display: grid; grid-template-columns: auto 1fr auto; gap: 34px; align-items: center; }
.footer-brand .brand-mark { font-size: 1.3rem; }
.site-footer nav { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; font-size: .78rem; color: var(--muted); }
.site-footer nav a:hover { color: var(--ink); }
.site-footer p { margin: 0; font-size: .72rem; color: var(--muted); }

/* Internal pages */
.page-hero { padding: 170px 0 86px; }
.page-hero h1 { margin: 0; font-size: clamp(3.2rem, 7vw, 7rem); line-height: .9; letter-spacing: -.065em; }
.page-hero p:not(.eyebrow) { max-width: 720px; color: var(--muted); line-height: 1.75; font-size: 1.05rem; }
.content-grid { display: grid; grid-template-columns: .55fr 1fr; gap: 80px; }
.content-grid aside { position: sticky; top: 120px; align-self: start; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.prose h2 { margin: 0 0 22px; font-size: 2.4rem; letter-spacing: -.045em; }
.prose h3 { margin: 46px 0 14px; font-size: 1.35rem; }
.prose p, .prose li { color: var(--muted); line-height: 1.8; }
.prose section + section { margin-top: 70px; padding-top: 70px; border-top: 1px solid var(--line); }
.brand-detail { display: grid; grid-template-columns: 150px 1fr; gap: 28px; padding: 28px 0; border-top: 1px solid var(--line); }
.brand-detail:first-child { border-top: 0; }
.brand-detail .code { font-size: .72rem; color: var(--accent-deep); font-weight: 900; letter-spacing: .12em; }
.contact-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.contact-option { padding: 24px; border: 1px solid var(--line); background: var(--surface); }
.contact-option strong { display: block; margin-bottom: 10px; }
.contact-option span { color: var(--muted); font-size: .9rem; }

/* Reveal — progressive enhancement: content stays visible if JS is unavailable */
.reveal { opacity: 1; transform: none; }
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
html.js .reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
