/* Landing styles for the AI-BAND page */

/* Base reset */

html,
body {
  height: 100%;
}
body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  background: var(--primary);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Custom Scrollbar (WebKit) */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--primary);
}
::-webkit-scrollbar-thumb {
  background: var(--accent-dark);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Screen-reader utility */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Grain Overlay */
.grain {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  opacity: 0.04;
  z-index: 1;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIj48ZmlsdGVyIGlkPSJhIj48ZmVUdXJidWxlbmNlIGJhc2VGcmVxdWVuY3k9Ii42NSIgbnVtT2N0YXZlcz0iNCIgc2VlZD0iMiIvPjxmZUNvbG9yTWF0cml4IHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMSAwIi8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsdGVyPSJ1cmwoI2EpIiBvcGFjaXR5PSIxIi8+PC9zdmc+");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%,
  100% {
    transform: translate(0, 0);
  }
  10% {
    transform: translate(-5%, -10%);
  }
  30% {
    transform: translate(3%, 15%);
  }
  50% {
    transform: translate(12%, 9%);
  }
  70% {
    transform: translate(9%, 4%);
  }
  90% {
    transform: translate(-1%, 7%);
  }
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background:
    radial-gradient(
      ellipse at top center,
      rgba(207, 194, 189, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
    ellipse at bottom,
    rgba(44, 35, 33, 0.3) 0%,
    transparent 70%
  );
}
.hero-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}
.particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 1400px;
  width: 100%;
}
.grain {
  z-index: 1;
}

/* Orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  animation: drift 30s infinite ease-in-out;
  mix-blend-mode: screen;
}
.orb1 {
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--accent), transparent);
  top: -400px;
  left: -200px;
  animation-delay: 0s;
}
.orb2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-dark), transparent);
  bottom: -200px;
  right: -300px;
  animation-delay: 10s;
}
.orb3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-light), transparent);
  top: 40%;
  left: 60%;
  animation-delay: 20s;
}

@keyframes drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  33% {
    transform: translate(30px, -60px) scale(1.1) rotate(120deg);
  }
  66% {
    transform: translate(-60px, 30px) scale(0.9) rotate(240deg);
  }
}

/* Hero text & animations – visible by default, animate only when allowed */
.tagline,
.perform-tag,
.brand,
.subtitle,
.hero-cta,
.launch-year,
h1 {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .tagline,
  .perform-tag,
  .brand,
  .subtitle,
  .hero-cta,
  .launch-year,
  h1 {
    opacity: 0;
  }

  .tagline {
    animation: fadeInDown 1s ease 0.2s forwards;
  }
  .perform-tag {
    animation: fadeInDown 1s ease 0.4s forwards;
  }
  .brand {
    animation: fadeInDown 1s ease 0.6s forwards;
  }
  h1 {
    animation: heroTitle 1.5s ease 0.8s forwards;
  }
  .subtitle {
    animation: fadeInDown 1s ease 1s forwards;
  }
  .hero-cta {
    animation: fadeInUp 1s ease 1.2s forwards;
  }
  .launch-year {
    animation: fadeInDown 1s ease 1.4s forwards;
  }
}

.tagline {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-weight: 500;
}
.perform-tag {
  display: block;
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 300;
}
.brand {
  font-size: 1rem;
  letter-spacing: 0.5em;
  font-weight: 300;
  display: inline-block;
  margin-bottom: 0.5rem;
  color: var(--accent-light);
  text-decoration: none;
}
h1 {
  font-size: clamp(5rem, 15vw, 12rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.9;
  margin: 2rem 0;
  position: relative;
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.25);
}
.title-ai {
  display: block;
  background: linear-gradient(
    90deg,
    var(--text-bright) 0%,
    var(--accent) 50%,
    var(--text-bright) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}
.title-band {
  display: block;
  color: var(--accent);
  font-weight: 300;
  letter-spacing: 0.05em;
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes heroTitle {
  from {
    opacity: 0;
    transform: scale(0.9);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}
@keyframes shimmer {
  to {
    background-position: 200% center;
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Subtitle + CTAs */
.subtitle {
  font-size: 1.3rem;
  color: var(--text-muted);
  margin: 2rem 0 3rem;
  letter-spacing: 0.05em;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.cta-primary,
.cta-secondary {
  display: inline-block;
  padding: 1.2rem 3.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 100px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.cta-primary {
  color: var(--primary);
  background: var(--accent);
  position: relative;
  overflow: hidden;
}
.cta-primary::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: var(--accent-light);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}
.cta-primary:hover::before {
  width: 300px;
  height: 300px;
}
.cta-primary span {
  position: relative;
  z-index: 1;
}
.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(207, 194, 189, 0.3);
}

.cta-secondary {
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent);
}
.cta-secondary:hover {
  background: rgba(207, 194, 189, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(207, 194, 189, 0.2);
}

.cta-primary:focus-visible,
.cta-secondary:focus-visible,
.tour-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Launch year */
.launch-year {
  display: block;
  margin-top: 3rem;
  font-size: 2rem;
  font-weight: 200;
  letter-spacing: 0.2em;
  color: var(--accent);
}

/* Floating Particles */
.particle {
  position: absolute;
  width: 1px;
  height: 1px;
  background: var(--accent);
  opacity: 0.3;
  animation: float-up 20s infinite linear;
}
@keyframes float-up {
  from {
    transform: translateY(100vh) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.3;
  }
  90% {
    opacity: 0.3;
  }
  to {
    transform: translateY(-100vh) translateX(100px);
    opacity: 0;
  }
}

/* VALUE SECTION */
.value-section {
  padding: 10rem 2rem;
  position: relative;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(44, 35, 33, 0.2),
    transparent
  );
}
.section-container {
  max-width: 1200px;
  margin: 0 auto;
}
.value-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
  opacity: 0.8;
}
.value-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.1;
  margin-bottom: 2rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}
.value-text {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.value-subtext {
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* HUBS */
.hubs-section {
  padding: 8rem 2rem;
  position: relative;
}
.hubs-title {
  text-align: center;
  font-size: clamp(2.5rem, 7vw, 5rem);
  margin-bottom: 5rem;
  font-weight: 200;
  letter-spacing: 0.02em;
  color: var(--text-bright);
}
.hubs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}
.hub-card {
  background: linear-gradient(
    135deg,
    rgba(44, 35, 33, 0.3),
    rgba(23, 18, 18, 0.5)
  );
  border: 1px solid rgba(207, 194, 189, 0.1);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}
.hub-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.hub-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top left,
    rgba(207, 194, 189, 0.1),
    transparent
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}
.hub-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 30px 60px rgba(207, 194, 189, 0.15);
}
.hub-card:hover::before {
  transform: scaleX(1);
}
.hub-card:hover::after {
  opacity: 1;
}
.hub-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
  position: relative;
}
.hub-icon::before {
  content: "";
  position: absolute;
  inset: -10px;
  background: radial-gradient(circle, var(--accent), transparent);
  opacity: 0.2;
  border-radius: 50%;
  animation: pulse 3s infinite;
}
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.2;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.1;
  }
}
.hub-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  font-weight: 400;
}
.hub-card ul {
  list-style: none;
}
.hub-card li {
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.95rem;
  line-height: 1.6;
}
.hub-card li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  opacity: 0.6;
}

/* Put AI CARRERA in the "middle" (top-right) of a 2×2 layout on wider screens.
   Mobile keeps DOM order (no visual reordering). */
@media (min-width: 900px) {
  /* lock to 2 columns so the 2×2 layout is predictable */
  .hubs-grid {
    grid-template-columns: repeat(2, minmax(280px, 1fr));
  }

  /* explicit placement */
  .hub-card[aria-labelledby="h3-vitals"] {
    grid-row: 1;
    grid-column: 1;
  }
  .hub-card[aria-labelledby="h3-carrera"] {
    grid-row: 1;
    grid-column: 2;
  } /* ← middle */
  .hub-card[aria-labelledby="h3-nutrition"] {
    grid-row: 2;
    grid-column: 1;
  }
  .hub-card[aria-labelledby="h3-sports"] {
    grid-row: 2;
    grid-column: 2;
  }
}

/* On mobile, fall back to natural flow (same as your DOM order). */
@media (max-width: 899.98px) {
  .hub-card[aria-labelledby] {
    grid-row: auto;
    grid-column: auto;
  }
}

/* TOUR */
.tour-section {
  padding: 10rem 2rem;
  text-align: center;
  position: relative;
  background: radial-gradient(
    ellipse at center,
    rgba(207, 194, 189, 0.05) 0%,
    transparent 70%
  );
}
.tour-box {
  max-width: 800px;
  margin: 0 auto;
  padding: 5rem 3rem;
  background: linear-gradient(
    135deg,
    rgba(44, 35, 33, 0.4),
    rgba(23, 18, 18, 0.6)
  );
  border: 1px solid rgba(207, 194, 189, 0.2);
  border-radius: 32px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
}
.tour-box::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--gradient);
  border-radius: 32px;
  opacity: 0.5;
  z-index: -1;
  animation: rotate 10s linear infinite;
}
@keyframes rotate {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}
.tour-label {
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.tour-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--text-bright);
  font-weight: 200;
}
.tour-subtitle {
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 3rem;
  letter-spacing: 0.05em;
}
.tour-cta {
  display: inline-block;
  padding: 1.5rem 4rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--primary);
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: 100px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.tour-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 0 60px rgba(207, 194, 189, 0.4);
}

/* FOOTER */
footer {
  padding: 6rem 2rem 3rem;
  text-align: center;
  border-top: 1px solid rgba(207, 194, 189, 0.1);
  background: linear-gradient(180deg, transparent, rgba(23, 18, 18, 0.5));
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-brand {
  font-size: 1.5rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 2rem;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}
.footer-links a:hover {
  color: var(--accent);
}
.footer-copy {
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 4rem;
  }
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  .cta-primary,
  .cta-secondary {
    width: 100%;
    max-width: 300px;
  }
  .hubs-grid {
    grid-template-columns: 1fr;
  }
  .tour-box {
    padding: 3rem 2rem;
  }
  .value-title {
    font-size: 2rem;
  }
}

/* Loader */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeOut 0.6s ease 1.5s forwards;
  pointer-events: none; /* ensure it never traps clicks */
}
.loader-content {
  text-align: center;
}
.loader-logo {
  font-size: 2rem;
  letter-spacing: 0.5em;
  color: var(--accent);
  margin-bottom: 2rem;
  animation: pulse 1.5s infinite;
}
.loader-bar {
  width: 200px;
  height: 2px;
  background: rgba(207, 194, 189, 0.2);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.loader-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--accent);
  animation: load 1.5s ease forwards;
}
@keyframes load {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}
@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 1; /* visible by default */
}
.scroll-indicator::before {
  content: "";
  display: block;
  width: 20px;
  height: 30px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  position: relative;
}
.scroll-indicator::after {
  content: "";
  display: block;
  width: 2px;
  height: 8px;
  background: var(--accent);
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-indicator {
    animation: fadeInDown 1s ease 1.6s forwards, bounce 2s infinite 2.6s;
  }
  .scroll-indicator::after {
    animation: scroll 1.5s infinite;
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(10px);
  }
}
@keyframes scroll {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
}

/* Reduced motion safety */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .grain {
    display: none !important;
  }
  .loader {
    display: none !important;
  }
}
