:root {
  --bg: #f3f5fa;
  --panel: #e8ebf2;
  --ink: #17254f;
  --muted: #7b8395;
  --white: #ffffff;
  --cyan: #2ec6ea;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, Pretendard, "Noto Sans KR", Arial, sans-serif;
}

body { min-height: 100vh; }

.portal {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.topbar {
  height: 92px;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 28px 48px;
}

.logo {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -1.2px;
  transform: scaleX(1.25);
  transform-origin: right center;
}

.hero {
  min-height: calc(100vh - 92px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 130px;
}

.connect-btn {
  min-width: 230px;
  height: 58px;
  padding: 0 36px;
  border: 0;
  border-radius: 30px;
  background: rgba(255,255,255,.95);
  color: var(--ink);
  font-size: 24px;
  font-weight: 800;
  cursor: pointer;
  box-shadow:
    0 8px 18px rgba(20, 34, 73, .12),
    0 2px 5px rgba(20, 34, 73, .08);
  transition: transform .12s ease, box-shadow .12s ease;
}

.connect-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 10px 22px rgba(20, 34, 73, .15),
    0 3px 6px rgba(20, 34, 73, .1);
}

.connect-btn:active { transform: translateY(1px); }
.connect-btn:disabled { opacity: .55; cursor: wait; }

.guide-card {
  width: min(728px, 76vw);
  height: 426px;
  margin-top: 30px;
  padding: 30px 18px;
  border-radius: 24px;
  background: var(--panel);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 22px;
  overflow: hidden;
}

.mock-browser {
  width: 100%;
  align-self: center;
  opacity: .72;
}

.mock-address {
  width: 100%;
  height: 30px;
  padding: 7px 14px;
  border-radius: 18px;
  background: var(--white);
  color: #858b99;
  font-size: 12px;
}

.mock-dialog {
  margin-top: 12px;
  min-height: 255px;
  padding: 12px 14px 20px;
  border: 2px solid #b5b5b5;
  border-radius: 12px;
  background: rgba(255,255,255,.86);
  color: #777;
}

.mock-title {
  margin-bottom: 10px;
  font-size: 13px;
}

.device-box {
  width: 100%;
  height: 170px;
  border: 1px solid #c4c4c4;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255,255,255,.72);
}

.device-head {
  padding: 8px 12px;
  background: #a8a8a8;
  color: #fff;
  font-size: 12px;
}

.device-space {
  position: relative;
  height: calc(100% - 32px);
}

.step-dot {
  position: absolute;
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cyan);
  color: white;
  font-size: 11px;
  font-weight: 800;
}

.step-one {
  top: 25px;
  left: 53%;
}

.mock-actions {
  position: relative;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 14px;
}

.mock-actions button {
  width: 78px;
  height: 36px;
  border: 1px solid #c9c9c9;
  border-radius: 10px;
  color: #aaa;
  background: #eee;
}

.step-two {
  right: 104px;
  bottom: -29px;
}

.mock-panel {
  align-self: center;
  height: 240px;
  border-radius: 10px;
  border: 2px solid rgba(150,150,150,.22);
  background: rgba(255,255,255,.14);
}

.status {
  min-height: 24px;
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}

.device-info {
  margin-top: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,.72);
  color: #4e5874;
  font-size: 13px;
}

@media (max-width: 760px) {
  .topbar { padding: 22px 24px; }
  .hero { padding-top: 90px; }
  .guide-card {
    width: 88vw;
    grid-template-columns: 1fr;
    height: auto;
  }
  .mock-panel { display: none; }
}
