:root {
  color: #f4f8ff;
  background: #061124;
  font-family: "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body { margin: 0; min-width: 320px; }

.landing {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: 100%;
  height: 100dvh;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
  background: #061124 url("/assets/nodus-future-grid.png") center / cover no-repeat;
}

.license-page { height: 100dvh; min-height: 0; grid-template-rows: 72px minmax(0, 1fr) 48px; }
.license-page .topbar, .license-page footer { min-height: 0; }

.landing::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgba(2, 10, 26, .62);
  content: "";
}

.topbar,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 64px, 1440px);
  margin-inline: auto;
}

.topbar { min-height: 90px; }
.topnav { display: flex; align-items: center; gap: 18px; }
.license-link { display: inline-flex; align-items: center; min-height: 42px; padding: 10px 16px; border: 1px solid #369acb; border-radius: 7px; color: #d5efff; background: rgba(5, 23, 46, .7); font-size: .9rem; font-weight: 700; text-decoration: none; }
.license-link:hover { background: #123955; color: #fff; }
a:focus-visible { outline: 3px solid #78d8ff; outline-offset: 4px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: #ffffff; font-size: 1rem; font-weight: 750; letter-spacing: 0; text-decoration: none; }
.brand img { width: 30px; height: 30px; filter: drop-shadow(0 5px 12px rgba(29, 164, 255, .42)); }
.brand b { color: #4fc5ff; font-weight: 750; }

.platform {
  padding: 8px 12px;
  border: 1px solid rgba(128, 206, 255, .34);
  border-radius: 7px;
  background: rgba(5, 23, 46, .58);
  color: #bfe8ff;
  font-size: .82rem;
  font-weight: 700;
}

.hero {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  width: min(100% - 64px, 1440px);
  margin-inline: auto;
  padding-bottom: 2vh;
}

.eyebrow { margin: 0 0 15px; color: #78d8ff; font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1 { max-width: 680px; margin: 0; color: #fff; font-size: clamp(4rem, 9vw, 8.6rem); font-weight: 780; letter-spacing: 0; line-height: .85; }
h1 em { color: #49bcff; font-style: normal; }
.intro { max-width: 470px; margin: 28px 0 24px; color: #d5e8fa; font-size: clamp(1rem, 1.3vw, 1.18rem); line-height: 1.55; }

.download {
  display: inline-flex;
  align-items: center;
  min-height: 62px;
  gap: 13px;
  padding: 9px 20px 9px 10px;
  border: 1px solid #6bd7ff;
  border-radius: 8px;
  background: #1599e8;
  box-shadow: 0 15px 32px rgba(0, 132, 225, .36);
  color: #fff;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.download:hover { background: #27acef; box-shadow: 0 18px 38px rgba(0, 159, 237, .46); transform: translateY(-2px); }
.download-icon { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(255, 255, 255, .52); border-radius: 6px; background: rgba(5, 55, 98, .26); font-size: 1.55rem; line-height: 1; }
.download b,.download small { display: block; }
.download b { font-size: 1rem; }
.download small { margin-top: 2px; color: #d8f1ff; font-size: .75rem; font-weight: 600; }
.compatibility { margin: 12px 0 0; color: #a9cae4; font-size: .76rem; }

.license { display: flex; align-items: center; min-height: 0; }
.license-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; width: min(100% - 64px, 1160px); margin-inline: auto; padding: 20px 0; }
.license h1 { margin: 0; font-size: 2.6rem; line-height: 1.15; }
.license .intro { margin: 20px 0 0; font-size: 1.05rem; }
.license-price { margin: 0; color: #fff; font-size: 3.5rem; font-weight: 750; line-height: 1.1; }
.license-price span { font-size: 1.6rem; }
.license-price small { color: #b5d4eb; font-size: 1rem; font-weight: 400; }
.license-billing { margin: 12px 0 24px; color: #78d8ff; font-size: .95rem; }
.license-limits { margin: 0 0 24px; font-size: .9rem; }
.license-limits div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(141, 208, 255, .16); }
.license-limits dt { color: #b5d4eb; }
.license-limits dd { margin: 0; text-align: right; font-weight: 700; }
.license-contact { justify-content: space-between; width: 100%; padding: 12px 18px; }
.license-features { margin-top: 24px; }
.feature-tabs { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 1px solid rgba(141, 208, 255, .24); }
.feature-tabs button { flex: 1; min-height: 40px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #b5d4eb; font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; }
.feature-tabs button[aria-selected="true"] { border-bottom-color: #4fc5ff; color: #78d8ff; background: rgba(21, 153, 232, .12); }
.feature-tabs button:focus-visible { outline: 2px solid #78d8ff; outline-offset: -2px; }
.license-features [role="tabpanel"] { min-height: 130px; }
.license-features ul { margin: 0; padding-left: 18px; color: #b5d4eb; font-size: .9rem; line-height: 1.6; }
.license-features li + li { margin-top: 10px; }
.license-features li::marker { color: #4fc5ff; }

.donation-offer { position: relative; text-align: center; }
.donation-offer h2 { margin: 0; font-size: 1.3rem; }
.donation-intro { margin: 10px 0 16px; color: #b5d4eb; font-size: .9rem; line-height: 1.5; }
.pix-qr { display: block; width: 200px; height: 200px; max-width: 100%; margin-inline: auto; object-fit: contain; image-rendering: pixelated; background: white; }
.pix-recipient { margin: 12px 0; font-size: .9rem; font-weight: 600; }
.pix-recipient span { display: block; margin-top: 4px; color: #b5d4eb; font-size: .78rem; font-weight: 400; }
.pix-copy { justify-content: center; font: inherit; font-weight: 700; cursor: pointer; }
.pix-status { min-height: 18px; margin: 8px 0 0; color: #78d8ff; font-size: .8rem; }
.pix-code-toggle { margin-top: 4px; padding: 0; color: #b5d4eb; background: transparent; border: 0; font: inherit; font-size: .78rem; cursor: pointer; }
.pix-code { width: min(90%, 480px); padding: 20px; color: #f4f8ff; background: #07121f; border: 1px solid #315b76; border-radius: 6px; }
.pix-code::backdrop { background: rgba(0, 0, 0, .65); }
.pix-code textarea { display: block; width: 100%; height: 84px; margin: 12px 0; resize: none; overflow-wrap: anywhere; color: #f4f8ff; background: #020a14; border: 1px solid #315b76; border-radius: 4px; }

@media (max-width: 900px) {
  .license-inner { column-gap: 32px; }
  .license-limits div { gap: 12px; }
}

footer { min-height: 68px; gap: 12px; padding-right: calc(72px + env(safe-area-inset-right)); border-top: 1px solid rgba(141, 208, 255, .16); color: #b5d4eb; font-size: .76rem; line-height: 1.2; }
footer span { flex: 1; min-width: 0; }
footer span:first-child { color: #60d7ff; font-weight: 700; }
footer span:last-child { text-align: right; }

.whatsapp-contact { position: fixed; z-index: 10; right: max(16px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); display: grid; width: 52px; height: 52px; place-items: center; border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%; background: #16b85a; box-shadow: 0 4px 16px rgba(0, 0, 0, .3); }
.whatsapp-contact:hover { background: #0f9447; }
.whatsapp-contact img { display: block; }

@media (max-width: 620px) {
  .landing { min-height: 520px; background-position: 58% center; }
  .topbar, .hero, footer, .license-inner { width: min(100% - 36px, 1440px); }
  .topbar { min-height: 76px; }
  .platform { display: none; }
  h1 { font-size: clamp(3.6rem, 18vw, 5.4rem); }
  .intro { max-width: 360px; margin: 22px 0; font-size: .98rem; }
  .license-page { min-height: 0; grid-template-rows: 60px minmax(0, 1fr) 32px; }
  .license-inner { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-block: 8px; }
  .license .eyebrow { margin-bottom: 8px; font-size: .68rem; }
  .license h1 { font-size: 1.65rem; }
  .license .intro { margin-top: 8px; font-size: .875rem; line-height: 1.4; }
  .license-features { margin-top: 12px; }
  .feature-tabs { margin-bottom: 10px; }
  .feature-tabs button { min-height: 32px; font-size: .8rem; }
  .license-features [role="tabpanel"] { min-height: 102px; }
  .license-features ul { font-size: .8rem; line-height: 1.4; }
  .license-features li + li { margin-top: 6px; }
  .license-price { font-size: 2.4rem; }
  .license-price span { font-size: 1.2rem; }
  .license-billing { display: none; }
  .license-limits { margin: 10px 0 12px; font-size: .8rem; }
  .license-limits div { padding: 8px 0; }
  .license-contact { min-height: 52px; padding: 10px 12px; }
  .license-contact b { font-size: .85rem; }
  .license-contact small { font-size: .68rem; }
  .license-link { padding-inline: 12px; }
  footer { min-height: 58px; font-size: .67rem; }
}

@media (max-width: 620px) and (max-height: 670px) {
  .license .intro { display: none; }
  .license-page { grid-template-rows: 52px minmax(0, 1fr) 28px; }
}

@media (max-width: 620px) {
  .donation-page .license .intro { margin-bottom: 0; }
  .donation-offer h2 { font-size: 1.05rem; }
  .donation-intro { margin: 6px 0 10px; font-size: .78rem; line-height: 1.4; }
  .pix-qr { width: 144px; height: 144px; }
  .donation-page .license-features { margin-top: 8px; }
  .donation-page .license-features [role="tabpanel"] { min-height: 92px; }
  .pix-recipient { margin: 8px 0; font-size: .8rem; }
  .pix-copy { min-height: 40px; }
}
@media (max-height: 670px) {
  .donation-page .license-features { display: none; }
  .donation-page .pix-qr { width: 144px; height: 144px; }
}
