:root {
  color-scheme: light;
  --page-bg: #e9eaeb;
  --canvas-bg: rgba(248, 248, 247, 0.78);
  --canvas-border: rgba(255, 255, 255, 0.92);
  --ink: #111111;
  --muted: #666b70;
  --soft: #aeb4b9;
  --line: rgba(17, 17, 17, 0.12);
  --button: #1f1f1f;
  --button-hover: #050505;
  --surface: rgba(255, 255, 255, 0.64);
  --surface-strong: rgba(255, 255, 255, 0.84);
  --focus: #6f7f8d;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100dvh;
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Microsoft YaHei",
    sans-serif;
  text-rendering: geometricPrecision;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:disabled {
  cursor: default;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.site-canvas {
  width: min(1640px, calc(100vw - 64px));
  min-height: calc(100dvh - 64px);
  margin: 32px auto;
  border: 5px solid var(--canvas-border);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(238, 239, 239, 0.54)),
    var(--canvas-bg);
  box-shadow: 0 28px 80px rgba(30, 34, 38, 0.18);
  overflow: hidden;
}

.site-header {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 240px;
  align-items: center;
  gap: 24px;
  padding: 42px 74px 0;
}

.brand-mark {
  display: inline-flex;
  width: 112px;
  min-height: 48px;
  align-items: center;
}

.brand-mark img {
  display: block;
  width: 112px;
  height: auto;
  object-fit: contain;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 76px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.site-nav a {
  border-bottom: 1px solid transparent;
  padding: 14px 2px;
  color: rgba(17, 17, 17, 0.86);
  transition:
    color 180ms ease,
    border-color 180ms ease,
    opacity 180ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-color: rgba(17, 17, 17, 0.72);
  color: var(--ink);
}

.home-stage {
  position: relative;
  min-height: calc(100dvh - 178px);
  padding: 0 74px 52px;
}

.motion-visual {
  position: absolute;
  inset: 105px 260px 118px 390px;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.glass-shell {
  position: relative;
  width: min(640px, 46vw);
  aspect-ratio: 1.36;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 46% 54% 50% 50% / 35% 45% 55% 65%;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(206, 211, 215, 0.28)),
    rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 26px 28px 56px rgba(255, 255, 255, 0.72),
    inset -24px -28px 50px rgba(90, 100, 108, 0.16),
    0 44px 88px rgba(52, 58, 64, 0.22);
  transform: rotate(-7deg);
}

.glass-shell::before,
.glass-shell::after {
  content: "";
  position: absolute;
  inset: 28px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 44% 56% 49% 51% / 38% 46% 54% 62%;
}

.glass-shell::after {
  inset: auto -4px 26px auto;
  width: 28%;
  height: 68%;
  border-left: 1px solid rgba(60, 67, 74, 0.28);
  border-top: 0;
  border-bottom: 0;
  opacity: 0.8;
}

.glass-inner {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transform: rotate(7deg);
}

.frame-strip {
  position: relative;
  width: 430px;
  height: 180px;
}

.frame-card {
  position: absolute;
  top: 34px;
  width: 150px;
  height: 122px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  background: rgba(246, 248, 249, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.52),
    0 14px 24px rgba(91, 100, 108, 0.08);
  backdrop-filter: blur(8px);
}

.frame-card span {
  position: absolute;
  top: 38px;
  left: 48px;
  width: 58px;
  height: 42px;
  border: 10px solid rgba(93, 101, 109, 0.22);
  border-top: 0;
  border-left: 0;
  transform: skewX(-16deg) rotate(-12deg);
}

.frame-card span::before,
.frame-card span::after {
  content: "";
  position: absolute;
  background: rgba(93, 101, 109, 0.2);
}

.frame-card span::before {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  right: -18px;
  top: -18px;
}

.frame-card span::after {
  width: 60px;
  height: 8px;
  left: -26px;
  bottom: -18px;
  transform: rotate(-18deg);
}

.frame-card-1 {
  left: 0;
  opacity: 0.22;
}

.frame-card-2 {
  left: 58px;
  opacity: 0.32;
}

.frame-card-3 {
  left: 116px;
  opacity: 0.44;
}

.frame-card-4 {
  left: 174px;
  opacity: 0.58;
}

.frame-card-5 {
  left: 242px;
  opacity: 0.78;
}

.motion-track {
  position: absolute;
  right: 126px;
  bottom: 105px;
  width: 290px;
  height: 42px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.54);
}

.motion-track i {
  position: absolute;
  bottom: -7px;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(255, 255, 255, 0.74);
  border-radius: 50%;
}

.motion-track i:nth-child(1) {
  left: 58px;
}

.motion-track i:nth-child(2) {
  left: 160px;
}

.motion-track i:nth-child(3) {
  left: 260px;
}

.hero-copy {
  position: absolute;
  left: 74px;
  bottom: 68px;
  width: 340px;
}

.section-index {
  margin: 0 0 28px;
  font-size: 15px;
  font-weight: 800;
}

.hero-copy h1,
.simple-panel h1,
.account-login h1 {
  margin: 0;
  font-size: 78px;
  font-weight: 900;
  line-height: 0.92;
}

.hero-kicker {
  margin: 8px 0 18px;
  font-size: 23px;
  font-weight: 900;
  line-height: 1.06;
}

.hero-body {
  max-width: 300px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.42;
}

.primary-button,
.secondary-button,
.disabled-button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  border-radius: 8px;
  padding: 0 24px;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
}

.primary-button {
  min-width: 210px;
  background: var(--button);
  color: white;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.primary-button:hover {
  background: var(--button-hover);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
  transform: translateY(-1px);
}

.primary-button:disabled {
  background: rgba(17, 17, 17, 0.42);
  box-shadow: none;
  transform: none;
}

.primary-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.download-anchor {
  display: block;
  width: 0;
  height: 0;
}

.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 76px;
  display: flex;
  gap: 20px;
  transform: translateX(-50%);
}

.carousel-dots span {
  width: 15px;
  height: 15px;
  border: 2px solid #111;
  border-radius: 50%;
}

.carousel-dots .is-active {
  background: #111;
}

.corner-label {
  position: absolute;
  right: 76px;
  bottom: 104px;
  display: grid;
  gap: 8px;
  margin: 0;
  color: #111;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.corner-label::after {
  content: "";
  display: block;
  width: 42px;
  height: 1px;
  margin: 18px auto 0;
  background: rgba(17, 17, 17, 0.32);
}

.page-canvas {
  display: flex;
  min-height: calc(100dvh - 64px);
  flex-direction: column;
}

.simple-panel,
.account-panel {
  width: min(720px, calc(100% - 96px));
  margin: auto;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 26px;
  background: var(--surface);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    0 24px 70px rgba(34, 39, 44, 0.12);
  backdrop-filter: blur(18px);
}

.simple-panel {
  padding: 52px;
}

.panel-eyebrow {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.simple-panel h1,
.account-login h1 {
  font-size: 54px;
  line-height: 1;
}

.price-note {
  margin: 18px 0 34px;
  color: var(--muted);
  font-size: 20px;
  font-weight: 800;
}

.feature-list {
  display: grid;
  gap: 16px;
  margin: 0 0 36px;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 20px;
  color: #2b2f33;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.48;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #111;
}

.disabled-button {
  min-width: 160px;
  background: rgba(17, 17, 17, 0.12);
  color: rgba(17, 17, 17, 0.48);
  cursor: not-allowed;
}

.placeholder-panel p:last-child {
  max-width: 460px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 650;
  line-height: 1.6;
}

.account-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  padding: 52px;
}

.account-login {
  display: grid;
  gap: 22px;
  justify-items: start;
}

.account-message {
  min-height: 22px;
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.account-message:empty {
  display: none;
}

.account-message[data-tone="error"] {
  color: #9b1c1c;
}

.account-profile-shell[hidden] {
  display: none;
}

.account-profile-shell {
  border-top: 1px solid var(--line);
  padding-top: 34px;
}

.avatar-placeholder {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background:
    center / cover no-repeat,
    rgba(17, 17, 17, 0.1);
  color: rgba(17, 17, 17, 0.52);
  font-size: 28px;
  font-weight: 900;
}

.account-profile-shell dl {
  display: grid;
  gap: 0;
  margin: 28px 0 0;
}

.account-profile-shell dl div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

.account-profile-shell dt,
.account-profile-shell dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
}

.account-profile-shell dt {
  color: var(--muted);
  font-weight: 700;
}

.account-profile-shell dd {
  color: var(--ink);
  font-weight: 800;
}

.secondary-button {
  margin-top: 20px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--ink);
}

@media (max-width: 1100px) {
  .site-canvas {
    width: min(100vw - 32px, 980px);
    min-height: calc(100dvh - 32px);
    margin: 16px auto;
  }

  .site-header {
    grid-template-columns: 150px minmax(0, 1fr);
    padding: 28px 34px 0;
  }

  .site-nav {
    justify-content: flex-end;
    gap: 30px;
  }

  .home-stage {
    min-height: calc(100dvh - 120px);
    padding: 0 34px 42px;
  }

  .motion-visual {
    inset: 96px 42px 260px 260px;
  }

  .glass-shell {
    width: min(520px, 58vw);
  }

  .hero-copy {
    left: 34px;
    bottom: 50px;
  }

  .corner-label {
    right: 44px;
    bottom: 84px;
  }
}

@media (max-width: 760px) {
  .site-canvas {
    width: calc(100vw - 20px);
    border-width: 3px;
    border-radius: 24px;
  }

  .site-header {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 22px 0;
  }

  .brand-mark,
  .brand-mark img {
    width: 98px;
  }

  .site-nav {
    justify-content: flex-start;
    gap: 22px;
    overflow-x: auto;
    padding-bottom: 4px;
    font-size: 13px;
  }

  .home-stage {
    display: grid;
    min-height: auto;
    padding: 14px 22px 24px;
  }

  .motion-visual,
  .hero-copy,
  .carousel-dots,
  .corner-label {
    position: static;
  }

  .motion-visual {
    min-height: 240px;
    margin-top: 2px;
  }

  .glass-shell {
    width: min(330px, 82vw);
  }

  .frame-strip {
    width: 260px;
    height: 128px;
  }

  .frame-card {
    top: 24px;
    width: 98px;
    height: 82px;
  }

  .frame-card span {
    top: 24px;
    left: 30px;
    width: 40px;
    height: 30px;
    border-width: 7px;
  }

  .frame-card-2 {
    left: 36px;
  }

  .frame-card-3 {
    left: 72px;
  }

  .frame-card-4 {
    left: 108px;
  }

  .frame-card-5 {
    left: 150px;
  }

  .motion-track {
    right: 70px;
    bottom: 70px;
    width: 176px;
  }

  .motion-track i:nth-child(1) {
    left: 36px;
  }

  .motion-track i:nth-child(2) {
    left: 98px;
  }

  .motion-track i:nth-child(3) {
    left: 158px;
  }

  .hero-copy {
    width: min(100%, 340px);
    margin-top: 0;
  }

  .section-index {
    margin-bottom: 12px;
  }

  .hero-copy h1 {
    font-size: 50px;
  }

  .hero-kicker {
    margin: 6px 0 12px;
    font-size: 18px;
  }

  .hero-body {
    margin-bottom: 18px;
    font-size: 15px;
  }

  .carousel-dots {
    justify-content: center;
    margin-top: 20px;
    transform: none;
  }

  .corner-label {
    justify-content: center;
    margin-top: 20px;
  }

  .corner-label::after {
    margin-top: 14px;
  }

  .page-canvas {
    min-height: calc(100dvh - 20px);
  }

  .simple-panel,
  .account-panel {
    width: calc(100% - 32px);
    margin: 46px auto auto;
    border-radius: 20px;
    padding: 34px 24px;
  }

  .simple-panel h1,
  .account-login h1 {
    font-size: 38px;
  }

  .primary-button,
  .secondary-button,
  .disabled-button {
    width: 100%;
    min-height: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
