:root {
  --bg0: #050707;
  --bg1: #07100f;
  --card: rgba(12, 16, 16, 0.62);
  --card2: rgba(12, 16, 16, 0.78);
  --stroke: rgba(255, 255, 255, 0.08);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.68);

  --accent: #00c7b6;
  --accent2: #00a99a;

  --shadow: 0 20px 60px rgba(0,0,0,0.55);
  --radius: 20px;

  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);

  color-scheme: dark light;
  --logo-color-light: var(--accent); /* igual ao antigo quadrado */
  --logo-color-dark: #19d6c7;        /* um pouco mais claro que --accent */
}

[data-theme="light"] {
  --bg0: #f6fbfb;
  --bg1: #e9f6f4;
  --card: rgba(255, 255, 255, 0.68);
  --card2: rgba(255, 255, 255, 0.82);
  --stroke: rgba(0, 0, 0, 0.10);
  --text: rgba(0, 0, 0, 0.86);
  --muted: rgba(0, 0, 0, 0.60);
  --shadow: 0 20px 60px rgba(0,0,0,0.12);
    --logo-core: rgba(0,0,0,.85);  /* em light, flame escura fica mais premium */
  --logo-glow: rgba(0,199,182,.35);
  --logo-glow2: rgba(0,199,182,.18);
  --logo-shine: rgba(255,255,255,.45);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(1000px 700px at 15% 40%, rgba(0,199,182,0.25), transparent 60%),
              radial-gradient(900px 650px at 90% 20%, rgba(0,199,182,0.18), transparent 55%),
              linear-gradient(135deg, var(--bg1), var(--bg0));
  color: var(--text);
  overflow-x: hidden;
}

body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.wrap {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: calc(24px + var(--safe-top)) 18px calc(96px + var(--safe-bottom));
}

.card {
  width: min(760px, 96vw);
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  position: relative;
}

.card:after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  pointer-events: none;
  background: radial-gradient(600px 180px at 20% 0%, rgba(0,199,182,0.22), transparent 55%),
              radial-gradient(520px 240px at 90% 10%, rgba(0,199,182,0.14), transparent 60%);
  opacity: 0.9;
}

.card-inner {
  position: relative;
  padding: 22px 22px 18px;
  z-index: 1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}


/* LOGO (inline SVG wrapper) */
.ff-logo-wrap {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;           /* flame default = white */
  flex: 0 0 auto;
    position: relative;
  isolation: isolate; /* para os efeitos ficarem bonitos */
  color: var(--logo-core); /* flame */
}
.ff-logo-wrap { color: var(--logo-color-dark); }
[data-theme="light"] .ff-logo-wrap { color: var(--logo-color-light); }
.ff-logo { width: 78%; height: 78%; display: block; }
.ff-flame { fill: currentColor; }
/* camada glow atrás do SVG (duplicada via pseudo-element) */
.ff-logo-wrap::before{
  content:"";
  position:absolute;
  inset: -10%;
  z-index: 0;
  background: radial-gradient(circle at 30% 20%, var(--logo-glow), transparent 55%),
              radial-gradient(circle at 70% 80%, var(--logo-glow2), transparent 60%);
  filter: blur(10px);
  opacity: .85;
  transform: scale(.92);
  pointer-events:none;
}

/* brilho/shimmer por cima */
.ff-logo-wrap::after{
  content:"";
  position:absolute;
  inset:-20%;
  z-index: 2;
  background: linear-gradient(120deg, transparent 35%, var(--logo-shine) 50%, transparent 65%);
  opacity: .0;
  transform: translateX(-30%) rotate(8deg);
  pointer-events:none;
}

/* garante que o SVG fica entre as camadas */
.ff-logo{ position: relative; z-index: 1; }

/* Effects */
.logo--glow { filter: drop-shadow(0 10px 24px rgba(0,199,182,0.22)); }


/* Bigger SVG fill */
.logo-nav .ff-logo { width: 96%; height: 96%; }

/* Subtle living animation */
@keyframes navFloat {
  0%,100% { transform: translateY(-10px) scale(1); }
  50% { transform: translateY(-12px) scale(1.03); }
}
@keyframes navGlow {
  0%,100% { filter: drop-shadow(0 10px 18px rgba(0,199,182,0.20)); }
  50% { filter: drop-shadow(0 16px 26px rgba(0,199,182,0.30)); }
}



@keyframes logoBreath{
  0%,100%{ transform: translateY(0) scale(1); }
  50%{ transform: translateY(-1px) scale(1.02); }
}

@keyframes logoGlow{
  0%,100%{ opacity:.65; filter: blur(10px); transform: scale(.92); }
  50%{ opacity:1; filter: blur(13px); transform: scale(1.00); }
}

@keyframes logoShimmer{
  0%{ opacity:0; transform: translateX(-35%) rotate(8deg); }
  15%{ opacity:.35; }
  35%{ opacity:0; transform: translateX(35%) rotate(8deg); }
  100%{ opacity:0; transform: translateX(35%) rotate(8deg); }
}

/* aplica vida quando quiseres */
.ff-logo-wrap.logo--alive{
  animation: logoBreath 2.8s ease-in-out infinite;
}
.ff-logo-wrap.logo--alive::before{
  animation: logoGlow 2.8s ease-in-out infinite;
}
.ff-logo-wrap.logo--alive::after{
  animation: logoShimmer 6.5s ease-in-out infinite;
}
/* No slot background by default */
.ff-logo-wrap { background: transparent; box-shadow: none; }

@keyframes ffPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1px); }
}
.logo--pulse {
  animation: ffPulse 2.8s ease-in-out infinite;
  filter:
    drop-shadow(0 0 10px rgba(0,199,182,0.45))
    drop-shadow(0 0 22px rgba(0,199,182,0.22));
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.2px;
  opacity: 0.92;
  font-size: 13px;
}

h1 {
  margin: 10px 0 8px;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.7px;
}

p.lead {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  max-width: 64ch;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 6px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,0.10);
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  user-select: none;
}

[data-theme="light"] .pill { background: rgba(255,255,255,0.55); }

.dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(0,199,182,0.12);
}

.meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
}

.lang {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.lang button {
  appearance: none;
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,0.10);
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
}
[data-theme="light"] .lang button { background: rgba(255,255,255,0.55); }

.lang button[aria-pressed="true"] {
  border-color: rgba(0,199,182,0.35);
  color: var(--text);
  background: rgba(0,199,182,0.10);
}

.bottom-nav {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  padding: 10px 12px calc(10px + var(--safe-bottom));
  display: grid;
  place-items: center;
  z-index: 50;
  pointer-events: none;
}
.bottom-nav .bar {
  pointer-events: auto;
  width: min(520px, 94vw);
  height: 56px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(12, 16, 16, 0.58);
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  align-items: center;
  padding: 0 8px;
}
[data-theme="light"] .bottom-nav .bar {
  background: rgba(255,255,255,0.65);
  box-shadow: 0 16px 40px rgba(0,0,0,0.14);
}

.nav-btn {
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.nav-btn:hover { border-color: var(--stroke); background: rgba(0,0,0,0.08); }
[data-theme="light"] .nav-btn:hover { background: rgba(0,0,0,0.06); }

.center-logo {
  display: grid;
  place-items: center;
  cursor: pointer;
  user-select: none;
}
.center-logo .logo {
  width: 38px; height: 38px;
  border-radius: 14px;
  transform: translateY(-10px);
  border: 1px solid rgba(255,255,255,0.12);
}
[data-theme="light"] .center-logo .logo { border-color: rgba(0,0,0,0.10); }

.sheet {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: none;
  align-items: flex-end;
  z-index: 60;
}
.sheet[aria-hidden="false"] { display: flex; }
.sheet-panel {
  width: min(560px, 100%);
  border-radius: 22px 22px 0 0;
  border: 1px solid var(--stroke);
  background: var(--card2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  margin: 0 auto;
  padding: 14px 14px calc(18px + var(--safe-bottom));
}
.sheet-handle {
  width: 46px; height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  margin: 4px auto 10px;
}
[data-theme="light"] .sheet-handle { background: rgba(0,0,0,0.12); }

.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 6px 10px;
}
.sheet-title { font-weight: 700; letter-spacing: -0.2px; }
.sheet-close { width: 40px; height: 40px; border-radius: 999px; }

.menu { display: grid; gap: 10px; padding: 6px; }
.menu a, .menu button {
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,0.08);
  padding: 12px 12px;
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
}
[data-theme="light"] .menu a, [data-theme="light"] .menu button { background: rgba(255,255,255,0.52); }
.menu small { color: var(--muted); font-size: 12px; }

.theme-toggle { display: flex; gap: 10px; }
.theme-toggle button {
  flex: 1;
  padding: 12px 10px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,0.08);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text);
}
[data-theme="light"] .theme-toggle button { background: rgba(255,255,255,0.52); }
.theme-toggle button[aria-pressed="true"] {
  border-color: rgba(0,199,182,0.40);
  background: rgba(0,199,182,0.10);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.50);
  display: none;
  z-index: 70;
  padding: 18px;
  align-items: center;
  justify-content: center;
}
.modal[aria-hidden="false"] { display: flex; }
.modal-card {
  width: min(560px, 96vw);
  background: var(--card2);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 16px;
}
.modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.modal-title { font-weight: 800; letter-spacing: -0.2px; }
.modal-close { width: 40px; height: 40px; border-radius: 999px; }
.modal p { margin: 8px 0 14px; color: var(--muted); line-height: 1.55; }

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(0,199,182,0.35);
  background: linear-gradient(135deg, rgba(0,199,182,0.18), rgba(0,199,182,0.08));
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
}
.cta:hover { border-color: rgba(0,199,182,0.55); }

.ic { width: 20px; height: 20px; display: inline-block; }
.ic svg { width: 20px; height: 20px; }

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

@media (min-width: 900px) {
  .wrap { padding-bottom: calc(110px + var(--safe-bottom)); }
}


/* ==========================
   NAV LOGO (no square)
   ========================== */

:root{
  --logo-color-light: var(--accent);
  --logo-color-dark: #19d6c7;
  --logo-glow-1: rgba(0,199,182,0.28);
  --logo-glow-2: rgba(0,199,182,0.16);
}

[data-theme="light"]{
  --logo-glow-1: rgba(0,199,182,0.20);
  --logo-glow-2: rgba(0,199,182,0.10);
}

/* Navbar-only wrapper */
.ff-logo-wrap.logo-nav{
  width: 48px;
  height: 48px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  position: relative;

  background: transparent;
  box-shadow: none;

  color: var(--logo-color-dark);
}
[data-theme="light"] .ff-logo-wrap.logo-nav{ color: var(--logo-color-light); }

.ff-logo-wrap.logo-nav .ff-logo{
  width: 96%;
  height: 96%;
  display: block;
  position: relative;
  z-index: 1;
}

.ff-logo-wrap.logo-nav .ff-flame{
  fill: currentColor;
  transform-box: fill-box;
  transform-origin: center;
}
/* --- FORCE: card centered on mobile --- */
.wrap{
  display: flex;
  align-items: center;
  justify-content: center;
}

.card{
  margin-left: auto !important;
  margin-right: auto !important;
}
/* Split flames */
.ff-logo-wrap.logo-nav .ff-flame:nth-of-type(1){ transform: translateX(-12px); }
.ff-logo-wrap.logo-nav .ff-flame:nth-of-type(2){ transform: translateX(12px); }

/* Glow (kept inside bottom-nav to avoid horizontal scroll) */
.ff-logo-wrap.logo-nav::before{
  content:"";
  position:absolute;
  inset:-10%;
  border-radius: 999px;
  z-index: 0;
  pointer-events:none;
  background:
    radial-gradient(circle at 30% 20%, var(--logo-glow-1), transparent 58%),
    radial-gradient(circle at 70% 80%, var(--logo-glow-2), transparent 62%);
  filter: blur(10px);
  opacity: .85;
}

/* Animation only when is-alive */
@keyframes navFloat {
  0%,100% { transform: translateY(-10px) scale(1); }
  50% { transform: translateY(-12px) scale(1.03); }
}
@keyframes navGlowPulse {
  0%,100% { opacity:.55; filter: blur(10px); }
  50% { opacity:1; filter: blur(12px); }
}

.center-logo .ff-logo-wrap.logo-nav.is-alive{
  animation: navFloat 2.6s ease-in-out infinite;
}
.center-logo .ff-logo-wrap.logo-nav.is-alive::before{
  animation: navGlowPulse 2.6s ease-in-out infinite;
}

/* Kill mobile micro horizontal scroll (safe) */
.bottom-nav{ overflow-x: clip; }
@supports not (overflow: clip){
  .bottom-nav{ overflow-x: hidden; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .center-logo .ff-logo-wrap.logo-nav.is-alive,
  .center-logo .ff-logo-wrap.logo-nav.is-alive::before{
    animation: none !important;
  }
}
html, body { overflow-x: hidden; }
.bottom-nav { overflow-x: clip; }
@supports not (overflow: clip){
  .bottom-nav { overflow-x: hidden; }
}
/* --- FORCE: NAV logo with NO square --- */
.center-logo .ff-logo-wrap.logo-nav{
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  outline: 0 !important;
}

/* se houver algum estilo antigo aplicado ao wrapper da navbar */
.center-logo .ff-logo-wrap{
  background: transparent;
}