/* ==========================================================================
   home.css — Home Page Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  min-height: calc(100vh - var(--nav-height));
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding-block: 6rem;
  padding-inline: clamp(1rem, 4vw, 2rem);
  max-width: var(--content-max-width);
  margin-inline: auto;
}

.hero-badge {
  display: inline-block;
  background-color: rgba(0, 180, 216, 0.12);
  border: 1px solid rgba(0, 180, 216, 0.35);
  color: var(--color-accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.875rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

.hero-accent {
  color: var(--color-accent);
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--color-text-muted);
  max-width: 55ch;
  margin-bottom: 2.5rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Hero Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.particle-field {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1;
  background: radial-gradient(
    circle at 55% 50%,
    rgba(0, 180, 216, 0.07) 0%,
    transparent 70%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-svg {
  width: 90%;
  height: auto;
  animation: svgPulse 4s ease-in-out infinite;
}

@keyframes svgPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.75; }
}

/* --------------------------------------------------------------------------
   Stats Bar
   -------------------------------------------------------------------------- */
.stats-bar {
  background-color: var(--color-surface);
  border-block: 1px solid var(--color-border);
  padding-block: 2rem;
}

.stats-container {
  max-width: var(--content-max-width);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.stat-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-number {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background-color: var(--color-border);
}

/* --------------------------------------------------------------------------
   Product Cards (Overview)
   -------------------------------------------------------------------------- */
.product-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.product-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color var(--transition-speed) ease,
              box-shadow   var(--transition-speed) ease;
}

.product-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-glow);
}

.product-card--accent {
  border-color: rgba(0, 180, 216, 0.4);
  background: linear-gradient(
    160deg,
    rgba(0, 180, 216, 0.06) 0%,
    var(--color-surface) 60%
  );
}

.product-card-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.product-card-title {
  font-size: 1.2rem;
  color: var(--color-text);
}

.product-card-acronym {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0;
}

.product-card-desc {
  font-size: 0.9rem;
  flex: 1;
}

.product-card-features {
  list-style: none;
  padding-left: 0;
}

.product-card-features li {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  padding-left: 1.25rem;
  position: relative;
  margin-bottom: 0.3rem;
}

.product-card-features li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Why RDS — Features Grid
   -------------------------------------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.feature-item {
  background-color: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: border-color var(--transition-speed) ease;
}

.feature-item:hover {
  border-color: var(--color-accent);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: 4rem;
    text-align: center;
  }

  .hero-subtitle { margin-inline: auto; }

  .hero-cta-group { justify-content: center; }

  .hero-visual { display: none; }

  .product-cards { grid-template-columns: 1fr; }

  .stat-divider { display: none; }
}
