:root {
  --install-ink: #092d35;
  --install-teal: #087d86;
  --install-deep: #063b45;
  --install-coral: #e9543f;
  --install-paper: #f5f1e7;
  --install-line: rgba(9, 45, 53, 0.14);
  --install-shadow: 0 28px 70px rgba(6, 59, 69, 0.16);
  --install-font: "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--install-ink);
  font-family: var(--install-font);
  background:
    linear-gradient(rgba(8, 125, 134, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 125, 134, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 8% 6%, #d8f2ec 0, transparent 30%),
    linear-gradient(145deg, #fbfaf5 0%, #edf7f3 48%, #f8f0e7 100%);
  background-size: 38px 38px, 38px 38px, auto, auto;
}

button, a { font: inherit; }

.install-orb {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(1px);
  pointer-events: none;
}

.install-orb--one { width: 320px; height: 320px; top: 14%; right: -170px; background: rgba(233, 84, 63, 0.14); }
.install-orb--two { width: 420px; height: 420px; bottom: -240px; left: -150px; background: rgba(8, 125, 134, 0.16); }

.install-header {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.install-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--install-ink); text-decoration: none; font-size: 18px; letter-spacing: -0.02em; }
.install-brand img { border-radius: 15px; box-shadow: 0 8px 24px rgba(9, 45, 53, 0.12); }

.install-language { display: inline-flex; padding: 4px; border: 1px solid var(--install-line); border-radius: 999px; background: rgba(255, 255, 255, 0.72); }
.install-language button { min-width: 44px; border: 0; border-radius: 999px; padding: 8px 11px; color: rgba(9, 45, 53, 0.58); background: transparent; cursor: pointer; font-weight: 800; }
.install-language button.is-active { color: #fff; background: var(--install-deep); }

.install-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 34px 0 70px; }

.install-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(310px, 0.75fr); gap: clamp(28px, 5vw, 74px); align-items: center; min-height: 540px; }
.install-badge { display: inline-flex; padding: 8px 13px; border-radius: 999px; color: #fff; background: var(--install-coral); font-size: 13px; font-weight: 900; letter-spacing: 0.04em; }
.install-eyebrow { margin: 24px 0 9px; color: var(--install-teal); font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.install-hero h1 { max-width: 760px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(43px, 6.2vw, 78px); line-height: 1.03; letter-spacing: -0.055em; text-wrap: balance; }
.install-lead { max-width: 680px; margin: 24px 0 0; font-size: clamp(18px, 2vw, 23px); line-height: 1.66; color: rgba(9, 45, 53, 0.72); }
.install-device-status { margin-top: 24px; display: inline-flex; align-items: center; min-height: 42px; padding: 10px 14px; border-left: 4px solid var(--install-teal); background: rgba(255, 255, 255, 0.68); font-weight: 800; }
.install-device-status.is-warning { border-color: var(--install-coral); }

.install-release-card { position: relative; overflow: hidden; min-height: 440px; padding: 34px; border-radius: 36px 10px 36px 10px; color: #fff; background: linear-gradient(150deg, #075563 0%, #06343e 64%, #0a2830 100%); box-shadow: var(--install-shadow); }
.install-release-card::after { content: ""; position: absolute; width: 230px; height: 230px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; right: -80px; top: -75px; box-shadow: 0 0 0 38px rgba(255,255,255,.025), 0 0 0 76px rgba(255,255,255,.018); }
.install-app-mark { position: relative; z-index: 1; width: 112px; height: 112px; display: grid; place-items: center; margin-bottom: 28px; border-radius: 30px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); }
.install-app-mark img { width: 84px; height: 84px; object-fit: contain; }
.install-app-name { display: grid; gap: 3px; }
.install-app-name span { color: rgba(255,255,255,.7); }
.install-app-name strong { font-family: Georgia, "Times New Roman", serif; font-size: 38px; }
.install-release-meta { margin: 32px 0 0; display: grid; gap: 13px; }
.install-release-meta div { display: flex; justify-content: space-between; gap: 18px; padding-bottom: 11px; border-bottom: 1px solid rgba(255,255,255,.13); }
.install-release-meta dt { color: rgba(255,255,255,.62); }
.install-release-meta dd { margin: 0; text-align: right; font-weight: 900; }
.install-release-status { margin: 18px 0 0; color: #b8eee2; font-size: 14px; line-height: 1.55; }

.install-steps { padding: 58px 0 30px; }
.install-section-heading { display: flex; align-items: end; gap: 20px; margin-bottom: 28px; }
.install-section-heading span { color: var(--install-coral); font-weight: 900; letter-spacing: .1em; }
.install-section-heading h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); letter-spacing: -.04em; }
.install-step-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--install-line); border-bottom: 1px solid var(--install-line); }
.install-step-grid article { min-height: 255px; padding: 28px 25px; border-right: 1px solid var(--install-line); }
.install-step-grid article:last-child { border-right: 0; }
.install-step-grid article > span { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: #fff; background: var(--install-teal); font-weight: 900; }
.install-step-grid h3 { margin: 48px 0 10px; font-size: 21px; }
.install-step-grid p { margin: 0; color: rgba(9,45,53,.67); line-height: 1.65; }

.install-action-panel { margin: 42px 0; padding: 34px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 25px 34px; align-items: center; border-radius: 28px; background: var(--install-paper); box-shadow: 0 18px 48px rgba(68, 53, 32, .09); }
.install-action-kicker { color: var(--install-coral); font-weight: 900; }
.install-action-panel p { margin: 8px 0 0; max-width: 660px; line-height: 1.65; color: rgba(9,45,53,.72); }
.install-download-button { min-height: 62px; padding: 0 27px; border: 0; border-radius: 18px; color: #fff; background: var(--install-teal); font-weight: 900; box-shadow: 0 14px 30px rgba(8,125,134,.24); cursor: pointer; }
.install-download-button:disabled { cursor: wait; opacity: .55; box-shadow: none; }
.install-action-status { grid-column: 1 / -1; min-height: 22px; font-weight: 800; color: var(--install-teal) !important; }

.install-permission { display: grid; grid-template-columns: auto 1fr; gap: 24px; padding: 34px; border-radius: 28px; color: #fff; background: linear-gradient(135deg, #173b43, #102a31); }
.install-permission-index { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; color: #fff; background: var(--install-coral); font-size: 32px; font-weight: 900; }
.install-permission h2 { margin: 0 0 10px; font-size: clamp(27px, 3vw, 38px); letter-spacing: -.035em; }
.install-permission p { margin: 8px 0; color: rgba(255,255,255,.76); line-height: 1.65; }
.install-permission-path { margin: 22px 0; padding: 18px; border-radius: 16px; color: #d5fff5; background: rgba(255,255,255,.08); font-weight: 900; line-height: 1.65; }
.install-permission strong { display: inline-block; margin-top: 9px; color: #8fe0ce; }

.install-integrity { width: min(100%, 580px); margin: 24px 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.install-integrity div { padding: 18px 20px; display: flex; justify-content: space-between; gap: 18px; border: 1px solid var(--install-line); border-radius: 16px; background: rgba(255,255,255,.7); }
.install-integrity span { color: rgba(9,45,53,.58); }
.install-integrity strong { overflow-wrap: anywhere; text-align: right; }
.install-back-link { display: inline-flex; margin-top: 20px; color: var(--install-deep); font-weight: 900; }

.install-confirm-dialog { width: min(520px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 28px; color: var(--install-ink); box-shadow: 0 28px 80px rgba(4,34,40,.34); }
.install-confirm-dialog::backdrop { background: rgba(4, 26, 31, .62); backdrop-filter: blur(5px); }
.install-confirm-dialog form { padding: 32px; }
.install-dialog-mark { display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; color: #fff; background: var(--install-teal); font-weight: 900; }
.install-confirm-dialog h2 { margin: 22px 0 10px; font-size: 28px; letter-spacing: -.035em; }
.install-confirm-dialog p { margin: 0; line-height: 1.65; color: rgba(9,45,53,.7); }
.install-dialog-actions { margin-top: 28px; display: flex; justify-content: flex-end; gap: 10px; }
.install-dialog-actions button { min-height: 48px; padding: 0 18px; border-radius: 14px; font-weight: 900; cursor: pointer; }
.install-dialog-cancel { border: 1px solid var(--install-line); color: var(--install-ink); background: #fff; }
.install-dialog-confirm { border: 0; color: #fff; background: var(--install-teal); }

@media (max-width: 900px) {
  .install-hero { grid-template-columns: 1fr; min-height: 0; }
  .install-release-card { min-height: 0; }
  .install-step-grid { grid-template-columns: repeat(2, 1fr); }
  .install-step-grid article:nth-child(2) { border-right: 0; }
  .install-step-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--install-line); }
  .install-action-panel { grid-template-columns: 1fr; }
  .install-download-button { width: 100%; }
}

@media (max-width: 580px) {
  .install-header, .install-shell { width: min(100% - 28px, 1180px); }
  .install-header { padding-top: 14px; }
  .install-brand strong { font-size: 16px; }
  .install-shell { padding-top: 18px; }
  .install-hero { gap: 28px; }
  .install-hero h1 { font-size: clamp(39px, 12vw, 58px); }
  .install-lead { font-size: 18px; }
  .install-release-card { padding: 26px; border-radius: 28px 8px; }
  .install-step-grid { grid-template-columns: 1fr; }
  .install-step-grid article { min-height: auto; border-right: 0; border-bottom: 1px solid var(--install-line); }
  .install-step-grid article:last-child { border-bottom: 0; }
  .install-step-grid h3 { margin-top: 24px; }
  .install-action-panel, .install-permission { padding: 24px; }
  .install-permission { grid-template-columns: 1fr; }
  .install-integrity div { display: grid; }
  .install-integrity strong { text-align: left; }
  .install-dialog-actions { display: grid; grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: no-preference) {
  .install-hero-copy > *, .install-release-card { animation: install-rise .55s both; }
  .install-hero-copy > *:nth-child(2) { animation-delay: .05s; }
  .install-hero-copy > *:nth-child(3) { animation-delay: .1s; }
  .install-hero-copy > *:nth-child(4) { animation-delay: .15s; }
  .install-release-card { animation-delay: .12s; }
  @keyframes install-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
}
