/* ================================================
   HOME.CSS — Homepage-only styles
   Mission Green Website
   ================================================ */

/* ── Homepage Hero ── */
.hh {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 160px 5% 80px;
  overflow: hidden;
}

.hh-bg {
  position: absolute;
  inset: 0;
}

.hh-g1 {
  position: absolute;
  width: 650px;
  height: 650px;
  top: -15%;
  right: -8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(128, 217, 89, .14), transparent 70%);
  filter: blur(90px);
  animation: flt 14s ease-in-out infinite;
}

.hh-g2 {
  position: absolute;
  width: 400px;
  height: 400px;
  bottom: 0;
  left: -8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(128, 217, 89, .07), transparent 70%);
  filter: blur(80px);
  animation: flt 11s ease-in-out infinite reverse;
}

.hh-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}

@keyframes flt {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-28px); }
}

/* ── Orb Animation ── */
.hh-orb {
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  width: min(480px, 42vw);
  height: min(480px, 42vw);
  display: flex;
  align-items: center;
  justify-content: center;
}

.orb-r {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(128, 217, 89, .1);
}

.r1 { inset: 0; animation: spin 42s linear infinite; }
.r2 { inset: 10%; border-color: rgba(128, 217, 89, .07); animation: spin 29s linear infinite reverse; }
.r3 { inset: 20%; border-color: rgba(128, 217, 89, .05); animation: spin 57s linear infinite; }

.orb-r::before {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--g);
  top: -5px;
  left: 50%;
  box-shadow: 0 0 14px rgba(128, 217, 89, .9);
}

.orb-core {
  width: 34%;
  height: 34%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #d4ff9a, #80D959 40%, #2d8810);
  box-shadow: 0 0 80px rgba(128, 217, 89, .55), 0 0 160px rgba(128, 217, 89, .2);
  animation: breathe 5s ease-in-out infinite;
  z-index: 1;
}

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes breathe {
  0%, 100% { box-shadow: 0 0 80px rgba(128, 217, 89, .55), 0 0 160px rgba(128, 217, 89, .2); }
  50% { box-shadow: 0 0 110px rgba(128, 217, 89, .75), 0 0 200px rgba(128, 217, 89, .3); }
}

/* ── Hero Content ── */
.hh-content {
  position: relative;
  z-index: 2;
  max-width: 660px;
  animation: fadeUp .8s cubic-bezier(.22, .68, 0, 1.2) both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hh-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--g30);
  border-radius: 100px;
  margin-bottom: 28px;
  background: rgba(128, 217, 89, .05);
}

.hh-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--g);
  animation: pulse 2s ease-in-out infinite;
}

.hh-badge span {
  font-size: 12px;
  font-weight: 600;
  color: var(--g);
  letter-spacing: .5px;
}

.hh-h1 {
  font-family: var(--fh);
  font-size: clamp(46px, 6.5vw, 92px);
  font-weight: 800;
  line-height: .93;
  letter-spacing: -.045em;
  margin-bottom: 24px;
}

.hh-h1 .g { color: var(--g); }
.hh-h1 .outline {
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, .2);
  color: transparent;
}

.hh-sub {
  font-size: clamp(15px, 1.5vw, 18px);
  color: rgba(255, 255, 255, .44);
  line-height: 1.9;
  max-width: 500px;
  margin-bottom: 36px;
}

/* ── Trust Strip ── */
.trust-strip {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trust-num {
  font-family: var(--fh);
  font-size: 20px;
  font-weight: 800;
  color: var(--g);
  letter-spacing: -.04em;
}

.trust-lbl {
  font-size: 11px;
  color: rgba(255, 255, 255, .32);
  line-height: 1.5;
}

.trust-div {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, .07);
}

/* ── Pillar Grid ── */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 56px;
}

.pillar {
  padding: 52px 40px;
  background: var(--d2);
  position: relative;
  overflow: hidden;
  border-top: 2px solid transparent;
  transition: all .3s;
}

.pillar:hover {
  border-color: var(--g);
  background: var(--d3);
}

.p-num {
  font-family: var(--fh);
  font-size: 64px;
  font-weight: 800;
  color: rgba(128, 217, 89, .05);
  position: absolute;
  top: 16px;
  right: 20px;
  line-height: 1;
}

.p-icon {
  width: 50px;
  height: 50px;
  border-radius: 11px;
  background: var(--g10);
  border: 1px solid var(--g20);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.p-icon svg {
  width: 22px;
  height: 22px;
}

.pillar h3 {
  font-family: var(--fh);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.03em;
  margin-bottom: 12px;
}

.pillar p {
  font-size: 13px;
  color: rgba(255, 255, 255, .42);
  line-height: 1.8;
}

/* ── Ecosystem Grid ── */
.eco-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 52px;
}

.eco-item {
  padding: 36px;
  background: var(--d2);
  border-left: 3px solid transparent;
  transition: all .3s;
  position: relative;
  display: block;
}

.eco-item:hover {
  background: var(--d3);
  border-color: var(--g);
}

.eco-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--g);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.eco-item h4 {
  font-family: var(--fh);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.03em;
  margin-bottom: 10px;
}

.eco-item p {
  font-size: 13px;
  color: rgba(255, 255, 255, .38);
  line-height: 1.78;
}

.eco-arrow {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: rgba(255, 255, 255, .3);
  transition: all .2s;
}

.eco-item:hover .eco-arrow {
  border-color: var(--g);
  color: var(--g);
}

/* ── Calculator ── */
.calc-wrap {
  background: var(--d2);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: var(--r16);
  padding: 44px;
  margin-top: 52px;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.calc-field {
  margin-bottom: 18px;
}

.calc-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, .3);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.calc-field input,
.calc-field select {
  width: 100%;
  padding: 12px 16px;
  background: var(--d3);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: var(--r8);
  color: #fff;
  font-family: var(--fb);
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
  -webkit-appearance: none;
}

.calc-field input:focus,
.calc-field select:focus {
  border-color: var(--g30);
}

.calc-field select option {
  background: var(--d3);
}

.calc-result {
  background: var(--d3);
  border: 1px solid rgba(128, 217, 89, .15);
  border-radius: var(--r12);
  padding: 32px;
}

.calc-result-num {
  font-family: var(--fh);
  font-size: 52px;
  font-weight: 800;
  color: var(--g);
  letter-spacing: -.04em;
  line-height: 1;
  margin-bottom: 6px;
}

.calc-result-lbl {
  font-size: 13px;
  color: rgba(255, 255, 255, .35);
  margin-bottom: 24px;
}

.calc-r-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.calc-r-row:last-child {
  border-bottom: none;
}

.calc-r-row span:first-child {
  font-size: 13px;
  color: rgba(255, 255, 255, .42);
}

.calc-r-row span:last-child {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

/* ── Homepage Responsive ── */
@media (max-width: 1024px) {
  .calc-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .hh {
    padding-top: 130px;
  }

  .hh-orb {
    display: none;
  }

  .pillar-grid,
  .eco-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hh-h1 {
    font-size: clamp(36px, 10vw, 56px);
  }

  .trust-strip {
    gap: 16px;
  }

  .trust-div {
    display: none;
  }

  .calc-wrap {
    padding: 24px;
  }
}
