/* ==========================================================================
   Merge Puppies: Idle Game — Garden Meadow Theme
   Palette inspired by in-game art: spring greens, corgi orange, sunshine yellow
   ========================================================================== */

:root {
  --meadow-deep: #3d9b52;
  --meadow: #6bcb77;
  --meadow-light: #c8f0c8;
  --meadow-pale: #eef9ee;
  --corgi-orange: #ff9f43;
  --corgi-warm: #ffb347;
  --sunshine: #ffd93d;
  --sunshine-dark: #e6b800;
  --sky-blue: #74b9ff;
  --cream: #fff8ee;
  --cream-dark: #f5e6d0;
  --bark: #5d4037;
  --bark-soft: #8d6e63;
  --text: #2d3436;
  --text-muted: #5a6268;
  --white: #ffffff;
  --shadow-soft: 0 8px 32px rgba(61, 155, 82, 0.15);
  --shadow-card: 0 12px 40px rgba(93, 64, 55, 0.12);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-pill: 999px;
  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --nav-height: 88px;
  --transition: 200ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.icon--sm {
  width: 1rem;
  height: 1rem;
}

.icon--lg {
  width: 2.5rem;
  height: 2.5rem;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--bark);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* ---- Meadow background ---- */
.meadow-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, #b8e8f8 0%, var(--cream) 35%, var(--meadow-pale) 100%);
}

.meadow-bg__hill {
  position: absolute;
  bottom: 0;
  left: -10%;
  width: 120%;
  border-radius: 50% 50% 0 0;
}

.meadow-bg__hill--far {
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(107, 203, 119, 0.2));
}

.meadow-bg__hill--mid {
  height: 25%;
  background: linear-gradient(180deg, transparent, rgba(107, 203, 119, 0.35));
}

.meadow-bg__flowers {
  position: absolute;
  inset: 0;
}

.flower {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  opacity: 0.6;
}

.flower::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 10px;
  background: var(--meadow-deep);
  border-radius: 1px;
}

.flower--1 { top: 72%; left: 8%; background: var(--white); }
.flower--2 { top: 78%; left: 22%; background: var(--sunshine); }
.flower--3 { top: 85%; right: 15%; background: #ff9ff3; }
.flower--4 { top: 70%; right: 28%; background: var(--white); }
.flower--5 { top: 82%; left: 45%; background: var(--sky-blue); width: 8px; height: 8px; }
.flower--6 { top: 88%; right: 42%; background: var(--sunshine); width: 10px; height: 10px; }

.meadow-bg__butterfly {
  position: absolute;
  width: 16px;
  height: 10px;
  border-radius: 50%;
  background: var(--sky-blue);
  opacity: 0.5;
}

.meadow-bg__butterfly::before,
.meadow-bg__butterfly::after {
  content: "";
  position: absolute;
  top: 0;
  width: 8px;
  height: 10px;
  background: inherit;
  border-radius: 50% 50% 50% 0;
}

.meadow-bg__butterfly::before { left: -6px; transform: rotate(-30deg); }
.meadow-bg__butterfly::after { right: -6px; transform: rotate(30deg) scaleX(-1); }

.meadow-bg__butterfly--1 { top: 25%; left: 12%; }
.meadow-bg__butterfly--2 { top: 40%; right: 18%; background: var(--sunshine); }

/* ---- Doghouse navigation ---- */
.doghouse-nav {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 2rem);
  max-width: 1100px;
  transition: top var(--transition), box-shadow var(--transition);
}

.doghouse-nav.is-scrolled {
  top: 0.5rem;
}

.doghouse-nav__roof {
  position: relative;
  height: 18px;
  margin: 0 2rem;
}

.doghouse-nav__shingle {
  display: block;
  height: 100%;
  background: linear-gradient(135deg, #c4a574 0%, #a08050 50%, #8b6914 100%);
  clip-path: polygon(0 100%, 50% 0, 100% 100%);
  border-radius: 4px 4px 0 0;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}

.doghouse-nav__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1.25rem;
  background: linear-gradient(180deg, #d4a96a 0%, #b8894a 100%);
  border: 3px solid var(--bark);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-soft), inset 0 2px 0 rgba(255, 255, 255, 0.25);
}

.doghouse-nav.is-scrolled .doghouse-nav__body {
  box-shadow: var(--shadow-card), inset 0 2px 0 rgba(255, 255, 255, 0.25);
}

.doghouse-nav__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  transition: opacity var(--transition);
}

.doghouse-nav__brand:hover {
  opacity: 0.85;
}

.doghouse-nav__logo {
  border-radius: 50%;
  border: 2px solid var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.doghouse-nav__name {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.doghouse-nav__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  text-shadow: 1px 1px 0 var(--bark);
}

.doghouse-nav__sub {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--cream);
  opacity: 0.9;
}

.doghouse-nav__links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.doghouse-nav__link {
  padding: 0.4rem 0.85rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--cream);
  border-radius: var(--radius-pill);
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
}

.doghouse-nav__link:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.doghouse-nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  margin-left: 0.25rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--bark);
  background: var(--sunshine);
  border-radius: var(--radius-pill);
  border: 2px solid var(--sunshine-dark);
  box-shadow: 0 3px 0 var(--sunshine-dark);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.doghouse-nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 0 var(--sunshine-dark);
}

.doghouse-nav__cta:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--sunshine-dark);
}

.doghouse-nav__toggle {
  display: none;
  padding: 0.5rem;
  color: var(--white);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
}

.doghouse-nav__toggle:hover {
  background: rgba(255, 255, 255, 0.15);
}

.doghouse-nav__sign {
  display: none;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  cursor: pointer;
}

.btn--primary {
  color: var(--white);
  background: linear-gradient(180deg, var(--corgi-orange) 0%, #e67e22 100%);
  border: 2px solid #d35400;
  box-shadow: 0 4px 0 #c0392b, var(--shadow-soft);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #c0392b, var(--shadow-soft);
}

.btn--primary:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #c0392b;
}

.btn--secondary {
  color: var(--bark);
  background: var(--white);
  border: 2px solid var(--cream-dark);
  box-shadow: 0 4px 0 var(--cream-dark);
}

.btn--secondary:hover {
  transform: translateY(-2px);
  background: var(--cream);
}

.btn--secondary:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--cream-dark);
}

.btn--lg {
  padding: 0.9rem 1.75rem;
  font-size: 1rem;
}

.btn:focus-visible,
.doghouse-nav__link:focus-visible,
.doghouse-nav__cta:focus-visible,
.doghouse-nav__toggle:focus-visible,
.modal__close:focus-visible {
  outline: 3px solid var(--sky-blue);
  outline-offset: 2px;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: calc(var(--nav-height) + 2rem) 1.5rem 0;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  max-width: 1140px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
  padding-bottom: 3rem;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--meadow-deep);
  background: rgba(107, 203, 119, 0.2);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(107, 203, 119, 0.4);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero__title-line {
  display: block;
  color: var(--text);
}

.hero__title-line--accent {
  color: var(--meadow-deep);
  text-shadow: 2px 2px 0 var(--sunshine);
}

.hero__desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 28rem;
  margin-bottom: 1.75rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero__stats {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.hero__stats li {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.65rem 1rem;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 2px solid var(--meadow-light);
  box-shadow: var(--shadow-soft);
  min-width: 72px;
}

.hero__stats strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--corgi-orange);
}

.hero__stats span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Pedestal phone mockup */
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.pedestal-phone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pedestal-phone__glow {
  position: absolute;
  top: 10%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255, 217, 61, 0.4) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.pedestal-phone__device {
  position: relative;
  z-index: 2;
  transform: rotate(3deg);
  transition: transform 400ms ease-out;
}

.pedestal-phone:hover .pedestal-phone__device {
  transform: rotate(0deg) translateY(-4px);
}

.pedestal-phone__bezel {
  width: 220px;
  padding: 10px;
  background: var(--bark);
  border-radius: 28px;
  box-shadow: var(--shadow-card), inset 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.pedestal-phone__bezel img,
.pedestal-phone__screen {
  width: 100%;
  border-radius: 20px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.pedestal-phone__base {
  position: relative;
  z-index: 1;
  margin-top: -8px;
}

.pedestal-phone__disc {
  display: block;
  width: 160px;
  height: 28px;
  background: linear-gradient(180deg, var(--sunshine) 0%, var(--corgi-warm) 100%);
  border-radius: 50%;
  border: 3px solid var(--sunshine-dark);
  box-shadow: 0 6px 16px rgba(230, 184, 0, 0.35);
}

.garden-path {
  width: 100%;
  height: 80px;
  margin-top: auto;
}

.garden-path__trail {
  fill: none;
  stroke: rgba(93, 64, 55, 0.15);
  stroke-width: 6;
  stroke-dasharray: 12 8;
  stroke-linecap: round;
}

/* ---- Features (zigzag path) ---- */
.features {
  padding: 4rem 1.5rem 5rem;
  background: var(--meadow-pale);
  position: relative;
}

.features__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.section-title {
  margin-bottom: 0.75rem;
}

.section-title__ribbon {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(180deg, var(--corgi-orange) 0%, #e67e22 100%);
  padding: 0.5rem 2rem;
  border-radius: var(--radius-sm);
  border: 3px solid #d35400;
  box-shadow: 0 4px 0 #c0392b, var(--shadow-soft);
  transform: rotate(-1deg);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.features__path {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.features__path-line {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 100%;
  z-index: 0;
  opacity: 0.3;
}

.features__path-line path {
  fill: none;
  stroke: var(--meadow-deep);
  stroke-width: 4;
  stroke-dasharray: 8 6;
}

.feature-pedestal {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: 0;
}

.feature-pedestal--left {
  flex-direction: row;
  padding-right: 15%;
}

.feature-pedestal--right {
  flex-direction: row-reverse;
  padding-left: 15%;
}

.feature-pedestal__stand {
  flex-shrink: 0;
  width: 48px;
  height: 20px;
  background: linear-gradient(180deg, var(--sunshine) 0%, var(--corgi-warm) 100%);
  border-radius: 50%;
  border: 2px solid var(--sunshine-dark);
  margin: 0 1rem -2px;
  box-shadow: 0 4px 8px rgba(230, 184, 0, 0.3);
}

.feature-pedestal__card {
  flex: 1;
  max-width: 380px;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 3px solid var(--meadow-light);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: default;
}

.feature-pedestal__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(93, 64, 55, 0.16);
}

.feature-pedestal__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1rem;
  border-radius: 50%;
  color: var(--white);
}

.feature-pedestal__icon--merge { background: linear-gradient(135deg, var(--meadow) 0%, var(--meadow-deep) 100%); }
.feature-pedestal__icon--coins { background: linear-gradient(135deg, var(--sunshine) 0%, var(--corgi-orange) 100%); }
.feature-pedestal__icon--gift { background: linear-gradient(135deg, #ff9ff3 0%, #e056fd 100%); }
.feature-pedestal__icon--heart { background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%); }

.feature-pedestal__card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bark);
  margin-bottom: 0.5rem;
}

.feature-pedestal__card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---- Screenshots gallery ---- */
.screenshots {
  padding: 4rem 0 5rem;
  background: var(--cream);
  overflow: hidden;
}

.screenshots__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
  padding: 0 1.5rem;
}

.screenshots__track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 1.75rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 1rem;
}

.screenshot-pedestal {
  flex: 0 1 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: default;
}

.screenshot-pedestal__frame {
  width: 260px;
  padding: 8px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 3px solid var(--meadow-light);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}

.screenshot-pedestal:hover .screenshot-pedestal__frame {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(93, 64, 55, 0.18);
}

.screenshot-pedestal__frame img {
  width: 100%;
  border-radius: var(--radius-sm);
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.screenshot-pedestal__label {
  margin-top: 0.85rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bark);
  text-align: center;
}

.screenshot-pedestal__disc {
  display: block;
  width: 72px;
  height: 16px;
  margin-top: 0.35rem;
  background: linear-gradient(180deg, var(--sunshine) 0%, var(--corgi-warm) 100%);
  border-radius: 50%;
  border: 2px solid var(--sunshine-dark);
  box-shadow: 0 3px 8px rgba(230, 184, 0, 0.3);
}

/* ---- Breeds showcase ---- */
.breeds {
  padding: 0 0 5rem;
  background: var(--cream);
}

.breeds__banner {
  position: relative;
  margin-bottom: -2rem;
  z-index: 2;
}

.breeds__banner-curve {
  height: 100px;
  background: linear-gradient(180deg, var(--corgi-orange) 0%, #e67e22 100%);
  clip-path: ellipse(55% 100% at 50% 100%);
  border-top: 4px solid #d35400;
}

.breeds__banner-inner {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 90%;
  max-width: 600px;
}

.breeds__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--white);
  text-shadow: 2px 2px 0 var(--bark);
  margin-bottom: 0.35rem;
}

.breeds__subtitle {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.breeds__showcase {
  display: flex;
  justify-content: center;
  max-width: 920px;
  margin: 0 auto;
  padding: 3rem 1.5rem 1.5rem;
}

.breeds__showcase img {
  width: 100%;
  max-width: 900px;
  border-radius: var(--radius-lg);
  border: 4px solid var(--white);
  box-shadow: var(--shadow-card);
  aspect-ratio: 1024 / 500;
  object-fit: cover;
  object-position: center;
}

.breeds__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.breed-tag {
  padding: 0.4rem 1rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bark);
  background: var(--white);
  border: 2px solid var(--sunshine);
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 0 var(--sunshine-dark);
  transition: transform var(--transition);
  cursor: default;
}

.breed-tag:hover {
  transform: translateY(-2px);
}

/* ---- Download (bone shape) ---- */
.download {
  padding: 2rem 1.5rem 5rem;
  background: linear-gradient(180deg, var(--cream) 0%, var(--meadow-pale) 100%);
}

.download__bone {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2.5rem;
  background: linear-gradient(135deg, var(--white) 0%, var(--cream) 100%);
  border-radius: 60px;
  border: 4px solid var(--cream-dark);
  box-shadow: var(--shadow-card);
  text-align: center;
}

/* Bone end caps via pseudo-elements */
.download__bone::before,
.download__bone::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 80px;
  background: inherit;
  border: 4px solid var(--cream-dark);
  border-radius: 50%;
}

.download__bone::before {
  left: -28px;
  box-shadow: -4px 0 0 var(--cream-dark);
}

.download__bone::after {
  right: -28px;
  box-shadow: 4px 0 0 var(--cream-dark);
}

.download__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  color: var(--bark);
  margin-bottom: 0.75rem;
}

.download__desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 1.75rem;
}

.download__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.download__paw-trail {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  opacity: 0.25;
}

.download__paw-trail span {
  width: 14px;
  height: 16px;
  background: var(--bark);
  border-radius: 50% 50% 40% 40%;
  transform: rotate(-15deg);
}

.download__paw-trail span:nth-child(even) {
  transform: rotate(15deg) translateY(4px);
}

/* ---- Footer ---- */
.site-footer {
  padding: 2.5rem 1.5rem;
  background: var(--bark);
  color: var(--cream);
}

.site-footer__inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
}

.site-footer__brand img {
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin-bottom: 1rem;
}

.site-footer__links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cream);
  opacity: 0.85;
  transition: opacity var(--transition);
  cursor: pointer;
}

.site-footer__links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.site-footer__copy {
  font-size: 0.8rem;
  opacity: 0.65;
}

/* ---- Modal ---- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(45, 52, 54, 0.5);
  cursor: pointer;
}

.modal__panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 4px solid var(--meadow-light);
  box-shadow: var(--shadow-card);
  text-align: center;
  transform: scale(0.95) translateY(10px);
  transition: transform 300ms ease-out;
}

.modal.is-open .modal__panel {
  transform: scale(1) translateY(0);
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.35rem;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.modal__close:hover {
  background: var(--meadow-pale);
  color: var(--text);
}

.modal__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  background: var(--meadow-pale);
  border-radius: 50%;
  color: var(--meadow-deep);
}

.modal__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bark);
  margin-bottom: 0.75rem;
}

.modal__text {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.modal__btn {
  width: 100%;
}

/* ---- Scroll reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
}

.reveal--delay {
  transition-delay: 150ms;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__cta {
    justify-content: center;
  }

  .hero__stats {
    justify-content: center;
  }

  .hero__visual {
    order: -1;
  }

  .feature-pedestal--left,
  .feature-pedestal--right {
    flex-direction: column;
    align-items: center;
    padding: 0;
  }

  .features__path-line {
    display: none;
  }

  .feature-pedestal__stand {
    order: 2;
    margin-top: -2px;
  }

  .feature-pedestal__card {
    max-width: 100%;
    text-align: center;
  }

  .feature-pedestal__icon {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 72px;
  }

  .screenshot-pedestal__frame {
    width: 220px;
  }

  .doghouse-nav__links {
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 85vw);
    height: 100vh;
    flex-direction: column;
    align-items: stretch;
    padding: 5rem 1.5rem 2rem;
    background: linear-gradient(180deg, #d4a96a 0%, #b8894a 100%);
    border-left: 3px solid var(--bark);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 300ms ease-out;
    z-index: 99;
  }

  .doghouse-nav__links.is-open {
    transform: translateX(0);
  }

  .doghouse-nav__link {
    padding: 0.85rem 1rem;
    font-size: 1rem;
    border-radius: var(--radius-sm);
  }

  .doghouse-nav__cta {
    margin: 0.5rem 0 0;
    justify-content: center;
    padding: 0.85rem;
  }

  .doghouse-nav__toggle {
    display: flex;
    z-index: 101;
  }

  .download__bone::before,
  .download__bone::after {
    display: none;
  }

  .download__bone {
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero__stats {
    gap: 0.75rem;
  }

  .hero__stats li {
    min-width: 64px;
    padding: 0.5rem 0.75rem;
  }

  .pedestal-phone__bezel {
    width: 190px;
  }

  .btn {
    width: 100%;
  }

  .hero__cta .btn {
    width: auto;
    flex: 1;
    min-width: 140px;
  }
}
