:root {
  --ink: #172033;
  --muted: #637087;
  --line: #dce4ee;
  --paper: #eef6f7;
  --panel: #ffffff;
  --teal: #147a7e;
  --teal-dark: #0f5f62;
  --coral: #d95d39;
  --gold: #f5c94f;
  --green: #2f7d52;
  --shadow: 0 20px 60px rgba(23, 32, 51, 0.14);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

body {
  margin: 0;
  min-height: 100vh;
}

a {
  color: inherit;
}

.shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--teal);
  color: white;
  box-shadow: 0 10px 24px rgba(20, 122, 126, 0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 48px;
  align-items: center;
  padding: 42px 0 76px;
}

h1 {
  margin: 0;
  max-width: 680px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.95;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.45;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(23, 32, 51, 0.08);
}

.button.primary {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.button.primary:hover {
  background: var(--teal-dark);
}

.hero-card {
  position: relative;
  min-height: 480px;
  border: 1px solid rgba(220, 228, 238, 0.9);
  border-radius: 26px;
  background: linear-gradient(160deg, #ffffff 0%, #f8fbfc 48%, #fff8ed 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.phone {
  position: absolute;
  left: 8%;
  top: 8%;
  width: 64%;
  min-width: 260px;
  border: 10px solid #172033;
  border-radius: 34px;
  background: #f4f8fb;
  box-shadow: 0 22px 46px rgba(23, 32, 51, 0.22);
  overflow: hidden;
}

.phone-top {
  padding: 24px 20px 12px;
  background: linear-gradient(180deg, #f5fbfb 0%, #fff8ef 100%);
}

.phone-title {
  margin: 8px 0 4px;
  font-size: 26px;
  font-weight: 950;
}

.phone-subtitle {
  color: var(--muted);
  font-size: 14px;
}

.mission-list {
  padding: 14px;
}

.mission-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.mission-name {
  font-weight: 900;
}

.points {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: #e9f8f1;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.reward-card {
  position: absolute;
  right: 8%;
  bottom: 12%;
  width: 46%;
  min-width: 220px;
  padding: 20px;
  border: 1px solid #f3d9df;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(23, 32, 51, 0.16);
}

.reward-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: #fff0f4;
  color: #bb4164;
}

.reward-title {
  margin: 14px 0 5px;
  font-size: 20px;
  font-weight: 950;
}

.progress {
  height: 10px;
  margin-top: 16px;
  border-radius: 999px;
  background: #edf1f6;
  overflow: hidden;
}

.progress span {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.section {
  padding: 54px 0;
}

.section h2 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
}

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

.tile,
.panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 12px 28px rgba(23, 32, 51, 0.08);
}

.tile {
  padding: 22px;
}

.tile h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.tile p,
.muted {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.panel {
  padding: 28px;
}

.code-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  margin: 18px 0;
  padding: 16px 20px;
  border: 1px dashed var(--teal);
  border-radius: 14px;
  background: #f5fbfb;
  color: var(--teal);
  font-size: 24px;
  font-weight: 950;
  letter-spacing: 0.06em;
}

.input-label {
  display: block;
  margin: 6px 0 8px;
  color: var(--muted);
  font-weight: 850;
}

.code-input {
  display: block;
  width: min(100%, 320px);
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 20px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.code-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(20, 122, 126, 0.14);
  outline: none;
}
.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 0 46px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer a {
  margin-left: 14px;
  text-decoration: none;
}

.legal {
  padding: 42px 0 70px;
}

.legal .panel {
  max-width: 820px;
}

.legal h1 {
  font-size: clamp(36px, 5vw, 58px);
}

.legal h2 {
  margin-top: 28px;
}

@media (max-width: 820px) {
  .shell {
    width: min(100% - 28px, 680px);
  }

  .nav {
    align-items: flex-start;
    gap: 18px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 24px;
  }

  .hero-card {
    min-height: 430px;
  }

  .phone {
    left: 4%;
    width: 78%;
  }

  .reward-card {
    right: 4%;
    width: 56%;
  }

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


  .footer {
    flex-direction: column;
  }

  .footer a {
    display: inline-block;
    margin: 0 14px 10px 0;
  }
}

