/* ====== Basic reset ====== */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #f4b23a; /* warm yellow */
  color: #e9f6f7;
}

/* ====== Layout ====== */
.page{
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: clamp(18px, 3vw, 40px);
}

.card{
  width: min(1120px, 100%);
  background: linear-gradient(180deg, #0a5c68 0%, #064a55 60%, #063f49 100%);
  border-radius: 2px;
  box-shadow: 0 22px 0 rgba(244, 178, 58, 0.25), 0 18px 40px rgba(0,0,0,.25);
  overflow: hidden;
  position: relative;
}

/* ====== Topbar ====== */
.topbar{
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 20px;
  align-items: center;
  padding: clamp(16px, 2.5vw, 26px) clamp(16px, 3vw, 34px);
}

.brand{
  letter-spacing: .3px;
  font-size: 18px;
  opacity: .95;
}
.brand-mark--bold{ font-weight: 800; }

.nav{
  display: flex;
  gap: 26px;
  align-items: center;
}
.nav-link{
  color: rgba(233,246,247,.85);
  text-decoration: none;
  font-size: 14px;
  position: relative;
}
.nav-link:hover{ color: #fff; }
.nav-link--active{
  background: #f0b033;
  color: #083c45;
  padding: 6px 16px;
  border-radius: 999px;
  font-weight: 700;
}

.search{
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  overflow: hidden;
  height: 30px;
  width: 210px;
}
.search-btn{
  border: 0;
  background: #f0b033;
  color: #083c45;
  width: 36px;
  height: 30px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.search-input{
  border: 0;
  outline: none;
  background: transparent;
  color: rgba(233,246,247,.95);
  padding: 0 12px;
  width: 100%;
}
.search-input::placeholder{ color: rgba(233,246,247,.6); }

/* ====== Hero ====== */
.hero{
  padding: clamp(18px, 3vw, 36px) clamp(16px, 3vw, 34px) clamp(28px, 3.5vw, 46px);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(18px, 3vw, 44px);
  align-items: center;
}

.copy{ max-width: 520px; }

.kicker{
  margin: 0 0 10px;
  font-weight: 800;
  letter-spacing: .12em;
}
.kicker-accent{ color: #f0b033; }

.headline{
  margin: 0;
  font-size: clamp(38px, 5.2vw, 62px);
  line-height: .95;
  font-weight: 900;
  letter-spacing: .02em;
  color: #ffffff;
}
.headline-now{
  font-weight: 800;
  font-size: .72em;
  opacity: .9;
}
.subhead{
  margin: 18px 0 8px;
  font-size: 18px;
  color: #f0b033;
  letter-spacing: .06em;
}
.body{
  margin: 0 0 22px;
  color: rgba(233,246,247,.82);
  max-width: 44ch;
  font-size: 14px;
  line-height: 1.65;
}

.actions{ margin: 0 0 22px; }

.btn{
  border: 0;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: .02em;
}
.btn-primary{
  background: #f0b033;
  color: #083c45;
  padding: 11px 22px;
  border-radius: 999px;
  box-shadow: 0 10px 18px rgba(0,0,0,.2);
}
.btn-primary:hover{ filter: brightness(1.03); transform: translateY(-1px); }
.btn-primary:active{ transform: translateY(0); }

.social{
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 16px;
}
.social-link{
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: rgba(233,246,247,.85);
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.08);
  text-decoration: none;
}
.social-link:hover{ color: #fff; border-color: rgba(255,255,255,.35); }

/* ====== Visual (right) ====== */
.visual{
  position: relative;
  min-height: 440px;
  display: grid;
  place-items: center;
}

.decor{
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  border: 2px dashed rgba(255,255,255,.28);
  opacity: .8;
}
.decor--ring{ left: 50px; top: 110px; transform: rotate(10deg); }
.decor--ring2{ right: 38px; bottom: 80px; width: 110px; height: 110px; transform: rotate(-10deg); opacity: .55; }

/* Steps */
.steps{
  list-style: none;
  padding: 0;
  margin: 0;
  position: absolute;
  left: 0;
  top: 130px;
  display: grid;
  gap: 14px;
}
.step{
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: 0 12px 20px rgba(0,0,0,.18);
}
.step-num{
  position: absolute;
  left: -12px;
  top: -10px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #ffffff;
  color: #0a4a55;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
}
.step-icon{ color: rgba(255,255,255,.92); }
.step--gold{ background: #f0b033; }
.step--pink{ background: #f04a6a; }
.step--blue{ background: #1bb7db; }
.step--green{ background: #19bf7a; }

/* Phone mock */
.phone{
  position: relative;
  width: min(320px, 88%);
  aspect-ratio: 9 / 16;
  border-radius: 34px;
  background: linear-gradient(180deg, #13bddc 0%, #0aa6c4 65%, #0791ad 100%);
  box-shadow: 0 26px 50px rgba(0,0,0,.28);
  border: 8px solid rgba(0,0,0,.18);
  overflow: hidden;
}

.phone-top{
  height: 22px;
  background: rgba(0,0,0,.18);
}

.phone-screen{
  padding: 18px 16px 20px;
  height: calc(100% - 22px);
  background: rgba(6,46,54,.18);
}

.screen-header .line{
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.75);
  margin-bottom: 8px;
}
.line--long{ width: 78%; }
.line--short{ width: 48%; opacity: .65; }

.rating{
  margin: 10px 0 12px;
  color: #f0b033;
  letter-spacing: 2px;
  font-size: 18px;
}
.star--dim{ opacity: .35; }

.game-card{
  position: relative;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 20px;
  height: 170px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.badge{
  position: absolute;
  right: 14px;
  top: 14px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #19bf7a;
  color: #0a3f47;
  font-weight: 900;
  font-size: 14px;
}

.controller{
  width: 120px;
  height: 74px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f4b23a 0%, #f06a3b 100%);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.28);
  position: relative;
}
.controller .pad{
  position: absolute;
  left: 12px;
  top: 18px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255,255,255,.22);
}
.controller .dpad{
  position: absolute;
  left: 20px;
  top: 26px;
  width: 20px;
  height: 20px;
  background: rgba(0,0,0,.18);
  border-radius: 5px;
}
.controller .btns{
  position: absolute;
  right: 16px;
  top: 20px;
  width: 40px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255,255,255,.2);
}

.btn-pill{
  margin: 14px auto 12px;
  display: block;
  background: #f0b033;
  color: #083c45;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 900;
}

.tiles{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.tile{
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.18);
  display: grid;
  place-items: center;
  font-size: 20px;
  color: rgba(233,246,247,.75);
}

/* side buttons */
.phone-side{
  position: absolute;
  right: -18px;
  top: 90px;
  display: grid;
  gap: 16px;
}
.phone-side span{
  width: 8px;
  height: 26px;
  border-radius: 999px;
  background: rgba(233,246,247,.45);
}

/* home button */
.phone-home{
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.35);
}

/* Toast */
.toast{
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  background: rgba(0,0,0,.75);
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.toast.show{
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

/* ====== Responsive ====== */
@media (max-width: 920px){
  .topbar{ grid-template-columns: 1fr; gap: 12px; }
  .nav{ flex-wrap: wrap; gap: 12px; justify-content: flex-start; }
  .search{ width: 100%; max-width: 360px; }
  .hero{ grid-template-columns: 1fr; }
  .visual{ min-height: 420px; }
  .steps{ left: 8px; top: 90px; }
}

@media (max-width: 520px){
  .steps{ display: none; }
  .decor{ display: none; }
  .headline{ letter-spacing: 0; }
  .phone{ width: 86%; }
}
