:root {
  --ink: #071827;
  --muted: #657280;
  --paper: #f7fbff;
  --card: rgba(255, 255, 255, 0.82);
  --blue: #0b85d9;
  --blue-deep: #075c99;
  --teal: #087c8e;
  --green: #41a935;
  --line: rgba(10, 33, 53, 0.12);
  --shadow: 0 28px 90px rgba(4, 32, 58, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background:
    radial-gradient(circle at 14% 10%, rgba(11, 133, 217, 0.22), transparent 28rem),
    radial-gradient(circle at 86% 14%, rgba(65, 169, 53, 0.15), transparent 26rem),
    linear-gradient(135deg, #f8fcff 0%, #edf7fb 48%, #f8fbf8 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0 56px;
}

.site-header,
.brand,
.trust-row,
.download-actions,
.map-header,
.admin-grid {
  display: flex;
  align-items: center;
}

.site-header {
  justify-content: space-between;
  margin-bottom: 42px;
}

.brand {
  gap: 12px;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: white;
  font-size: 13px;
  letter-spacing: -0.02em;
  border-radius: 15px;
  background: linear-gradient(145deg, var(--blue), var(--teal));
  box-shadow: 0 12px 28px rgba(11, 133, 217, 0.28);
}

.admin-link {
  padding: 10px 16px;
  color: var(--blue-deep);
  font-size: 14px;
  font-weight: 750;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  gap: 56px;
  align-items: center;
}

.hero-copy {
  padding: 36px 0;
}

.eyebrow {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.eyebrow span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 8px rgba(65, 169, 53, 0.12);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(45px, 7vw, 82px);
  line-height: 0.91;
  letter-spacing: -0.085em;
}

.hero-copy > p {
  max-width: 640px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
}

.download-card,
.signup-card,
.features article,
.admin-card {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.download-card,
.signup-card {
  max-width: 650px;
  padding: 18px;
  border-radius: 30px;
}

.download-card strong,
.signup-card strong {
  display: block;
  margin-bottom: 4px;
}

.download-card small,
.signup-card small,
.current-apk small {
  color: var(--muted);
}

.signup-form {
  margin-top: 18px;
}

.account-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 18px;
  padding: 5px;
  border-radius: 18px;
  background: rgba(7, 24, 39, 0.06);
}

.account-tab {
  min-height: 44px;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  border: 0;
  border-radius: 14px;
  background: transparent;
  cursor: pointer;
}

.account-tab.active {
  color: var(--blue-deep);
  background: white;
  box-shadow: 0 10px 24px rgba(4, 32, 58, 0.1);
}

.download-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  font-weight: 850;
  border: 0;
  border-radius: 17px;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.button-primary {
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  box-shadow: 0 15px 34px rgba(11, 133, 217, 0.32);
}

.button-secondary {
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
}

.button.disabled {
  pointer-events: none;
  opacity: 0.48;
}

.trust-row {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.trust-row span {
  padding: 9px 12px;
  color: #36505e;
  font-size: 13px;
  font-weight: 750;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid var(--line);
}

.phone-stage {
  position: relative;
  min-height: 660px;
  display: grid;
  place-items: center;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(1px);
}

.orb-one {
  width: 270px;
  height: 270px;
  top: 60px;
  right: 40px;
  background: rgba(11, 133, 217, 0.2);
}

.orb-two {
  width: 210px;
  height: 210px;
  bottom: 80px;
  left: 25px;
  background: rgba(8, 124, 142, 0.18);
}

.phone {
  position: relative;
  width: min(360px, 86vw);
  padding: 14px;
  border-radius: 48px;
  background: linear-gradient(145deg, #0f1a25, #223447);
  box-shadow:
    0 40px 100px rgba(6, 23, 41, 0.36),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: rotate(2deg);
}

.phone-top {
  position: absolute;
  top: 24px;
  left: 50%;
  z-index: 2;
  width: 94px;
  height: 27px;
  border-radius: 999px;
  background: #0b1420;
  transform: translateX(-50%);
}

.phone-screen {
  position: relative;
  overflow: hidden;
  min-height: 690px;
  padding: 46px 18px 18px;
  border-radius: 38px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.38) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.38) 1px, transparent 1px),
    #f3efe3;
  background-size: 58px 58px;
}

.map-header {
  justify-content: space-between;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
}

.map-header span {
  font-weight: 900;
}

.map-header strong {
  color: var(--teal);
  font-size: 12px;
}

.map-area {
  position: relative;
  height: 440px;
  margin-top: 16px;
  border-radius: 28px;
  background:
    linear-gradient(35deg, transparent 45%, rgba(255, 255, 255, 0.95) 46%, rgba(255, 255, 255, 0.95) 51%, transparent 52%),
    linear-gradient(130deg, transparent 36%, rgba(255, 255, 255, 0.92) 37%, rgba(255, 255, 255, 0.92) 43%, transparent 44%),
    linear-gradient(180deg, #d9ecd2 0%, #eaf1db 45%, #d7f0fa 100%);
}

.route-line {
  position: absolute;
  inset: 82px 105px 94px 122px;
  border-left: 7px solid var(--teal);
  border-bottom: 7px solid var(--teal);
  border-radius: 0 0 0 70px;
  transform: rotate(-8deg);
}

.pin,
.current-dot {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 999px;
}

.pin {
  width: 47px;
  height: 47px;
  color: white;
  font-weight: 900;
  box-shadow: 0 14px 25px rgba(0, 0, 0, 0.22);
}

.pin-a {
  top: 76px;
  left: 102px;
  background: var(--green);
}

.pin-b {
  top: 214px;
  right: 58px;
  background: var(--teal);
}

.pin-c {
  bottom: 70px;
  left: 72px;
  background: #1f2933;
}

.current-dot {
  right: 95px;
  bottom: 118px;
  width: 30px;
  height: 30px;
  background: var(--blue);
  border: 6px solid white;
  box-shadow: 0 0 0 12px rgba(11, 133, 217, 0.18);
}

.route-panel {
  margin-top: 16px;
  padding: 18px;
  border-radius: 24px;
  background: white;
  box-shadow: 0 16px 40px rgba(6, 23, 41, 0.14);
}

.route-panel small,
.route-panel span {
  display: block;
  color: var(--muted);
}

.route-panel strong {
  display: block;
  margin: 6px 0;
  font-size: 22px;
  letter-spacing: -0.05em;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.features article {
  padding: 24px;
  border-radius: 28px;
}

.feature-icon {
  color: var(--blue);
  font-weight: 900;
}

.features h2,
.admin-card h2 {
  margin: 14px 0 10px;
  letter-spacing: -0.045em;
}

.features p,
.admin-card p,
.admin-hero p {
  color: var(--muted);
  line-height: 1.65;
}

.admin-card-intro {
  margin-bottom: 18px;
}

.admin-body {
  background:
    radial-gradient(circle at top left, rgba(11, 133, 217, 0.2), transparent 30rem),
    #f6fbff;
}

.admin-shell {
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
  padding: 38px 0 64px;
}

.admin-hero {
  max-width: 720px;
  margin-bottom: 26px;
}

.admin-hero h1 {
  margin: 34px 0 14px;
  font-size: clamp(38px, 6vw, 64px);
}

.admin-card {
  padding: 26px;
  border-radius: 30px;
}

.admin-grid {
  align-items: stretch;
  gap: 20px;
}

.admin-grid .admin-card {
  flex: 1;
}

form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: #304755;
  font-size: 13px;
  font-weight: 850;
}

input,
textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  color: var(--ink);
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: none;
  background: rgba(255, 255, 255, 0.84);
}

textarea {
  min-height: 124px;
  padding: 14px 16px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: rgba(11, 133, 217, 0.55);
  box-shadow: 0 0 0 5px rgba(11, 133, 217, 0.1);
}

.checkbox-row {
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
}

.checkbox-row input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--blue);
}

.checkbox-row span {
  color: var(--ink);
  font-size: 14px;
}

.current-apk {
  display: grid;
  gap: 7px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.58);
}

.current-apk span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.file-picker input {
  display: none;
}

.file-picker span {
  display: grid;
  min-height: 92px;
  place-items: center;
  color: var(--blue-deep);
  border: 1px dashed rgba(11, 133, 217, 0.45);
  border-radius: 20px;
  background: rgba(11, 133, 217, 0.06);
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.file-picker.drag-over span {
  border-color: rgba(65, 169, 53, 0.8);
  background: rgba(65, 169, 53, 0.12);
  transform: translateY(-2px);
}

.selected-file {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.upload-progress {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
}

.upload-progress progress {
  width: 100%;
  height: 14px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: rgba(7, 24, 39, 0.08);
}

.upload-progress progress::-webkit-progress-bar {
  background: rgba(7, 24, 39, 0.08);
}

.upload-progress progress::-webkit-progress-value {
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
}

.upload-progress progress::-moz-progress-bar {
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
}

.upload-progress span {
  color: var(--blue-deep);
  font-size: 13px;
  font-weight: 850;
}

.form-message {
  min-height: 20px;
  margin: 0;
  font-size: 13px;
  font-weight: 750;
}

.update-page {
  min-height: 100vh;
}

.update-shell {
  display: grid;
  min-height: calc(100vh - 150px);
  place-items: center;
}

.update-card {
  width: min(820px, 100%);
  padding: clamp(28px, 6vw, 62px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 42px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.68)),
    radial-gradient(circle at top right, rgba(11, 133, 217, 0.18), transparent 24rem);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.update-card h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 78px);
}

.update-card > p {
  max-width: 680px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
}

.version-pill {
  display: inline-flex;
  margin: 10px 0 24px;
  padding: 10px 14px;
  color: var(--blue-deep);
  font-size: 14px;
  font-weight: 850;
  border: 1px solid rgba(11, 133, 217, 0.22);
  border-radius: 999px;
  background: rgba(11, 133, 217, 0.08);
}

.release-notes {
  margin: 8px 0 24px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.62);
}

.release-notes h2 {
  margin: 0 0 8px;
}

.release-notes p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
  white-space: pre-line;
}

.hidden {
  display: none;
}

@media (max-width: 900px) {
  .hero,
  .features,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-grid {
    display: grid;
  }

  .phone-stage {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 28px, 1180px);
    padding-top: 18px;
  }

  h1 {
    font-size: 46px;
  }

  .download-actions .button {
    width: 100%;
  }

  .phone {
    transform: none;
  }

  .phone-screen {
    min-height: 610px;
  }
}
