/* ============================================
   TRILLY GOLF · TRILLY TEE — Homepage Styles
   ============================================ */

/* ── Hero ── */
.home-hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 4rem;
  background: var(--bg-primary);
  position: relative;
}

.home-hero__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 65% 40%, rgba(201, 168, 76, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 50% 30%, rgba(201, 168, 76, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(6, 10, 20, 0.9) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-primary) 0%, rgba(10, 14, 26, 0.6) 30%, rgba(10, 14, 26, 0.4) 50%, var(--bg-primary) 100%);
}

.home-hero__particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  background: var(--gold-primary);
  border-radius: 50%;
  opacity: 0;
  animation: particle-float ease-in-out infinite;
}

@keyframes particle-float {
  0%, 100% { opacity: 0; transform: translateY(0) scale(0.5); }
  30% { opacity: 0.6; }
  50% { opacity: 0.8; transform: translateY(-30px) scale(1); }
  70% { opacity: 0.4; }
}

.home-hero__title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 60px rgba(201, 168, 76, 0.2);
  animation: fadeInUp 1s ease forwards;
}

.home-hero__subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.8vw, 1.4rem);
  font-style: italic;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 0.15s forwards;
  opacity: 0;
}

.home-hero__welcome {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  animation: fadeInUp 1s ease 0.3s forwards;
  opacity: 0;
}

.home-hero__tagline {
  font-family: var(--font-body);
  font-size: clamp(0.75rem, 1.2vw, 0.95rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 2.5rem;
  animation: fadeInUp 1s ease 0.45s forwards;
  opacity: 0;
}

.home-hero__ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 0.6s forwards;
  opacity: 0;
}

.home-hero__small {
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  animation: fadeInUp 1s ease 0.75s forwards;
  opacity: 0;
}

.home-hero__tower-label {
  position: absolute;
  right: 12%;
  top: 35%;
  text-align: center;
}

.home-hero__tower-label span {
  font-family: var(--font-body);
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  border: 1px solid var(--border-subtle);
  padding: 0.3rem 0.75rem;
  background: rgba(6, 10, 20, 0.6);
  backdrop-filter: blur(4px);
}

.home-hero__scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}

.home-hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--gold-primary), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; height: 40px; }
  50% { opacity: 1; height: 50px; }
}

/* ── Card Grid ── */
.home-cards {
  padding-top: 0;
  margin-top: -1rem;
}

.card {
  text-decoration: none;
  display: block;
}

.card__image-placeholder {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, rgba(201, 168, 76, 0.05) 0%, rgba(10, 14, 26, 0.8) 50%, rgba(201, 168, 76, 0.03) 100%);
  position: relative;
}

.card__image-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(201, 168, 76, 0.08) 0%, transparent 70%);
}

.card__image-placeholder--codex {
  background:
    radial-gradient(circle at 50% 50%, rgba(201, 168, 76, 0.12) 0%, rgba(10, 14, 26, 0.9) 60%);
}

.card--featured {
  border-color: var(--border-medium);
}

.card--featured .card__title {
  text-shadow: var(--glow-text);
}

/* ── Master System ── */
.home-system {
  background:
    linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.home-system__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .home-system__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.home-system__legend {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.legend-swatch {
  width: 20px;
  height: 3px;
  display: inline-block;
}

/* System Diagram */
.home-system__diagram {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.system-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  animation: ring-rotate linear infinite;
}

.system-ring--1 {
  width: 15%; height: 15%;
  border-color: rgba(201, 168, 76, 0.5);
  animation-duration: 20s;
}
.system-ring--2 {
  width: 28%; height: 28%;
  border-color: rgba(74, 122, 58, 0.4);
  animation-duration: 25s;
  animation-direction: reverse;
}
.system-ring--3 {
  width: 40%; height: 40%;
  border-color: rgba(201, 168, 76, 0.3);
  animation-duration: 30s;
}
.system-ring--4 {
  width: 52%; height: 52%;
  border-color: rgba(58, 90, 122, 0.3);
  animation-duration: 35s;
  animation-direction: reverse;
}
.system-ring--5 {
  width: 65%; height: 65%;
  border-color: rgba(201, 168, 76, 0.2);
  animation-duration: 40s;
}
.system-ring--6 {
  width: 78%; height: 78%;
  border-color: rgba(122, 106, 58, 0.2);
  animation-duration: 45s;
  animation-direction: reverse;
}
.system-ring--7 {
  width: 92%; height: 92%;
  border-color: rgba(201, 168, 76, 0.1);
  animation-duration: 50s;
}

@keyframes ring-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.system-core {
  width: 40px;
  height: 40px;
  border: 2px solid var(--gold-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display-decorative);
  font-size: 1rem;
  color: var(--gold-primary);
  background: var(--bg-primary);
  position: relative;
  z-index: 2;
  box-shadow: 0 0 30px rgba(201, 168, 76, 0.3), 0 0 60px rgba(201, 168, 76, 0.1);
}

/* Layers */
.home-system__layers {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.layer-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.layer-num {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gold-primary);
  min-width: 1.5rem;
  padding-top: 2px;
}

.layer-item strong {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-primary);
  display: block;
}

.layer-item span {
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.home-system__badge {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--border-medium);
  background: var(--bg-panel);
}

.badge__icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border: 1.5px solid var(--gold-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display-decorative);
  font-size: 1rem;
  color: var(--gold-primary);
}

/* ── Operations Command ── */
.home-ops {
  background: var(--bg-primary);
}

.home-ops__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .home-ops__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .home-ops__grid {
    grid-template-columns: 1fr;
  }
}

.home-ops__status {
  margin-top: 2rem;
}

.home-ops__feed-visual {
  height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 0.5rem 0;
}

.feed-line {
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(201, 168, 76, 0.1) 10%,
    rgba(201, 168, 76, 0.4) 30%,
    rgba(201, 168, 76, 0.6) 50%,
    rgba(201, 168, 76, 0.3) 70%,
    rgba(201, 168, 76, 0.1) 90%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
  border-radius: 1px;
}

.feed-line:nth-child(2) { animation-delay: 0.5s; opacity: 0.7; }
.feed-line:nth-child(3) { animation-delay: 1s; opacity: 0.5; }
.feed-line:nth-child(4) { animation-delay: 1.5s; opacity: 0.3; }

/* Performance Gauge */
.perf-gauge {
  text-align: center;
}

.perf-gauge__ring {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto;
}

.perf-gauge__ring svg {
  width: 100%;
  height: 100%;
  animation: glow-pulse 3s ease-in-out infinite;
}

.perf-gauge__text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.perf-gauge__text .t-stat-number {
  font-size: 1.8rem;
}

/* ── Mobility Network ── */
.home-mobility {
  background:
    linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  border-top: 1px solid var(--border-subtle);
}

.home-vehicle__image {
  width: 100%;
  aspect-ratio: 16/9;
  background:
    linear-gradient(135deg, rgba(201, 168, 76, 0.04) 0%, rgba(10, 14, 26, 0.9) 50%, rgba(201, 168, 76, 0.02) 100%);
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.home-vehicle__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 60%, rgba(201, 168, 76, 0.06) 0%, transparent 60%);
}

.home-vehicle {
  text-align: center;
  transition: all var(--transition-base);
}

.home-vehicle:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-gold);
  transform: translateY(-3px);
}

/* ── Responsive Adjustments ── */
@media (max-width: 768px) {
  .home-hero {
    align-items: center;
    padding-bottom: 2rem;
  }

  .home-hero__tower-label {
    display: none;
  }

  .home-hero__ctas {
    flex-direction: column;
  }

  .home-hero__ctas .btn {
    text-align: center;
    justify-content: center;
  }
}
