/* ---------------------------------------------
   Rana Ji — official APK landing page
   --------------------------------------------- */
:root {
  --paper: #fffaf5;
  --paper-bright: #fffdfa;
  --ink: #382320;
  --muted: #826d65;
  --maroon: #982f39;
  --maroon-deep: #6b1c25;
  --maroon-bright: #b43d47;
  --gold: #c79a56;
  --gold-light: #edd7a8;
  --line: rgba(128, 66, 49, 0.14);
  --card-shadow: 0 30px 80px rgba(87, 39, 30, 0.14), 0 2px 0 rgba(255, 255, 255, 0.9) inset;
}

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

html {
  min-height: 100%;
  overflow-x: hidden;
  background: var(--paper);
}

body {
  min-height: 100svh;
  margin: 0;
  padding: 30px 20px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(ellipse at 50% 2%, rgba(255, 255, 255, 0.95), transparent 38%),
    radial-gradient(ellipse at 13% 18%, rgba(210, 155, 98, 0.16), transparent 34%),
    radial-gradient(ellipse at 86% 80%, rgba(154, 47, 57, 0.11), transparent 33%),
    linear-gradient(145deg, #fffdf9 0%, #f8eee3 53%, #fffaf5 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.42;
  background-image: radial-gradient(rgba(122, 72, 52, 0.14) 0.65px, transparent 0.65px);
  background-size: 18px 18px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.8;
  animation: drift 14s ease-in-out infinite;
}

.orb-one {
  top: 8%;
  left: -120px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle at 35% 35%, rgba(199, 154, 86, 0.2), transparent 70%);
}

.orb-two {
  right: -150px;
  bottom: -110px;
  width: 390px;
  height: 390px;
  background: radial-gradient(circle at 45% 45%, rgba(152, 47, 57, 0.12), transparent 72%);
  animation-delay: -5s;
}

.orb-three {
  top: 19%;
  right: 9%;
  width: 110px;
  height: 110px;
  background: radial-gradient(circle at 45% 45%, rgba(199, 154, 86, 0.16), transparent 72%);
  animation-delay: -9s;
}

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(18px, -24px, 0); }
}

.page {
  position: relative;
  z-index: 1;
  width: min(100%, 660px);
  margin: auto;
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 0 0 18px;
  color: #9a7e72;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.26em;
  line-height: 1;
  text-transform: uppercase;
  animation: fade-in 0.7s 0.05s both;
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 54px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(166, 111, 67, 0.72));
}

.eyebrow::after {
  transform: scaleX(-1);
}

.card {
  position: relative;
  padding: 34px 42px 28px;
  overflow: hidden;
  border: 1px solid rgba(139, 69, 50, 0.16);
  border-radius: 34px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.94), rgba(255, 248, 241, 0.91));
  box-shadow: var(--card-shadow);
  text-align: center;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  animation: card-in 0.75s cubic-bezier(0.2, 0.7, 0.25, 1) both;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(205, 162, 96, 0.72), transparent 30%, transparent 67%, rgba(152, 47, 57, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

.card::after {
  content: "";
  position: absolute;
  top: -150px;
  left: 50%;
  z-index: 0;
  width: 390px;
  height: 320px;
  border-radius: 50%;
  pointer-events: none;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(211, 167, 100, 0.19), transparent 68%);
  filter: blur(12px);
}

.card > * {
  position: relative;
  z-index: 1;
}

.logo-stage {
  display: flex;
  justify-content: center;
  margin: 0 0 19px;
  animation: fade-in 0.8s 0.15s both;
}

.logo-ring {
  position: relative;
  width: 118px;
  height: 118px;
  padding: 5px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, #e7c98d, #a56b2b, #f0daa9, #9d6226, #e7c98d);
  box-shadow:
    0 14px 30px rgba(110, 45, 34, 0.2),
    0 0 0 7px rgba(199, 154, 86, 0.075);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.logo-ring::before {
  content: "";
  position: absolute;
  inset: -12px;
  border: 1px solid rgba(199, 154, 86, 0.25);
  border-radius: inherit;
}

.logo-ring:hover {
  transform: translateY(-2px) rotate(-1deg);
  box-shadow:
    0 18px 34px rgba(110, 45, 34, 0.24),
    0 0 0 7px rgba(199, 154, 86, 0.11);
}

.logo-ring img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff8ee;
}

h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(42px, 7vw, 56px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

h1 span {
  color: var(--maroon);
}

.tagline {
  max-width: 490px;
  margin: 13px auto 19px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.65;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 19px;
  padding: 8px 14px;
  border: 1px solid rgba(152, 47, 57, 0.16);
  border-radius: 999px;
  color: #7f2d34;
  background: rgba(255, 250, 244, 0.7);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.status-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--maroon-bright);
  box-shadow: 0 0 0 3px rgba(180, 61, 71, 0.09);
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(180, 61, 71, 0.3);
  border-radius: 50%;
  animation: pulse 2.5s ease-out infinite;
}

@keyframes pulse {
  0% { transform: scale(0.7); opacity: 0.85; }
  70%, 100% { transform: scale(1.5); opacity: 0; }
}

.download-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 62px;
  padding: 15px 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 17px;
  color: #fffaf1;
  background: linear-gradient(108deg, #6c1c25 0%, #a1323c 48%, #782029 100%);
  box-shadow:
    0 13px 26px rgba(121, 33, 43, 0.23),
    0 1px 0 rgba(255, 255, 255, 0.2) inset;
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: 0.015em;
  text-decoration: none;
  touch-action: manipulation;
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.download-button::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 23%, rgba(255, 255, 255, 0.18) 48%, transparent 71%);
  transform: translateX(-125%);
  transition: transform 0.75s ease;
}

.download-button:hover {
  transform: translateY(-3px);
  filter: saturate(1.05);
  box-shadow:
    0 18px 32px rgba(121, 33, 43, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.22) inset;
}

.download-button:hover::before {
  transform: translateX(125%);
}

.download-button:active {
  transform: translateY(-1px) scale(0.995);
}

.download-button:focus-visible {
  outline: 3px solid rgba(199, 154, 86, 0.7);
  outline-offset: 4px;
}

.download-button.is-downloading .download-icon {
  animation: nudge 0.65s ease infinite alternate;
}

@keyframes nudge {
  from { transform: translateY(0); }
  to { transform: translateY(2px); }
}

.download-icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.download-icon svg {
  width: 19px;
  height: 19px;
}

.download-label {
  line-height: 1.2;
}

.file-meta {
  margin: 10px 0 0;
  color: #9b8279;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.015em;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 18px;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(145, 82, 62, 0.22));
}

.divider::after {
  transform: scaleX(-1);
}

.divider span {
  width: 4px;
  height: 4px;
  transform: rotate(45deg);
  background: rgba(181, 129, 70, 0.75);
}

.steps-heading {
  margin: 0 0 11px;
  color: #674039;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

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

.step {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 12px 8px 11px;
  border: 1px solid rgba(148, 79, 57, 0.12);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.step-number {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff9ed;
  background: linear-gradient(145deg, #ac3640, #76202a);
  box-shadow:
    0 4px 10px rgba(118, 32, 42, 0.18),
    0 0 0 3px rgba(199, 154, 86, 0.11);
  font-size: 11px;
  font-weight: 800;
}

.step-text {
  color: #806a62;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

footer {
  margin-top: 15px;
  color: #9c857c;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  animation: fade-in 1s 0.3s both;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.988);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  body {
    padding: 17px 11px 15px;
  }

  .eyebrow {
    gap: 11px;
    margin-bottom: 13px;
    font-size: 9.5px;
    letter-spacing: 0.23em;
  }

  .eyebrow::before,
  .eyebrow::after {
    width: 34px;
  }

  .card {
    padding: 25px 15px 20px;
    border-radius: 25px;
  }

  .logo-stage {
    margin-bottom: 14px;
  }

  .logo-ring {
    width: 94px;
    height: 94px;
    padding: 4px;
    box-shadow:
      0 10px 24px rgba(110, 45, 34, 0.18),
      0 0 0 5px rgba(199, 154, 86, 0.075);
  }

  .logo-ring::before {
    inset: -9px;
  }

  h1 {
    font-size: 39px;
  }

  .tagline {
    margin: 10px auto 14px;
    font-size: 13px;
    line-height: 1.55;
  }

  .status {
    gap: 7px;
    margin-bottom: 14px;
    padding: 7px 11px;
    font-size: 8.5px;
    letter-spacing: 0.1em;
  }

  .download-button {
    min-height: 54px;
    padding: 12px 16px;
    gap: 10px;
    border-radius: 14px;
    font-size: 15px;
  }

  .download-icon {
    width: 27px;
    height: 27px;
  }

  .download-icon svg {
    width: 17px;
    height: 17px;
  }

  .file-meta {
    margin-top: 8px;
    font-size: 9.5px;
  }

  .divider {
    margin: 15px 0 13px;
  }

  .steps-heading {
    margin-bottom: 9px;
    font-size: 12.5px;
  }

  .steps {
    gap: 6px;
  }

  .step {
    gap: 6px;
    padding: 10px 4px 9px;
    border-radius: 11px;
  }

  .step-number {
    width: 23px;
    height: 23px;
    font-size: 9.5px;
  }

  .step-text {
    font-size: 9px;
    line-height: 1.3;
  }

  footer {
    margin-top: 11px;
    font-size: 9.5px;
  }
}

@media (min-width: 601px) and (max-height: 760px) {
  body {
    padding-top: 18px;
    padding-bottom: 14px;
  }

  .eyebrow {
    margin-bottom: 11px;
  }

  .card {
    padding-top: 23px;
    padding-bottom: 20px;
  }

  .logo-ring {
    width: 90px;
    height: 90px;
  }

  .logo-stage {
    margin-bottom: 12px;
  }

  .tagline {
    margin-top: 9px;
    margin-bottom: 13px;
  }

  .status {
    margin-bottom: 13px;
  }

  .divider {
    margin: 15px 0 12px;
  }

  .step {
    padding: 9px 8px;
  }

  footer {
    margin-top: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
