/* dogpal.app landing page. Colors, fonts and shapes come from /shared/dogpal-theme.css. */

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

main,
.footer {
  width: min(100% - 2 * clamp(16px, 4vw, 48px), 1200px);
  margin: 0 auto;
}

main {
  flex: 1;
}

body {
  background-image:
    radial-gradient(circle at 12% 18%, rgb(255 0 0 / 55%) 0 1px, transparent 1.5px),
    radial-gradient(circle at 78% 42%, rgb(255 0 0 / 40%) 0 1px, transparent 1.5px),
    radial-gradient(circle at 46% 86%, rgb(255 0 0 / 45%) 0 1px, transparent 1.5px);
  background-size: 360px 300px;
}

.intro {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-top: 32px;
  padding: clamp(56px, 9vw, 112px) clamp(20px, 4vw, 56px);
  border: 1px solid var(--dp-border);
  border-radius: 20px;
  background-color: var(--dp-bg);
  overflow: hidden;
}

/* fade the grid toward the edges */
.intro::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 45%, transparent 20%, var(--dp-bg) 78%);
  pointer-events: none;
}

.intro-text {
  position: relative;
  z-index: 1;
  flex: 1 1 520px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--dp-accent-text);
  font-family: var(--dp-font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.spark {
  width: 12px;
  height: 12px;
  fill: var(--dp-accent-text);
  filter: drop-shadow(0 0 6px rgb(255 0 0 / 60%));
}

.hero-logo {
  margin: 0 0 -0.12em;
  font-size: clamp(52px, 12vw, 148px);
}

.tagline {
  margin: 0;
  max-width: 820px;
  color: var(--dp-text);
  font-size: clamp(26px, 3.6vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.tagline span {
  color: var(--dp-text-subtle);
}

.intro-copy {
  max-width: 520px;
  margin: 0;
  color: var(--dp-text-muted);
  font-size: 18px;
  line-height: 1.55;
}

.sun {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: clamp(150px, 20vw, 240px);
  height: auto;
  fill: var(--dp-accent);
  stroke: var(--dp-accent);
  stroke-width: 7;
  stroke-linecap: round;
  filter: drop-shadow(0 0 40px rgb(255 0 0 / 40%));
}

.sun .drip,
.sun .drop {
  stroke: none;
}

@media (max-width: 620px) {
  .sun {
    display: none;
  }
}

.intro-copy a {
  color: var(--dp-accent-text);
}

.apps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 72px 0 96px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--dp-border);
}

.section-heading h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.app-count,
.app-index,
.app-category,
.app-path {
  font-family: var(--dp-font-mono);
}

.app-count {
  color: var(--dp-text-subtle);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 20px;
}

.app-card {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 28px;
  background: var(--dp-surface-1);
  border: 1px solid var(--dp-border);
  border-radius: 16px;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.app-card:hover {
  background: #141416;
  border-color: var(--dp-accent-line);
  box-shadow: 0 0 32px rgb(255 0 0 / 12%);
}

.app-card:focus-visible {
  outline: 2px solid var(--dp-accent-text);
  outline-offset: 2px;
}

.app-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.app-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--dp-border-strong);
  border-radius: 13px;
  background: var(--dp-surface-2);
  color: var(--dp-accent-text);
  font-size: 24px;
  font-weight: 700;
}

.app-icon-filled {
  border-color: var(--dp-accent);
  background: var(--dp-accent);
  color: #fff;
  box-shadow: var(--dp-accent-glow);
}

.app-index {
  color: var(--dp-text-subtle);
  font-size: 12px;
}

.app-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-category {
  color: var(--dp-text-muted);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.app-name {
  align-self: flex-start;
  margin: 2px 0 -4px;
  font-size: 40px;
}

.app-description {
  color: var(--dp-text-muted);
  font-size: 15px;
  line-height: 1.5;
}

.app-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--dp-border);
  color: var(--dp-accent-text);
  font-size: 14px;
  font-weight: 600;
}

.arrow {
  display: inline-block;
  transition: transform 160ms ease;
}

.app-card:hover .arrow {
  transform: translate(2px, -2px);
}

.app-path {
  color: var(--dp-text-subtle);
  font-size: 11px;
  font-weight: 400;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--dp-border);
  color: var(--dp-text-muted);
  font-size: 14px;
}

.footer-note {
  color: var(--dp-text-subtle);
}

.footer a {
  color: var(--dp-text-2);
  font-weight: 500;
}

.footer a:hover {
  color: var(--dp-text);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
