.landing-view {
  display: grid;
  min-height: calc(100vh - 104px);
  padding: clamp(18px, 3vw, 42px) clamp(20px, 5vw, 80px) 55px;
  place-items: center;
  animation: view-enter .45s ease both;
}

.offer-card {
  position: relative;
  width: min(920px, 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(25px, 5vw, 56px) clamp(22px, 6vw, 70px) 27px;
  background: linear-gradient(135deg, rgba(41, 43, 42, .96), rgba(25, 27, 26, .9));
  box-shadow: 0 28px 80px rgba(0, 0, 0, .25);
}

.offer-card::before, .offer-card::after {
  position: absolute;
  width: 44px;
  height: 44px;
  content: "";
  pointer-events: none;
}

.offer-card::before { top: -1px; left: -1px; border-top: 2px solid var(--primary); border-left: 2px solid var(--primary); }
.offer-card::after { right: -1px; bottom: -1px; border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary); }

.offer-kicker {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
  color: var(--primary);
  font: 10px/1 var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.offer-copy { font-size: clamp(14px, 1.45vw, 17px); line-height: 1.65; }
.offer-copy p { margin: 0 0 16px; }
.offer-greeting { margin: 0 0 18px; color: #edf7ee; font: 650 clamp(18px, 2.5vw, 25px)/1.2 var(--font-mono); }
.offer-list { margin: -3px 0 21px; padding: 0; list-style: none; }
.offer-list li { position: relative; margin: 7px 0; padding-left: 22px; }
.offer-list li::before { position: absolute; left: 0; color: var(--primary); content: "—"; }
.offer-copy sup, .legal sup { color: var(--highlight); }
.offer-copy .callout { margin-top: 24px; color: var(--primary); font-weight: 650; text-align: center; }

.action-zone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 34px 0 28px;
}

.orbit {
  position: absolute;
  top: 16px;
  width: 190px;
  height: 62px;
  border: 1px solid rgba(129, 201, 210, .2);
  border-radius: 50%;
  transform: rotate(-8deg);
  pointer-events: none;
}

.orbit span {
  position: absolute;
  top: -3px;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 10px var(--secondary);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse { 50% { opacity: .25; transform: scale(.7); } }

.button-primary {
  min-width: 250px;
  padding: 14px 32px 13px;
  color: var(--primary);
  text-transform: uppercase;
}

.button-primary span { display: block; font: 700 25px/1 var(--font-display); letter-spacing: .12em; }
.button-primary small { display: block; margin-top: 6px; color: var(--muted); font: 11px/1 var(--font-mono); letter-spacing: .08em; }

.button-quiet {
  margin-top: 13px;
  padding: 7px 22px;
  color: var(--muted);
  font: 13px/1 var(--font-mono);
  letter-spacing: .05em;
  text-transform: uppercase;
}

.action-status { min-height: 18px; margin: 13px 0 0; color: var(--secondary); font: 11px/1.4 var(--font-mono); text-align: center; }
.action-status.is-error { color: var(--danger); }

.legal {
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid rgba(129, 210, 138, .12);
  color: #67726a;
  font-size: 10px;
  line-height: 1.5;
}

.console-view { display: grid; grid-template-columns: 250px 1fr; min-height: calc(100vh - 104px); animation: view-enter .45s ease both; }
.console-nav { display: flex; flex-direction: column; padding: 48px 28px 36px clamp(20px, 4vw, 64px); border-right: 1px solid var(--line); }
.console-id { margin: 0 0 35px; color: var(--muted); font: 11px/1.4 var(--font-mono); letter-spacing: .08em; }

.nav-button {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-left: 2px solid transparent;
  padding: 12px 15px;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  cursor: pointer;
  text-align: left;
  text-transform: uppercase;
  transition: border-color .22s ease, background .22s ease, color .22s ease, transform .22s ease;
}

.nav-button:hover, .nav-button.is-active { border-left-color: var(--primary); background: linear-gradient(90deg, var(--primary-soft), transparent); color: var(--primary); }
.nav-button:hover { transform: translateX(2px); }
.nav-icon { width: 22px; height: 22px; flex: 0 0 auto; fill: none; stroke: var(--primary); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.connection-state { margin-top: auto; }
.connection-state .connection-light { background: var(--danger); box-shadow: 0 0 11px var(--danger); }
.connection-state.is-connected .connection-light { background: var(--primary); box-shadow: 0 0 11px var(--primary); }
.connection-state.is-pending .connection-light { background: var(--highlight); box-shadow: 0 0 11px var(--highlight); }
.console-content { display: flex; align-items: stretch; padding: clamp(30px, 5vw, 68px) clamp(22px, 5vw, 76px); }
.console-panel { width: 100%; max-width: 1200px; animation: panel-enter .32s ease both; }
#welcome-panel:not([hidden]) { display: flex; flex: 1; flex-direction: column; }
.eyebrow { margin: 0 0 14px; color: var(--primary); font: 12px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.console-panel h1, .login-dialog h2 { margin: 0 0 20px; color: #eff8f0; font: 600 clamp(32px, 5vw, 62px)/1.04 var(--font-display); letter-spacing: -.02em; }
#settings-panel h1 { font-size: clamp(28px, 3vw, 40px); }
.console-lead { max-width: 700px; margin: 0 0 44px; color: #a8b5ab; font-size: 18px; line-height: 1.6; }

.telemetry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 36px; }
.telemetry-grid article { min-height: 145px; border-top: 1px solid var(--line); padding: 20px; background: rgba(41, 43, 42, .55); }
.telemetry-grid article:hover { border-top-color: var(--primary); transform: translateY(-2px); }
.telemetry-grid small, .telemetry-grid span { display: block; color: var(--muted); font-size: 10px; line-height: 1.4; }
.telemetry-grid strong { display: block; margin: 16px 0 10px; color: var(--primary); font: 600 18px/1.2 var(--font-display); }
.notice { margin-top: auto; border-left: 2px solid var(--highlight); padding: 4px 0 4px 20px; }
.notice strong { color: var(--highlight); font: 13px/1 var(--font-mono); text-transform: uppercase; }
.notice p { margin: 9px 0 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.notice p.is-changing { animation: recommendation-change .5s ease both; }

@keyframes view-enter { from { opacity: 0; transform: translateY(8px); } }
@keyframes panel-enter { from { opacity: 0; transform: translateX(10px); } }
@keyframes recommendation-change { 0% { opacity: .15; transform: translateY(4px); } 100% { opacity: 1; transform: translateY(0); } }

.access-code-box { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 25px 0; }
.access-code-box label, .login-dialog label { display: block; margin-bottom: 9px; color: var(--muted); font: 12px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.code-row { display: grid; grid-template-columns: minmax(180px, 1fr) auto auto; gap: 8px; }
.button-compact { padding: 0 18px; color: var(--primary); font: 15px/1 var(--font-mono); text-transform: uppercase; }
.copy-status { min-height: 16px; margin: 10px 0 0; color: var(--primary); font: 12px/1.4 var(--font-mono); }
.warning { max-width: 720px; margin-top: 27px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.warning strong { color: var(--highlight); }
.logout-button { margin-top: 28px; }

.login-dialog { width: min(560px, calc(100% - 32px)); border: 1px solid var(--line); padding: 0; background: var(--surface-deep); color: var(--text); box-shadow: 0 30px 100px rgba(0, 0, 0, .7); }
.login-dialog[open] { animation: dialog-enter .28s ease both; }
.login-dialog::backdrop { background: rgba(9, 12, 10, .82); backdrop-filter: blur(4px); }
.login-dialog form { position: relative; padding: clamp(28px, 6vw, 52px); }
.login-dialog h2 { font-size: clamp(28px, 5vw, 44px); }
.login-dialog form > p:not(.eyebrow):not(.form-error) { margin: 0 0 26px; color: var(--muted); line-height: 1.55; }
.login-dialog input { width: 100%; }
.dialog-close { position: absolute; top: 16px; right: 18px; border: 0; background: none; color: var(--muted); font-size: 26px; cursor: pointer; }
.dialog-actions { display: flex; align-items: center; gap: 8px; margin-top: 20px; }
.button-dialog { min-width: 190px; }
.button-dialog span { font-size: inherit; }
.form-error { min-height: 18px; margin: 10px 0 0; color: var(--danger); font: 11px/1.4 var(--font-mono); }

@keyframes dialog-enter { from { opacity: 0; transform: translateY(8px) scale(.99); } }

@media (max-width: 760px) {
  .offer-kicker span:last-child { display: none; }
  .console-view { grid-template-columns: 1fr; }
  .console-nav { flex-direction: row; align-items: center; gap: 4px; padding: 12px 20px; border-right: 0; border-bottom: 1px solid var(--line); }
  .console-id { display: none; }
  .connection-state { margin: 0 0 0 auto; font-size: 9px; }
  .nav-button { padding: 10px 13px; }
  .nav-label, .connection-state #connection-label { display: none; }
  .connection-state .connection-light { width: 10px; height: 10px; margin-right: 0; }
  .console-content { padding-top: 45px; }
  .telemetry-grid { grid-template-columns: 1fr; }
  .telemetry-grid article { min-height: auto; }
  .code-row { grid-template-columns: 1fr 1fr; }
  .code-row input { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .offer-card { padding-inline: 19px; }
  .offer-copy { line-height: 1.55; }
  .button-primary { min-width: 220px; }
  .dialog-actions { align-items: stretch; flex-direction: column; }
  .dialog-actions .button { width: 100%; margin-top: 0; min-height: 42px; }
}
