/* /app home · Solar Grove — scoped to home only, does not restyle tool pages */
:root {
  --agh-blue: #2F7DE1;
  --agh-pink: #F07AB8;
  --agh-orange: #F08A3A;
  --agh-green: #2FAE78;
  --agh-ink: #1A2B3C;
  --agh-muted: #4A6074;
  --agh-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --agh-font-display: "Fraunces", "Songti SC", serif;
  --agh-font-body: "Sora", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body.agh-home-body {
  margin: 0;
  color: var(--agh-ink);
  font-family: var(--agh-font-body);
  background:
    radial-gradient(1100px 640px at 8% -8%, rgba(126, 182, 245, 0.42), transparent 58%),
    radial-gradient(900px 560px at 96% 4%, rgba(249, 180, 216, 0.34), transparent 52%),
    radial-gradient(760px 480px at 72% 36%, rgba(247, 192, 138, 0.24), transparent 50%),
    radial-gradient(680px 460px at 14% 78%, rgba(138, 217, 180, 0.24), transparent 52%),
    linear-gradient(180deg, #F4FAFF 0%, #FFF9F4 46%, #F5FFF9 100%);
  -webkit-font-smoothing: antialiased;
}

body.agh-home-body .agh-home-main {
  background: transparent !important;
}

body.agh-home-body .agh-home-main > .container {
  max-width: 1120px;
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

.agh-page {
  position: relative;
  z-index: 1;
}

.agh-sky {
  position: absolute;
  inset: -2rem -1rem auto;
  height: 28rem;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.agh-sky__sun {
  position: absolute;
  top: -6vmax;
  right: -3vmax;
  width: 34vmax;
  height: 34vmax;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(255, 236, 180, 0.9) 0%, rgba(240, 138, 58, 0.22) 38%, transparent 68%);
  /* soft glow only; avoid reading as a page veil */
  filter: blur(0.6px);
}
.agh-sky__haze {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, transparent 0 18px, rgba(255,255,255,0.03) 18px 19px);
  opacity: 0.65;
}
.agh-sky__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(47, 125, 225, 0.12);
}
.agh-sky__ring--1 { width: 22vmax; height: 22vmax; top: 12%; left: -6%; border-color: rgba(47,174,120,.14); }
.agh-sky__ring--2 { width: 14vmax; height: 14vmax; top: 4%; right: 10%; border-color: rgba(240,122,184,.15); }
.agh-deco {
  position: absolute;
  width: clamp(48px, 7vw, 92px);
  opacity: 0.88;
  will-change: transform;
  filter: drop-shadow(0 8px 18px rgba(47,125,225,.1));
}
.agh-deco--1 { top: 18%; left: 2%; }
.agh-deco--2 { top: 8%; right: 8%; width: clamp(42px, 5.5vw, 76px); }
.agh-deco--3 { top: 42%; right: 2%; width: clamp(44px, 6vw, 80px); }

.agh-hero {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2.25rem;
  padding: 1.25rem 0 0.5rem;
}
.agh-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--agh-blue);
  font-weight: 650;
}
.agh-hero__eyebrow-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--agh-blue), var(--agh-green));
  box-shadow: 0 0 0 4px rgba(47,125,225,.12);
}
.agh-hero__brand {
  margin: 0 0 0.55rem;
  font-family: var(--agh-font-display);
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.03em;
  background: linear-gradient(105deg, var(--agh-blue) 0%, var(--agh-pink) 38%, var(--agh-orange) 70%, var(--agh-green) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.agh-hero__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 550;
  color: var(--agh-ink);
}
.agh-hero__lead {
  margin: 0 0 1.25rem;
  max-width: 36rem;
  color: var(--agh-muted);
  line-height: 1.7;
  font-size: 0.98rem;
}
.agh-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.1rem;
}
.agh-hero__aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.agh-hero__stat {
  display: grid;
  place-items: center;
  min-width: 8.5rem;
  padding: 0.85rem 1.1rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: 0 14px 36px rgba(47,125,225,0.1);
  backdrop-filter: blur(12px);
}
.agh-hero__stat-num {
  font-family: var(--agh-font-display);
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(120deg, var(--agh-blue), var(--agh-green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.agh-hero__stat-label {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--agh-muted);
}
.agh-hero__plant { width: min(52vw, 200px); height: auto; }

.agh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.72rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s var(--agh-ease), box-shadow 0.25s var(--agh-ease), background 0.25s ease;
}
.agh-btn--primary {
  color: #fff;
  background: linear-gradient(120deg, var(--agh-blue), #5B9CF0 42%, var(--agh-green));
  box-shadow: 0 10px 26px rgba(47,125,225,0.26);
}
.agh-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(47,125,225,0.32);
}
.agh-btn--ghost {
  color: var(--agh-ink);
  background: rgba(255,255,255,0.55);
  border-color: rgba(47,125,225,0.16);
  backdrop-filter: blur(8px);
}
.agh-btn--ghost:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.85);
}

.agh-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.agh-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.72rem;
  border-radius: 999px;
  font-size: 0.76rem;
  color: var(--agh-muted);
  background: rgba(255,255,255,0.58);
  border: 1px solid rgba(47,125,225,0.1);
}
.agh-chip__dot { width: 0.4rem; height: 0.4rem; border-radius: 50%; }
.agh-chip__dot--b { background: var(--agh-blue); }
.agh-chip__dot--p { background: var(--agh-pink); }
.agh-chip__dot--o { background: var(--agh-orange); }
.agh-chip__dot--g { background: var(--agh-green); }

.agh-tools { position: relative; z-index: 1; }
.agh-tools__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
}
.agh-tools__header h2 {
  margin: 0 0 0.3rem;
  font-family: var(--agh-font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  letter-spacing: -0.02em;
}
.agh-tools__header p {
  margin: 0;
  color: var(--agh-muted);
  font-size: 0.9rem;
}
.agh-tools__count {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--agh-blue);
  background: rgba(47,125,225,0.08);
  border: 1px solid rgba(47,125,225,0.12);
}

.agh-section { margin-bottom: 1.75rem; }
.agh-section__head { margin-bottom: 0.85rem; }
.agh-section__head h3 {
  margin: 0 0 0.25rem;
  font-size: 1.02rem;
  font-weight: 650;
}
.agh-section__head p {
  margin: 0;
  color: var(--agh-muted);
  font-size: 0.84rem;
}

.agh-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.agh-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 148px;
  padding: 1.05rem 1.1rem;
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(255,255,255,0.78);
  box-shadow: 0 14px 36px rgba(47,125,225,0.08);
  backdrop-filter: blur(12px);
  transition: transform 0.28s var(--agh-ease), box-shadow 0.28s var(--agh-ease), border-color 0.28s ease;
}
.agh-tile::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--agh-accent, var(--agh-blue)), transparent);
  opacity: 0.85;
}
.agh-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(47,125,225,0.14);
  border-color: rgba(var(--agh-accent-rgb, 47,125,225), 0.22);
}
.agh-tile__body {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.agh-tile__icon {
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.9), transparent 55%),
    rgba(var(--agh-accent-rgb, 47,125,225), 0.1);
  border: 1px solid rgba(var(--agh-accent-rgb, 47,125,225), 0.14);
  overflow: hidden;
}
.agh-tile__icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}
.agh-tile__icon span { font-size: 1.35rem; line-height: 1; }
.agh-tile__text { min-width: 0; flex: 1; }
.agh-tile__title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.agh-tile__sub {
  font-weight: 500;
  color: var(--agh-muted);
  font-size: 0.82rem;
}
.agh-tile__desc {
  margin: 0;
  color: var(--agh-muted);
  font-size: 0.84rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.agh-tile__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.95rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(47,125,225,0.08);
}
.agh-tile__meta {
  font-size: 0.72rem;
  color: rgba(74,96,116,0.8);
  letter-spacing: 0.02em;
}
.agh-tile__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--agh-accent, var(--agh-blue));
}
.agh-tile--wide { min-height: 132px; }

@media (min-width: 720px) {
  .agh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agh-tile--wide { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .agh-hero {
    grid-template-columns: 1.25fr 0.75fr;
    gap: 1rem;
  }
  .agh-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .agh-tile--wide { grid-column: span 2; }
}

@media (prefers-reduced-motion: reduce) {
  .agh-tile,
  .agh-btn,
  .agh-deco { transition: none !important; }
}


/* Flat unified tool grid (no category sections) */
.agh-grid--flat {
  gap: 1rem;
}
.agh-grid--flat .agh-tile {
  min-height: 156px;
}
.agh-section { display: none; } /* legacy safeguard */
@media (min-width: 720px) {
  .agh-grid--flat {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 960px) {
  .agh-grid--flat {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
