/* ============================================================
   HOME.CSS — ADRIANCALLEJA.COM 2.0
   Homepage-specific layout and visual identity
============================================================ */

/* HERO */

.home-hero {
  min-height: calc(100vh - 88px);
  display: flex;
  align-items: center;
  padding-top: 6rem;
  padding-bottom: 5rem;
}

.home-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4rem;
  align-items: center;
}

.home-hero h1 {
  max-width: 900px;
}

.home-hero .lead {
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2rem;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-proof span {
  color: var(--muted);
  font-size: 0.88rem;
}

/* HERO VISUAL */

.hero-system-card {
  position: relative;
  border-radius: 2rem;
  padding: 1rem;
  overflow: hidden;
}

.hero-system-card::before {
  content: "";
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(circle at 30% 20%, rgba(124, 255, 225, 0.18), transparent 38%),
    radial-gradient(circle at 75% 70%, rgba(139, 92, 246, 0.2), transparent 38%);
  animation: heroGlow 9s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes heroGlow {
  from {
    transform: translate(-4%, -4%) rotate(0deg);
  }
  to {
    transform: translate(4%, 4%) rotate(8deg);
  }
}

.system-window {
  position: relative;
  z-index: 1;
  border-radius: 1.5rem;
  overflow: hidden;
  background: rgba(5, 6, 8, 0.76);
  border: 1px solid var(--border);
}

.window-top {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
}

.window-top span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0.75;
}

.window-body {
  padding: 1.1rem;
  display: grid;
  gap: 1rem;
}

.metric-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.metric-card {
  padding: 1rem;
  border-radius: 1.1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
}

.metric-card small {
  display: block;
  color: var(--muted);
  margin-bottom: 0.55rem;
}

.metric-card strong {
  font-size: 1.5rem;
}

.chart-card {
  min-height: 180px;
  border-radius: 1.1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  display: flex;
  align-items: flex-end;
  gap: 0.55rem;
}

.chart-card span {
  flex: 1;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(to top, var(--accent), rgba(124,255,225,0.08));
}

.chart-card span:nth-child(1) { height: 35%; }
.chart-card span:nth-child(2) { height: 65%; }
.chart-card span:nth-child(3) { height: 48%; }
.chart-card span:nth-child(4) { height: 78%; }
.chart-card span:nth-child(5) { height: 58%; }
.chart-card span:nth-child(6) { height: 88%; }

/* POSITIONING SECTION */

.positioning-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: -2rem;
  position: relative;
  z-index: 2;
}

.positioning-item {
  padding: 1.2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
}

.positioning-item strong {
  display: block;
  margin-bottom: 0.4rem;
}

.positioning-item span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* SERVICES PREVIEW */

.home-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.home-service-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.home-service-card a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 800;
  margin-top: 1.5rem;
}

/* WORK PREVIEW */

.work-preview {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 1.5rem;
  align-items: stretch;
}

.work-copy {
  padding: 2rem;
  border-radius: var(--radius-xl);
}

.work-stack {
  display: grid;
  gap: 1rem;
}

.work-item {
  padding: 1.4rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.035);
}

.work-item strong {
  display: block;
  margin-bottom: 0.4rem;
}

.work-item span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ABOUT SNAPSHOT */

.about-snapshot {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
}

.about-photo-card {
  border-radius: 2rem;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.about-photo-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about-bullets {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.about-bullets span {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.035);
  color: var(--text-soft);
}

/* CTA */

.home-cta {
  border-radius: 2rem;
  padding: clamp(2rem, 6vw, 5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.home-cta::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at top, rgba(124,255,225,0.16), transparent 55%),
    radial-gradient(circle at bottom right, rgba(139,92,246,0.18), transparent 55%);
  pointer-events: none;
}

.home-cta > * {
  position: relative;
}

.home-cta .lead {
  margin-inline: auto;
  margin-bottom: 2rem;
}

/* LIGHT MODE */

body.light .system-window {
  background: rgba(255,255,255,0.86);
}

body.light .metric-card,
body.light .chart-card,
body.light .positioning-item,
body.light .work-item,
body.light .about-bullets span {
  background: #ffffff;
}

/* RESPONSIVE */

@media (max-width: 980px) {
  .home-hero {
    min-height: auto;
  }

  .home-hero-grid,
  .work-preview,
  .about-snapshot {
    grid-template-columns: 1fr;
  }

  .positioning-strip,
  .home-services-grid {
    grid-template-columns: 1fr;
  }

  .positioning-strip {
    margin-top: 0;
  }

  .hero-system-card {
    order: -1;
  }
}

@media (max-width: 640px) {
  .home-hero {
    padding-top: 4rem;
  }

  .metric-row {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .work-copy {
    padding: 1.4rem;
  }
}