﻿/*
  File: home-enhancements.css
  Project: CloudMiningRoI.com
  Purpose:
    Home-page specific layout and visual improvements for the public landing page.
  DevOps:
    Loaded only on the homepage so the rest of the site keeps its existing shared styles untouched.
*/

.home-hero {
  position: relative;
  overflow: hidden;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 85% 12%, rgba(70, 211, 154, 0.18), transparent 22rem),
    radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.04), transparent 18rem);
}

.home-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 24px;
  align-items: start;
}

.home-hero .hero-content {
  max-width: none;
  padding-top: 6px;
}

.home-hero-domainline {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.home-hero-panel {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 28px;
  border: 1px solid rgba(70, 211, 154, 0.22);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(17, 31, 53, 0.96), rgba(14, 27, 46, 0.92));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.home-hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -18% -22% auto;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(70, 211, 154, 0.18), transparent 68%);
  pointer-events: none;
}

.home-hero-panel > * {
  position: relative;
  z-index: 1;
}

.home-hero-panel h2 {
  margin-bottom: 0;
  font-size: clamp(1.45rem, 2.8vw, 2.2rem);
}

.home-hero-panel .section-lead {
  margin-bottom: 6px;
}

.home-architecture-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.home-architecture-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 154px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.home-architecture-card h3 {
  margin: 0;
  font-size: 1rem;
}

.home-architecture-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.home-hero-panel-link {
  width: 100%;
}

.home-start .card,
.home-tool-grid .card,
.home-research-grid article,
.home-principles .card {
  position: relative;
  overflow: hidden;
}

.home-start .card::before,
.home-tool-grid .card::before,
.home-research-grid article::before,
.home-principles .card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(70, 211, 154, 0.6), transparent 74%);
}

.home-path-card {
  min-height: 220px;
}

.home-tool-grid .card,
.home-research-grid article {
  min-height: 240px;
}

.home-principles {
  position: relative;
}

.home-principles .section-inner {
  position: relative;
  z-index: 1;
}

.home-principles::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(14, 27, 46, 0.3), rgba(14, 27, 46, 0.72));
}

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

  .home-hero-panel {
    order: -1;
  }
}

@media (max-width: 720px) {
  .home-hero-panel {
    padding: 22px;
    border-radius: 24px;
  }

  .home-architecture-grid {
    grid-template-columns: 1fr;
  }

  .home-path-card,
  .home-tool-grid .card,
  .home-research-grid article {
    min-height: auto;
  }
}
