/* Doge Guard — honeycomb + ink shield + comic grid + cliff gallery */

:root {
  --cream: #fff8e7;
  --honey: #ffe8a3;
  --orange: #ff9f43;
  --orange-deep: #e67e22;
  --lime: #7cb342;
  --lime-deep: #558b2f;
  --sky: #4dbfff;
  --ink: #1a1a1a;
  --ink-soft: rgba(26, 26, 26, 0.72);
  --white: #ffffff;
  --shadow: 0 14px 36px rgba(26, 26, 26, 0.12);
  --stroke: 3px solid var(--ink);
  --radius: 20px;
  --radius-pill: 999px;
  --font-display: "Bangers", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
}

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

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 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

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

a {
  color: var(--lime-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--white);
}

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

.honey-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath fill='%23ffe8a3' fill-opacity='0.45' d='M28 0l24 14v28L28 56 4 42V14zM0 50l28 16 28-16v28L28 94 0 78z'/%3E%3C/svg%3E");
  background-size: 56px 100px;
}

/* Hex nav */
.hex-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.85rem 1rem 0;
}

.hex-nav__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 1rem;
  background: var(--white);
  border: var(--stroke);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--ink);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.hex-nav.is-scrolled .hex-nav__inner {
  box-shadow: 8px 8px 0 rgba(26, 26, 26, 0.85);
}

.hex-nav__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
}

.hex-nav__brand em {
  font-style: normal;
  color: var(--orange);
}

.hex-nav__brand img {
  border-radius: 12px;
  border: 2px solid var(--ink);
}

.hex-nav__links {
  display: none;
  align-items: center;
  gap: 0.2rem;
  margin-left: auto;
  margin-right: 0.35rem;
}

.hex-nav__links a {
  padding: 0.45rem 0.85rem;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--ink-soft);
  border-radius: var(--radius-pill);
  text-decoration: none;
}

.hex-nav__links a:hover {
  background: var(--honey);
  color: var(--ink);
  text-decoration: none;
}

.hex-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
}

.hex-nav__links ~ .hex-nav__actions {
  margin-left: 0;
}

.hex-nav__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: var(--stroke);
  border-radius: 10px;
  background: var(--honey);
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
}

.hex-nav__burger span {
  display: block;
  height: 2px;
  margin: 0 10px;
  background: var(--ink);
}

@media (min-width: 880px) {
  .hex-nav__links {
    display: flex;
  }
  .hex-nav__burger {
    display: none;
  }
}

.nav-sheet {
  position: fixed;
  inset: 0;
  z-index: 99;
  padding: 5.5rem 1.25rem 2rem;
  background: rgba(255, 248, 231, 0.98);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nav-sheet[hidden] {
  display: none;
}

.nav-sheet a {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  padding: 0.85rem 1rem;
  background: var(--white);
  border: var(--stroke);
  border-radius: 14px;
  box-shadow: 4px 4px 0 var(--ink);
  color: var(--ink);
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--font-body);
  font-weight: 900;
  border: var(--stroke);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
}

.btn:hover {
  transform: translate(-2px, -2px);
  text-decoration: none;
}

.btn--sm {
  font-size: 0.88rem;
  padding: 0.5rem 1rem;
  box-shadow: 3px 3px 0 var(--ink);
}

.btn--lg {
  font-size: 1rem;
  padding: 0.75rem 1.35rem;
  box-shadow: 4px 4px 0 var(--ink);
}

.btn--xl {
  font-size: 1.05rem;
  padding: 0.9rem 1.6rem;
  box-shadow: 5px 5px 0 var(--ink);
}

.btn--block {
  width: 100%;
}

.btn--orange {
  background: linear-gradient(180deg, #ffb347, var(--orange));
  color: var(--ink);
}

.btn--lime {
  background: linear-gradient(180deg, #aed581, var(--lime));
  color: var(--ink);
}

.btn--outline {
  background: var(--white);
  color: var(--ink);
}

.btn svg {
  width: 1.15em;
  height: 1.15em;
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.hero__banner {
  margin-top: 1rem;
  border: var(--stroke);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 8px 8px 0 var(--ink);
}

.hero__banner img {
  width: 100%;
  aspect-ratio: 1024 / 500;
  object-fit: cover;
}

.hero__shield-wrap {
  position: relative;
  margin-top: 1.75rem;
  padding: 1.25rem 0 0;
}

.hero__shield-line {
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  width: 100%;
  height: 80px;
  pointer-events: none;
  opacity: 0.85;
}

.hero__shield-path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 12 8;
  animation: dash-draw 4s linear infinite;
}

@keyframes dash-draw {
  to {
    stroke-dashoffset: -40;
  }
}

.hero__grid {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.85fr;
  }
}

.hero__copy {
  padding: 1.35rem 1.25rem;
  background: var(--white);
  border: var(--stroke);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--ink);
}

.hero__kicker {
  margin: 0 0 0.45rem;
  font-weight: 900;
  font-size: 0.92rem;
  color: var(--lime-deep);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  line-height: 1;
  margin: 0 0 0.75rem;
  letter-spacing: 0.06em;
}

.hero__doge {
  color: var(--orange);
  text-shadow: 2px 2px 0 var(--ink);
}

.hero__guard {
  color: var(--lime);
  text-shadow: 2px 2px 0 var(--ink);
}

.hero__lead {
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
}

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

.hero__phone {
  margin: 0 auto;
  max-width: 280px;
  padding: 0.5rem;
  background: var(--white);
  border: var(--stroke);
  border-radius: 28px;
  box-shadow: 8px 8px 0 var(--ink);
}

.hero__phone img {
  width: 100%;
  border-radius: 22px;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  background: #f5f5f5;
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 2rem;
}

.section-head .eyebrow {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: var(--orange);
  margin: 0 0 0.35rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin: 0;
  letter-spacing: 0.05em;
  text-shadow: 2px 2px 0 rgba(255, 159, 67, 0.35);
}

.section-head h2 span {
  color: var(--lime-deep);
}

.section-head__lead {
  margin: 0.65rem 0 0;
  color: var(--ink-soft);
}

.comic-grid {
  margin-top: 4.5rem;
}

.comic-grid__cells {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .comic-grid__cells {
    grid-template-columns: repeat(2, 1fr);
  }
}

.comic-card {
  padding: 1.25rem 1.15rem 1.3rem;
  background: var(--white);
  border: var(--stroke);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--ink);
}

.comic-card--orange {
  background: linear-gradient(145deg, #fff, #fff3e0);
}

.comic-card--green {
  background: linear-gradient(145deg, #fff, #f1f8e9);
}

.comic-card__icon {
  width: 52px;
  height: 52px;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: var(--stroke);
  border-radius: 50%;
  background: var(--honey);
  box-shadow: 3px 3px 0 var(--ink);
}

.comic-card__icon svg {
  width: 26px;
  height: 26px;
}

.comic-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  margin: 0 0 0.4rem;
}

.comic-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.cliff-gallery {
  margin-top: 4.5rem;
}

.cliff-gallery__row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 1rem 0 1.5rem;
  scroll-snap-type: x mandatory;
  align-items: flex-end;
}

.cliff-slot {
  position: relative;
  flex: 0 0 min(68vw, 190px);
  margin: 0;
  scroll-snap-align: end;
  padding: 0.45rem 0.45rem 0.65rem;
  background: linear-gradient(180deg, #8d6e63 0%, #6d4c41 12%, #5d4037 100%);
  border: var(--stroke);
  border-radius: 14px 14px 8px 8px;
  box-shadow: 6px 6px 0 var(--ink);
}

.cliff-slot--high {
  transform: translateY(-16px);
}

.cliff-slot__grass {
  position: absolute;
  top: -10px;
  left: 8px;
  right: 8px;
  height: 14px;
  background: var(--lime);
  border: 2px solid var(--ink);
  border-radius: 6px 6px 0 0;
}

.cliff-slot img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  border-radius: 8px;
  background: #fafafa;
}

@media (min-width: 960px) {
  .cliff-gallery__row {
    justify-content: center;
    overflow: visible;
    flex-wrap: wrap;
  }
}

.download {
  margin-top: 4.5rem;
}

.download__hive {
  position: relative;
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--white);
  border: var(--stroke);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--ink);
  overflow: hidden;
}

.download__hex {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='84'%3E%3Cpath fill='%23ff9f43' d='M24 0l21 12v24L24 48 3 36V12z'/%3E%3C/svg%3E");
  background-size: 48px 84px;
}

.download__icon,
.download__hive h2,
.download__lead,
.download__hive p,
.download__actions {
  position: relative;
  z-index: 1;
}

.download__icon {
  margin: 0 auto 1rem;
  border-radius: 18px;
  border: var(--stroke);
}

.download__hive h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.6rem);
  letter-spacing: 0.06em;
  margin: 0 0 0.35rem;
}

.download__lead {
  font-weight: 900;
  color: var(--lime-deep);
  margin: 0 0 0.35rem;
}

.download__hive p {
  color: var(--ink-soft);
  margin: 0 0 1.25rem;
}

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

.footer {
  margin-top: 3rem;
  padding: 2rem 1.25rem;
  background: var(--white);
  border-top: var(--stroke);
}

.footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.05em;
}

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

.footer__links a {
  font-weight: 800;
  font-size: 0.92rem;
}

.footer__copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.5);
}

.modal__panel {
  position: relative;
  max-width: 400px;
  width: 100%;
  padding: 2rem 1.75rem;
  background: var(--white);
  border: var(--stroke);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--ink);
  text-align: center;
}

.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 40px;
  height: 40px;
  border: var(--stroke);
  border-radius: 10px;
  background: var(--honey);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal__bee {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--honey);
  border: var(--stroke);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 3px 3px 0 var(--ink);
}

.modal__panel h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.05em;
  margin: 0 0 0.75rem;
}

.modal__panel p {
  color: var(--ink-soft);
  margin: 0 0 1.25rem;
}
