:root {
  --color-bg: #fff;
  --color-surface: #f8f9fa;
  --color-surface-dark: #f1f3f5;
  --color-text-primary: #1a1a1a;
  --color-text-secondary: #5c677d;
  --color-accent: #06c;
  --color-line: #00000014;
  --font-display: "Montserrat", sans-serif;
  --font-body: "Droid Sans", sans-serif;
  --ease-fluid: cubic-bezier(.32, .72, 0, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, .display-text {
  font-family: var(--font-display);
  letter-spacing: -.02em;
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.1;
}

h1 { font-size: clamp(3rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2.5rem, 5vw, 4rem); }
h3 { letter-spacing: -.01em; font-size: clamp(1.25rem, 2.5vw, 1.75rem); }

p {
  color: var(--color-text-secondary);
  max-width: 60ch;
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 10rem 0; }

.glass-pill {
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  background: #fffc;
  border: 1px solid #0000000d;
  box-shadow: 0 4px 24px #0000000a;
}

.label-micro {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--color-accent);
  background: #0066cc0d;
  border-radius: 2rem;
  margin-bottom: 1.5rem;
  padding: .5rem 1rem;
  font-size: .75rem;
  font-weight: 600;
  display: inline-block;
}

.btn-premium {
  background: var(--color-text-primary);
  color: var(--color-bg);
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .05em;
  cursor: pointer;
  transition: transform .6s var(--ease-fluid), box-shadow .6s var(--ease-fluid);
  border-radius: 4rem;
  align-items: center;
  gap: 1.5rem;
  padding: .75rem .75rem .75rem 2rem;
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
}

.btn-premium:hover {
  transform: scale(.98);
  box-shadow: 0 10px 30px #00000026;
}

.btn-icon-wrapper {
  width: 3rem;
  height: 3rem;
  transition: transform .6s var(--ease-fluid);
  background: #ffffff26;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  display: flex;
}

.btn-premium:hover .btn-icon-wrapper {
  background: var(--color-accent);
  transform: translate(4px, -2px) scale(1.05);
}

nav {
  z-index: 50;
  width: calc(100% - 3rem);
  max-width: 1200px;
  transition: all .4s var(--ease-fluid);
  border-radius: 3rem;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  display: flex;
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translate(-50%);
}

.logo {
  font-family: var(--font-display);
  letter-spacing: -.02em;
  color: var(--color-text-primary);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-links { gap: 2.5rem; display: flex; }

.nav-links a {
  color: var(--color-text-secondary);
  transition: color .4s var(--ease-fluid);
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-links a:hover { color: var(--color-text-primary); }

.hero {
  align-items: center;
  min-height: 100dvh;
  padding-top: 8rem;
  display: flex;
  position: relative;
  overflow: hidden;
}

.hero-bg-blur {
  filter: blur(60px);
  z-index: -1;
  background: radial-gradient(circle, #0066cc0d 0%, #fff0 70%);
  border-radius: 50%;
  width: 60vw;
  height: 60vw;
  position: absolute;
  top: 10%;
  right: -10%;
}

.hero .content-wrapper { max-width: 800px; }

.bento-grid {
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  margin-top: 5rem;
  display: grid;
}

.card-shell {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 2rem;
  height: 100%;
  padding: .5rem;
}

.card-core {
  background: var(--color-bg);
  height: 100%;
  transition: transform .6s var(--ease-fluid), background .6s var(--ease-fluid);
  border-radius: 1.5rem;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem;
  display: flex;
  box-shadow: inset 0 1px 2px #00000005;
}

.card-shell:hover .card-core { background: var(--color-surface-dark); }

.card-icon {
  background: var(--color-surface);
  width: 4rem;
  height: 4rem;
  color: var(--color-text-primary);
  border-radius: 1rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
  display: flex;
}

.bento-large { grid-column: span 8; }
.bento-medium { grid-column: span 4; }
.bento-full { grid-column: span 12; }

.hero-grid {
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  gap: 4rem;
  display: grid;
}

.hero-image-wrapper {
  border-radius: 2rem;
  height: 600px;
  overflow: hidden;
  box-shadow: 0 20px 40px #0000001a;
}

.support-card-grid {
  grid-template-columns: 1fr 1fr;
  height: 100%;
  display: grid;
}

.support-card-image {
  background: url(support_real.png) 50% / cover;
  height: 100%;
}

.legacy-grid {
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 4rem;
  display: grid;
}

.contact-grid {
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  display: grid;
}

.footer-bottom {
  border-top: 1px solid var(--color-line);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: .05em;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  margin-top: 6rem;
  padding-top: 2rem;
  font-size: .75rem;
  font-weight: 500;
  display: flex;
}

.hamburger {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  cursor: pointer;
  border-radius: 50%;
  flex-direction: column;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  display: none;
  position: relative;
}

.hamburger-line {
  background: var(--color-text-primary);
  width: 1.1rem;
  height: 1.5px;
  transition: transform .5s var(--ease-fluid);
  border-radius: 2px;
  position: absolute;
}

.hamburger-line:first-child { transform: translateY(-4px); }
.hamburger-line:nth-child(2) { transform: translateY(4px); }
.hamburger.open .hamburger-line:first-child { transform: rotate(45deg); }
.hamburger.open .hamburger-line:nth-child(2) { transform: rotate(-45deg); }

.mobile-menu {
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity .4s var(--ease-fluid), visibility .4s var(--ease-fluid);
  background: #fffffff2;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: .25rem;
  display: flex;
  position: fixed;
  inset: 0;
}

.mobile-menu.open { opacity: 1; pointer-events: all; visibility: visible; }

.mobile-menu a {
  font-family: var(--font-display);
  color: var(--color-text-primary);
  letter-spacing: -.03em;
  opacity: 0;
  transition: opacity .5s var(--ease-fluid), transform .5s var(--ease-fluid), color .3s ease;
  font-size: clamp(2rem, 10vw, 3.5rem);
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  transform: translateY(1.5rem);
}

.mobile-menu.open a:first-child { opacity: 1; transition-delay: 60ms; transform: translateY(0); }
.mobile-menu.open a:nth-child(2) { opacity: 1; transition-delay: .12s; transform: translateY(0); }
.mobile-menu.open a:nth-child(3) { opacity: 1; transition-delay: .18s; transform: translateY(0); }
.mobile-menu.open a:nth-child(4) { opacity: 1; transition-delay: .24s; transform: translateY(0); }
.mobile-menu.open a:nth-child(5) { opacity: 1; transition-delay: .3s; transform: translateY(0); }
.mobile-menu a:hover { color: var(--color-accent); }

@media (width <= 1024px) {
  .bento-large, .bento-medium { grid-column: span 6; }
}

@media (width <= 768px) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2.25rem; }
  .bento-large, .bento-medium, .bento-full { grid-column: span 12; }
  section { padding: 5rem 0; }
  .card-core { padding: 2rem; }
  nav { width: calc(100% - 2rem); padding: .875rem 1.25rem; top: 1rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero { padding-top: 5rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-image-wrapper { height: 260px; }
  .support-card-grid { grid-template-columns: 1fr; }
  .support-card-image { height: 200px; }
  .legacy-grid { grid-template-columns: 1fr; align-items: start; gap: 1.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .faq-question { font-size: 1.25rem; }
  .faq-item.active .faq-answer { max-height: 300px; }
  .marquee-content h3 { font-size: 1.75rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: .75rem; margin-top: 3rem; }
  #contato { padding-bottom: 8rem; }
}

@media (width <= 480px) {
  .container { padding: 0 1.25rem; }
  section { padding: 4rem 0; }
  .card-core { padding: 1.5rem; }
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.875rem; }
  .btn-premium { padding: .65rem .65rem .65rem 1.5rem; font-size: .8rem; }
  .btn-icon-wrapper { width: 2.5rem; height: 2.5rem; }
}

.reveal {
  opacity: 0;
  filter: blur(6px);
  transition: opacity 1s var(--ease-fluid), transform 1s var(--ease-fluid), filter 1s var(--ease-fluid);
  transform: translateY(2rem);
}

.reveal.active {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.marquee-wrapper {
  white-space: nowrap;
  width: 100%;
  padding: 2rem 0;
  display: flex;
  position: relative;
  overflow: hidden;
}

.marquee-content {
  gap: 4rem;
  padding-right: 4rem;
  animation: 30s linear infinite marquee;
  display: flex;
}

.marquee-content h3 {
  font-family: var(--font-display);
  color: var(--color-text-secondary);
  opacity: .5;
  letter-spacing: -.02em;
  margin: 0;
  font-size: 2.5rem;
}

.marquee-content.dark h3 { color: #fff6; }

@keyframes marquee {
  0% { transform: translate(0); }
  to { transform: translate(-100%); }
}

.faq-item {
  border-bottom: 1px solid var(--color-line);
  padding: 2rem 0;
}

.faq-question {
  cursor: pointer;
  font-family: var(--font-display);
  color: var(--color-text-primary);
  justify-content: space-between;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
}

.faq-question .icon { transition: transform .5s var(--ease-fluid); }

.faq-answer {
  max-height: 0;
  transition: max-height .4s var(--ease-fluid);
  color: var(--color-text-secondary);
  font-size: 1.125rem;
  overflow: hidden;
}

.faq-item.active .faq-answer { max-height: 280px; margin-top: 1rem; }
.faq-item.active .faq-question .icon { transform: rotate(45deg); }

input, textarea {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  width: 100%;
  font-family: var(--font-body);
  color: var(--color-text-primary);
  transition: border-color .4s var(--ease-fluid);
  border-radius: 1rem;
  outline: none;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  font-size: 1rem;
}

input:focus, textarea:focus {
  border-color: var(--color-accent);
  transition: border-color .4s var(--ease-fluid);
}

.form-status {
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
}

.form-status:empty { display: none; }
.form-status-success { color: #1a9e5c; }
.form-status-error { color: #c0392b; }

button[type="submit"]:disabled { opacity: 0.6; cursor: not-allowed; }

#cookie-banner {
  z-index: 100;
  width: calc(100% - 3rem);
  max-width: 860px;
  transition: transform .7s var(--ease-fluid), opacity .7s var(--ease-fluid);
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translate(-50%) translateY(0);
}

#cookie-banner.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%) translateY(120%);
}

.cookie-shell {
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border: 1px solid var(--color-line);
  background: #ffffffd9;
  border-radius: 2rem;
  padding: .5rem;
  box-shadow: 0 8px 40px #00000014;
}

.cookie-core {
  background: var(--color-bg);
  border-radius: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem 2rem;
  display: flex;
}

.cookie-text { flex: 1; min-width: 200px; }

.cookie-text p {
  color: var(--color-text-secondary);
  max-width: none;
  margin: 0;
  font-size: .875rem;
  line-height: 1.5;
}

.cookie-text a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
}

.cookie-actions { flex-shrink: 0; gap: .75rem; display: flex; }

.cookie-btn-accept {
  background: var(--color-text-primary);
  color: #fff;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .05em;
  cursor: pointer;
  transition: transform .5s var(--ease-fluid), background .5s var(--ease-fluid);
  border: none;
  border-radius: 4rem;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.5rem;
  font-size: .8rem;
  font-weight: 600;
  display: inline-flex;
}

.cookie-btn-accept:hover { background: var(--color-accent); transform: scale(.97); }

.cookie-btn-decline {
  color: var(--color-text-secondary);
  border: 1px solid var(--color-line);
  font-family: var(--font-body);
  cursor: pointer;
  transition: border-color .4s var(--ease-fluid), color .4s var(--ease-fluid);
  background: 0 0;
  border-radius: 4rem;
  align-items: center;
  padding: .65rem 1.25rem;
  font-size: .8rem;
  font-weight: 500;
  display: inline-flex;
}

.cookie-btn-decline:hover {
  border-color: var(--color-text-secondary);
  color: var(--color-text-primary);
}

@media (width <= 768px) {
  #cookie-banner { width: calc(100% - 2rem); bottom: 1rem; }
  .cookie-core { flex-direction: column; align-items: flex-start; gap: 1.25rem; padding: 1.25rem 1.5rem; }
  .cookie-actions { width: 100%; }
  .cookie-btn-accept { flex: 1; justify-content: center; }
}
