/* style.css */

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* FUNDO DO SITE */
body {
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  background: url("assets/fundo.png") no-repeat center center;
  background-size: cover;
  position: relative;
  overflow-x: hidden;
}

/* HEADER */
.header {
  width: 100%;
  padding: 30px 80px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.logo {
  height: 160px;
  margin-left: 35px;
}

.header-actions {
  margin-left: auto;
  display: flex;
  gap: 16px;
  align-items: center;
}

/* BOTÕES (MESMO TAMANHO) */
.btn {
  height: 48px;
  width: 160px;            /* tamanho idêntico */
  padding: 0 20px;
  border-radius: 999px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-decoration: none;
  text-transform: uppercase;

  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  backdrop-filter: blur(6px);
}

.btn-outline {
  color: #2e4d3d;
  border: 2px solid rgba(46, 77, 61, 0.55);
  background: rgba(230, 245, 235, 0.55);
}

.btn-outline:hover {
  background: rgba(200, 230, 210, 0.85);
  box-shadow: 0 8px 22px rgba(46, 77, 61, 0.25);
  transform: translateY(-2px);
}

.btn-solid {
  color: #ffffff;
  background: linear-gradient(135deg, #2e7d5b, #1f5c45);
  box-shadow: 0 10px 26px rgba(46, 77, 61, 0.35);
  border: 2px solid rgba(46, 77, 61, 0.25);
}

.btn-solid:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 14px 34px rgba(46, 77, 61, 0.45), 0 0 18px rgba(120, 180, 140, 0.35);
}

.btn:active { transform: scale(.98); }

/* CONTENT */
.content {
  min-height: calc(100vh - 120px);
  padding: 60px 40px 140px 80px;
  color: #2e4d3d;
}

/* ===== ÁRVORE DE VERDADE (sem bug) ===== */
.tree-hero {
  margin-top: 90px;
  max-width: 1000px;
}

.tree-wrap {
  position: relative;
  width: 900px;
  max-width: 92vw;
}

/* Copa */
.tree-card {
  position: relative;
  padding: 70px 56px 66px 56px;

  background: rgba(230, 245, 235, 0.85);
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 70px rgba(46, 77, 61, 0.18);

  /* FORMATO DE COPA (bem “árvore”) */
  border-radius: 70% 30% 60% 40% / 60% 60% 40% 40%;

  /* animação */
  opacity: 0;
  transform: translateY(14px);
  animation: treeIn .9s ease forwards;
}

@keyframes treeIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Tronco (parte principal) */
.tree-card::after {
  content: "";
  position: absolute;
  left: 38%;
  bottom: -84px;
  width: 190px;
  height: 110px;

  background: rgba(46, 77, 61, 0.18);
  border-radius: 0 0 50px 50px;

  /* deixa o tronco “orgânico” */
  clip-path: polygon(
    20% 0%,
    80% 0%,
    92% 25%,
    78% 100%,
    22% 100%,
    8% 25%
  );
  filter: blur(.2px);
}

/* Base/sombra embaixo do tronco */
.tree-card::before {
  content: "";
  position: absolute;
  left: 40%;
  bottom: -108px;
  width: 260px;
  height: 42px;

  background: rgba(230, 245, 235, 0.65);
  border-radius: 999px;
  box-shadow: 0 16px 34px rgba(46, 77, 61, 0.14);
}

/* Texto */
.tree-card h1 {
  font-size: 48px;
  margin-bottom: 12px;
  color: #2e4d3d;
}

.tree-card p {
  font-size: 18px;
  line-height: 1.5;
  max-width: 620px;
  opacity: .92;
}

/* Botões dentro do card */
.tree-cta {
  margin-top: 22px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

/* ===== REDES SOCIAIS ===== */
.social-dock {
  position: fixed;
  left: 180px;
  bottom: 40px;
  display: flex;
  gap: 14px;
  z-index: 999;

  opacity: 0;
  transform: translateY(16px);
  animation: dockIn .8s ease forwards;
  animation-delay: .25s;
}

@keyframes dockIn {
  to { opacity: 1; transform: translateY(0); }
}

.social-btn {
  width: 66px;
  height: 66px;
  border-radius: 999px;
  background: rgba(210, 230, 215, 0.95);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(46, 77, 61, 0.25);
  backdrop-filter: blur(6px);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.social-btn svg {
  width: 26px;
  height: 26px;
  fill: #2e4d3d;
  transition: transform .2s ease, fill .2s ease;
}

.social-btn:hover {
  transform: translateY(-5px) scale(1.05);
  background: rgba(190, 225, 200, 1);
  box-shadow: 0 12px 28px rgba(46, 77, 61, 0.35), 0 0 18px rgba(120, 180, 140, 0.55);
}

.social-btn:hover svg {
  transform: scale(1.1);
  fill: #1f3a2c;
}

.social-btn:active { transform: translateY(-2px) scale(.98); }

/* RESPONSIVO */
@media (max-width: 900px) {
  .header { padding: 20px 20px; }
  .logo { height: 120px; margin-left: 10px; }

  .btn {
    height: 44px;
    width: 140px;
    font-size: 13px;
  }

  .content { padding: 30px 20px 140px 20px; }
  .tree-hero { margin-top: 60px; }

  .tree-card { padding: 54px 22px 28px 22px; }
  .tree-card h1 { font-size: 30px; }

  /* Ajuste tronco no mobile */
  .tree-card::after {
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 95px;
    bottom: -78px;
  }
  .tree-card::before {
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    height: 36px;
    bottom: -98px;
  }

  .social-dock { left: 24px; bottom: 24px; }
  .social-btn { width: 54px; height: 54px; }
  .social-btn svg { width: 22px; height: 22px; }
}


/* =========================
   HERO PREMIUM (CENTRO)
========================= */
.hero{
  min-height: calc(100vh - 120px);
  display: grid;
  place-items: center;
  padding: 44px 16px 90px;
  position: relative;
}

.hero-card{
  width: min(840px, 92vw);
  text-align: center;
  padding: 34px 30px 22px;
  border-radius: 28px;
  position: relative;
  overflow: hidden;
}

/* glass + glow */
.hero-glass{
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(255,255,255,.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 40px 110px rgba(0,0,0,.16),
    inset 0 1px 0 rgba(255,255,255,.55);
}

.hero-glass::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(600px 220px at 35% 0%, rgba(90,170,120,.22), transparent 65%),
    radial-gradient(520px 220px at 80% 15%, rgba(70,130,90,.18), transparent 65%);
  pointer-events:none;
}

.hero-badge{
  position: relative;
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(25,70,45,.12);
  color: rgba(25,70,45,.78);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 14px;
}

.hero-badge .dot{
  width:10px; height:10px;
  border-radius:50%;
  background: linear-gradient(180deg,#4aa96c,#2f7a52);
  box-shadow: 0 10px 20px rgba(47,122,82,.25);
}

.hero h1{
  margin: 4px 0 10px;
  font-size: clamp(34px, 4.2vw, 52px);
  letter-spacing: -0.8px;
  color: #1f3a2a;
  position: relative;
}

.hero p{
  margin: 0 auto 18px;
  max-width: 62ch;
  line-height: 1.65;
  color: rgba(31,58,42,.78);
  font-size: 15.8px;
  position: relative;
}

/* =========================
   CONTRACT BOX PREMIUM
========================= */
.contract{
  position: relative;
  width: min(700px, 100%);
  margin: 18px auto 18px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(25,70,45,.12);
  box-shadow: 0 18px 55px rgba(0,0,0,.08);
  text-align: left;
}

.contract-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.contract .label{
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(25,70,45,.62);
  font-weight: 900;
}

.contract .status{
  font-size: 12.5px;
  color: rgba(25,70,45,.66);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(25,70,45,.10);
}

.contract-row{
  display:grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items:center;
}

.addr{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(25,70,45,.12);
  overflow:hidden;
}

.addr .chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 34px;
  height: 28px;
  border-radius: 10px;
  font-weight: 900;
  font-size: 12px;
  color:#1f3a2a;
  background: rgba(90,170,120,.18);
  border: 1px solid rgba(47,122,82,.18);
}

#contractAddress{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  color: rgba(31,58,42,.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display:block;
  width: 100%;
}

.copy-btn{
  border: 0;
  border-radius: 16px;
  padding: 12px 16px;
  font-weight: 900;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(180deg, #2f7a52, #256544);
  box-shadow: 0 18px 40px rgba(37,101,68,.25);
  display:flex;
  align-items:center;
  gap: 10px;
  white-space: nowrap;
}

.copy-btn:hover{ transform: translateY(-1px); }
.copy-btn:active{ transform: translateY(0px); }
.copy-ico{ font-size: 15px; opacity: .95; }

/* =========================
   CTA (PILLS)
========================= */
.hero-cta{
  display:flex;
  gap: 12px;
  justify-content:center;
  flex-wrap:wrap;
  margin-top: 14px;
  position: relative;
}

.pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: .06em;
  font-size: 13px;
  text-decoration:none;
  transition: transform .15s ease;
}

.pill-outline{
  color:#1f3a2a;
  background: rgba(255,255,255,.68);
  border: 2px solid rgba(31,58,42,.32);
}

.pill-solid{
  color:#fff;
  background: linear-gradient(180deg, #2f7a52, #256544);
  border: 2px solid rgba(255,255,255,.10);
  box-shadow: 0 18px 45px rgba(37,101,68,.25);
}

.pill:hover{ transform: translateY(-1px); }
.pill:active{ transform: translateY(0px); }

.hero-foot{
  margin-top: 14px;
  font-size: 12.5px;
  color: rgba(31,58,42,.62);
  position: relative;
}

/* Mobile */
@media (max-width: 560px){
  .hero-card{ padding: 26px 18px 18px; }
  .contract-row{ grid-template-columns: 1fr; }
  .copy-btn{ width: 100%; justify-content:center; }
}

/* =========================
   HERO FOLHA (SEM RECORTAR CONTEÚDO)
========================= */

.hero{
  min-height: calc(100vh - 120px);
  display: grid;
  place-items: center;
  padding: 44px 16px 90px;
}

/* “Palco” que segura folha + conteúdo */
.leaf-wrap{
  position: relative;
  width: min(980px, 94vw);
  height: min(520px, 72vh);
  display: grid;
  place-items: center;
}

/* A folha (só desenho) */
.leaf-shape{
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(980px, 94vw);
  height: min(520px, 72vh);

  /* folha orgânica bonita */
  border-radius: 58% 42% 55% 45% / 48% 52% 48% 52%;
  transform: rotate(-2deg);

  background:
    radial-gradient(60% 40% at 50% 0%, rgba(120,200,150,.30), transparent 70%),
    radial-gradient(45% 40% at 20% 30%, rgba(90,160,120,.22), transparent 65%),
    radial-gradient(45% 40% at 80% 35%, rgba(90,160,120,.18), transparent 70%),
    rgba(255,255,255,.55);

  border: 1px solid rgba(70,140,100,.30);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  box-shadow:
    0 70px 160px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.65);
}

/* nervura central (detalhe) */
.leaf-shape::after{
  content:"";
  position:absolute;
  top: 9%;
  bottom: 10%;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(60,130,90,.35),
    transparent
  );
  opacity: .45;
}

/* Conteúdo fica perfeito no meio, sem ser cortado */
.leaf-content{
  position: relative;
  width: min(760px, 86vw);
  text-align: center;
  padding: 34px 26px 24px;
}

/* Tipografia */
.leaf-content h1{
  margin: 0 0 10px;
  font-size: clamp(30px, 3.8vw, 52px);
  letter-spacing: -0.8px;
  color: #1f3a2a;
}

.leaf-content p{
  margin: 0 auto 18px;
  max-width: 62ch;
  line-height: 1.65;
  color: rgba(31,58,42,.78);
  font-size: 15.8px;
}

/* Deixa o contract mais “premium” */
.leaf-content .contract{
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(25,70,45,.12);
  border-radius: 22px;
  box-shadow: 0 18px 55px rgba(0,0,0,.08);
}

/* Rodapé */
.leaf-content .hero-foot{
  margin-top: 14px;
  font-size: 12.5px;
  color: rgba(31,58,42,.62);
}




/* .leaf-wrap{
  transform: translateY(-120px);
} */


/* ===== FIX MOBILE: centralização real ===== */
@media (max-width: 560px){
  .hero{
    min-height: auto;
    padding: 18px 12px 110px; /* mantém espaço pro dock/rodapé */
  }

  .leaf-wrap{
    width: min(980px, 94vw);
    height: 520px;            /* palco fixo no mobile */
    padding: 0;
    transform: none;          /* para de empurrar por transform */
  }

  .leaf-shape{
    width: 94vw;
    height: 520px;            /* mesma altura do palco */
  }

  .leaf-content{
    width: 86vw;
    padding: 26px 14px 18px;
  }
}

/* ===== AJUSTE DESKTOP: subir a folha ===== */
@media (min-width: 561px){
  .hero{
    padding-top: 20px; /* reduz empurrão do hero */
  }

  .leaf-wrap{
    transform: translateY(-80px); /* ajuste fino */
  }
}
