@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Space+Grotesk:wght@500;700&display=swap");

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

:root {
  --bg: #160d06;
  --bg-2: #2a180b;
  --panel: #221309;
  --text: #fef4de;
  --muted: #c9b494;
  --line: rgba(248, 198, 92, 0.26);
  --accent: #f8c65c;
  --accent-2: #bb7820;
  --accent-soft: rgba(248, 198, 92, 0.14);
  --shadow: rgba(187, 120, 32, 0.3);
}

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

body {
  background:
    radial-gradient(1000px 500px at -10% -10%, rgba(248, 198, 92, 0.18), transparent 50%),
    radial-gradient(700px 420px at 120% 0%, rgba(187, 120, 32, 0.22), transparent 58%),
    linear-gradient(180deg, var(--bg) 0%, #090503 100%);
  color: var(--text);
  font-family: "Sora", "Segoe UI", sans-serif;
}

.phone {
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(38, 23, 11, 0.95) 0%, rgba(17, 10, 6, 0.98) 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03), 0 20px 70px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
}

.top {
  padding: calc(env(safe-area-inset-top) + 12px) 16px 10px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(99, 224, 138, 0.42);
  color: #c6ffd7;
  background: rgba(44, 126, 69, 0.24);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  font-family: "Space Grotesk", "Sora", sans-serif;
}

.landing {
  padding: 8px 16px 32px;
}

.hero-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(55, 33, 16, 0.92) 0%, rgba(24, 14, 8, 0.95) 100%);
  padding: 26px 18px 18px;
  text-align: center;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 243, 220, 0.06), 0 20px 44px rgba(0, 0, 0, 0.35);
}

.hero-glow {
  position: absolute;
  width: 260px;
  height: 260px;
  left: 50%;
  top: -120px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(248, 198, 92, 0.26), transparent 68%);
  pointer-events: none;
}

.hero-brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(248, 198, 92, 0.08);
  border: 1px solid var(--line);
  font-family: "Space Grotesk", "Sora", sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.hero-brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(187, 120, 32, 0.35);
}

.eyebrow {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  color: #ffe0a2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: "Space Grotesk", "Sora", sans-serif;
}

h1 {
  margin-top: 16px;
  font-size: clamp(35px, 8.8vw, 42px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

h1 span {
  display: block;
  margin-top: 6px;
  color: var(--accent);
  font-size: clamp(26px, 6.5vw, 30px);
  letter-spacing: 0.02em;
}

.sub {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

.install {
  margin-top: 8px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  padding: 14px 20px;
  border: none;
  border-radius: 16px;
  color: #281706;
  font-size: 19px;
  font-weight: 800;
  font-family: "Space Grotesk", "Sora", sans-serif;
  cursor: pointer;
  background: linear-gradient(100deg, #ffe8b6 0%, #efbe61 42%, #b4701e 100%);
  box-shadow: 0 12px 30px var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  z-index: 1;
}

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

.login-btn {
  margin-top: 10px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  border-radius: 16px;
  font-size: 17px;
  font-weight: 700;
  color: #ffd28d;
  text-decoration: none;
  letter-spacing: 0.01em;
  background: rgba(248, 198, 92, 0.09);
  border: 1px solid rgba(248, 198, 92, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 240, 210, 0.06);
  transition: transform 0.2s ease, background 0.2s ease;
  position: relative;
  z-index: 1;
}

.login-btn:active {
  transform: scale(0.98);
}

.login-icon {
  opacity: 0.85;
}

.micro-note {
  margin-top: 12px;
  color: #c4ae8c;
  font-size: 12px;
  letter-spacing: 0.03em;
  position: relative;
  z-index: 1;
}

.value-strip {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.value-item {
  border-radius: 16px;
  border: 1px solid rgba(248, 198, 92, 0.2);
  background: rgba(32, 20, 11, 0.78);
  padding: 12px 11px;
  min-height: 104px;
  text-align: left;
}

.value-item strong {
  display: inline-block;
  font-family: "Space Grotesk", "Sora", sans-serif;
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 0.06em;
}

.value-item p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.tagline {
  margin-top: 22px;
  color: #ffd78f;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.45;
  text-align: center;
}

.foot {
  margin-top: 10px;
  color: #9d8b72;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.android-install-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(7, 12, 18, 0.68);
  padding: 24px 16px 16px;
}

.android-install-modal.open {
  display: flex;
}

.android-install-card {
  width: min(100%, 420px);
  background: linear-gradient(180deg, rgba(52, 36, 19, 0.98), rgba(24, 16, 9, 0.98));
  border: 1px solid rgba(244, 195, 95, 0.2);
  border-radius: 26px 26px 20px 20px;
  padding: 18px 18px 16px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
}

.android-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #f7f9ff;
  font-size: 24px;
  cursor: pointer;
}

.android-install-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.android-install-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 10px 20px rgba(201, 147, 47, 0.28);
}

.android-install-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.android-install-label {
  font-size: 11px;
  font-weight: 700;
  color: #d8c39a;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.android-install-meta strong {
  font-size: 22px;
  font-weight: 800;
  color: #f9fbff;
}

.android-install-copy {
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.6;
  color: #dfeaf4;
}

.android-install-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.android-btn {
  flex: 1;
  border: none;
  border-radius: 14px;
  min-height: 48px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.android-btn-primary {
  background: linear-gradient(90deg, #ffe3a3, #e8b24f 45%, #b97c21 100%);
  color: #2b1b07;
  box-shadow: 0 10px 24px rgba(201, 147, 47, 0.25);
}

.android-btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #edf4ff;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

.guide-panel {
  position: relative;
  width: min(100%, 760px);
  background: rgba(47, 32, 16, 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: #f4c35f;
}

.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, #ffe3a3, #b97c21);
  color: #2b1b07;
  font-weight: 900;
  font-size: 2rem;
  box-shadow: 0 12px 22px rgba(201, 147, 47, 0.26);
}

.step-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(102, 72, 36, 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(16, 11, 7, 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(32, 22, 13, 0.9);
  border: 1px solid rgba(244, 195, 95, 0.35);
  box-shadow: 0 18px 40px rgba(201, 147, 47, 0.22);
}

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

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(244, 195, 95, 0.25);
  border-top-color: #f4c35f;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

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

@media (max-width: 390px) {
  .brand {
    font-size: 29px;
  }

  h1 {
    font-size: clamp(30px, 8.4vw, 36px);
  }

  h1 span {
    font-size: clamp(22px, 6vw, 27px);
  }

  .value-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 340px) {
  .top {
    padding-left: 14px;
    padding-right: 14px;
  }

  .landing {
    padding-left: 12px;
    padding-right: 12px;
  }
}

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