/* Doge Soft — browser extension page */

.ext-marquee {
  overflow: hidden;
  margin: 0 calc(50% - 50vw);
  border-block: 1px solid rgba(23, 33, 27, 0.18);
  background: var(--orange);
  transform: rotate(-1deg);
}

.ext-marquee__track {
  display: flex;
  width: max-content;
  animation: ext-marquee 32s linear infinite;
}

.ext-marquee span {
  padding: 14px 18px;
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ext-marquee span::after {
  margin-left: 36px;
  color: var(--yellow);
  content: "✦";
}

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

.ext-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  align-items: center;
  gap: clamp(36px, 6vw, 80px);
  min-height: min(780px, calc(100svh - 120px));
  padding: 56px 0 72px;
}

.ext-brand {
  margin: 0 0 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.ext-brand::after {
  content: " Soft";
  color: var(--orange);
}

.ext-hero h1 {
  max-width: 11ch;
  margin: 0 0 18px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3rem, 6.5vw, 5.2rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.ext-hero h1 em {
  font-style: normal;
  color: var(--orange);
}

.ext-hero .hero-lead {
  max-width: 34rem;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1.12rem;
}

.ext-hero__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
  aspect-ratio: 1;
  max-width: 460px;
  margin-inline: auto;
}

.ext-space {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.ext-space__icon {
  position: absolute;
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 18px 40px rgba(23, 33, 27, 0.18),
    0 0 0 1px rgba(23, 33, 27, 0.06);
}

.ext-space__icon img {
  width: 80px;
  height: 80px;
  display: block;
}

.ext-space__icon--chrome {
  top: 6%;
  left: 34%;
  animation: ext-drift-a 9.5s ease-in-out infinite;
}

.ext-space__icon--firefox {
  top: 42%;
  left: 2%;
  animation: ext-drift-b 11s ease-in-out infinite;
}

.ext-space__icon--brave {
  top: 48%;
  right: 0;
  left: auto;
  animation: ext-drift-c 8.8s ease-in-out infinite;
}

@keyframes ext-drift-a {
  0%,
  100% {
    transform: translate(0, 0) rotate(-4deg);
  }
  50% {
    transform: translate(10px, -18px) rotate(3deg);
  }
}

@keyframes ext-drift-b {
  0%,
  100% {
    transform: translate(0, 0) rotate(5deg);
  }
  50% {
    transform: translate(-12px, 14px) rotate(-4deg);
  }
}

@keyframes ext-drift-c {
  0%,
  100% {
    transform: translate(0, 0) rotate(-2deg);
  }
  50% {
    transform: translate(14px, 10px) rotate(6deg);
  }
}

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

.ext-steps li {
  padding: 28px 24px;
  border-radius: 24px;
  background: var(--card);
}

.ext-steps__n {
  display: block;
  margin-bottom: 18px;
  color: var(--orange);
  font-family: "DM Mono", monospace;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.ext-steps h3 {
  margin: 0 0 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.ext-steps p {
  margin: 0;
  color: var(--muted);
}

.ext-lanes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.ext-lane {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 8px 16px;
  padding: 28px 8px 28px 0;
  border-bottom: 1px solid var(--line);
}

.ext-lane:nth-child(odd) {
  padding-right: 28px;
  border-right: 1px solid var(--line);
}

.ext-lane:nth-child(even) {
  padding-left: 28px;
}

.ext-lane img {
  grid-row: span 2;
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.ext-lane h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.ext-lane p {
  margin: 0;
  color: var(--muted);
}

.ext-local__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.9fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}

.ext-local__copy {
  max-width: 36rem;
  text-align: left;
}

.ext-local__copy h2 {
  margin: 0 0 16px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.ext-local__copy > p {
  margin: 0 0 22px;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.ext-checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  max-width: 28rem;
  text-align: left;
}

.ext-checklist li {
  padding-left: 28px;
  position: relative;
  font-weight: 650;
}

.ext-checklist li::before {
  position: absolute;
  left: 0;
  content: "✦";
  color: var(--orange);
}

.ext-local__shot {
  position: relative;
  justify-self: center;
  width: min(100%, 360px);
}

.ext-local__shot::before {
  position: absolute;
  inset: 12% -18% -8% 18%;
  z-index: 0;
  content: "";
  border-radius: 40px;
  background: radial-gradient(circle at 40% 30%, rgba(255, 207, 64, 0.45), transparent 70%);
  transform: rotate(8deg);
}

.ext-local__shot img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
  box-shadow:
    0 28px 60px rgba(23, 33, 27, 0.22),
    0 0 0 1px rgba(23, 33, 27, 0.08);
  transform: rotate(-4deg);
  animation: ext-sidebar-float 6.4s ease-in-out infinite;
}

@keyframes ext-sidebar-float {
  0%,
  100% {
    transform: rotate(-4deg) translateY(0);
  }
  50% {
    transform: rotate(-2deg) translateY(-12px);
  }
}

.ext-builders__inner {
  padding: 48px clamp(20px, 4vw, 48px);
  border-radius: 32px;
  color: #fff8ef;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 113, 56, 0.35), transparent 22rem),
    radial-gradient(circle at 12% 80%, rgba(255, 207, 64, 0.14), transparent 18rem),
    #1a1610;
}

.ext-builders .eyebrow {
  color: var(--yellow);
}

.ext-builders h2 {
  margin: 0 0 14px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.ext-builders__inner > p {
  max-width: 40rem;
  margin: 0 0 22px;
  color: rgba(255, 248, 239, 0.72);
}

.ext-builders .inline-code {
  background: rgba(255, 255, 255, 0.1);
  color: var(--yellow);
}

.ext-code {
  overflow: auto;
  margin: 0 0 28px;
  padding: 20px 22px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.35);
  color: #ffe9b8;
  font-family: "DM Mono", monospace;
  font-size: 0.88rem;
  line-height: 1.55;
}

.ext-builders .button-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.ext-install__cta {
  max-width: 44rem;
  margin-inline: auto;
  padding: 40px clamp(20px, 4vw, 48px);
  border-radius: 32px;
  text-align: center;
  background: var(--card);
}

.ext-install__cta h2 {
  margin: 0 0 14px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.ext-install__cta > p {
  margin: 0 auto 28px;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.ext-store-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 8px;
}

.ext-store-row .store-badge {
  min-width: 200px;
  min-height: 68px;
  justify-content: center;
  gap: 14px;
  padding: 10px 18px;
}

.ext-store-row .store-badge strong {
  font-size: 1.4rem;
}

.ext-store-row .store-badge small {
  font-size: 0.7rem;
}

.store-mark--browser {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #fff;
}

.ext-install__wallet {
  display: inline-flex;
  margin-top: 36px;
}

.ext-install__note {
  margin: 20px auto 0;
  max-width: 32rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.inline-code {
  padding: 2px 8px;
  border-radius: 7px;
  background: rgba(23, 33, 27, 0.08);
  font-family: "DM Mono", monospace;
  font-size: 0.88em;
}

html[data-theme="dark"] .inline-code {
  background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .ext-space__icon {
  background: #151a17;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .ext-builders__inner {
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 113, 56, 0.28), transparent 22rem),
    radial-gradient(circle at 12% 80%, rgba(255, 207, 64, 0.1), transparent 18rem),
    #0c100e;
}

html[data-theme="dark"] .ext-local__shot img {
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

@media (max-width: 900px) {
  .ext-hero,
  .ext-local__grid,
  .ext-steps,
  .ext-lanes {
    grid-template-columns: 1fr;
  }

  .ext-hero {
    min-height: 0;
    padding-top: 36px;
  }

  .ext-hero h1 {
    max-width: none;
  }

  .ext-lane:nth-child(odd),
  .ext-lane:nth-child(even) {
    padding-left: 0;
    padding-right: 0;
    border-right: 0;
  }

  .ext-hero__stage {
    order: -1;
    min-height: 280px;
    max-width: 300px;
  }

  .ext-space__icon {
    width: 100px;
    height: 100px;
  }

  .ext-space__icon img {
    width: 60px;
    height: 60px;
  }

  .ext-local__shot {
    order: -1;
    width: min(100%, 300px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ext-marquee__track,
  .ext-space__icon,
  .ext-local__shot img {
    animation: none !important;
  }
}
