/* =========================================================
   $ARCDOG — palette taken from the logo
   ========================================================= */
:root {
  --sky-deep: #2F6FD6;
  --sky: #5B9BE8;
  --sky-light: #9CCBF7;
  --sky-pale: #D8ECFD;
  --shiba: #F2A23A;
  --shiba-deep: #E8852A;
  --glow: #FFE9A8;
  --white: #FFFFFF;
  --ink: #0E1116;

  --font-display: "Comfortaa", "Varela Round", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 999px;
  --shadow-soft: 0 20px 50px -20px rgba(20, 60, 140, .45);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: linear-gradient(180deg,
    var(--sky-deep) 0%,
    var(--sky) 38vh,
    var(--sky-light) 100vh,
    var(--sky-light) 60%,
    var(--sky-pale) 88%,
    #FFF6E3 100%);
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
svg { fill: currentColor; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  height: 56px;
  padding: 0 28px;
  border-radius: var(--radius);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn svg { width: 20px; height: 20px; }
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(0) scale(.97); }

.btn--primary {
  color: var(--ink);
  background: linear-gradient(180deg, #FFC062 0%, var(--shiba) 45%, var(--shiba-deep) 100%);
  box-shadow: 0 10px 30px -8px rgba(232, 133, 42, .8), inset 0 2px 0 rgba(255, 255, 255, .55);
}
.btn--primary:hover { box-shadow: 0 16px 40px -8px rgba(255, 178, 63, .95), inset 0 2px 0 rgba(255, 255, 255, .55); }

.btn--glass {
  color: var(--white);
  background: rgba(31, 84, 176, .42);
  border: 1.5px solid rgba(255, 255, 255, .6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-shadow: 0 1px 6px rgba(14, 40, 100, .35);
}
.btn--glass:hover { background: rgba(31, 84, 176, .6); }

.btn--icon { width: 56px; padding: 0; }
.btn--sm { height: 42px; padding: 0 20px; font-size: 15px; }

/* ---------- nav ---------- */
.nav {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(16px, 4vw, 48px);
  color: var(--white);
}
.nav__logo { font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.nav__links { display: flex; align-items: center; gap: 28px; font-weight: 800; }
.nav__links > a:not(.btn) { opacity: .9; transition: opacity .2s; }
.nav__links > a:not(.btn):hover { opacity: 1; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 80px 16px 72px;
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
}

/* clouds */
.clouds { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cloud {
  position: absolute;
  left: 0;
  width: 260px;
  height: 130px;
  fill: #fff;
  filter: drop-shadow(0 14px 18px rgba(40, 90, 170, .18));
  animation: drift-right 90s linear infinite;
  will-change: transform;
}
/* clouds stay above the text band (top ~45%) or low behind the marquee,
   so they never sit under the white wordmark / tagline */
.cloud.c1 { top: 9%;  width: 300px; height: 150px; opacity: .9;  animation-duration: 110s; animation-delay: -30s; }
.cloud.c2 { top: 30%; width: 190px; height: 95px;  opacity: .65; animation-name: drift-left; animation-duration: 85s; animation-delay: -10s; }
.cloud.c3 { top: calc(100% - 90px); width: 380px; height: 190px; opacity: .95; animation-duration: 130s; animation-delay: -80s; }
.cloud.c4 { top: 38%; width: 240px; height: 120px; opacity: .8;  animation-name: drift-left; animation-duration: 100s; animation-delay: -55s; }
.cloud.c5 { top: 3%;  width: 160px; height: 80px;  opacity: .5;  animation-name: drift-left; animation-duration: 140s; animation-delay: -100s; }
.cloud.c6 { top: 20%; width: 220px; height: 110px; opacity: .55; animation-duration: 120s; animation-delay: -5s; }

@keyframes drift-right { from { transform: translateX(-420px); } to { transform: translateX(calc(100vw + 40px)); } }
@keyframes drift-left  { from { transform: translateX(calc(100vw + 40px)); } to { transform: translateX(-420px); } }

.hero__inner {
  position: relative;
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* dog + arc */
.stage {
  position: relative;
  width: min(600px, 94vw, 64svh);
  aspect-ratio: 1 / .77;
  animation: float 6s ease-in-out infinite;
}

/* sits exactly on top of the arc painted in arcdog.jpg */
.arc {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: 100%;
  aspect-ratio: 1;
  overflow: visible;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: arc-pulse 5s ease-in-out infinite;
}
.arc circle {
  fill: none;
  stroke: url(#arcGrad);
  stroke-linecap: round;
  /* ~52% of circle: from left end, over the top, to right end */
  stroke-dasharray: 52 48;
  transform-origin: 196px 204px;
  transform: rotate(172deg);
}
.arc__line  { stroke-width: 6; opacity: .9; }
.arc__glow  { stroke-width: 28; filter: blur(16px); opacity: .85; }
.arc__spark {
  stroke: #fff !important;
  stroke-width: 9;
  stroke-dasharray: 4 96 !important;
  filter: blur(2px) drop-shadow(0 0 8px #fff);
  animation: arc-spark 7s ease-in-out infinite;
}

@keyframes arc-pulse {
  0%, 100% { opacity: .85; scale: 1; filter: drop-shadow(0 0 10px rgba(255, 220, 140, .6)); }
  50%      { opacity: 1;   scale: 1.03; filter: drop-shadow(0 0 30px rgba(255, 233, 168, 1)); }
}
@keyframes arc-spark {
  0%   { stroke-dashoffset: 0;   opacity: 0; }
  10%  { opacity: 1; }
  62%  { opacity: 1; }
  72%  { stroke-dashoffset: -48; opacity: 0; }
  100% { stroke-dashoffset: -48; opacity: 0; }
}

.stage { min-height: 0; }
.dog {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
/* show the top of the square logo, fade edges into the sky,
   fade the bottom so the baked-in "arcdog" text disappears */
.dog img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
  -webkit-mask-image:
    radial-gradient(ellipse 52% 62% at 50% 50%, #000 58%, transparent 100%),
    linear-gradient(to bottom, #000 62%, transparent 96%);
  -webkit-mask-composite: source-in;
          mask-image:
    radial-gradient(ellipse 52% 62% at 50% 50%, #000 58%, transparent 100%),
    linear-gradient(to bottom, #000 62%, transparent 96%);
          mask-composite: intersect;
}
.dog__placeholder { display: none; }
.dog.is-missing .dog__placeholder {
  position: absolute;
  inset: 12% 18%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  border-radius: 50%;
  color: var(--white);
  background: radial-gradient(circle at 50% 40%, rgba(255, 233, 168, .55), rgba(242, 162, 58, .25) 60%, transparent 72%);
  font-weight: 800;
  font-size: 14px;
  opacity: .9;
}
.dog__placeholder svg { width: 72px; height: 72px; color: var(--glow); }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-12px) rotate(-.6deg); }
}

/* wordmark */
.wordmark {
  margin: -.32em 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(76px, 17vw, 184px);
  line-height: 1;
  letter-spacing: -.035em;
  color: var(--white);
  text-shadow: 0 2px 4px rgba(20, 60, 150, .25), 0 6px 30px rgba(20, 60, 150, .45);
  position: relative;
  z-index: 3;
}

.tagline {
  margin: 14px 0 30px;
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 800;
  color: rgba(255, 255, 255, .97);
  text-shadow: 0 1px 2px rgba(14, 40, 100, .45), 0 2px 16px rgba(20, 60, 150, .55);
}
.tagline span { color: var(--glow); text-shadow: 0 1px 2px rgba(120, 60, 0, .5), 0 2px 16px rgba(20, 60, 150, .6); }

/* contract address */
.ca {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 7px 7px 7px 20px;
  margin-bottom: 20px;
  border-radius: var(--radius);
  background: rgba(14, 17, 22, .55);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}
.ca__label {
  font-weight: 900;
  font-size: 13px;
  color: var(--shiba);
  letter-spacing: .08em;
}
.ca__value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 15px;
  opacity: .92;
}
.ca__copy {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: 900 14px var(--font-body);
  cursor: pointer;
  transition: transform .15s, background .2s;
}
.ca__copy svg { width: 16px; height: 16px; }
.ca__copy:hover { background: var(--glow); }
.ca__copy:active { transform: scale(.94); }
.ca__copy.is-done { background: var(--shiba); }

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

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee {
  position: relative;
  z-index: 5;
  height: 150px;
  margin: -70px 0 -20px;
  overflow: hidden;
  pointer-events: none;
}
.marquee__band {
  position: absolute;
  left: -5%;
  width: 110%;
  top: 50%;
  overflow: hidden;
  padding: 16px 0;
}
.marquee__band--front {
  background: linear-gradient(180deg, #FFB14E, var(--shiba) 50%, var(--shiba-deep));
  transform: translateY(-50%) rotate(-2.5deg);
  box-shadow: 0 18px 40px -16px rgba(232, 133, 42, .7);
}
.marquee__band--back {
  background: var(--glow);
  transform: translateY(-50%) rotate(2deg);
  opacity: .85;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee__band--back .marquee__track { animation-direction: reverse; animation-duration: 44s; opacity: .55; }
.marquee__track span {
  flex: none;
  padding-right: 34px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
}
.marquee__track i { font-style: normal; color: #fff; margin-left: 34px; }
.marquee__band--back .marquee__track i { color: var(--shiba-deep); }

@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   SECTIONS — shared
   ========================================================= */
section { padding-inline: clamp(16px, 4vw, 48px); }

.section-head { text-align: center; margin: 0 auto 56px; max-width: 760px; }
.eyebrow {
  display: inline-block;
  padding: 8px 16px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .35);
  border: 1px solid rgba(255, 255, 255, .7);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sky-deep);
}
.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -.03em;
  color: var(--white);
  text-shadow: 0 6px 30px rgba(20, 60, 150, .28);
}

/* =========================================================
   ABOUT
   ========================================================= */
.about {
  position: relative;
  padding-block: 130px 110px;
  overflow: hidden;
  overflow: clip;
}
.about__sun {
  position: absolute;
  right: -200px;
  top: 360px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 233, 168, .95) 0%, rgba(255, 200, 110, .45) 35%, transparent 70%);
  pointer-events: none;
  animation: sun-breathe 8s ease-in-out infinite;
}
@keyframes sun-breathe { 50% { transform: scale(1.1); opacity: .8; } }

.story {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 28px;
}

.glass {
  position: relative;
  padding: 44px 44px 40px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .22));
  border: 1.5px solid rgba(255, 255, 255, .75);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 30px 60px -30px rgba(30, 80, 170, .45), inset 0 1px 0 rgba(255, 255, 255, .9);
  transition: transform .35s ease;
}
.glass:hover { transform: translateY(-6px); }
/* organic, cloud-like corners */
.glass--a { grid-column: 1 / span 7;  border-radius: 90px 70px 80px 60px / 70px 90px 60px 80px; }
.glass--b { grid-column: 6 / span 7;  border-radius: 70px 100px 60px 90px / 90px 60px 80px 70px; }
.glass--c { grid-column: 2 / span 7;  border-radius: 100px 60px 90px 70px / 60px 80px 70px 90px; }

.glass__num {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: linear-gradient(180deg, #FFC062, var(--shiba-deep));
  font-weight: 900;
  font-size: 15px;
  box-shadow: 0 8px 20px -6px rgba(232, 133, 42, .8);
}
.glass h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.glass p {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 600;
  color: #1B2433;
}

/* =========================================================
   COMMUNITY
   ========================================================= */
.community { padding-block: 60px 120px; }
.about .section-head h2,
.community .section-head h2 { color: var(--ink); text-shadow: none; }

.socials {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.social {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 26px;
  border-radius: 28px;
  background: rgba(255, 255, 255, .55);
  border: 1.5px solid rgba(255, 255, 255, .85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, background .25s ease;
}
.social:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .8); }
.social__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 20px;
  background: var(--ink);
  color: var(--white);
}
.social__icon svg { width: 26px; height: 26px; }
.social__text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.social__text b { font-size: 22px; font-weight: 900; }
.social__text small { font-size: 15px; font-weight: 700; opacity: .65; }
.social__arrow { width: 26px; height: 26px; flex: none; transition: transform .25s; }
.social:hover .social__arrow { transform: translate(3px, -3px); }

.social--primary { background: linear-gradient(180deg, #FFC062, var(--shiba) 50%, var(--shiba-deep)); border-color: rgba(255, 255, 255, .6); }
.social--primary:hover { background: linear-gradient(180deg, #FFCB7A, #FFAE48 50%, var(--shiba)); }
.social--primary .social__icon { background: var(--white); color: var(--shiba-deep); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  padding: 56px clamp(16px, 4vw, 48px) 40px;
  background: var(--ink);
  color: rgba(255, 255, 255, .7);
  border-radius: 48px 48px 0 0;
}
.footer__top {
  max-width: 1080px;
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer__logo { font-family: var(--font-display); font-weight: 700; font-size: 40px; color: var(--white); letter-spacing: -.03em; }
.footer__links { display: flex; gap: 10px; }
.footer__links a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: var(--white);
  transition: background .2s, color .2s;
}
.footer__links a:hover { background: var(--shiba); color: var(--ink); }
.footer__links svg { width: 20px; height: 20px; }
.footer__disclaimer,
.footer__copy { max-width: 1080px; margin: 0 auto; }
.footer__disclaimer {
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 14px;
  line-height: 1.7;
}
.footer__disclaimer b { color: var(--shiba); }
.footer__copy { margin-top: 20px; font-size: 13px; opacity: .6; }

/* =========================================================
   UI bits
   ========================================================= */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 100;
  padding: 14px 22px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .5);
  translate: -50% 140%;
  opacity: 0;
  transition: translate .35s cubic-bezier(.2, .9, .3, 1.3), opacity .25s;
}
.toast.is-on { translate: -50% 0; opacity: 1; }

.spark {
  position: fixed;
  z-index: 99;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  color: var(--shiba);
  pointer-events: none;
  animation: spark .9s cubic-bezier(.15, .7, .3, 1) forwards;
}
.spark svg { width: 100%; height: 100%; }
@keyframes spark {
  0%   { transform: translate(0, 0) scale(.3) rotate(0); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(1) rotate(180deg); opacity: 0; }
}

.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }
.glass.reveal.is-in:hover { transform: translateY(-6px); }
.social.reveal.is-in:hover { transform: translateY(-4px); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 860px) {
  .story { grid-template-columns: 1fr; gap: 20px; }
  .glass--a, .glass--b, .glass--c { grid-column: auto; }
  .glass { padding: 34px 28px 30px; }
  .socials { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .nav__links > a:not(.btn) { display: none; }
  .hero { padding-top: 76px; }
  .tagline span { display: block; }
  .ca { width: 100%; padding-left: 16px; }
  .ca__copy span { display: none; }
  .ca__copy { width: 40px; padding: 0; justify-content: center; }
  .actions { width: 100%; }
  .actions .btn:not(.btn--icon) { flex: 1 1 calc(50% - 6px); padding: 0 14px; }
  .actions .btn--icon { flex: 1 1 calc(50% - 6px); }
  .marquee { height: 120px; margin-top: -60px; }
  .marquee__track span { font-size: 22px; }
  .about { padding-block: 100px 80px; }
  .glass h3 { font-size: 26px; }
  .glass p { font-size: 16px; }
  .social { padding: 18px; gap: 14px; }
  .social__icon { width: 52px; height: 52px; border-radius: 16px; }
  .social__text b { font-size: 19px; }
  .footer { border-radius: 32px 32px 0 0; }
  .footer__logo { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
