/* ═══════════════════════════════════════════════════
   RESPONSIVE — Mobile-first overrides
   ═══════════════════════════════════════════════════ */

/* ─── Medium desktop / Small laptop: 1024px ─── */
@media (max-width: 1024px) {
  :root {
    --section-pad-y: 40px;
    --section-pad-x: 24px;
  }

  /* Two-col layouts get tighter */
  .two-col {
    gap: var(--gap-xl);
  }

  /* Lore mascot column narrower */
  .lore__layout {
    grid-template-columns: 200px 1fr;
    gap: var(--gap-lg);
  }

  .lore__mascot {
    max-width: 180px;
  }

  /* Why Markhor mascot smaller */
  .why-markhor__mascot {
    max-width: 340px;
  }

  /* Tokenomics mascot smaller */
  .tokenomics__mascot {
    max-width: 80%;
  }

  /* Footer elements tighter */
  .footer__logo {
    max-width: 180px;
  }

  .footer__mascot {
    max-width: 240px;
  }

  /* Hero mascot smaller on small desktop */
  .hero__mascot {
    max-width: 280px;
    max-height: calc(100vh - 500px);
  }

  .hero__mascot-wrap::before {
    width: 350px;
    height: 350px;
  }

  /* Section mascot */
  .section-mascot {
    max-width: 300px;
  }

  /* Grids: 5-col → 3-col */
  .grid--5 {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Nav links tighter */
  .nav__links {
    gap: 22px;
  }

  .nav__link {
    font-size: 0.95rem;
  }
}

/* ─── Tablet: 768px ─── */
@media (max-width: 768px) {
  :root {
    --section-pad-y: 36px;
    --section-pad-x: 20px;
  }

  /* Base typography tighter */
  body {
    font-size: 16px;
    line-height: 1.65;
  }

  h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin-bottom: 0.2em;
  }

  h3 {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
  }

  p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 0.9em;
  }

  /* ─── Ticker ─── */
  .ticker {
    height: 32px;
  }

  .ticker__inner {
    gap: 10px;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0 12px;
  }

  .ticker__inner::-webkit-scrollbar { display: none; }

  .ticker__label {
    font-size: 0.62rem;
  }

  .ticker__value {
    font-size: 0.7rem;
  }

  .ticker__chain {
    font-size: 0.58rem;
    padding: 1px 5px;
  }

  /* ─── Nav ─── */
  .nav {
    top: 32px;
    padding: 10px 0;
  }

  .nav__logo img,
  .nav__logo-img {
    height: 44px;
  }

  .hamburger {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: rgba(18, 9, 0, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 90px 30px 36px;
    gap: 24px;
    transition: right var(--transition-med);
    border-left: 1px solid rgba(240, 160, 48, 0.1);
    z-index: 105;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
  }

  .nav__links--open {
    right: 0;
  }

  .nav__overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 104;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }

  .nav__overlay--visible {
    display: block;
  }

  .nav__link {
    font-size: 1.1rem;
  }

  .nav__link::after {
    display: none;
  }

  .nav__cta {
    margin-left: 0;
    margin-top: 8px;
  }

  .nav__socials {
    display: none;
  }

  /* ─── Grids ─── */
  .grid--3,
  .grid--4,
  .grid--5 {
    grid-template-columns: repeat(2, 1fr);
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: var(--gap-lg);
  }

  .two-col--reverse-mobile > :first-child {
    order: 2;
  }

  .two-col--reverse-mobile > :last-child {
    order: 1;
  }

  /* ─── Hero ─── */
  .hero {
    height: 100vh;
    height: 100dvh;
    min-height: 580px;
    padding-top: 110px;
    padding-bottom: 12px;
  }

  .hero__content {
    gap: 3px;
    padding: 0 16px;
  }

  .hero__eyebrow {
    font-size: 0.85rem;
    letter-spacing: 3px;
  }

  .hero__title {
    letter-spacing: 3px;
  }

  .hero__subtitle {
    font-size: 1.05rem;
    max-width: 480px;
  }

  .hero__mascot {
    max-width: 220px;
    max-height: calc(100vh - 440px);
    max-height: calc(100dvh - 440px);
  }

  .hero__mascot-wrap {
    margin-top: 2px;
  }

  .hero__mascot-wrap::before {
    width: 280px;
    height: 280px;
  }

  .hero__glow-ring { width: 200px; height: 200px; }
  .hero__glow-ring--2 { width: 250px; height: 250px; }

  .hero__ca {
    margin-top: 8px;
    padding: 10px 14px;
    max-width: 100%;
  }

  .hero__ca-top {
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 6px;
  }

  .hero__ca-label {
    font-size: 0.75rem;
  }

  .hero__ca-tag {
    font-size: 0.6rem;
    padding: 4px 8px;
  }

  .hero__ca-address {
    font-size: 0.65rem;
  }

  .hero__ca-bottom {
    padding: 8px 10px;
    gap: 8px;
  }

  .hero__ca-copy {
    font-size: 0.75rem;
    padding: 5px 12px;
  }

  .hero__buy-btns {
    flex-direction: column;
    width: 100%;
    max-width: 400px;
    margin-top: 4px;
    gap: 6px;
  }

  .hero__buy-btn {
    justify-content: center;
    padding: 9px 20px;
    font-size: 0.88rem;
  }

  .hero__rays {
    display: none;
  }

  .hero__scroll {
    bottom: 16px;
    font-size: 0.65rem;
  }

  .hero__scroll-line {
    height: 20px;
  }

  /* ─── Lore ─── */
  .lore {
    padding: 28px 0;
  }

  .lore__layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .lore__mascot-col {
    position: static;
    text-align: center;
    order: -1;
  }

  .lore__mascot {
    max-width: 180px;
  }

  .lore__line {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 6px;
  }

  .lore__line--bold {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
  }

  .lore__line--dramatic {
    font-size: 0.9rem;
    margin-bottom: 3px;
  }

  .lore__line--quote {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    margin-bottom: 8px;
  }

  .lore__line--prophecy {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  }

  .lore__cards {
    grid-template-columns: 1fr;
    gap: 10px;
    max-width: 100%;
  }

  .lore__card {
    padding: 12px;
  }

  .lore__card-text {
    font-size: 1rem;
    margin-bottom: 6px;
  }

  /* ─── Why Markhor ─── */
  .why-markhor__text {
    font-size: 1rem;
  }

  .why-markhor__points li {
    font-size: 1rem;
    line-height: 1.65;
    padding: 6px 0 6px 24px;
  }

  .why-markhor__mascot {
    max-width: 260px;
    margin: 0 auto;
  }

  /* ─── Tokenomics ─── */
  .tokenomics__layout {
    grid-template-columns: 1fr;
  }

  .tokenomics__mascot-col {
    text-align: center;
  }

  .tokenomics__mascot {
    max-width: 220px;
  }

  .tokenomics__line {
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 10px;
  }

  .tokenomics__lines {
    text-align: center;
  }

  /* ─── Security ─── */
  .security__intro {
    font-size: 1.4rem;
  }

  .verify-card {
    padding: 18px 16px;
  }

  .verify-card__text {
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 10px;
  }

  /* ─── Vision ─── */
  .section-mascot {
    max-width: 220px;
  }

  .vision-card {
    padding: 22px 18px;
  }

  .vision-card__label {
    font-size: 2rem;
    margin-bottom: 2px;
  }

  .vision-card__title {
    font-size: 1.05rem;
    margin-bottom: 8px;
  }

  .vision-card__text {
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .vision__rocket-img {
    max-width: 160px;
  }

  /* ─── Charts ─── */
  .chart-card {
    padding: 16px;
    gap: 12px;
  }

  .chart-card__name {
    font-size: 1.05rem;
  }

  .chart-card__desc {
    font-size: 0.9rem;
  }

  /* ─── How to Buy ─── */
  .buy-step {
    margin-bottom: 10px;
    padding: 6px 14px;
  }

  .buy-step__number {
    font-size: 1.2rem;
  }

  .buy-step__title {
    font-size: 0.95rem;
  }

  .buy-step__text {
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .buy-step__ca {
    font-size: 0.7rem;
    padding: 8px 10px;
  }

  .tab-toggle__btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .failure-cases {
    padding: 14px 16px;
  }

  .failure-case {
    flex-direction: column;
    gap: 4px;
    font-size: 0.9rem;
  }

  .failure-case__problem {
    min-width: unset;
  }

  .how-to-buy__ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .how-to-buy__ctas .btn {
    text-align: center;
    justify-content: center;
  }

  /* ─── Contracts ─── */
  .contract-block {
    padding: 18px 16px;
  }

  .contract-block__address {
    font-size: 0.72rem;
    padding: 10px 12px;
  }

  .contract-block__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .contract-block__actions .btn {
    text-align: center;
    justify-content: center;
  }

  /* ─── Cards ─── */
  .card {
    padding: 22px 18px;
  }

  .stat-card {
    padding: 22px 16px;
  }

  .stat-card__number {
    font-size: 2.8rem;
  }

  .stat-card__desc {
    font-size: 0.9rem;
  }

  /* ─── Footer ─── */
  .footer {
    padding: 30px 0 20px;
  }

  .footer__top-row {
    flex-direction: column;
    text-align: center;
    gap: var(--gap-lg);
  }

  .footer__logo-col {
    order: 1;
  }

  .footer__content {
    order: 2;
  }

  .footer__mascot-col {
    order: 3;
  }

  .footer__logo {
    max-width: 160px;
  }

  .footer__mascot {
    max-width: 200px;
  }

  .footer__hashtag {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  .footer__tagline {
    font-size: 0.95rem;
  }

  .footer__links {
    gap: var(--gap-lg);
    flex-wrap: wrap;
  }

  .footer__link {
    font-size: 1rem;
  }

  /* ─── Brand Kit ─── */
  .brand-kit__desc {
    font-size: 0.95rem;
  }

  .brand-kit__includes li {
    font-size: 0.95rem;
  }

  /* ─── Social Buttons ─── */
  .social-btns {
    justify-content: center;
  }

  .social-btn {
    padding: 10px 20px;
    font-size: 1rem;
  }

  /* ─── Section orbs smaller ─── */
  .section::before {
    width: 400px;
    height: 400px;
  }

  .section::after {
    width: 300px;
    height: 300px;
  }

  /* ─── Disclaimer ─── */
  .disclaimer-inline p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.75em;
  }

  .disclaimer-inline__heading {
    font-size: 1.15rem;
    margin-top: 20px;
  }
}


/* ─── Phone: 480px ─── */
@media (max-width: 480px) {
  :root {
    --section-pad-y: 28px;
    --section-pad-x: 14px;
  }

  body {
    font-size: 15px;
  }

  h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  /* ─── Ticker ─── */
  .ticker {
    height: 28px;
  }

  .ticker__inner {
    gap: 8px;
    padding: 0 10px;
  }

  .ticker__label {
    font-size: 0.55rem;
  }

  .ticker__value {
    font-size: 0.62rem;
  }

  .ticker__chain {
    font-size: 0.52rem;
  }

  .ticker__divider {
    height: 12px;
  }

  /* ─── Nav ─── */
  .nav {
    top: 28px;
    padding: 8px 0;
  }

  .nav__logo img,
  .nav__logo-img {
    height: 36px;
  }

  /* ─── Hero ─── */
  .hero {
    height: 100vh;
    height: 100dvh;
    min-height: 500px;
    padding-top: 90px;
    padding-bottom: 10px;
  }

  .hero__content {
    gap: 2px;
    padding: 0 10px;
  }

  .hero__eyebrow {
    font-size: 0.7rem;
    letter-spacing: 2px;
  }

  .hero__title {
    letter-spacing: 2px;
    font-size: clamp(3.5rem, 14vw, 5rem);
  }

  .hero__subtitle {
    font-size: 0.9rem;
    max-width: 320px;
  }

  .hero__mascot {
    max-width: 180px;
    max-height: calc(100vh - 420px);
    max-height: calc(100dvh - 420px);
  }

  .hero__mascot-wrap {
    margin-top: 2px;
  }

  .hero__mascot-wrap::before {
    width: 220px;
    height: 220px;
  }

  .hero__glow-ring { width: 160px; height: 160px; }
  .hero__glow-ring--2 { width: 200px; height: 200px; }

  .hero__ca {
    margin-top: 6px;
    padding: 8px 10px;
  }

  .hero__ca-top {
    margin-bottom: 6px;
  }

  .hero__ca-label {
    font-size: 0.65rem;
  }

  .hero__ca-tag {
    font-size: 0.55rem;
    padding: 3px 6px;
  }

  .hero__ca-address {
    font-size: 0.58rem;
  }

  .hero__ca-bottom {
    padding: 6px 8px;
    gap: 6px;
  }

  .hero__ca-copy {
    font-size: 0.7rem;
    padding: 4px 10px;
  }

  .hero__buy-btns {
    gap: 6px;
    max-width: 100%;
  }

  .hero__buy-btn {
    padding: 9px 16px;
    font-size: 0.85rem;
    gap: 6px;
  }

  .hero__scroll {
    display: none;
  }

  .sparkle { display: none; }

  /* ─── Lore ─── */
  .lore {
    padding: 22px 0;
  }

  .lore__mascot {
    max-width: 150px;
  }

  .lore__line {
    font-size: 0.88rem;
    margin-bottom: 5px;
  }

  .lore__line--bold {
    font-size: 1.1rem;
  }

  .lore__line--dramatic {
    font-size: 0.85rem;
  }

  .lore__line--quote {
    font-size: 1.15rem;
    margin-bottom: 6px;
  }

  .lore__line--prophecy {
    font-size: 1.15rem;
  }

  .lore__card {
    padding: 10px;
  }

  .lore__card-text {
    font-size: 0.9rem;
  }

  /* ─── All grids → 1 col ─── */
  .grid--2,
  .grid--3,
  .grid--4,
  .grid--5 {
    grid-template-columns: 1fr;
  }

  /* ─── Why Markhor ─── */
  .why-markhor__mascot {
    max-width: 200px;
  }

  .why-markhor__text {
    font-size: 0.92rem;
  }

  .why-markhor__points li {
    font-size: 0.92rem;
    padding: 5px 0 5px 22px;
  }

  /* ─── Tokenomics ─── */
  .tokenomics__mascot {
    max-width: 180px;
  }

  .tokenomics__line {
    font-size: 0.92rem;
    margin-bottom: 8px;
  }

  .tokenomics__tagline {
    font-size: 0.95rem;
  }

  /* ─── Security ─── */
  .security__intro {
    font-size: 1.2rem;
  }

  .verify-card {
    padding: 14px 12px;
  }

  .verify-card__title {
    font-size: 1.1rem;
  }

  .verify-card__text {
    font-size: 0.88rem;
  }

  /* ─── Vision ─── */
  .section-mascot {
    max-width: 180px;
  }

  .vision-card {
    padding: 18px 14px;
  }

  .vision-card__label {
    font-size: 1.8rem;
  }

  .vision-card__title {
    font-size: 0.95rem;
  }

  .vision-card__text {
    font-size: 0.88rem;
    line-height: 1.6;
  }

  .vision__closing {
    font-size: 1.3rem;
  }

  /* ─── Charts ─── */
  .chart-card {
    padding: 14px 12px;
  }

  .chart-card__name {
    font-size: 0.95rem;
  }

  .chart-card__desc {
    font-size: 0.82rem;
  }

  /* ─── How to Buy ─── */
  .tab-toggle {
    width: 100%;
  }

  .tab-toggle__btn {
    flex: 1;
    padding: 9px 14px;
    font-size: 0.85rem;
  }

  .buy-step {
    padding: 4px 12px;
    margin-bottom: 8px;
  }

  .buy-step__number {
    font-size: 1.1rem;
  }

  .buy-step__title {
    font-size: 0.9rem;
  }

  .buy-step__text {
    font-size: 0.88rem;
  }

  .buy-step__ca {
    font-size: 0.62rem;
    padding: 6px 8px;
  }

  .failure-cases {
    padding: 12px;
  }

  .failure-cases__title {
    font-size: 1.2rem;
  }

  .failure-case {
    font-size: 0.85rem;
    padding: 8px 0;
  }

  /* ─── Contracts ─── */
  .contract-block__chain {
    font-size: 1.3rem;
  }

  .contract-block__address {
    font-size: 0.62rem;
    padding: 8px 10px;
  }

  /* ─── Cards ─── */
  .card {
    padding: 18px 14px;
  }

  .card__title {
    font-size: 1.15rem;
  }

  .card__text {
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .stat-card {
    padding: 18px 14px;
  }

  .stat-card__number {
    font-size: 2.2rem;
  }

  .stat-card__label {
    font-size: 0.8rem;
  }

  .stat-card__desc {
    font-size: 0.85rem;
  }

  /* ─── Buttons ─── */
  .btn {
    padding: 11px 22px;
    font-size: 0.95rem;
    min-height: 42px;
  }

  .btn--small {
    padding: 8px 16px;
    font-size: 0.88rem;
  }

  .social-btns {
    flex-direction: column;
    align-items: stretch;
  }

  .social-btn {
    justify-content: center;
    padding: 10px 18px;
    font-size: 0.95rem;
  }

  /* ─── Footer ─── */
  .footer {
    padding: 24px 0 16px;
  }

  .footer__logo {
    max-width: 140px;
  }

  .footer__mascot {
    max-width: 160px;
  }

  .footer__hashtag {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .footer__tagline {
    font-size: 0.88rem;
    line-height: 1.6;
  }

  .footer__subtitle {
    font-size: 0.95rem;
  }

  .footer__links {
    flex-direction: column;
    gap: var(--gap-md);
    align-items: center;
  }

  .footer__link {
    font-size: 0.95rem;
  }

  .footer__bottom {
    padding-top: var(--gap-md);
    margin-top: var(--gap-md);
  }

  .footer__copyright {
    font-size: 0.8rem;
  }

  .footer__disclaimer-link {
    font-size: 0.88rem;
  }

  /* ─── Brand Kit ─── */
  .brand-kit__desc {
    font-size: 0.88rem;
  }

  .brand-kit__includes li {
    font-size: 0.88rem;
  }

  /* ─── Disclaimer ─── */
  .disclaimer-inline p {
    font-size: 0.82rem;
    line-height: 1.55;
  }

  .disclaimer-inline__heading {
    font-size: 1.05rem;
    margin-top: 16px;
  }

  /* ─── Section orbs hide ─── */
  .section::before,
  .section::after {
    display: none;
  }

  /* ─── Where to Buy ─── */
  .where-to-buy__item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 10px 12px;
  }

  .where-to-buy__group-title {
    font-size: 1.3rem;
  }
}


/* ─── Small phone: 375px ─── */
@media (max-width: 375px) {
  :root {
    --section-pad-y: 22px;
    --section-pad-x: 12px;
  }

  body {
    font-size: 14px;
  }

  .hero {
    min-height: 460px;
    padding-top: 80px;
  }

  .hero__title {
    font-size: clamp(3rem, 15vw, 4rem);
  }

  .hero__subtitle {
    font-size: 0.82rem;
  }

  .hero__mascot {
    max-width: 160px;
    max-height: calc(100vh - 380px);
    max-height: calc(100dvh - 380px);
  }

  .hero__mascot-wrap::before {
    width: 180px;
    height: 180px;
  }

  .hero__glow-ring { width: 140px; height: 140px; }
  .hero__glow-ring--2 { width: 170px; height: 170px; }

  .hero__ca-address {
    font-size: 0.5rem;
  }

  .hero__buy-btn {
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  /* Lore even tighter */
  .lore__mascot {
    max-width: 120px;
  }

  .lore__line {
    font-size: 0.82rem;
  }

  .lore__card-text {
    font-size: 0.82rem;
  }

  /* Mascots smaller */
  .why-markhor__mascot {
    max-width: 160px;
  }

  .tokenomics__mascot {
    max-width: 150px;
  }

  .section-mascot {
    max-width: 150px;
  }

  .footer__logo {
    max-width: 120px;
  }

  .footer__mascot {
    max-width: 130px;
  }

  .stat-card__number {
    font-size: 1.8rem;
  }
}
