/* Homepage refresh: keeps the original full-width layout (core.css) and adds the newer
   design touches - Inter type, gradient headings, icon buttons with glow and a grid texture.
   Loaded only on the homepage. The Premium section is intentionally left untouched. */

.home-refresh {
  --hr-font: "Inter", "Azo Sans", "Roboto", system-ui, sans-serif;
}

/* ---------- Full-width colour bands ---------- */

.hr-band {
  position: relative;
  margin-bottom: 0;
  overflow: hidden;
  color: #ffffff;
  font-family: var(--hr-font);
  isolation: isolate;
}

.hr-band > .container {
  position: relative;
  z-index: 1;
}

/* Application Bot: the original coral gradient, with a soft glow */
.hr-band-app {
  --hr-ink: #e04a4b;
  --hr-glow: 255, 214, 170;
  background:
    radial-gradient(60% 70% at 50% 0%, rgba(255, 220, 190, 0.35), transparent 70%),
    linear-gradient(160deg, #f05251 0%, #d77d63 100%);
}

/* Todo List Bot: the original teal gradient */
.hr-band-todo {
  --hr-ink: #2f8f8a;
  --hr-glow: 200, 255, 245;
  padding: 72px 0;
  background:
    radial-gradient(55% 70% at 80% 50%, rgba(210, 255, 248, 0.3), transparent 70%),
    linear-gradient(160deg, #51a6ba 0%, #4ab197 100%);
}

/* Grid texture, fading out from the top */
.hr-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 75% at 50% 15%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 75% at 50% 15%, #000 20%, transparent 75%);
  pointer-events: none;
}

.hr-band-todo .hr-grid {
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 25% 50%, #000 15%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 80% at 25% 50%, #000 15%, transparent 75%);
}

/* ---------- Type ---------- */

.hr-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 500;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.hr-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25);
}

.home-refresh .hr-title {
  margin: 20px 0 6px;
  color: #ffffff;
  font-family: var(--hr-font);
  font-size: clamp(2.8rem, 6.5vw, 4.75rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.home-refresh .hr-subtitle {
  margin: 0 0 32px;
  font-family: var(--hr-font);
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

/* Gradient text that still reads on the coloured bands */
.hr-gradient-text {
  background: linear-gradient(90deg, #ffffff 0%, #ffe7b3 55%, #ffc78a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hr-band-todo .hr-gradient-text {
  background-image: linear-gradient(90deg, #ffffff 0%, #d4fff4 50%, #9ee8ff 100%);
}

/* ---------- Buttons ---------- */

.hr-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.home-refresh .hr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  margin: 0;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: var(--hr-font);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.home-refresh .hr-btn:hover {
  transform: translateY(-2px);
}

.home-refresh .hr-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

/* Solid white with a coloured label and a soft glow */
.home-refresh .hr-btn-light {
  background: #ffffff;
  color: var(--hr-ink, #e04a4b);
  box-shadow:
    0 12px 30px -10px rgba(0, 0, 0, 0.35),
    0 0 40px -6px rgba(var(--hr-glow, 255, 255, 255), 0.75);
}

.home-refresh .hr-btn-light:hover {
  color: var(--hr-ink, #e04a4b);
  box-shadow:
    0 18px 40px -12px rgba(0, 0, 0, 0.4),
    0 0 55px -4px rgba(var(--hr-glow, 255, 255, 255), 0.9);
}

/* Frosted glass outline */
.home-refresh .hr-btn-glass {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.home-refresh .hr-btn-glass:hover {
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

.home-refresh .hr-btn .fa-arrow-right {
  font-size: 0.85em;
  transition: transform 0.2s ease;
}

.home-refresh .hr-btn:hover .fa-arrow-right {
  transform: translateX(3px);
}

.home-refresh .hr-btn-sm {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.95rem;
}

/* ---------- Hero (Application Bot) ---------- */

.hr-hero {
  padding-top: 72px;
  text-align: center;
}

.hr-hero {
  padding-bottom: 64px;
}

.hr-hero-visual {
  width: min(900px, 100%);
  margin: 48px auto 0;
}

.hr-hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 40px 60px rgba(90, 20, 20, 0.35));
}

/* ---------- Todo List Bot band ---------- */

.hr-split-copy {
  text-align: center;
}

.hr-split-visual img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 40px 60px rgba(10, 60, 60, 0.35));
}

@media (min-width: 769px) {
  .hr-split-visual {
    transform: scale(1.12) translateX(6%);
  }
}

/* ---------- Stats (refreshed type; dark colours set further down) ---------- */

.hr-stats {
  margin: 0;
  font-family: var(--hr-font);
}

.hr-stats-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hr-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.hr-stat-value {
  font-size: clamp(2.8rem, 6vw, 4.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.hr-stat-label {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hr-grad-blue,
.hr-grad-violet,
.hr-grad-purple,
.hr-grad-community,
.hr-grad-team {
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}


/* ---------- Community + team (original dark boxes, refreshed) ---------- */

.home-refresh .community-team .community,
.home-refresh .community-team .team {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  overflow: hidden;
  font-family: var(--hr-font);
}

.home-refresh .community-team .title {
  font-family: var(--hr-font);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.home-refresh .community-team .subtitle {
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--hr-font);
}

.hr-grad-community { background-image: linear-gradient(90deg, #5eead4 0%, #60a5fa 50%, #c084fc 100%); }
.hr-grad-team { background-image: linear-gradient(90deg, #60a5fa 0%, #818cf8 50%, #e879f9 100%); }

.home-refresh .community-team .community .hr-btn-glass {
  box-shadow: 0 0 40px -8px rgba(96, 165, 250, 0.6);
}

.home-refresh .community-team .team .hr-btn-glass {
  box-shadow: 0 0 40px -8px rgba(192, 132, 252, 0.6);
}

/* ---------- Privacy band (from base.html), refreshed heading ---------- */

.subscription-commitment-section h2 {
  font-family: var(--hr-font, "Inter", sans-serif);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #ffffff 0%, #d8c7ff 60%, #b39bff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Dark page (homepage only) ---------- */

body {
  background-color: #08080c;
}

.hr-stats {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hr-stats.section {
  background-color: #0e0e14;
}

/* Brighter versions of the original stat gradients so they read on dark */
.hr-grad-blue { background-image: linear-gradient(90deg, #38bdf8 0%, #60a5fa 100%); }
.hr-grad-violet { background-image: linear-gradient(90deg, #818cf8 0%, #a78bfa 100%); }
.hr-grad-purple { background-image: linear-gradient(90deg, #c084fc 0%, #e879f9 100%); }

/* ---------- Motion + responsive ---------- */

@media (prefers-reduced-motion: reduce) {
  .home-refresh .hr-btn,
  .home-refresh .hr-btn .fa-arrow-right {
    transition: none;
  }
}

@media (max-width: 768px) {
  .hr-hero { padding-top: 48px; }
  .hr-hero-visual { margin-top: 32px; }
  .hr-band-todo { padding: 48px 0 24px; }
  .hr-hero { padding-bottom: 40px; }
  .hr-actions { gap: 10px; }
  .home-refresh .hr-btn { min-height: 44px; padding: 0 16px; font-size: 0.95rem; }
  .hr-stats-list { grid-template-columns: 1fr; gap: 28px; }
  .home-refresh .community-team .community,
  .home-refresh .community-team .team { margin: 0 16px 16px; }
}
