/* ========== Ocean Trenches – styles.css (full) ========== */

/* Theme tokens */
:root{
  --bg: #070b12;
  --bg-alt: #0b1220;
  --card: #0f172a;
  --text: #e5f0ff;
  --muted: #9fb3d1;

  --primary: #2ad1ff;   /* aqua */
  --primary-2: #46ff9a;  /* mint */
  --ring: rgba(42,209,255,.35);

  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 16px;
  --container: 1100px;
}

/* Base */
*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, "Helvetica Neue", Arial;
  color:var(--text);
  background: radial-gradient(1200px 600px at 50% -20%, #10263a 0%, var(--bg) 50%, #05070c 100%);
}
img, video{ max-width:100%; display:block; }
.container{ width:min(100%, var(--container)); margin-inline:auto; padding:0 20px; }
.center{ text-align:center; }
.small{ font-size:.9rem; }
.muted{ color:var(--muted); }
.lead{ font-size:1.05rem; line-height:1.65; }
.h2{ font-size:2rem; margin:0 0 12px; }
.h3{ font-size:1.25rem; margin:0 0 6px; }
.section{ padding:64px 0; }
.section.alt{ background:linear-gradient(180deg, transparent, rgba(255,255,255,.02) 30%, transparent); }
.grid{ display:grid; gap:24px; }
.grid.two{ grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid.three{ grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 900px){
  .grid.two, .grid.three{ grid-template-columns: 1fr; }
}

/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(1.4) blur(8px);
  background: rgba(7,11,18,.55);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-inner{
  display:flex; align-items:center; gap:18px; padding:12px 0;
}
.brand{
  display:flex; gap:10px; align-items:center; text-decoration:none; color:var(--text);
}
.brand-name{ font-weight:700; letter-spacing:.3px; }

/* Static image logo (if used) */
.brand-mark{
  width:36px; height:36px; object-fit:contain;
}

/* Video logo in header */
.brand-video{
  width:36px; height:36px;
  border-radius:8px;            /* optional rounding */
  object-fit:cover;             /* crop to square */
  box-shadow:0 2px 10px rgba(0,0,0,.25);
}

/* Fallback image (hidden by default) */
.brand-mark-fallback{ display:none; width:36px; height:36px; }

/* Primary nav */
.nav{ display:flex; gap:18px; margin-left:auto; }
.nav a{ color:var(--text); text-decoration:none; opacity:.9; }
.nav a:hover{ opacity:1; }

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:11px 16px; border-radius:12px; text-decoration:none;
  font-weight:600; transition: transform .06s ease, box-shadow .2s ease; cursor:pointer;
}
.btn-primary{
  color:#02121d;
  background:linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow:0 6px 20px rgba(42,209,255,.2);
}
.btn-primary:hover{ transform: translateY(-1px); }
.btn-ghost{
  color:var(--text);
  border:1px solid rgba(255,255,255,.15);
  background:rgba(255,255,255,.03);
}
.btn-ghost:hover{ background:rgba(255,255,255,.06); }
.btn.full{ width:100%; }

/* Hero */
.hero{
  position:relative; isolation:isolate;
  min-height:72vh; display:grid; place-items:center; text-align:center;
}
.video-bg{ position:absolute; inset:0; z-index:-2; overflow:hidden; }
.bg-video{
  width:100%; height:100%;
  object-fit:cover;
  filter:saturate(1.1) contrast(1.05);
}
.video-overlay{
  position:absolute; inset:0;
  background: radial-gradient(60% 40% at 50% 10%, rgba(0,0,0,.15), rgba(0,0,0,.65)),
              linear-gradient(180deg, rgba(0,0,0,.4), rgba(0,0,0,.65));
}
.hero-content{ padding:90px 0 60px; }
.hero-mascot{
  width:min(320px, 55vw); margin-inline:auto;
  filter: drop-shadow(0 20px 60px rgba(0,0,0,.45));
}
.title{ font-size: clamp(2.4rem, 4vw + 1rem, 4rem); margin:18px 0 8px; }
.subtitle{ font-size: clamp(1.05rem, 1vw + .8rem, 1.3rem); opacity:.9; margin:0 auto; max-width:800px; }
.cta-row{ display:flex; gap:12px; justify-content:center; margin-top:18px; }

/* Cards */
.card{
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.07);
  border-radius:var(--radius);
  padding:18px; box-shadow:var(--shadow);
}
.card.media{ padding:0; overflow:hidden; }
.card.media img{ display:block; width:100%; height:100%; object-fit:cover; }
.feature-cards .card{ min-height:100px; }

/* Pricing */
.pricing{ align-items:stretch; }
.price header{ margin-bottom:8px; }
.price .features{ margin:0 0 16px 0; padding:0 0 0 18px; }
.price.highlight{
  background:linear-gradient(180deg, rgba(42,209,255,.12), rgba(70,255,154,.10));
  border-color:rgba(42,209,255,.35);
}
.disclaimer{ opacity:.75; margin-top:10px; }

/* Socials */
.socials .social-grid{
  display:grid; grid-template-columns: repeat(4, minmax(0,1fr));
  gap:12px; margin-top:10px;
}
@media (max-width: 800px){
  .socials .social-grid{ grid-template-columns: repeat(2, 1fr); }
}
.social{
  display:flex; gap:8px; align-items:center; justify-content:center;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.03);
  padding:12px; border-radius:12px; text-decoration:none; color:var(--text);
}
.social:hover{ border-color:var(--ring); box-shadow:0 0 0 4px var(--ring); }

/* Footer */
.footer{ border-top:1px solid rgba(255,255,255,.08); background:rgba(0,0,0,.25); }
.footer-inner{ display:flex; flex-direction:column; gap:4px; padding:22px 0; }

/* Checklists */
.checklist{ list-style:none; padding-left:0; margin:12px 0; }
.checklist li{ position:relative; padding-left:26px; margin:6px 0; }
.checklist li::before{
  content:""; position:absolute; left:0; top:.35em; width:16px; height:16px; border-radius:50%;
  background: conic-gradient(from 210deg, var(--primary), var(--primary-2));
  mask: radial-gradient(circle at center, #0000 8px, #000 8px);
}

/* Accessibility */
:focus-visible{ outline:3px solid var(--ring); outline-offset:3px; }

/* Responsive header fallbacks */
@media (max-width: 520px){
  .brand-video{ display:none; }                 /* save battery on phones */
  .brand-mark-fallback{ display:block; }        /* show static image instead */
  .nav{ gap:12px; }
  .brand-name{ font-size: .95rem; }
}

/* --- Memecoins cards: glass + subtle glow --- */
.feature-cards { gap: 20px; }

.feature-cards .card{
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  /* more transparent glass */
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(8px) saturate(1.2);
  box-shadow: 0 10px 30px rgba(2,12,24,.35), inset 0 1px 0 rgba(255,255,255,.06);
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  padding: 20px;
}

/* decorative gradient border that fades in on hover */
.feature-cards .card::before{
  content:"";
  position:absolute; inset:-1px;
  border-radius: inherit;
  padding:1px;
  background: linear-gradient(135deg,
    rgba(42,209,255,.55), rgba(70,255,154,.45), rgba(42,209,255,.15));

  /* Safari */
  -webkit-mask: linear-gradient(#fff 0 0) content-box,
                 linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;

  /* Standard */
  mask: linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
  mask-composite: exclude;

  opacity:0;
  transition:opacity .25s ease;
}


.feature-cards .card:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.16);
  box-shadow: 0 14px 42px rgba(2,12,24,.55);
}
.feature-cards .card:hover::before{ opacity: 1; }

/* nicer text contrast */
.feature-cards .card h3{
  color: #eef5ff;
  letter-spacing:.2px;
  margin-bottom: 10px;
}
.feature-cards .card h3::after{
  content:"";
  display:block;
  width:44px; height:3px; margin-top:8px;
  border-radius:2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  opacity:.75;
}
.feature-cards .card p{ color:#c7d6ee; }

/* Redes – icon-only buttons */
.socials .social-grid{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:16px;
  margin-top:16px;
  flex-wrap:wrap;
}

.social-icon{
  width:44px;
  height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  color:var(--text);
  text-decoration:none;
  border:1px solid rgba(255,255,255,.2);
  background:rgba(255,255,255,.04);
  transition: transform .08s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.social-icon .icon{ width:22px; height:22px; }

.social-icon:hover{
  transform: translateY(-1px);
  border-color: var(--ring);
  box-shadow: 0 0 0 4px var(--ring);
  background: rgba(255,255,255,.08);
}

@media (max-width:520px){
  .social-icon{ width:40px; height:40px; }
  .social-icon .icon{ width:20px; height:20px; }
}


/* === Single ocean degradé (no seams) === */
#ocean{
  position: relative;
  background: #05070c;           /* keep it black */
  overflow: hidden;
}

/* One overlay for everything inside #ocean */
#ocean::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  background:
    /* left/top aqua wash */
    radial-gradient(900px 480px at 0% 10%,
      color-mix(in oklab, var(--primary) 35%, transparent) 0%, transparent 60%),
    /* right/top mint wash */
    radial-gradient(900px 520px at 100% 0%,
      color-mix(in oklab, var(--primary-2) 30%, transparent) 0%, transparent 62%),
    /* bottom center subtle aqua */
    radial-gradient(800px 420px at 50% 100%,
      color-mix(in oklab, var(--primary) 22%, transparent) 0%, transparent 65%);
  opacity:.9;
}

/* Fallback if your linter doesn’t like color-mix */
@supports not (color-mix(in oklab, white, black)){
  #ocean::before{
    background:
      radial-gradient(900px 480px at 0% 10%,  rgba(42,209,255,.30) 0%, transparent 60%),
      radial-gradient(900px 520px at 100% 0%, rgba(70,255,154,.28) 0%, transparent 62%),
      radial-gradient(800px 420px at 50% 100%, rgba(42,209,255,.20) 0%, transparent 65%);
  }
}

/* Let the overlay show through; sections stay black but transparent */
#ocean > *{ position:relative; z-index:1; background: transparent; }

/* Remove the banded alt background only inside #ocean */
#ocean .section.alt{ background: transparent !important; }

/* Optional thin glow on top of the footer */
.footer{
  border-top:1px solid rgba(255,255,255,.08);
  background: transparent; /* important so overlay is visible */
}
.footer::after{
  content:"";
  position:absolute; left:0; right:0; top:0; height:1px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  opacity:.5;
}

/* Quem Somos – make the right image shorter (no crop) */
#quem .media{
  height: clamp(240px, 38vh, 420px);   /* ↓ tune the max (last value) */
  display: flex;                       /* center the image inside */
  align-items: center;
  justify-content: center;
}

#quem .media img{
  width: 100%;
  height: 100%;
  object-fit: contain;                 /* was cover – prevents cropping */
}

/* Optional: a bit shorter on phones */
@media (max-width: 700px){
  #quem .media{ height: clamp(200px, 32vh, 320px); }
}

/* Memecoins – centered illustration above cards */
#memecoins .section-illustration{
  display:flex;
  justify-content:center;
  margin: 10px auto 22px;           /* space between title and cards */
}

#memecoins .section-illustration img{
  width: clamp(220px, 32vw, 520px);  /* responsive size */
  height: clamp(140px, 22vh, 260px);
  object-fit: contain;
  filter: drop-shadow(0 14px 42px rgba(2,12,24,.45));
  border-radius: 16px;               /* looks nice if image has a solid bg */
}

/* (optional) gentle float effect — remove if you prefer static */
@keyframes floatY { from { transform: translateY(0) } to { transform: translateY(-6px) } }
#memecoins .section-illustration img{ animation: floatY 6s ease-in-out infinite alternate; }

/* Memecoins – make the centered image shorter */
#memecoins .section-illustration img{
  width: auto;                                   /* keep aspect ratio */
  height: clamp(140px, 22vh, 260px);             /* ↓ adjust max height here */
  object-fit: contain;
}

/* (optional) tighten spacing around the image) */
#memecoins .section-illustration{
  margin: 6px auto 14px;
}

/* --- PnLs (fotos) – marquee CSS-only --- */
#pnls .pnl-marquee{
  --speed: 15s;                     /* velocidade da linha 1 */
  position: relative;
  overflow: hidden;
  margin-top: 12px;
}

/* faixa inferior em sentido inverso + um pouco mais lenta */
#pnls .pnl-marquee.reverse{ --speed: 25s; margin-top: 8px; }

#pnls .pnl-track{
  display: flex;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
  animation: pnl-scroll var(--speed) linear infinite;
  will-change: transform;
}

/* invert direction for the second row */
#pnls .pnl-marquee.reverse .pnl-track{ animation-direction: reverse; }

/* Cada PnL (foto) */
#pnls .pnl{
  flex: 0 0 clamp(220px, 28vw, 360px); /* largura responsiva */
}

#pnls .pnl img{
  width: 100%;
  aspect-ratio: 16 / 9;              /* mantém formato consistente */
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 10px 30px rgba(2,12,24,.35);
  display: block;
  background: rgba(255,255,255,.02);
}

/* Fade nas margens (para não “cortar” bruscamente) */
#pnls .pnl-marquee::before,
#pnls .pnl-marquee::after{
  content: "";
  position: absolute; top: 0; bottom: 0; width: 90px; z-index: 1; pointer-events: none;
}
#pnls .pnl-marquee::before{
  left: 0;
  background: linear-gradient(90deg, rgba(5,7,12,1), rgba(5,7,12,0));
}
#pnls .pnl-marquee::after{
  right: 0;
  background: linear-gradient(270deg, rgba(5,7,12,1), rgba(5,7,12,0));
}

/* Pausar ao hover */
#pnls .pnl-marquee:hover .pnl-track{ animation-play-state: paused; }

/* Respeitar reduced-motion */
@media (prefers-reduced-motion: reduce){
  #pnls .pnl-track{ animation: none; }
}

/* Animação horizontal contínua */
@keyframes pnl-scroll{
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }  /* metade porque duplicámos os itens */
}

/* ===== Desafio Semanal ===== */
#desafio .challenge{ align-items: center; }

#desafio .badge{
  display:inline-block;
  font-weight:700;
  font-size:.85rem;
  padding:6px 10px;
  border-radius:999px;
  color:#02121d;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 6px 18px rgba(42,209,255,.25);
}

#desafio .challenge-head{ display:flex; flex-direction:column; gap:10px; }

/* Cápsula da recompensa com brilho suave */
#desafio .reward-pill{
  display:inline-flex; align-items:center; gap:10px;
  margin-top:4px;
  padding:10px 14px;
  border-radius:14px;
  color:#02121d;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border:1px solid rgba(255,255,255,.12);
  box-shadow: 0 10px 26px rgba(42,209,255,.28), inset 0 1px 0 rgba(255,255,255,.35);
  animation: prizePulse 2.4s ease-in-out infinite;
}
#desafio .reward-pill strong{ font-size:1.05rem; letter-spacing:.2px; }
#desafio .reward-pill .pill-ico{ width:18px; height:18px; }

@keyframes prizePulse{
  0%,100% { transform: translateY(0); filter:saturate(1); }
  50%     { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(42,209,255,.40), inset 0 1px 0 rgba(255,255,255,.45); }
}
#desafio .reward-pill:hover{ animation-play-state: paused; }

/* Regras com o mesmo marcador “check” do site */
#desafio .rules{ margin-top:8px; }

/* Arte do lado direito — mantém sem recorte e altura agradável */
#desafio .challenge-art{
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}
#desafio .challenge-art img{
  height: clamp(220px, 56vh, 680px);
  object-fit: contain;
  filter: drop-shadow(0 14px 42px rgba(2,12,24,.45));
}

/* Mobile empilha e reduz a cápsula */
@media (max-width: 900px){
  #desafio .reward-pill{ padding:9px 12px; }
  #desafio .challenge-art img{ height: clamp(200px, 30vh, 340px); }
}

/* Language switcher pill */
.lang-switch{
  display:flex; gap:6px; align-items:center;
  margin-left:8px;
  padding:3px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  border-radius: 999px;
  backdrop-filter: blur(6px) saturate(1.2);
}
.lang-btn{
  min-width:38px;
  padding:6px 10px;
  border:0; border-radius:999px;
  background: transparent; color: var(--text);
  font: inherit; font-weight:700; cursor:pointer;
  opacity:.85;
}
.lang-btn.active{
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color:#02121d; opacity:1;
}
.lang-btn:focus-visible{ outline:3px solid var(--ring); outline-offset:2px; }

/* ===== Mobile burger menu ===== */

/* Button */
.menu-toggle{
  display:none; /* only on mobile */
  align-items:center; justify-content:center;
  width:42px; height:36px;
  border:1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06);
  border-radius:10px; cursor:pointer;
}
.menu-toggle .bar{
  display:block; width:18px; height:2px; background:#fff;
  margin:2.5px 0; border-radius:2px;
}

/* Mobile behavior */
@media (max-width: 700px){
  .brand-name{ display:none; }              /* save space */
  .menu-toggle{ display:inline-flex; }

  /* hide inline nav by default on mobile */
  #site-nav{ display:none; }

  /* when menu is open, show dropdown */
  .site-header.menu-open #site-nav{
    position:absolute; left:0; right:0; top:100%;
    display:flex; flex-direction:column; gap:10px;
    padding:12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(7,11,18,.92);
    backdrop-filter: blur(8px) saturate(1.2);
    border-bottom:1px solid rgba(255,255,255,.08);
    z-index: 60;
  }
  .site-header.menu-open #site-nav a{
    padding:10px 4px;
    border-radius:8px;
    text-decoration:none;
  }

  /* compact surrounding controls a bit */
  .header-inner{ gap:10px; }
  .nav{ gap:12px; }                 /* used for desktop; harmless here */
  .lang-switch{ transform: scale(.92); }
  .btn.btn-primary{ padding:8px 12px; }
}

/* prevent background scroll when menu open */
.no-scroll, .no-scroll body{ overflow:hidden; }
