:root {
  --bg: #fefbf8;
  --sand: #f6e4bf;
  --ink: #090909;
  --line: rgba(9, 9, 9, 0.18);
  --soft-line: rgba(9, 9, 9, 0.1);
  --accent: #cfff00;
  --page-max: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Poppins", Arial, sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

/* Typography rules requested for the site */
p {
  font-family: "Poppins", Arial, sans-serif !important;
}

button,
.action-button,
.action-button *,
.action-link {
  font-family: "Kode Mono", "Courier New", monospace !important;
}

.site-shell {
  width: 100%;
  overflow: hidden;
  background: var(--bg);
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 510px;
  background: var(--bg);
  overflow: hidden;
  isolation: isolate;
}

.ambient-grid {
  position: absolute;
  inset: 0;
  z-index: -3;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.025) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(
    to bottom,
    transparent,
    black 24%,
    black 72%,
    transparent
  );
}

.grain {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.045;
  background-image: radial-gradient(
    circle at 20% 20%,
    #000 0 0.7px,
    transparent 0.8px
  );
  background-size: 9px 9px;
}

.hero-sweep {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.hero-sweep::before {
  content: "";
  position: absolute;
  top: -30%;
  left: -28%;
  width: 22%;
  height: 160%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.78),
    transparent
  );
  transform: rotate(11deg);
  filter: blur(12px);
  opacity: 0;
  animation: heroSweep 9s ease-in-out 2.2s infinite;
}

.confusion-marks {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 15%;
  width: min(400px, 44vw);
  height: 260px;
  transform: translateX(-52%);
  pointer-events: none;
}

.confusion-marks span {
  position: absolute;
  font-family: "Kode Mono", "Courier New", monospace;
  font-weight: 600;
  color: rgba(9, 9, 9, 0.26);
  opacity: 0;
  animation: questionDrift 7.5s ease-in-out infinite;
}

.confusion-marks span:nth-child(1) {
  left: 8%;
  top: 45%;
  font-size: 18px;
  animation-delay: 1.4s;
}
.confusion-marks span:nth-child(2) {
  left: 28%;
  top: 13%;
  font-size: 24px;
  animation-delay: 3.3s;
}
.confusion-marks span:nth-child(3) {
  left: 72%;
  top: 34%;
  font-size: 22px;
  animation-delay: 5.1s;
}
.confusion-marks span:nth-child(4) {
  left: 55%;
  top: 4%;
  font-size: 16px;
  animation-delay: 6.7s;
}

.capitol {
  position: absolute;
  bottom: -3px;
  z-index: -1;
  width: clamp(245px, 34vw, 520px);
  max-height: 96%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.04));
  animation: capitolEnter 1.1s cubic-bezier(0.2, 0.85, 0.25, 1) both;
}

.capitol--left {
  left: max(-35px, calc((100vw - var(--page-max)) / 2 - 18px));
  transform-origin: left bottom;
}

.capitol--right {
  right: max(-35px, calc((100vw - var(--page-max)) / 2 - 18px));
  transform-origin: right bottom;
}

.hero-center {
  position: relative;
  width: min(760px, 72vw);
  min-height: 510px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(260px, 1.05fr);
  align-items: center;
  column-gap: 12px;
  padding: 48px 18px 30px;
}

.character-wrap {
  position: relative;
  align-self: end;
  justify-self: end;
  width: min(315px, 33vw);
  margin-bottom: 18px;
}

.character {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  animation: impatientWait 8.6s ease-in-out 1.15s infinite;
  transform-origin: 52% 96%;
}

.character-shadow {
  position: absolute;
  left: 25%;
  bottom: 2%;
  width: 56%;
  height: 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  filter: blur(8px);
  animation: shadowPulse 8.6s ease-in-out 1.15s infinite;
}

.hero-copy {
  align-self: center;
  padding-top: 14px;
  transform: translateX(-10px);
}

.hero-copy h1 {
  margin: 0;
  font-family: "Poppins", Arial, sans-serif;
  font-size: clamp(29px, 3.5vw, 52px);
  line-height: 1.26;
  letter-spacing: -0.045em;
  font-weight: 500;
}

.hero-copy h1 span {
  font-weight: 400;
}

.waiting-line {
  display: flex;
  gap: 7px;
  margin-top: 18px;
  opacity: 0.5;
}

.waiting-line i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #111;
  animation: dots 1.45s ease-in-out infinite;
}

.waiting-line i:nth-child(2) {
  animation-delay: 0.18s;
}
.waiting-line i:nth-child(3) {
  animation-delay: 0.36s;
}

.hero-book {
  position: absolute;
  z-index: 4;
  left: 67%;
  bottom: -1%;
  width: clamp(100px, 10vw, 132px);
  margin: 0;
  filter: drop-shadow(0 14px 12px rgba(0, 0, 0, 0.08));
  transform: rotate(-4deg);
  transform-origin: 50% 90%;
  animation: bookFloat 6s ease-in-out 1.3s infinite;
}

/* ---------------- Middle strip ---------------- */
.brand-strip {
  position: relative;
  z-index: 5;
  min-height: 72px;
  background: var(--sand);
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
  display: flex;
  align-items: center;
}

.brand-strip::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.45);
}

.brand-strip__inner {
  width: min(var(--page-max), 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px clamp(24px, 6vw, 96px);


}

.brand-badge {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.18);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
  animation: badgePop 0.62s cubic-bezier(0.2, 0.9, 0.25, 1.25) both;
}

.brand-badge:nth-child(1) {
  animation-delay: 0.48s;
}
.brand-badge:nth-child(2) {
  animation-delay: 0.6s;
}
.brand-badge:nth-child(3) {
  animation-delay: 0.72s;
}

.brand-badge img {
  width: 84%;
  height: 84%;
  object-fit: contain;
}

.brand-badge--green {
  background: #cfff00;
}

.brand-badge--dark {
  background: #0a0a0a;
}

.brand-badge:hover {
  transform: translateY(-4px) rotate(-3deg);
  border-color: rgba(0, 0, 0, 0.38);
  box-shadow: 0 9px 0 rgba(0, 0, 0, 0.08);
}

.brand-badge:nth-child(2):hover {
  transform: translateY(-4px) rotate(3deg);
}

/* ---------------- Info section ---------------- */
.info {
  position: relative;
  min-height: 600px;
  background: var(--bg);
  display: grid;
  grid-template-columns: minmax(390px, 0.95fr) minmax(360px, 1.05fr);
  overflow: hidden;
}

.info-content {
  position: relative;
  z-index: 3;
  padding: 38px 0 78px clamp(54px, 6.6vw, 105px);
}

.title-pill {
  position: relative;
  overflow: hidden;
  width: min(500px, calc(100vw - 70px));
  margin-left: calc(clamp(54px, 6.6vw, 105px) * -1);
  padding: 13px 38px 14px clamp(54px, 6.6vw, 105px);
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-left: 0;
  border-radius: 0 30px 30px 0;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.title-pill::after {
  content: "";
  position: absolute;
  inset: -60% auto -60% -35%;
  width: 24%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.9),
    transparent
  );
  transform: rotate(10deg);
  animation: titleSheen 7.5s ease-in-out 2.8s infinite;
}

.title-pill h2 {
  margin: 0;
  font-family: "Kohinoor Devanagari", "Arial Black", Arial, sans-serif;
  font-size: clamp(47px, 5.2vw, 76px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.action-block {
  margin-top: 18px;
}

.action-block p {
  margin: 0 0 14px;
  font-family: "Poppins", Arial, sans-serif;
  font-size: clamp(15px, 1.35vw, 19px);
  line-height: 1.5;
  font-weight: 400;
}

.action-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  min-height: 42px;
  padding: 9px 16px 8px;
  color: #090909;
  background: #f7e8c9;
  border: 1.5px solid #090909;
  border-radius: 6px;
  box-shadow: 3px 3px 0 #090909;
  font-family: "Kode Mono", "Courier New", monospace;
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
  overflow: hidden;
}

.action-button:hover {
  transform: translate(-1px, -2px);
  box-shadow: 5px 5px 0 #090909;
  background: #fff2d8;
}

.action-button:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 #090909;
}

.button-status {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:#F6EBD5;
  transform: translateY(110%);
  transition: transform 0.25s ease;
}

.action-button.is-copied .button-status {
  transform: translateY(0);
}

.action-link {
  min-width: 137px;
}

.action-block:last-child .action-link {
  min-width: 181px;
}

.book-stage {
  position: relative;
  z-index: 2;
  min-height: 600px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 44px 3vw 0 0;
}

.info-book {
  width: min(690px, 52vw);
  min-width: 460px;
  transform: rotate(-2.5deg) translateY(2px);
  transform-origin: 50% 75%;
  filter: drop-shadow(0 26px 19px rgba(0, 0, 0, 0.08));
  animation: bookLean 6.8s ease-in-out 1.4s infinite;
}

.book-shadow {
  position: absolute;
  width: 63%;
  height: 42px;
  left: 14%;
  bottom: 54px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  filter: blur(22px);
}

.info-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  pointer-events: none;
}

.info-glow--one {
  background: #f3b98a;
  top: 8%;
  left: 31%;
}

.info-glow--two {
  background: #cfff00;
  right: 1%;
  bottom: -25%;
  opacity: 0.08;
}

/* ---------------- Entrance animation ---------------- */
.reveal-up {
  opacity: 0;
  transform: translateY(20px);
  animation: revealUp 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.reveal-delay-1 {
  animation-delay: 0.14s;
}
.reveal-delay-2 {
  animation-delay: 0.28s;
}

/* ---------------- Keyframes ---------------- */
@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes capitolEnter {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes impatientWait {
  0%,
  18%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  28% {
    transform: translateY(3px) rotate(0.3deg);
  }
  38% {
    transform: translateY(0) rotate(0deg);
  }
  60% {
    transform: translateY(1px) rotate(0deg);
  }
  63% {
    transform: translateX(-2px) rotate(-0.35deg);
  }
  66% {
    transform: translateX(2px) rotate(0.35deg);
  }
  69% {
    transform: translateX(0) rotate(0deg);
  }
}

@keyframes shadowPulse {
  0%,
  100% {
    transform: scaleX(1);
    opacity: 0.75;
  }
  50% {
    transform: scaleX(0.88);
    opacity: 0.52;
  }
}

@keyframes dots {
  0%,
  65%,
  100% {
    transform: translateY(0);
    opacity: 0.25;
  }
  35% {
    transform: translateY(-5px);
    opacity: 0.8;
  }
}

@keyframes bookFloat {
  0%,
  18%,
  100% {
    transform: rotate(-4deg) translateY(0);
  }
  28% {
    transform: rotate(-2.6deg) translateY(-5px);
  }
  38% {
    transform: rotate(-4deg) translateY(0);
  }
  66% {
    transform: rotate(-4deg) translateY(0);
  }
  69% {
    transform: rotate(-7deg) translate(-2px, 1px);
  }
  72% {
    transform: rotate(-2deg) translate(2px, -1px);
  }
  75% {
    transform: rotate(-4deg) translateY(0);
  }
}

@keyframes bookLean {
  0%,
  100% {
    transform: rotate(-2.5deg) translateY(2px);
  }
  50% {
    transform: rotate(-1deg) translateY(-7px);
  }
}

@keyframes heroSweep {
  0%,
  72%,
  100% {
    transform: translateX(0) rotate(11deg);
    opacity: 0;
  }
  78% {
    opacity: 0.55;
  }
  90% {
    transform: translateX(720%) rotate(11deg);
    opacity: 0.2;
  }
  91% {
    opacity: 0;
  }
}

@keyframes questionDrift {
  0%,
  68%,
  100% {
    opacity: 0;
    transform: translateY(12px) scale(0.85) rotate(-5deg);
  }
  74% {
    opacity: 0.45;
  }
  86% {
    opacity: 0.2;
    transform: translateY(-16px) scale(1.08) rotate(5deg);
  }
  94% {
    opacity: 0;
    transform: translateY(-28px) scale(1.15) rotate(8deg);
  }
}

@keyframes badgePop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.72) rotate(-8deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0);
  }
}

@keyframes titleSheen {
  0%,
  72%,
  100% {
    left: -35%;
    opacity: 0;
  }
  77% {
    opacity: 0.55;
  }
  88% {
    left: 116%;
    opacity: 0.28;
  }
  89% {
    opacity: 0;
  }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .hero {
    min-height: 470px;
  }

  .hero-center {
    width: min(650px, 84vw);
    min-height: 470px;
    grid-template-columns: minmax(225px, 0.95fr) minmax(220px, 1.05fr);
    padding-top: 42px;
  }

  .capitol {
    width: clamp(205px, 37vw, 340px);
  }

  .character-wrap {
    width: min(275px, 32vw);
  }

  .hero-book {
    left: 67%;
    bottom: -1%;
    width: clamp(92px, 10.5vw, 116px);
  }

  .info {
    grid-template-columns: 0.92fr 1.08fr;
  }

  .info-content {
    padding-left: 42px;
  }

  .title-pill {
    margin-left: -42px;
    padding-left: 42px;
  }
  .title-pill {
           margin-left: -178px;
        padding-left: 205px;
    
    }
}

@media (max-width: 730px) {
  .confusion-marks {
    width: 70vw;
    top: 8%;
  }

  .confusion-marks span:nth-child(1),
  .confusion-marks span:nth-child(4) {
    display: none;
  }
  .hero {
    min-height: 560px;
  }

  .hero-center {
    width: 100%;
    min-height: 560px;
    display: block;
    padding: 34px 18px 24px;
  }

  .capitol {
    width: 235px;
    opacity: 0.84;
  }

  .capitol--left {
    left: -76px;
  }
  .capitol--right {
    right: -76px;
  }

  .character-wrap {
    width: 60%;
    /* width: 250px; */
    margin: 14px auto 0;
  }

  .hero-copy {
    position: relative;
    z-index: 3;
    width: min(365px, 82vw);
    margin: -4px auto 0;
    padding: 0;
    transform: none;
    text-align: center;
  }

  .hero-copy h1 {
    font-size: clamp(30px, 8vw, 42px);
  }

  .waiting-line {
    justify-content: center;
  }

  .hero-book {
    position: absolute;
    z-index: 4;
    display: block;
    width: 102px;
    left: 67%;
    bottom: -1%;
    margin: 0;
  }

  .brand-strip__inner {
    justify-content: center;
    padding-inline: 18px;
  
  }

  .info {
    min-height: auto;
    display: block;
  }

  .info-content {
    padding: 34px 24px 20px;
  }

  .title-pill {
    width: calc(100% + 24px);
    margin-left: -24px;
    padding: 12px 24px;
    border-radius: 0 28px 28px 0;
  }

  .title-pill h2 {
    font-size: clamp(48px, 15vw, 68px);
  }

  .action-block {
    margin-top: 24px;
  }

  .book-stage {
    min-height: auto;
    padding: 10px 0 0;
    justify-content: center;
  }

  .info-book {
    width: min(610px, 118vw);
    min-width: 0;
  }

  .book-shadow {
    bottom: 24px;
  }
}

@media (max-width: 500px) {
  .character-wrap {
    width: 80%;
  }
}
@media (max-width: 430px) {
  .hero {
    min-height: 540px;
  }

  .hero-center {
    min-height: 540px;
  }

  .capitol {
    width: 208px;
    bottom: -2px;
  }

  .capitol--left {
    left: 0;
    width: 50%;
  }
  .capitol--right {
    right: 0;
    width: 50%;
  }
  

  .character-wrap {
    width: 225px;
  }

  .brand-strip {
    min-height: 66px;
  }

  .brand-badge {
    width: 42px;
    height: 42px;
  }

  .info-content {
    padding-inline: 20px;
  }

  .title-pill {
    margin-left: -20px;
    width: calc(100% + 20px);
    padding-left: 20px;
  }

  .action-block p {
    font-size: 14px;
  }

  .action-button {
    min-height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
.info-book {
  margin-top: auto;
}
@media (min-width: 730px) {
  .character{
    width: 140%;
  }
    .hero-book {
        left: 100%;
    }
    .hero-center {
    padding: 48px 0px 30px;
}
}