* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #07141d;
  --panel: #0a1824;
  --panel-strong: #0d2030;
  --text: #ecf7ff;
  --muted: #b5c4d0;
  --primary: #f4c86b;
  --primary-2: #d99d1d;
  --gold: #ffcd5c;
  --shadow: rgba(217, 157, 29, 0.35);
}

html, body {
  min-height: 100%;
}

body {
  background: radial-gradient(circle at top, rgba(255, 205, 92, 0.14), transparent 30%),
    linear-gradient(180deg, #07141d 0%, #030c13 100%);
  color: var(--text);
  font-family: Poppins, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.phone {
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(13, 32, 48, 0.86) 0%, rgba(5, 13, 20, 0.96) 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04), 0 20px 70px rgba(0,0,0,0.4);
}

.top {
  height: 74px;
  display: grid;
  place-items: center;
  background: rgba(8, 17, 25, 0.9);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-top: env(safe-area-inset-top);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 1.5px;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: block;
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(217, 157, 29, 0.45);
}

main {
  padding: 58px 22px 42px;
  text-align: center;
}

.app-icon {
  width: 110px;
  height: 110px;
  margin: 0 auto 24px;
  border-radius: 28px;
  background: transparent;
  border: 1px solid rgba(255, 205, 92, 0.4);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 2px rgba(255, 205, 92, 0.08), 0 12px 30px rgba(255, 205, 92, 0.28);
  overflow: hidden;
}

.icon-inner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 28px;
}

h1 {
  font-size: clamp(27px, 5vw, 34px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.04em;
}

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

.sub {
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.install {
  margin-top: 30px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 20px;
  border: none;
  border-radius: 20px;
  color: #1a1200;
  font-size: 20px;
  font-weight: 900;
  font-family: inherit;
  cursor: pointer;
  background: linear-gradient(90deg, #ffd977, #f3b949 35%, #d99d1d 100%);
  box-shadow: 0 12px 35px rgba(217, 157, 29, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.install:active {
  transform: scale(0.98);
}

.benefits {
  list-style: none;
  margin-top: 30px;
  text-align: left;
}

.benefits li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.benefits b {
  color: var(--text);
}

.benefits i {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ffd977, #d99d1d);
  color: #1a1200;
  font-style: normal;
  font-weight: 900;
  flex: none;
}

.tagline {
  margin-top: 34px;
  color: var(--gold);
  font-weight: 800;
  font-size: 15px;
}

.foot {
  margin-top: 24px;
  color: #8ea4b3;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.install-guide {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(9, 15, 24, 0.82);
  backdrop-filter: blur(4px);
  padding: 20px 16px;
}

.install-guide.open {
  display: flex;
}

.guide-panel {
  position: relative;
  width: min(100%, 760px);
  background: rgba(20, 31, 48, 0.98);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 30px;
  padding: 22px 18px 12px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.44);
}

.guide-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(93, 106, 157, 0.28);
  color: #f5f7ff;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.guide-panel h2 {
  margin-top: 25px;
  text-align: center;
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  line-height: 0.96;
  font-weight: 900;
  letter-spacing: -0.07em;
  color: #f5f7ff;
}

.guide-panel h2 span {
  color: #ffcd5c;
}

.guide-panel p {
  margin-top: 10px;
  margin-bottom: 18px;
  text-align: center;
  color: #f3f7ff;
  font-size: clamp(1.2rem, 2.8vw, 2.2rem);
  font-weight: 500;
}

.guide-step {
  display: grid;
  grid-template-columns: 56px 56px 1fr;
  align-items: center;
  gap: 16px;
  margin: 0 auto 12px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(74, 86, 119, 0.26);
  border: 1px solid rgba(255,255,255,0.025);
  min-height: 82px;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ffd977, #d99d1d);
  color: #1b1200;
  font-weight: 900;
  font-size: 2rem;
  box-shadow: 0 12px 22px rgba(217, 157, 29, 0.26);
}

.step-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(86, 103, 183, 0.76);
  border: 1px solid rgba(255,255,255,0.04);
}

.step-icon svg {
  width: 29px;
  height: 29px;
  stroke: #f5f7ff;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step-text {
  color: #f5f7ff;
  font-size: clamp(1.08rem, 2.2vw, 1.9rem);
  font-weight: 800;
  line-height: 1.25;
}

.step-text b {
  font-weight: 900;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  background: rgba(8, 17, 25, 0.92);
  backdrop-filter: blur(6px);
}

.loading-overlay.visible {
  display: grid;
}

.loading-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px 22px;
  border-radius: 24px;
  background: rgba(17, 25, 33, 0.9);
  border: 1px solid rgba(255, 205, 92, 0.35);
  box-shadow: 0 18px 40px rgba(217, 157, 29, 0.22);
}

.loading-logo {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  object-fit: cover;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 205, 92, 0.25);
  border-top-color: #ffcd5c;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.loading-text {
  color: #ffcd5c;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
