/* ============================================================
   Bahamut Desenvolvimento de Software LTDA
   Brand guide: Bahamut Black #0A0A0A + Paper White #FFFFFF (strict mono)
   Wordmark: Exo 2 Light · Body/Tagline: Montserrat
   ============================================================ */

:root {
  --bg: #0A0A0A;
  --surface: #0E0E0E;
  --footer-bg: #070707;
  --white: #ffffff;
  --hairline: rgba(255, 255, 255, 0.08);
  --border-soft: rgba(255, 255, 255, 0.14);
  --border-strong: rgba(255, 255, 255, 0.22);
  --dim: #5e5e5e;
  --font-display: 'Exo 2', system-ui, sans-serif;
  --font-body: 'Montserrat', system-ui, sans-serif;
  --maxw: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--white); color: var(--bg); }

img { display: block; }

a, button { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 3px;
  border-radius: 4px;
}

section { scroll-margin-top: 88px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--white);
  color: var(--bg);
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 600;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ===================== NAV ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: inherit;
}
.brand-mark { width: 26px; height: 27px; flex-shrink: 0; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 16px;
  letter-spacing: 0.36em;
  padding-left: 0.36em;
}
.nav-right { display: flex; align-items: center; gap: 30px; }
.nav-link {
  text-decoration: none;
  color: #b0b0b0;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-link:hover { color: var(--white); }

.lang { display: flex; align-items: center; gap: 3px; margin-left: 4px; }
.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--dim);
  transition: color 0.2s ease;
}
.lang-btn[aria-pressed="true"] { color: var(--white); }
.lang-sep { color: #3a3a3a; font-size: 12px; }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 124px 28px 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}
.hero-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -54%);
  width: 660px;
  height: 672px;
  opacity: 0.06;
  pointer-events: none;
  max-width: none;
}
.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #7d7d7d;
  margin: 0 0 36px;
}
.hero-mark { width: 86px; height: 88px; margin-bottom: 30px; }
.wordmark {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(38px, 8vw, 88px);
  letter-spacing: 0.2em;
  line-height: 1;
  padding-left: 0.2em;
  margin: 0;
}
.legal-name {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(10px, 1.6vw, 13px);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #9a9a9a;
  margin: 20px 0 0;
}
.hero-headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 4.4vw, 46px);
  letter-spacing: -0.01em;
  line-height: 1.1;
  max-width: 780px;
  margin: 56px 0 0;
  text-wrap: balance;
}
.hero-sub {
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 400;
  line-height: 1.65;
  color: #a8a8a8;
  max-width: 580px;
  margin: 24px 0 0;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 42px;
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: 100px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--white); color: var(--bg); }
.btn-solid:hover { background: #e6e6e6; }
.btn-ghost { border: 1px solid rgba(255, 255, 255, 0.24); color: var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); }

/* ===================== SECTIONS / GRID ===================== */
.section { border-top: 1px solid var(--hairline); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 90px 28px; }

.kicker {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #7d7d7d;
  margin: 0 0 18px;
}
#estudio .kicker { margin-bottom: 48px; }

.grid { display: grid; gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); overflow: hidden; }
.grid-cards { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); border-radius: 18px; }
/* Weighted columns: more room for e-mail & address, less for phone & social */
.grid-contact { grid-template-columns: 1.3fr 1fr 1.4fr 1fr; border-radius: 18px; }
.grid-project { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); border-radius: 20px; }

/* ----- Estúdio cards ----- */
.card {
  background: var(--surface);
  padding: 42px 34px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card-num { font-family: var(--font-display); font-weight: 500; font-size: 13px; color: #666666; margin: 0; }
.card-title { font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: 0.005em; margin: 0; }
.card-desc { font-size: 14px; line-height: 1.65; color: #a0a0a0; margin: 0; }

/* ----- Projetos ----- */
.proj-head { margin-bottom: 44px; }
.proj-intro {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -0.005em;
  max-width: 620px;
  margin: 0;
}
.project-visual {
  background: var(--surface);
  padding: 44px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
}
.phone {
  width: 188px;
  height: 380px;
  border-radius: 30px;
  border: 1px solid var(--border-soft);
  background: #161616;
  padding: 9px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 23px;
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 11px);
  background-color: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.phone-mark { width: 40px; height: 41px; opacity: 0.16; }
.phone-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #525252;
  text-align: center;
  line-height: 1.6;
  margin: 0;
}
.project-info {
  background: var(--surface);
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}
.badge {
  align-self: flex-start;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 100px;
  padding: 7px 15px;
}
.badge-soon { color: #d8d8d8; border: 1px solid var(--border-strong); display: inline-block; }
.badge-live { color: var(--bg); background: var(--white); display: inline-block; }
.project-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: 0.01em;
  line-height: 1;
  margin: 0;
}
.project-desc {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: #a8a8a8;
  margin: 0;
  max-width: 430px;
}
.project-note {
  font-size: 13px;
  line-height: 1.6;
  color: #6e6e6e;
  border-top: 1px solid var(--hairline);
  padding-top: 20px;
  margin: 4px 0 0;
}
.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
  margin-top: 4px;
}
.store-btn {
  text-decoration: none;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 13px 20px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.2s ease;
}
.store-btn:hover { background: rgba(255, 255, 255, 0.07); }

/* ----- Project phase groups (before / after first launch) ----- */
.proj-group:not(:last-child) { margin-bottom: 40px; }
.proj-group-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.proj-group-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--white);
  white-space: nowrap;
}
.proj-group-rule { height: 1px; flex: 1; background: var(--hairline); }
.proj-group-count { font-family: var(--font-body); font-size: 12px; font-weight: 600; color: #666666; }

.proj-empty {
  background: #0B0B0B;
  border: 1px dashed rgba(255, 255, 255, 0.13);
  border-radius: 20px;
  padding: 58px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}
.proj-empty-mark { width: 36px; height: 37px; opacity: 0.1; }
.proj-empty-text {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 400;
  color: #6e6e6e;
  line-height: 1.65;
  max-width: 400px;
  margin: 0;
}

/* Phase visibility: default shows "before launch"; body.is-launched shows "after" */
.show-after { display: none; }
body.is-launched .show-before { display: none; }
body.is-launched .show-after { display: block; }

/* ----- Contato ----- */
.contact-intro {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: -0.005em;
  max-width: 580px;
  margin: 0 0 52px;
}
.contact-cell {
  background: var(--surface);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.contact-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6e6e6e;
  margin: 0;
}
.contact-value { color: var(--white); font-size: 15px; font-weight: 400; line-height: 1.5; margin: 0; }
.contact-hint { font-family: var(--font-body); font-size: 10px; color: #555555; margin: 0; }
.link { text-decoration: none; transition: color 0.2s ease; }
.link:hover { color: #cfcfcf; }

/* ===================== FOOTER ===================== */
.site-footer { border-top: 1px solid var(--hairline); background: var(--footer-bg); }
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-brand { display: flex; align-items: center; gap: 15px; }
.footer-mark { width: 25px; height: 25px; opacity: 0.42; flex-shrink: 0; }
.footer-name { font-size: 13px; color: #c4c4c4; font-weight: 500; margin: 0; }
.footer-legal { font-family: var(--font-body); font-size: 11px; color: #555555; margin: 5px 0 0; letter-spacing: 0.02em; }
.footer-nav {
  display: flex;
  gap: 24px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.footer-nav a { text-decoration: none; color: #8a8a8a; transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--white); }

/* ===================== MOTION (on-brand, restrained) ===================== */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes watermarkIn {
  from { opacity: 0; }
  to   { opacity: 0.06; }
}

/* Hero: staggered reveal on load */
.js .hero-inner > * { opacity: 0; animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.js .hero-inner > *:nth-child(1) { animation-delay: 0.05s; }
.js .hero-inner > *:nth-child(2) { animation-delay: 0.13s; }
.js .hero-inner > *:nth-child(3) { animation-delay: 0.21s; }
.js .hero-inner > *:nth-child(4) { animation-delay: 0.29s; }
.js .hero-inner > *:nth-child(5) { animation-delay: 0.40s; }
.js .hero-inner > *:nth-child(6) { animation-delay: 0.48s; }
.js .hero-inner > *:nth-child(7) { animation-delay: 0.56s; }
.js .hero-watermark { opacity: 0; animation: watermarkIn 1.3s ease 0.25s forwards; }

/* Sections: reveal on scroll */
.js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero-inner > *,
  .js .hero-watermark,
  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  .js .hero-watermark { opacity: 0.06 !important; }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 880px) {
  .container { padding: 74px 22px; }
  .hero { padding: 104px 22px 86px; }
  .grid-project { grid-template-columns: 1fr; }
  .project-visual { min-height: auto; padding: 44px 40px; }
  .project-info { padding: 40px 34px; }
  .grid-contact { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .nav { padding: 14px 18px; gap: 14px; }
  .nav-right { gap: 16px; }
  .nav-link { font-size: 11.5px; }
  .container { padding: 62px 20px; }
  .card { padding: 34px 28px; }
  .grid-contact { grid-template-columns: 1fr; }
  .contact-cell { padding: 30px 26px; }
  .footer-inner { padding: 36px 20px; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1 1 auto; text-align: center; }
}

@media (max-width: 460px) {
  /* One-pager: keep header minimal on phones; links remain in CTAs & footer */
  .nav-link { display: none; }
}

/* ===================== LEGAL / DOC PAGES ===================== */
a.lang-btn { text-decoration: none; display: inline-block; }
.lang-btn[aria-current="page"] { color: var(--white); }

.doc { max-width: 760px; margin: 0 auto; padding: 92px 28px 96px; }
.doc-eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #7d7d7d;
  margin: 0 0 18px;
}
.doc-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 5vw, 46px);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0;
}
.doc-updated { font-family: var(--font-body); font-size: 13px; color: #6e6e6e; margin: 16px 0 0; }
.doc-lead { font-size: clamp(15px, 2vw, 17px); line-height: 1.7; color: #a8a8a8; margin: 32px 0 0; max-width: 660px; }

.doc-body { margin-top: 8px; }
.doc-body section { margin-top: 44px; scroll-margin-top: 88px; border: 0; }
.doc-body h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.005em;
  color: var(--white);
  margin: 0 0 14px;
  display: flex;
  gap: 12px;
}
.doc-body h2 .n { color: var(--dim); font-weight: 500; }
.doc-body h3 { font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: 0.01em; color: #d8d8d8; margin: 22px 0 8px; }
.doc-body p { font-size: 15px; line-height: 1.75; color: #a8a8a8; margin: 0 0 12px; }
.doc-body ul { margin: 0 0 12px; padding-left: 20px; }
.doc-body li { font-size: 15px; line-height: 1.7; color: #a8a8a8; margin: 0 0 8px; }
.doc-body strong { color: #cfcfcf; font-weight: 600; }
.doc-body a {
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  transition: border-color 0.2s ease;
}
.doc-body a:hover { border-color: var(--white); }

.doc-contact-block {
  margin: 8px 0 0;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
}
.doc-contact-block p { margin: 0 0 4px; font-size: 14px; line-height: 1.6; color: #b8b8b8; }
.doc-contact-block p:last-child { margin-bottom: 0; }
.doc-contact-block .k { color: #6e6e6e; }

.doc-back { margin-top: 56px; }
.doc-back a {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a8a8a;
  text-decoration: none;
  transition: color 0.2s ease;
}
.doc-back a:hover { color: var(--white); }

@media (max-width: 600px) {
  .doc { padding: 68px 20px 72px; }
  .doc-contact-block { padding: 18px 18px; }
}

/* ===================== COOKIE CONSENT ===================== */
.consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  max-width: 720px;
  margin: 0 auto;
  background: rgba(14, 14, 14, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  transform: translateY(160%);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.45s ease;
}
.consent.is-visible { transform: none; opacity: 1; }
.consent-text { flex: 1 1 300px; margin: 0; font-size: 13px; line-height: 1.6; color: #b8b8b8; }
.consent-text a { color: var(--white); text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.3); }
.consent-text a:hover { border-color: var(--white); }
.consent-actions { display: flex; gap: 10px; flex-shrink: 0; }
.consent-btn {
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 11px 20px;
  border-radius: 100px;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.consent-accept { background: var(--white); color: var(--bg); border-color: var(--white); }
.consent-accept:hover { background: #e6e6e6; }
.consent-decline { background: none; color: #cfcfcf; border-color: rgba(255, 255, 255, 0.24); }
.consent-decline:hover { background: rgba(255, 255, 255, 0.07); }

@media (prefers-reduced-motion: reduce) {
  .consent { transition: opacity 0.2s ease; transform: none; }
}
@media (max-width: 520px) {
  .consent { left: 10px; right: 10px; bottom: 10px; padding: 16px; }
  .consent-actions { width: 100%; }
  .consent-btn { flex: 1 1 auto; }
}
