:root {
  --brand-green: #1a7a4a;
  --brand-amber: #e8820c;
  --neon-green: #2ecc71;
  --neon-amber: #f39c12;
  --bg-color: #050d08; /* Ultra deep dark green/black */
  --card-bg: rgba(10, 22, 14, 0.65);
  --text-primary: #ffffff;
  --text-secondary: #a8c4b0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Outfit', sans-serif;
}

body {
  background-color: var(--bg-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  padding-top: 82px;
  position: relative;
  color: var(--text-primary);
}

/* ── Background Animated Blobs ── */
.blob {
  position: absolute;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.55;
  border-radius: 50%;
  animation: float 15s infinite ease-in-out alternate;
}

.green-blob {
  background: var(--brand-green);
  width: 45vw;
  height: 45vw;
  top: -10vw;
  left: -15vw; /* Moved further out to peek past the wide card */
}

.amber-blob {
  background: var(--brand-amber);
  width: 55vw;
  height: 55vw;
  bottom: -15vw;
  right: -15vw;
  animation-delay: -5s;
}

.white-blob {
  background: rgba(255, 255, 255, 0.15);
  width: 30vw;
  height: 30vw;
  top: 40%;
  left: 35%;
  animation-duration: 20s;
  animation-delay: -2s;
}

@keyframes float {
  0%   { transform: translateY(0) scale(1) rotate(0deg); }
  100% { transform: translateY(80px) scale(1.1) rotate(15deg); }
}

/* ── Waving Flag Animation ── */
.flag-container {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 100px;
  height: 60px;
  perspective: 1000px;
  z-index: 100;
  cursor: pointer;
}

.waving-flag {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  transform-origin: left center;
  animation: waveFlag 3s ease-in-out infinite alternate;
  opacity: 0.85;
  transition: opacity 0.3s;
}

.us-flag {
  background-image: url('https://upload.wikimedia.org/wikipedia/en/a/a4/Flag_of_the_United_States.svg');
}

.mx-flag {
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/f/fc/Flag_of_Mexico.svg');
}

.waving-flag:hover { opacity: 1; }

@keyframes waveFlag {
  0%   { transform: rotateY(0deg) rotateZ(0deg) translateY(0); }
  50%  { transform: rotateY(15deg) rotateZ(-2deg) translateY(-3px); }
  100% { transform: rotateY(-10deg) rotateZ(3deg) translateY(2px); }
}

/* ── Main glass container spacing below nav ── */
main.glass-card.container {
  margin: 2rem auto 2rem;
}

/* ── Glassmorphism Card ── */
.glass-card {
  position: relative;
  background: rgba(10, 22, 14, 0.55); /* slightly more transparent to show blobs */
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  padding: 4rem 3rem;
  max-width: 1200px; /* Much wider for large screens */
  width: 95%;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5),
              0 0 40px rgba(26, 122, 74, 0.2) inset;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  animation: fadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(40px);
}

@keyframes fadeIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Brand Icon Emblem ── */
.emblem-wrapper {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.emblem-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--neon-green),
    var(--brand-amber),
    var(--neon-amber),
    var(--neon-green)
  );
  animation: spin 4s linear infinite;
  filter: blur(6px);
  opacity: 0.85;
}

.emblem-inner {
  position: relative;
  z-index: 2;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0a1a0e, #0f2a18);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(46, 204, 113, 0.2);
  box-shadow: 0 0 30px rgba(46, 204, 113, 0.15) inset,
              0 10px 30px rgba(0,0,0,0.5);
}

.emblem-icon {
  font-size: 3.5rem;
  background: linear-gradient(135deg, var(--neon-green), var(--neon-amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 12px rgba(46, 204, 113, 0.7));
  animation: iconPulse 3s ease-in-out infinite alternate;
}

@keyframes iconPulse {
  0%   { filter: drop-shadow(0 0 8px rgba(46, 204, 113, 0.5)); transform: scale(1); }
  100% { filter: drop-shadow(0 0 22px rgba(46, 204, 113, 1)); transform: scale(1.08); }
}

/* ── Brand Name Block ── */
.brand-name-block {
  display: flex;
  align-items: baseline;
  gap: 0;
  letter-spacing: 4px;
  font-weight: 900;
  font-size: 2.2rem;
  text-transform: uppercase;
  line-height: 1;
}

.brand-prefix {
  color: #ffffff;
  text-shadow: 0 0 18px rgba(46, 204, 113, 0.6);
}

.brand-latin {
  background: linear-gradient(90deg, var(--neon-green), #7dffb3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 0 10px rgba(46, 204, 113, 0.6));
  animation: latinGlow 3s ease-in-out infinite alternate;
}

@keyframes latinGlow {
  0%   { filter: drop-shadow(0 0 6px rgba(46, 204, 113, 0.4)); }
  100% { filter: drop-shadow(0 0 20px rgba(46, 204, 113, 1)); }
}

/* ── Typography ── */
.neon-text {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  color: #fff;
  text-shadow: 0 0 10px rgba(46, 204, 113, 0.4), 0 0 20px rgba(46, 204, 113, 0.2);
  animation: neonPulse 3s infinite alternate;
}

@keyframes neonPulse {
  0% { text-shadow: 0 0 10px rgba(46, 204, 113, 0.4), 0 0 20px rgba(46, 204, 113, 0.2); }
  100% { text-shadow: 0 0 15px rgba(46, 204, 113, 0.8), 0 0 30px rgba(46, 204, 113, 0.6); transform: translateY(-2px); }
}

.subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-secondary);
  font-weight: 300;
  max-width: 90%;
}

.subtitle strong {
  color: var(--text-primary);
  font-weight: 700;
  text-shadow: 0 0 10px rgba(46, 204, 113, 0.35);
}

/* ── Services Grid ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  width: 100%;
  margin-top: 1rem;
}

.service-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.2), rgba(232, 130, 12, 0.2));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.service-card > * {
  z-index: 1;
}

.service-icon {
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.service-title {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  margin: 0;
}

.service-status {
  font-size: 0.8rem;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.service-status.available {
  background: rgba(46, 204, 113, 0.2);
  color: var(--neon-green);
  border: 1px solid rgba(46, 204, 113, 0.3);
}

.service-status.pending {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Active State (Make it bigger) */
.service-card.active {
  grid-column: 1 / -1;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.1), rgba(26, 122, 74, 0.15));
  border-color: rgba(46, 204, 113, 0.4);
}

.service-card.active .service-icon {
  font-size: 3.5rem;
  color: var(--neon-green);
  text-shadow: 0 0 15px rgba(46, 204, 113, 0.5);
}

.service-card.active .service-title {
  font-size: 1.8rem;
}

/* Active Hover State */
.service-card.active:hover {
  transform: translateY(-5px);
  border-color: rgba(46, 204, 113, 0.8);
  box-shadow: 0 10px 25px rgba(46, 204, 113, 0.3);
}

.service-card.active:hover::before {
  opacity: 1;
}

.service-card.active:hover .service-icon {
  color: var(--neon-green);
  transform: scale(1.1);
  filter: drop-shadow(0 0 10px rgba(46, 204, 113, 0.5));
}

/* Disabled State */
.service-card.disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.service-card.disabled:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ── Join CTA ── */
.join-cta {
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.1), rgba(26, 122, 74, 0.2));
  border: 1px solid rgba(46, 204, 113, 0.3);
  border-radius: 20px;
  padding: 2rem;
  margin-top: 2rem;
  text-align: center;
  width: 100%;
}

.join-cta h3 {
  color: var(--neon-green);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.join-cta p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.btn-join {
  display: inline-block;
  background: var(--brand-green);
  color: white;
  text-decoration: none;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(26, 122, 74, 0.4);
}

.btn-join:hover {
  background: var(--neon-green);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 204, 113, 0.6);
}

/* ── AI Automation Section ── */
.ai-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  width: 100%;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(46, 204, 113, 0.15);
  border-radius: 22px;
  padding: 2.5rem 2rem;
  align-items: center;
  margin: 0.5rem 0;
}

.ai-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid rgba(46, 204, 113, 0.3);
  border-radius: 50px;
  padding: 0.3rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--neon-green);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
}

.ai-text-block h2 {
  font-size: 1.65rem;
  font-weight: 800;
  margin-bottom: 0.9rem;
  line-height: 1.25;
  background: linear-gradient(to right, #fff 60%, #a8c4b0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ai-text-block > p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.ai-features-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.ai-feat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
}

.ai-feat i {
  color: var(--neon-green);
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* AI Visual */
.ai-visual-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.ai-sphere {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-sphere-ring {
  position: absolute;
  border-radius: 50%;
  animation: aiRingPulse 4s ease-in-out infinite;
}

.ai-r1 { width: 90px;  height: 90px;  border: 1px solid rgba(46, 204, 113, 0.55); animation-delay: 0s; }
.ai-r2 { width: 148px; height: 148px; border: 1px solid rgba(46, 204, 113, 0.25); animation-delay: 0.9s; }
.ai-r3 { width: 215px; height: 215px; border: 1px solid rgba(232, 130, 12, 0.18); animation-delay: 1.8s; }

@keyframes aiRingPulse {
  0%, 100% { opacity: 0.35; transform: scale(0.96); }
  50%       { opacity: 1;    transform: scale(1.04); }
}

.ai-sphere-center {
  font-size: 3.4rem;
  background: linear-gradient(135deg, #2ecc71, #f39c12);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 18px rgba(46, 204, 113, 0.7));
  animation: aiBrainGlow 2.5s ease-in-out infinite alternate;
  z-index: 2;
}

@keyframes aiBrainGlow {
  0%   { filter: drop-shadow(0 0 10px rgba(46, 204, 113, 0.5)); }
  100% { filter: drop-shadow(0 0 28px rgba(46, 204, 113, 1)); }
}

.ai-small-badges {
  display: flex;
  gap: 0.6rem;
}

.ai-sm-badge {
  width: 36px;
  height: 36px;
  background: rgba(5, 13, 8, 0.9);
  border: 1px solid rgba(46, 204, 113, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--neon-green);
  box-shadow: 0 0 10px rgba(46, 204, 113, 0.2);
}

@media (max-width: 768px) {
  .ai-section { grid-template-columns: 1fr; }
  .ai-visual-block { display: none; }
}

/* ── Join CTA — intro text ── */
.join-intro {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
  max-width: 760px;
  margin: 0.4rem auto 1.6rem;
}

/* ── Join Perks Cards Grid ── */
.join-perks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  width: 100%;
  margin-bottom: 2rem;
  text-align: left;
}

.perk-card {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(46, 204, 113, 0.18);
  border-radius: 18px;
  padding: 1.4rem 1.2rem;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.perk-card:hover {
  background: rgba(46, 204, 113, 0.08);
  border-color: rgba(46, 204, 113, 0.5);
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(46, 204, 113, 0.14);
}

.perk-icon-wrap {
  display: flex;
  gap: 10px;
  margin-bottom: 0.9rem;
}

.perk-icon-wrap i {
  font-size: 1.7rem;
  color: var(--neon-green);
  filter: drop-shadow(0 0 8px rgba(46, 204, 113, 0.55));
}

.perk-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.perk-card p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

@media (max-width: 900px) {
  .join-perks-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .join-perks-grid { grid-template-columns: 1fr; }
}

/* ── Footer Info ── */
.footer-info {
  width: 100%;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.address {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s;
}

.address:hover { color: white; }

.address i {
  color: var(--neon-amber);
  font-size: 1.2rem;
  filter: drop-shadow(0 0 8px rgba(232, 130, 12, 0.5));
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 1.5rem;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
  transform: translateY(-5px) scale(1.1);
  background: linear-gradient(135deg, var(--brand-green), var(--brand-amber));
  border-color: transparent;
  box-shadow: 0 10px 25px rgba(26, 122, 74, 0.45);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .glass-card        { padding: 3rem 1.5rem; }
  .neon-text         { font-size: 2.2rem; }
  .subtitle          { font-size: 1rem; }
  .logo-wrapper      { width: 180px; height: 180px; }
  .logo              { width: 155px; height: 155px; }
  .flag-container    { top: 1rem; right: 1rem; width: 65px; height: 40px; }
  .brand             { font-size: 1.1rem; padding: 0 1rem; }
  .brand-name-block  { font-size: 1.7rem; }
}

@media (max-width: 480px) {
  .neon-text         { font-size: 1.8rem; }
  .logo-wrapper      { width: 150px; height: 150px; }
  .logo              { width: 125px; height: 125px; }
  .social-links a    { width: 45px; height: 45px; font-size: 1.2rem; }
  .brand-name-block  { font-size: 1.4rem; letter-spacing: 2px; }
}
