* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  background-color: var(--bg-outside, #ffffff);
  font-family: var(--font-geist);
  padding: var(--frame-padding-y, 16px) var(--frame-padding-x, 16px);
  display: flex;
  flex-direction: column;
}

.app-frame {
  width: 100%;
  height: 100%;
  max-width: var(--frame-max-width, 100%);
  max-height: var(--frame-max-height, 100%);
  margin: 0 auto;
  flex: 1;
  min-height: 0;
  background: var(--bg-canvas, #ffffff);
  border-top: var(--frame-border-width, 2.5px) solid var(--border-frame, #000000);
  border-bottom: var(--frame-border-width, 2.5px) solid var(--border-frame, #000000);
  border-left: none;
  border-right: none;
  border-radius: 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
}

.app-bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.app-header {
  position: relative;
  z-index: 10;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 40px 48px 0 48px;
}

.header-pill {
  background: var(--badge-bg, #0d0d0d);
  border-radius: 14px;
  padding: 8px 10px 8px 20px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  min-height: 56px;
}

.pill-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.pill-logo {
  height: 42px;
  width: auto;
  display: block;
}

.pill-btn {
  background: #ffffff;
  color: #000000;
  border: none;
  border-radius: 10px;
  padding: 10px 22px;
  font-family: var(--font-geist, sans-serif);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  overflow: hidden;
  transition: transform 0.15s ease, opacity 0.15s ease, padding 0.1s ease;
}

.pill-btn:hover {
  opacity: 0.92;
  transform: scale(0.99);
}

.pill-btn.is-squished {
  transform: scale(0.96);
}

.pill-btn__mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: middle;
}

.pill-btn__text {
  display: inline-block;
  white-space: nowrap;
}

@keyframes slideOutUp {
  0% { transform: translateY(0); opacity: 1; filter: blur(0); }
  100% { transform: translateY(-100%); opacity: 0; filter: blur(2px); }
}

@keyframes slideInUp {
  0% { transform: translateY(100%); opacity: 0; filter: blur(2px); }
  100% { transform: translateY(0); opacity: 1; filter: blur(0); }
}

@keyframes slideOutDown {
  0% { transform: translateY(0); opacity: 1; filter: blur(0); }
  100% { transform: translateY(100%); opacity: 0; filter: blur(2px); }
}

@keyframes slideInDown {
  0% { transform: translateY(-100%); opacity: 0; filter: blur(2px); }
  100% { transform: translateY(0); opacity: 1; filter: blur(0); }
}

.nav-dialer {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px;
}

.nav-dialer__label {
  position: absolute;
  top: -24px;
  font-family: var(--font-geist-mono, monospace);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-muted, #7c878e);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.nav-dialer:hover .nav-dialer__label {
  opacity: 1;
  transform: translateY(0);
}

.nav-dialer__track {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 18px;
  height: 36px;
  border: 1.5px solid var(--btn-border, #d1d5db);
  border-radius: 10px;
  padding: 4px 0;
  background: var(--bg-canvas, #ffffff);
  transition: border-color 0.2s ease;
}

.nav-dialer:hover .nav-dialer__track {
  border-color: var(--text-main, #000000);
}

.nav-dialer__dot {
  width: 6px;
  height: 6px;
  background-color: var(--text-main, #000000);
  border-radius: 50%;
  transition: transform 0.15s ease;
}

.nav-dialer__chevron {
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  opacity: 0.2;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-dialer__chevron.top {
  border-bottom: 4px solid var(--text-main, #000000);
}

.nav-dialer__chevron.bottom {
  border-top: 4px solid var(--text-main, #000000);
}

.nav-dialer:hover .nav-dialer__chevron {
  opacity: 0.6;
}

.nav-dialer:hover .nav-dialer__chevron.top {
  transform: translateY(-1px);
}

.nav-dialer:hover .nav-dialer__chevron.bottom {
  transform: translateY(1px);
}

.screen-stage {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.screen-stage.is-transitioning {
  opacity: 0;
  transform: translateY(8px);
}

/* Difference blend against #ffffff flips black on light surfaces and white on dark surfaces */
.app-cursor {
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  margin-top: -3px;
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 30;
  will-change: transform;
  transition: opacity 0.18s ease;
}

.app-cursor__core {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #ffffff;
  will-change: transform;
}

.app-cursor__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  border: 1.5px solid #ffffff;
  border-radius: 999px;
  opacity: 0.85;
  will-change: transform;
  transition: width 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.16s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.app-cursor[data-mode="interactive"] .app-cursor__ring {
  width: 20px;
  height: 20px;
  opacity: 1;
}

.app-cursor[data-mode="dial"] .app-cursor__ring {
  width: 20px;
  height: 38px;
  opacity: 1;
}

.app-cursor[data-mode="disabled"] .app-cursor__ring {
  width: 24px;
  height: 24px;
}

.app-cursor.is-idle,
.app-cursor.is-hidden {
  opacity: 0;
}

.app-cursor.is-muted {
  opacity: 0.35;
}

.app-cursor.is-solid {
  mix-blend-mode: normal;
}

.app-cursor.is-solid .app-cursor__core {
  background: #000000;
  box-shadow: 0 0 0 1.5px #ffffff;
}

.app-cursor.is-solid .app-cursor__ring {
  border-color: #000000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.9);
}

@media (hover: hover) and (pointer: fine) {
  .app-frame,
  .app-frame * {
    cursor: none;
  }

  .app-frame input:not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="image"]),
  .app-frame textarea,
  .app-frame [contenteditable="true"] {
    cursor: text;
  }

  .app-frame iframe,
  .app-frame [data-cursor="none"] {
    cursor: auto;
  }
}

.screen {
  width: 100%;
  min-height: 100%;
  flex: 1 0 auto;
  padding: 24px 48px 32px 48px;
  display: flex;
  flex-direction: column;
}

.screen--hero {
  justify-content: flex-end;
}

.typography-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  text-align: left;
  width: 100%;
}

.subtitle {
  font-family: var(--font-geist, sans-serif);
  font-size: clamp(28px, 4.4vw, 78px);
  font-weight: 400;
  color: var(--text-muted, #7c878e);
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0;
  padding-left: 2px;
}

.title {
  font-family: var(--font-geist, sans-serif);
  font-size: clamp(64px, 11.8vw, 210px);
  font-weight: 700;
  background: linear-gradient(312deg, #0d0d0d, #1b1b1b 10%, #d8d8d8, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.03em;
  line-height: 0.88;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.screen--content {
  justify-content: flex-end;
  gap: 16px;
}

.screen-eyebrow {
  font-family: var(--font-geist-mono, monospace);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted, #7c878e);
}

.screen-heading {
  font-size: clamp(40px, 7vw, 96px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.96;
  color: var(--text-main, #000000);
}

.screen-copy {
  max-width: 48ch;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.5;
  color: var(--text-muted, #7c878e);
}

.screen-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.screen-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border: 1.5px solid var(--border-card, #000000);
  border-radius: 10px;
  color: var(--text-main, #000000);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  background: var(--bg-canvas, #ffffff);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.screen-link:hover {
  background: var(--text-main, #000000);
  color: var(--bg-canvas, #ffffff);
}

@media (prefers-reduced-motion: reduce) {
  .screen-stage,
  .app-cursor,
  .app-cursor__ring {
    transition: none;
  }
}

@media (max-width: 768px) {
  :root {
    --frame-padding-y: 12px;
    --frame-padding-x: 0px;
  }

  .app-header {
    gap: 12px;
    padding: 28px 20px 0 20px;
  }

  .header-pill {
    padding: 6px 8px 6px 16px;
    gap: 14px;
    min-height: 48px;
  }

  .nav-dialer__track {
    width: 16px;
    height: 30px;
    border-radius: 8px;
  }

  .pill-logo {
    height: 22px;
  }

  .pill-btn {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 8px;
  }

  .screen {
    padding: 16px 20px 28px 20px;
  }

  .title {
    font-size: clamp(44px, 11vw, 76px);
    white-space: normal;
    line-height: 0.95;
  }

  .subtitle {
    font-size: clamp(22px, 5.5vw, 36px);
  }
}