/*
Theme Name: Alyen Communities
Theme URI: https://alyen.com.br
Author: Alyen
Description: Tema sci-fi luxury para as comunidades BLACKBOX e GLOBAL ALYEN. Landing page única com visual atmosférico dark.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: alyen
*/

/* ==================================================
   DESIGN TOKENS
================================================== */
:root {
  --bg: hsl(0 0% 4%);
  --bg-2: hsl(0 0% 6%);
  --fg: hsl(0 0% 98%);
  --muted: hsl(0 0% 65%);
  --muted-2: hsl(0 0% 45%);
  --border: hsl(0 0% 14%);
  --primary: hsl(120 100% 48%);
  --blackbox: hsl(25 95% 55%);
  --global: hsl(210 100% 55%);
  --font-heading: 'Sora', system-ui, sans-serif;
  --font-body: 'Roboto', system-ui, sans-serif;
}

/* ==================================================
   RESET & BASE
================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: 0.01em;
  margin: 0;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

.muted { color: var(--muted); }
.uppercase { text-transform: uppercase; letter-spacing: 0.06em; }
.tracking-wide { letter-spacing: 0.15em; }

/* ==================================================
   ATMOSPHERIC BACKGROUNDS
================================================== */
.atmosphere {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 20%, hsl(25 95% 55% / 0.03), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 70%, hsl(210 100% 55% / 0.04), transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% 100%, hsl(120 100% 48% / 0.02), transparent 60%);
}
.grid-overlay {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(hsl(120 100% 48% / 0.3) 1px, transparent 1px),
    linear-gradient(90deg, hsl(120 100% 48% / 0.3) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.025;
}

/* ==================================================
   NAVBAR
================================================== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: 64px; display: flex; align-items: center;
  border-bottom: 1px solid hsl(0 0% 14% / 0.5);
  background: hsl(0 0% 4% / 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: translateY(-100%);
  transition: transform .4s cubic-bezier(.25,.1,.25,1), opacity .4s;
  opacity: 0;
}
.navbar.is-visible { transform: translateY(0); opacity: 1; }
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.navbar .brand { font-family: var(--font-heading); font-weight: 600; font-size: 14px; color: var(--primary); letter-spacing: -0.02em; }
.navbar nav { display: none; gap: 32px; }
.navbar nav a { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.navbar nav a:hover { color: var(--fg); }
@media (min-width: 640px) { .navbar nav { display: flex; } }

/* ==================================================
   FUTURISTIC BUTTONS (hex-cut via clip-path)
================================================== */
.btn-fx {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: 12px; padding: 16px 32px;
  font-family: var(--font-heading); font-weight: 600; font-size: 13px;
  letter-spacing: 0.12em; text-transform: uppercase;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  transition: transform .3s cubic-bezier(.25,.1,.25,1);
  border: none; color: var(--bg);
  background: var(--primary);
  white-space: nowrap;
}
.btn-fx:hover { transform: translateY(-3px) scale(1.04); }
.btn-fx.btn-blackbox { background: var(--blackbox); color: hsl(0 0% 4%); box-shadow: 0 0 24px hsl(25 95% 55% / 0.35); }
.btn-fx.btn-global { background: var(--global); color: hsl(0 0% 100%); box-shadow: 0 0 24px hsl(210 100% 55% / 0.35); }
.btn-fx .arrow { transition: transform .3s; }
.btn-fx:hover .arrow { transform: translateX(6px); }
.btn-fx.btn-sm { padding: 10px 20px; font-size: 11px; }

/* ==================================================
   HERO
================================================== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: 80px 0 60px; overflow: hidden;
}
.hero-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 50%, hsl(120 100% 48% / 0.05), transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 40%, hsl(120 80% 40% / 0.03), transparent 60%);
}
.hero-grid { position: relative; z-index: 1; }

.hero-mobile-logo {
  display: flex; justify-content: center; align-items: center; height: 160px; position: relative; margin-bottom: 8px;
}
.hero-mobile-logo::before {
  content: ''; position: absolute;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, hsl(120 100% 48% / 0.08) 0%, hsl(120 80% 40% / 0.03) 40%, transparent 70%);
}
.hero-mobile-logo img { max-width: 260px; position: relative; z-index: 1; animation: floaty 5s ease-in-out infinite; filter: drop-shadow(0 0 20px hsl(120 100% 48% / 0.35)); }

.hero-content { display: grid; gap: 48px; align-items: center; max-width: 1100px; margin: 0 auto; }
.hero-text h1 {
  font-family: var(--font-heading); font-weight: 400;
  font-size: clamp(2.15rem, 6vw, 3.5rem);
  line-height: 1.05; margin-bottom: 32px;
  text-align: center;
  max-width: 360px; margin-left: auto; margin-right: auto;
}
.hero-text h1 .accent { color: var(--primary); font-style: italic; text-shadow: 0 0 20px hsl(120 100% 48% / 0.35); }
.hero-mobile-stack { display: block; text-transform: uppercase; }
.hero-mobile-stack > span { display: block; }
.hero-mobile-stack > .accent { margin: 4px 0; }
.hero-desktop-stack { display: none; }
.hero-text p.lead {
  font-size: 18px; color: hsl(0 0% 98% / 0.85); max-width: 560px;
  margin: 0 auto 56px; line-height: 1.6;
  text-transform: uppercase; letter-spacing: 0.05em; font-weight: 300;
  text-align: center;
}
.hero-text p.lead strong { color: var(--fg); font-weight: 400; }
.hero-ctas { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.hero-desktop-illustration { display: none; }

@media (min-width: 640px) {
  .hero { padding: 128px 0 80px; }
  .hero-mobile-logo { display: none; }
  .hero-text h1, .hero-text p.lead { text-align: left; max-width: none; margin-left: 0; margin-right: 0; }
  .hero-mobile-stack { display: none; }
  .hero-desktop-stack { display: inline; }
  .hero-ctas { flex-direction: row; gap: 16px; align-items: flex-start; }
}
@media (min-width: 1024px) {
  .hero-content { grid-template-columns: 1fr 1fr; }
  .hero-desktop-illustration {
    display: flex; justify-content: center; align-items: center;
    height: 580px; position: relative;
  }
  .hero-desktop-illustration::before {
    content:''; position:absolute; width:620px; height:620px; border-radius:50%;
    background: radial-gradient(circle, hsl(150 100% 50% / 0.06) 0%, hsl(120 80% 40% / 0.02) 45%, transparent 70%);
  }
  .hero-desktop-illustration::after {
    content:''; position:absolute; width:280px; height:280px; border-radius:50%;
    background: radial-gradient(circle, hsl(150 100% 55% / 0.12) 0%, transparent 70%);
  }
  .hero-desktop-illustration img {
    max-width: 500px; position: relative; z-index: 2;
    animation: floaty 6s ease-in-out infinite;
    filter: drop-shadow(0 0 40px hsl(120 100% 48% / 0.45));
  }
}
@keyframes floaty { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }

/* ==================================================
   GENERAL SECTIONS
================================================== */
section { position: relative; padding: 80px 0; overflow: hidden; }
@media (min-width: 640px) { section { padding: 112px 0; } }

.eyebrow { font-size: 11px; color: var(--muted); letter-spacing: 0.2em; text-transform: uppercase; margin: 0 0 24px; }
.section-title {
  font-family: var(--font-heading); font-weight: 400;
  font-size: clamp(1.875rem, 5vw, 3.5rem);
  line-height: 1.15; max-width: 900px; margin: 0 0 32px;
}
.section-title .upper { text-transform: uppercase; font-weight: 500; letter-spacing: 0.04em; }
.section-title .glow-primary { color: var(--primary); text-shadow: 0 0 30px hsl(120 100% 48% / 0.35); }
.section-title .glow-blackbox { color: var(--blackbox); text-shadow: 0 0 30px hsl(25 95% 55% / 0.35); }
.section-title .glow-global { color: var(--global); text-shadow: 0 0 30px hsl(210 100% 55% / 0.35); }
.section-lead { font-size: clamp(1rem, 2vw, 1.375rem); color: var(--muted); max-width: 640px; margin: 0 0 80px; line-height: 1.6; }
.section-lead strong { color: var(--fg); font-weight: 400; }

.divider {
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, hsl(0 0% 100% / 0.08), transparent);
}

/* PAIN */
.pain-list { border-top: 1px solid hsl(0 0% 100% / 0.08); }
.pain-item { padding: 40px 0; border-bottom: 1px solid hsl(0 0% 100% / 0.08); display: flex; gap: 32px; transition: transform .4s cubic-bezier(.25,.1,.25,1); }
.pain-item:hover { transform: translateX(8px); }
.pain-item .num { font-size: 11px; color: var(--muted); letter-spacing: 0.15em; margin-top: 8px; }
.pain-item h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 400; margin-bottom: 12px; transition: color .3s; }
.pain-item:hover h3 { color: var(--primary); }
.pain-item p { color: var(--muted); max-width: 560px; font-size: 1.0625rem; }

/* STATS / SOLUTION */
.stats { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 80px; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.card-glass {
  position: relative;
  padding: 32px;
  border-radius: 24px;
  background: linear-gradient(140deg, hsl(0 0% 12% / 0.5), hsl(0 0% 8% / 0.3));
  border: 1px solid hsl(0 0% 100% / 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 hsl(0 0% 100% / 0.04) inset;
  transition: transform .35s cubic-bezier(.25,.1,.25,1);
}
.card-glass:hover { transform: translateY(-4px) scale(1.01); }
.stat-value { font-family: var(--font-heading); font-size: clamp(2rem, 5vw, 2.5rem); font-weight: 300; letter-spacing: -0.02em; margin-bottom: 8px; }
.stat-label { font-size: 11px; color: var(--muted); letter-spacing: 0.15em; text-transform: uppercase; }
.benefits { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 768px) { .benefits { grid-template-columns: 1fr 1fr; } }
.benefits .card-glass p { margin: 0; color: var(--fg); font-weight: 300; }
.solution-closing { font-size: clamp(1rem, 2vw, 1.375rem); max-width: 880px; margin-top: 80px; line-height: 1.6; color: hsl(0 0% 98% / 0.85); }
.solution-closing .blackbox { color: var(--blackbox); font-weight: 500; text-shadow: 0 0 12px hsl(25 95% 55% / 0.3); }
.solution-closing .global { color: var(--global); font-weight: 500; text-shadow: 0 0 12px hsl(210 100% 55% / 0.3); }

/* FEATURE CARDS (Blackbox / Global) */
.feature-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-card {
  position: relative; padding: 28px; border-radius: 24px; overflow: hidden;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  transition: transform .35s cubic-bezier(.25,.1,.25,1);
}
.feature-card:hover { transform: translateY(-4px) scale(1.02); }
.feature-card.is-orange {
  background: linear-gradient(140deg, hsl(25 40% 10% / 0.55), hsl(25 30% 6% / 0.35));
  border: 1px solid hsl(25 95% 55% / 0.14);
  box-shadow: 0 0 24px hsl(25 95% 55% / 0.05), inset 0 1px 0 hsl(25 95% 70% / 0.04);
}
.feature-card.is-blue {
  background: linear-gradient(140deg, hsl(210 40% 10% / 0.55), hsl(210 30% 6% / 0.35));
  border: 1px solid hsl(210 100% 55% / 0.14);
  box-shadow: 0 0 24px hsl(210 100% 55% / 0.05), inset 0 1px 0 hsl(210 100% 70% / 0.04);
}
.feature-card .num {
  position: absolute; top: 12px; right: 20px;
  font-family: var(--font-heading); font-size: 4rem; font-weight: 300; line-height: 1;
  pointer-events: none; user-select: none;
}
.feature-card.is-orange .num { color: hsl(25 95% 55% / 0.15); }
.feature-card.is-blue .num { color: hsl(210 100% 55% / 0.15); }
.feature-card .body { position: relative; z-index: 1; padding-top: 32px; }
.feature-card h3 {
  font-family: var(--font-heading); font-size: 1.0625rem; font-weight: 500;
  letter-spacing: 0.04em; margin-bottom: 16px;
}
.feature-card.is-orange:hover h3 { color: var(--blackbox); }
.feature-card.is-blue:hover h3 { color: var(--global); }
.feature-card p { color: var(--muted); font-size: 0.9375rem; margin: 0; }
.feature-card.body-only .body { padding-top: 32px; }
.feature-card.body-only p { color: var(--fg); font-size: 1rem; }

/* FOR WHO */
.forwho-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) { .forwho-grid { grid-template-columns: 1fr 1fr; } }
.forwho-card {
  position: relative; padding: 24px; border-radius: 16px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: transform .35s; max-width: 680px;
}
.forwho-card.orange { background: linear-gradient(140deg, hsl(25 95% 55% / 0.04), hsl(0 0% 100% / 0.01)); border: 1px solid hsl(25 95% 55% / 0.14); box-shadow: 0 0 24px hsl(25 95% 55% / 0.05); }
.forwho-card.blue   { background: linear-gradient(140deg, hsl(210 100% 55% / 0.04), hsl(0 0% 100% / 0.01)); border: 1px solid hsl(210 100% 55% / 0.14); box-shadow: 0 0 24px hsl(210 100% 55% / 0.05); }
.forwho-card:hover { transform: translateY(-4px); }
.forwho-card .row { display: flex; gap: 16px; align-items: flex-start; }
.forwho-card .bullet {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; margin-top: 2px;
}
.forwho-card.orange .bullet { background: hsl(25 95% 55% / 0.12); border: 1px solid hsl(25 95% 55% / 0.4); color: var(--blackbox); box-shadow: 0 0 16px hsl(25 95% 55% / 0.25); }
.forwho-card.blue .bullet   { background: hsl(210 100% 55% / 0.12); border: 1px solid hsl(210 100% 55% / 0.4); color: var(--global); box-shadow: 0 0 16px hsl(210 100% 55% / 0.25); }
.forwho-card p { font-size: 16px; line-height: 1.6; margin: 0; }
.forwho-card .hl { color: var(--fg); font-weight: 500; }
.forwho-card .rest { color: hsl(0 0% 98% / 0.75); }

/* PLANS */
.plans-grid { display: grid; grid-template-columns: 1fr; gap: 24px; max-width: 880px; margin: 0 auto; }
@media (min-width: 768px) { .plans-grid { grid-template-columns: 1fr 1fr; } }
.plan {
  position: relative; padding: 40px;
  border-radius: 24px;
  display: flex; flex-direction: column;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  transition: transform .4s cubic-bezier(.25,.1,.25,1);
}
.plan:hover { transform: translateY(-6px); }
.plan.blackbox {
  background: linear-gradient(140deg, hsl(25 40% 10% / 0.6), hsl(25 30% 6% / 0.4));
  border: 1px solid hsl(25 95% 55% / 0.2);
  box-shadow: 0 0 30px hsl(25 95% 55% / 0.08);
}
.plan.global {
  background: linear-gradient(140deg, hsl(210 40% 10% / 0.6), hsl(210 30% 6% / 0.4));
  border: 1px solid hsl(210 100% 55% / 0.25);
  box-shadow: 0 0 40px hsl(210 100% 55% / 0.18), 0 0 80px hsl(210 100% 55% / 0.10);
}
@media (min-width: 768px) { .plan.global { transform: scale(1.06) translateY(-12px); } .plan.global:hover { transform: scale(1.06) translateY(-18px); } }
.plan .tier { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 12px; }
.plan.blackbox .tier { color: hsl(25 95% 55% / 0.7); }
.plan.global .tier { color: hsl(210 100% 55% / 0.7); }
.plan h3 { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 400; letter-spacing: 0.04em; margin-bottom: 12px; }
.plan.blackbox h3 { color: var(--blackbox); }
.plan.global h3 { color: var(--global); }
.plan .desc { color: hsl(0 0% 98% / 0.8); font-size: 16px; margin-bottom: 32px; line-height: 1.6; }
.plan .price-row { margin-bottom: 32px; }
.plan .price { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 300; letter-spacing: -0.03em; }
.plan.blackbox .price { color: var(--blackbox); }
.plan.global .price { color: var(--global); }
.plan .price-suffix { color: var(--muted); font-size: 14px; margin-left: 12px; font-weight: 300; }
.plan ul { list-style: none; padding: 0; margin: 0 0 40px; display: flex; flex-direction: column; gap: 20px; flex: 1; }
.plan li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.6; color: var(--muted); font-weight: 300; }
.plan .check {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
  font-weight: 700; font-size: 11px;
}
.plan.blackbox .check { background: hsl(25 95% 55% / 0.15); border: 1px solid hsl(25 95% 55% / 0.4); color: var(--blackbox); }
.plan.global .check { background: hsl(210 100% 55% / 0.15); border: 1px solid hsl(210 100% 55% / 0.4); color: var(--global); }
.plan li b { font-weight: 500; color: var(--fg); }
.plan li b.bold-orange { color: var(--blackbox); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; font-size: 15px; text-shadow: 0 0 12px hsl(25 95% 55% / 0.4); }

.plans-foot { text-align: center; margin-top: 56px; font-size: 15px; color: hsl(0 0% 98% / 0.75); line-height: 1.6; }
.plans-foot strong { color: var(--fg); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; }

/* FAQ */
.faq-wrap { max-width: 900px; margin: 0 auto; }
.faq-card {
  background: linear-gradient(140deg, hsl(0 0% 12% / 0.5), hsl(0 0% 8% / 0.3));
  border: 1px solid hsl(0 0% 100% / 0.06);
  border-radius: 24px; padding: 32px;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.faq-item { border-bottom: 1px solid hsl(0 0% 100% / 0.08); }
.faq-item:first-child { border-top: 1px solid hsl(0 0% 100% / 0.08); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  text-align: left; padding: 24px 0;
  font-family: var(--font-heading); font-weight: 500; font-size: 15px;
  color: var(--fg); transition: color .3s;
}
.faq-q:hover, .faq-item.open .faq-q { color: var(--primary); }
.faq-q .plus { width: 20px; height: 20px; position: relative; flex-shrink: 0; transition: transform .3s; color: var(--muted); }
.faq-q .plus::before, .faq-q .plus::after { content:''; position:absolute; background: currentColor; }
.faq-q .plus::before { top: 9px; left: 0; width: 20px; height: 2px; }
.faq-q .plus::after { left: 9px; top: 0; width: 2px; height: 20px; }
.faq-item.open .plus { transform: rotate(45deg); color: var(--primary); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s cubic-bezier(.25,.1,.25,1); }
.faq-item.open .faq-a { max-height: 600px; }
.faq-a-inner { padding: 0 0 24px; color: hsl(0 0% 98% / 0.85); font-size: 16px; line-height: 1.6; max-width: 640px; }

/* FOOTER */
.site-footer { padding: 80px 0; text-align: center; position: relative; }
.site-footer .brand { font-family: var(--font-heading); font-size: 14px; font-weight: 600; color: var(--primary); margin-bottom: 24px; }
.site-footer p { font-size: 11px; color: var(--muted); letter-spacing: 0.15em; text-transform: uppercase; margin: 0; }

/* ==================================================
   REVEAL ANIMATIONS
================================================== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s cubic-bezier(.25,.1,.25,1), transform .8s cubic-bezier(.25,.1,.25,1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* WP admin bar fix */
body.admin-bar .navbar { top: 32px; }
@media (max-width: 782px) { body.admin-bar .navbar { top: 46px; } }
